2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
596 PACKAGE_TARNAME
='emacs'
597 PACKAGE_VERSION
='24.0.50'
598 PACKAGE_STRING
='emacs 24.0.50'
601 ac_unique_file
="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_config_libobj_dir
=src
650 program_transform_name
764 x_default_search_path
783 GNUSTEP_SYSTEM_HEADERS
784 GNUSTEP_SYSTEM_LIBRARIES
786 LIB_SRC_EXTRA_INSTALLABLES
793 enable_option_checking
813 with_toolkit_scroll_bars
826 enable_ns_self_contained
828 enable_maintainer_mode
836 ac_precious_vars
='build_alias
848 # Initialize some variables set by options.
850 ac_init_version
=false
851 ac_unrecognized_opts
=
853 # The variables have the same names as the options, with
854 # dashes changed to underlines.
862 program_transform_name
=s
,x
,x
,
870 # Installation directory options.
871 # These are left unexpanded so users can "make install exec_prefix=/foo"
872 # and all the variables that are supposed to be based on exec_prefix
873 # by default will actually change.
874 # Use braces instead of parens because sh, perl, etc. also accept them.
875 # (The list follows the same order as the GNU Coding Standards.)
876 bindir
='${exec_prefix}/bin'
877 sbindir
='${exec_prefix}/sbin'
878 libexecdir
='${exec_prefix}/libexec'
879 datarootdir
='${prefix}/share'
880 datadir
='${datarootdir}'
881 sysconfdir
='${prefix}/etc'
882 sharedstatedir
='${prefix}/com'
883 localstatedir
='${prefix}/var'
884 includedir
='${prefix}/include'
885 oldincludedir
='/usr/include'
886 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
887 infodir
='${datarootdir}/info'
892 libdir
='${exec_prefix}/lib'
893 localedir
='${datarootdir}/locale'
894 mandir
='${datarootdir}/man'
900 # If the previous option needs an argument, assign it.
901 if test -n "$ac_prev"; then
902 eval $ac_prev=\
$ac_option
908 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912 # Accept the important Cygnus configure options, so we can diagnose typos.
914 case $ac_dashdash$ac_option in
918 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
920 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
923 -build |
--build |
--buil |
--bui |
--bu)
924 ac_prev
=build_alias
;;
925 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
926 build_alias
=$ac_optarg ;;
928 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
929 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
930 ac_prev
=cache_file
;;
931 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
932 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
933 cache_file
=$ac_optarg ;;
936 cache_file
=config.cache
;;
938 -datadir |
--datadir |
--datadi |
--datad)
940 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
941 datadir
=$ac_optarg ;;
943 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
944 |
--dataroo |
--dataro |
--datar)
945 ac_prev
=datarootdir
;;
946 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
947 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
948 datarootdir
=$ac_optarg ;;
950 -disable-* |
--disable-*)
951 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
954 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
955 { (exit 1); exit 1; }; }
956 ac_useropt_orig
=$ac_useropt
957 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
962 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep
=', ';;
965 eval enable_
$ac_useropt=no
;;
967 -docdir |
--docdir |
--docdi |
--doc |
--do)
969 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
972 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
974 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
977 -enable-* |
--enable-*)
978 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
981 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
982 { (exit 1); exit 1; }; }
983 ac_useropt_orig
=$ac_useropt
984 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
989 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990 ac_unrecognized_sep
=', ';;
992 eval enable_
$ac_useropt=\
$ac_optarg ;;
994 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
995 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
996 |
--exec |
--exe |
--ex)
997 ac_prev
=exec_prefix
;;
998 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
999 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1000 |
--exec=* |
--exe=* |
--ex=*)
1001 exec_prefix
=$ac_optarg ;;
1003 -gas |
--gas |
--ga |
--g)
1004 # Obsolete; use --with-gas.
1007 -help |
--help |
--hel |
--he |
-h)
1008 ac_init_help
=long
;;
1009 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1010 ac_init_help
=recursive
;;
1011 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1012 ac_init_help
=short
;;
1014 -host |
--host |
--hos |
--ho)
1015 ac_prev
=host_alias
;;
1016 -host=* |
--host=* |
--hos=* |
--ho=*)
1017 host_alias
=$ac_optarg ;;
1019 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1021 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1023 htmldir
=$ac_optarg ;;
1025 -includedir |
--includedir |
--includedi |
--included |
--include \
1026 |
--includ |
--inclu |
--incl |
--inc)
1027 ac_prev
=includedir
;;
1028 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1029 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1030 includedir
=$ac_optarg ;;
1032 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1034 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1035 infodir
=$ac_optarg ;;
1037 -libdir |
--libdir |
--libdi |
--libd)
1039 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1040 libdir
=$ac_optarg ;;
1042 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1043 |
--libexe |
--libex |
--libe)
1044 ac_prev
=libexecdir
;;
1045 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1046 |
--libexe=* |
--libex=* |
--libe=*)
1047 libexecdir
=$ac_optarg ;;
1049 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1050 ac_prev
=localedir
;;
1051 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1052 localedir
=$ac_optarg ;;
1054 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1055 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1056 ac_prev
=localstatedir
;;
1057 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1058 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1059 localstatedir
=$ac_optarg ;;
1061 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1063 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1064 mandir
=$ac_optarg ;;
1066 -nfp |
--nfp |
--nf)
1067 # Obsolete; use --without-fp.
1070 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1071 |
--no-cr |
--no-c |
-n)
1074 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1075 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1078 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1079 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1080 |
--oldin |
--oldi |
--old |
--ol |
--o)
1081 ac_prev
=oldincludedir
;;
1082 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1083 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1084 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1085 oldincludedir
=$ac_optarg ;;
1087 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1089 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1090 prefix
=$ac_optarg ;;
1092 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1093 |
--program-pre |
--program-pr |
--program-p)
1094 ac_prev
=program_prefix
;;
1095 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1096 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1097 program_prefix
=$ac_optarg ;;
1099 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1100 |
--program-suf |
--program-su |
--program-s)
1101 ac_prev
=program_suffix
;;
1102 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1103 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1104 program_suffix
=$ac_optarg ;;
1106 -program-transform-name |
--program-transform-name \
1107 |
--program-transform-nam |
--program-transform-na \
1108 |
--program-transform-n |
--program-transform- \
1109 |
--program-transform |
--program-transfor \
1110 |
--program-transfo |
--program-transf \
1111 |
--program-trans |
--program-tran \
1112 |
--progr-tra |
--program-tr |
--program-t)
1113 ac_prev
=program_transform_name
;;
1114 -program-transform-name=* |
--program-transform-name=* \
1115 |
--program-transform-nam=* |
--program-transform-na=* \
1116 |
--program-transform-n=* |
--program-transform-=* \
1117 |
--program-transform=* |
--program-transfor=* \
1118 |
--program-transfo=* |
--program-transf=* \
1119 |
--program-trans=* |
--program-tran=* \
1120 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1121 program_transform_name
=$ac_optarg ;;
1123 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1125 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1126 pdfdir
=$ac_optarg ;;
1128 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1130 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1133 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1134 |
-silent |
--silent |
--silen |
--sile |
--sil)
1137 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1139 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1141 sbindir
=$ac_optarg ;;
1143 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1144 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1145 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1147 ac_prev
=sharedstatedir
;;
1148 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1149 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1150 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1152 sharedstatedir
=$ac_optarg ;;
1154 -site |
--site |
--sit)
1156 -site=* |
--site=* |
--sit=*)
1159 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1161 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1162 srcdir
=$ac_optarg ;;
1164 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1165 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1166 ac_prev
=sysconfdir
;;
1167 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1168 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1169 sysconfdir
=$ac_optarg ;;
1171 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1172 ac_prev
=target_alias
;;
1173 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1174 target_alias
=$ac_optarg ;;
1176 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1179 -version |
--version |
--versio |
--versi |
--vers |
-V)
1180 ac_init_version
=: ;;
1183 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1186 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1187 { (exit 1); exit 1; }; }
1188 ac_useropt_orig
=$ac_useropt
1189 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1194 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1195 ac_unrecognized_sep
=', ';;
1197 eval with_
$ac_useropt=\
$ac_optarg ;;
1199 -without-* |
--without-*)
1200 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1203 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_useropt_orig
=$ac_useropt
1206 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1211 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1212 ac_unrecognized_sep
=', ';;
1214 eval with_
$ac_useropt=no
;;
1217 # Obsolete; use --with-x.
1220 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1221 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1222 ac_prev
=x_includes
;;
1223 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1224 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1225 x_includes
=$ac_optarg ;;
1227 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1228 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1229 ac_prev
=x_libraries
;;
1230 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1231 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1232 x_libraries
=$ac_optarg ;;
1234 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1235 Try \`$0 --help' for more information." >&2
1236 { (exit 1); exit 1; }; }
1240 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1243 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1244 { (exit 1); exit 1; }; }
1245 eval $ac_envvar=\
$ac_optarg
1246 export $ac_envvar ;;
1249 # FIXME: should be removed in autoconf 3.0.
1250 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1251 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1252 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1253 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1259 if test -n "$ac_prev"; then
1260 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1261 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1262 { (exit 1); exit 1; }; }
1265 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1268 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1269 { (exit 1); exit 1; }; } ;;
1270 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274 # Check all directory arguments for consistency.
1275 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276 datadir sysconfdir sharedstatedir localstatedir includedir \
1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278 libdir localedir mandir
1280 eval ac_val
=\$
$ac_var
1281 # Remove trailing slashes.
1284 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285 eval $ac_var=\
$ac_val;;
1287 # Be sure to have absolute directory names.
1289 [\\/$
]* | ?
:[\\/]* ) continue;;
1290 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1292 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1293 { (exit 1); exit 1; }; }
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1301 target
=$target_alias
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x
; then
1305 if test "x$build_alias" = x
; then
1306 cross_compiling
=maybe
1307 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1308 If a cross compiler is detected then cross compile mode will be used." >&2
1309 elif test "x$build_alias" != "x$host_alias"; then
1315 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1317 test "$silent" = yes && exec 6>/dev
/null
1320 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di
=`ls -di .` &&
1322 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1323 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1324 { (exit 1); exit 1; }; }
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1327 { (exit 1); exit 1; }; }
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted
=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir
=`$as_dirname -- "$as_myself" ||
1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$as_myself" : 'X\(//\)[^/]' \| \
1337 X"$as_myself" : 'X\(//\)$' \| \
1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1339 $as_echo X"$as_myself" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1362 ac_srcdir_defaulted
=no
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1366 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1367 { (exit 1); exit 1; }; }
1369 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1372 { (exit 1); exit 1; }; }
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1382 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 for ac_var
in $ac_precious_vars; do
1385 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1387 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1398 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1461 --x-includes=DIR X include files are
in DIR
1462 --x-libraries=DIR X library files are
in DIR
1465 --build=BUILD configure
for building on BUILD
[guessed
]
1466 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1477 --disable-option-checking ignore unrecognized
--enable/--with options
1478 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1479 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1480 --disable-ns-self-contained
1481 disable self contained build under NeXTstep
1482 --enable-asserts compile code with asserts enabled
1483 --enable-maintainer-mode
1484 enable make rules and dependencies not useful
(and
1485 sometimes confusing
) to the casual installer
1486 --enable-locallisppath=PATH
1487 directories Emacs should search
for lisp files
1488 specific to this site
1489 --enable-checking[=LIST
]
1490 enable expensive run-time checks. With LIST
, enable
1491 only specific categories of checks. Categories are
:
1492 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1493 stringfreelist
, xmallocoverrun
, conslist
1494 --enable-profiling build emacs with profiling support. This might not
1495 work on all platforms
1496 --enable-autodepend automatically generate dependencies to .h-files.
1497 Requires GNU Make and Gcc. Enabled
if GNU Make and
1499 --disable-largefile omit support
for large files
1502 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1503 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1504 --without-pop don
't support POP mail retrieval with movemail
1505 --with-kerberos support Kerberos-authenticated POP
1506 --with-kerberos5 support Kerberos version 5 authenticated POP
1507 --with-hesiod support Hesiod to get the POP server host
1508 --with-mmdf support MMDF mailboxes
1509 --with-mail-unlink unlink, rather than empty, mail spool after reading
1510 --with-mailhost=HOSTNAME
1511 string giving default POP mail host
1512 --without-sound don't compile with sound support
1513 --without-sync-input process async input synchronously
1514 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1516 --without-xpm don
't compile with XPM image support
1517 --without-jpeg don't compile with JPEG image support
1518 --without-tiff don
't compile with TIFF image support
1519 --without-gif don't compile with GIF image support
1520 --without-png don
't compile with PNG image support
1521 --without-rsvg don't compile with SVG image support
1522 --without-xft don
't use XFT for anti aliased fonts
1523 --without-libotf don't use libotf
for OpenType font support
1524 --without-m17n-flt don
't use m17n-flt for text shaping
1525 --without-toolkit-scroll-bars
1526 don't use Motif or Xaw3d scroll bars
1527 --without-xaw3d don
't use Xaw3d
1528 --without-xim don't use X11 XIM
1529 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1530 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1532 --without-dbus don't compile with D-Bus support
1533 --without-gconf don
't compile with GConf support
1534 --without-selinux don't compile with SELinux support
1535 --without-makeinfo don
't require makeinfo for building manuals
1537 --with-pkg-config-prog=PATH
1538 path to pkg-config for finding GTK and librsvg
1539 --with-gnustep-conf=PATH
1540 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1541 or /etc/GNUstep/GNUstep.conf
1542 --with-x use the X Window System
1544 Some influential environment variables:
1545 CC C compiler command
1546 CFLAGS C compiler flags
1547 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1548 nonstandard directory <lib dir>
1549 LIBS libraries to pass to the linker, e.g. -l<library>
1550 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1551 you have headers in a nonstandard directory <include dir>
1553 XMKMF Path to xmkmf, Makefile generator for X Window System
1555 Use these variables to override the choices made by `configure' or to
help
1556 it to
find libraries and programs with nonstandard names
/locations.
1562 if test "$ac_init_help" = "recursive"; then
1563 # If there are subdirs, report their specific --help.
1564 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1565 test -d "$ac_dir" ||
1566 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1571 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1573 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1574 # A ".." for each directory in $ac_dir_suffix.
1575 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1576 case $ac_top_builddir_sub in
1577 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1578 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1581 ac_abs_top_builddir
=$ac_pwd
1582 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1583 # for backward compatibility:
1584 ac_top_builddir
=$ac_top_build_prefix
1587 .
) # We are building in place.
1589 ac_top_srcdir
=$ac_top_builddir_sub
1590 ac_abs_top_srcdir
=$ac_pwd ;;
1591 [\\/]* | ?
:[\\/]* ) # Absolute name.
1592 ac_srcdir
=$srcdir$ac_dir_suffix;
1593 ac_top_srcdir
=$srcdir
1594 ac_abs_top_srcdir
=$srcdir ;;
1596 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1597 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1598 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1600 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1602 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1603 # Check for guested configure.
1604 if test -f "$ac_srcdir/configure.gnu"; then
1606 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607 elif test -f "$ac_srcdir/configure"; then
1609 $SHELL "$ac_srcdir/configure" --help=recursive
1611 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1613 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1617 test -n "$ac_init_help" && exit $ac_status
1618 if $ac_init_version; then
1620 emacs configure
24.0.50
1621 generated by GNU Autoconf
2.62
1623 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1624 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1625 This configure
script is free software
; the Free Software Foundation
1626 gives unlimited permission to copy
, distribute and modify it.
1630 cat >config.log
<<_ACEOF
1631 This file contains any messages produced by compilers while
1632 running configure, to aid debugging if configure makes a mistake.
1634 It was created by emacs $as_me 24.0.50, which was
1635 generated by GNU Autoconf 2.62. Invocation command line was
1647 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1648 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1649 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1650 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1651 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1653 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1654 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1656 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1657 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1658 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1659 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1660 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1661 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1662 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir
=.
1671 $as_echo "PATH: $as_dir"
1687 # Keep a trace of the command line.
1688 # Strip out --no-create and --no-recursion so they do not pile up.
1689 # Strip out --silent because we don't want to record it for future runs.
1690 # Also quote any args containing shell meta-characters.
1691 # Make two passes to allow for proper duplicate-argument suppression.
1695 ac_must_keep_next
=false
1701 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1702 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1703 |
-silent |
--silent |
--silen |
--sile |
--sil)
1706 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1709 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1711 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1712 if test $ac_must_keep_next = true
; then
1713 ac_must_keep_next
=false
# Got value, back to normal.
1716 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1717 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1718 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1719 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1720 case "$ac_configure_args0 " in
1721 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1724 -* ) ac_must_keep_next
=true
;;
1727 ac_configure_args
="$ac_configure_args '$ac_arg'"
1732 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1733 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1735 # When interrupted or exit'd, cleanup temporary files, and complete
1736 # config.log. We remove comments because anyway the quotes in there
1737 # would cause problems or look ugly.
1738 # WARNING: Use '\'' to represent an apostrophe within the trap.
1739 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1740 trap 'exit_status=$?
1741 # Save into config.log some information that might help in debugging.
1746 ## ---------------- ##
1747 ## Cache variables. ##
1748 ## ---------------- ##
1751 # The following way of writing the cache mishandles newlines in values,
1753 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1754 eval ac_val=\$$ac_var
1758 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1759 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1762 _ | IFS | as_nl) ;; #(
1763 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1764 *) $as_unset $ac_var ;;
1769 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1770 *${as_nl}ac_space=\ *)
1772 "s/'\''/'\''\\\\'\'''\''/g;
1773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1784 ## ----------------- ##
1785 ## Output variables. ##
1786 ## ----------------- ##
1789 for ac_var in $ac_subst_vars
1791 eval ac_val=\$$ac_var
1793 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1795 $as_echo "$ac_var='\''$ac_val'\''"
1799 if test -n "$ac_subst_files"; then
1801 ## ------------------- ##
1802 ## File substitutions. ##
1803 ## ------------------- ##
1806 for ac_var
in $ac_subst_files
1808 eval ac_val
=\$
$ac_var
1810 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812 $as_echo "$ac_var='\''$ac_val'\''"
1817 if test -s confdefs.h; then
1827 test "$ac_signal" != 0 &&
1828 $as_echo "$as_me: caught signal $ac_signal"
1829 $as_echo "$as_me: exit $exit_status"
1831 rm -f core *.core core.conftest.* &&
1832 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1835 for ac_signal
in 1 2 13 15; do
1836 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1840 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1841 rm -f -r conftest
* confdefs.h
1843 # Predefined preprocessor variables.
1845 cat >>confdefs.h
<<_ACEOF
1846 #define PACKAGE_NAME "$PACKAGE_NAME"
1850 cat >>confdefs.h
<<_ACEOF
1851 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1855 cat >>confdefs.h
<<_ACEOF
1856 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1860 cat >>confdefs.h
<<_ACEOF
1861 #define PACKAGE_STRING "$PACKAGE_STRING"
1865 cat >>confdefs.h
<<_ACEOF
1866 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1870 # Let the site file select an alternate cache file if it wants to.
1871 # Prefer an explicitly selected file to automatically selected ones.
1874 if test -n "$CONFIG_SITE"; then
1875 ac_site_file1
=$CONFIG_SITE
1876 elif test "x$prefix" != xNONE
; then
1877 ac_site_file1
=$prefix/share
/config.site
1878 ac_site_file2
=$prefix/etc
/config.site
1880 ac_site_file1
=$ac_default_prefix/share
/config.site
1881 ac_site_file2
=$ac_default_prefix/etc
/config.site
1883 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1885 test "x$ac_site_file" = xNONE
&& continue
1886 if test -r "$ac_site_file"; then
1887 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1888 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1889 sed 's/^/| /' "$ac_site_file" >&5
1894 if test -r "$cache_file"; then
1895 # Some versions of bash will fail to source /dev/null (special
1896 # files actually), so we avoid doing that.
1897 if test -f "$cache_file"; then
1898 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1899 $as_echo "$as_me: loading cache $cache_file" >&6;}
1901 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1902 *) .
"./$cache_file";;
1906 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1907 $as_echo "$as_me: creating cache $cache_file" >&6;}
1911 ac_header_list
="$ac_header_list sys/time.h"
1912 ac_header_list
="$ac_header_list unistd.h"
1913 ac_func_list
="$ac_func_list alarm"
1914 # Check that the precious variables saved in the cache have kept the same
1916 ac_cache_corrupted
=false
1917 for ac_var
in $ac_precious_vars; do
1918 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1919 eval ac_new_set
=\
$ac_env_${ac_var}_set
1920 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1921 eval ac_new_val
=\
$ac_env_${ac_var}_value
1922 case $ac_old_set,$ac_new_set in
1924 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1925 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1926 ac_cache_corrupted
=: ;;
1928 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1930 ac_cache_corrupted
=: ;;
1933 if test "x$ac_old_val" != "x$ac_new_val"; then
1934 # differences in whitespace do not lead to failure.
1935 ac_old_val_w
=`echo x $ac_old_val`
1936 ac_new_val_w
=`echo x $ac_new_val`
1937 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1938 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1939 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1940 ac_cache_corrupted
=:
1942 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1943 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1944 eval $ac_var=\
$ac_old_val
1946 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1947 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1948 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1949 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1952 # Pass precious variables to config.status.
1953 if test "$ac_new_set" = set; then
1955 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 *) ac_arg
=$ac_var=$ac_new_val ;;
1958 case " $ac_configure_args " in
1959 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1960 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1964 if $ac_cache_corrupted; then
1965 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1966 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1967 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1968 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1969 { (exit 1); exit 1; }; }
1997 ac_cpp
='$CPP $CPPFLAGS'
1998 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2003 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2007 test "$program_prefix" != NONE
&&
2008 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2009 # Use a double $ so make ignores it.
2010 test "$program_suffix" != NONE
&&
2011 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2012 # Double any \ or $.
2013 # By default was `s,x,x', remove it if useless.
2014 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2015 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2018 lispdir
='${datadir}/emacs/${version}/lisp'
2019 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2020 '${datadir}/emacs/site-lisp'
2021 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2022 etcdir
='${datadir}/emacs/${version}/etc'
2023 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2024 docdir
='${datadir}/emacs/${version}/etc'
2025 gamedir
='${localstatedir}/games/emacs'
2032 # Check whether --with-pop was given.
2033 if test "${with_pop+set}" = set; then
2039 if test "$with_pop" = yes; then
2040 cat >>confdefs.h
<<\_ACEOF
2041 #define MAIL_USE_POP 1
2048 # Check whether --with-kerberos was given.
2049 if test "${with_kerberos+set}" = set; then
2050 withval
=$with_kerberos;
2055 if test "$with_kerberos" != no
; then
2056 cat >>confdefs.h
<<\_ACEOF
2064 # Check whether --with-kerberos5 was given.
2065 if test "${with_kerberos5+set}" = set; then
2066 withval
=$with_kerberos5;
2071 if test "${with_kerberos5}" != no
; then
2072 if test "${with_kerberos}" = no
; then
2074 cat >>confdefs.h
<<\_ACEOF
2080 cat >>confdefs.h
<<\_ACEOF
2087 # Check whether --with-hesiod was given.
2088 if test "${with_hesiod+set}" = set; then
2089 withval
=$with_hesiod;
2094 if test "$with_hesiod" != no
; then
2096 cat >>confdefs.h
<<\_ACEOF
2103 # Check whether --with-mmdf was given.
2104 if test "${with_mmdf+set}" = set; then
2110 if test "$with_mmdf" != no
; then
2112 cat >>confdefs.h
<<\_ACEOF
2113 #define MAIL_USE_MMDF 1
2119 # Check whether --with-mail-unlink was given.
2120 if test "${with_mail_unlink+set}" = set; then
2121 withval
=$with_mail_unlink;
2126 if test "$with_mail_unlink" != no
; then
2128 cat >>confdefs.h
<<\_ACEOF
2129 #define MAIL_UNLINK_SPOOL 1
2135 # Check whether --with-mailhost was given.
2136 if test "${with_mailhost+set}" = set; then
2137 withval
=$with_mailhost;
2138 cat >>confdefs.h
<<_ACEOF
2139 #define MAILHOST "$withval"
2146 # Check whether --with-sound was given.
2147 if test "${with_sound+set}" = set; then
2148 withval
=$with_sound;
2155 # Check whether --with-sync-input was given.
2156 if test "${with_sync_input+set}" = set; then
2157 withval
=$with_sync_input;
2162 if test "$with_sync_input" = yes; then
2164 cat >>confdefs.h
<<\_ACEOF
2165 #define SYNC_INPUT 1
2171 # Check whether --with-x-toolkit was given.
2172 if test "${with_x_toolkit+set}" = set; then
2173 withval
=$with_x_toolkit; case "${withval}" in
2174 y | ye |
yes ) val
=gtk
;;
2176 l | lu | luc | luci | lucid
) val
=lucid
;;
2177 a |
at | ath | athe | athen | athena
) val
=athena
;;
2178 m | mo | mot | moti | motif
) val
=motif
;;
2179 g | gt | gtk
) val
=gtk
;;
2181 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2182 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2183 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2184 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2185 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2186 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2187 { (exit 1); exit 1; }; }
2196 # Check whether --with-xpm was given.
2197 if test "${with_xpm+set}" = set; then
2204 # Check whether --with-jpeg was given.
2205 if test "${with_jpeg+set}" = set; then
2212 # Check whether --with-tiff was given.
2213 if test "${with_tiff+set}" = set; then
2220 # Check whether --with-gif was given.
2221 if test "${with_gif+set}" = set; then
2228 # Check whether --with-png was given.
2229 if test "${with_png+set}" = set; then
2236 # Check whether --with-rsvg was given.
2237 if test "${with_rsvg+set}" = set; then
2245 # Check whether --with-xft was given.
2246 if test "${with_xft+set}" = set; then
2253 # Check whether --with-libotf was given.
2254 if test "${with_libotf+set}" = set; then
2255 withval
=$with_libotf;
2261 # Check whether --with-m17n-flt was given.
2262 if test "${with_m17n_flt+set}" = set; then
2263 withval
=$with_m17n_flt;
2270 # Check whether --with-toolkit-scroll-bars was given.
2271 if test "${with_toolkit_scroll_bars+set}" = set; then
2272 withval
=$with_toolkit_scroll_bars;
2274 with_toolkit_scroll_bars
=yes
2278 # Check whether --with-xaw3d was given.
2279 if test "${with_xaw3d+set}" = set; then
2280 withval
=$with_xaw3d;
2286 # Check whether --with-xim was given.
2287 if test "${with_xim+set}" = set; then
2294 # Check whether --with-ns was given.
2295 if test "${with_ns+set}" = set; then
2303 # Check whether --with-gpm was given.
2304 if test "${with_gpm+set}" = set; then
2311 # Check whether --with-dbus was given.
2312 if test "${with_dbus+set}" = set; then
2319 # Check whether --with-gconf was given.
2320 if test "${with_gconf+set}" = set; then
2321 withval
=$with_gconf;
2327 # Check whether --with-selinux was given.
2328 if test "${with_selinux+set}" = set; then
2329 withval
=$with_selinux;
2335 ## For the times when you want to build Emacs but don't have
2336 ## a suitable makeinfo, and can live without the manuals.
2338 # Check whether --with-makeinfo was given.
2339 if test "${with_makeinfo+set}" = set; then
2340 withval
=$with_makeinfo;
2347 # Check whether --with-gtk was given.
2348 if test "${with_gtk+set}" = set; then
2349 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2350 specify a toolkit." >&5
2351 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2352 specify a toolkit." >&2;}
2353 { (exit 1); exit 1; }; }
2358 # Check whether --with-gcc was given.
2359 if test "${with_gcc+set}" = set; then
2360 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2361 variable to specify a compiler." >&5
2362 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2363 variable to specify a compiler." >&2;}
2364 { (exit 1); exit 1; }; }
2369 # Check whether --with-pkg-config-prog was given.
2370 if test "${with_pkg_config_prog+set}" = set; then
2371 withval
=$with_pkg_config_prog;
2374 if test "X${with_pkg_config_prog}" != X
; then
2375 if test "${with_pkg_config_prog}" != yes; then
2376 PKG_CONFIG
="${with_pkg_config_prog}"
2381 # Check whether --with-gnustep-conf was given.
2382 if test "${with_gnustep_conf+set}" = set; then
2383 withval
=$with_gnustep_conf;
2386 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2387 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2388 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2389 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2391 # Check whether --enable-ns-self-contained was given.
2392 if test "${enable_ns_self_contained+set}" = set; then
2393 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2395 EN_NS_SELF_CONTAINED
=yes
2399 # Check whether --enable-asserts was given.
2400 if test "${enable_asserts+set}" = set; then
2401 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2407 # Check whether --enable-maintainer-mode was given.
2408 if test "${enable_maintainer_mode+set}" = set; then
2409 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2411 USE_MAINTAINER_MODE
=no
2414 if test $USE_MAINTAINER_MODE = yes; then
2421 # Check whether --enable-locallisppath was given.
2422 if test "${enable_locallisppath+set}" = set; then
2423 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2425 elif test "${enableval}" != "yes"; then
2426 locallisppath
=${enableval}
2431 # Check whether --enable-checking was given.
2432 if test "${enable_checking+set}" = set; then
2433 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2436 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2437 for check
in $ac_checking_flags
2440 # these set all the flags to specific states
2441 yes) ac_enable_checking
=1 ;;
2442 no
) ac_enable_checking
= ;
2443 ac_gc_check_stringbytes
= ;
2444 ac_gc_check_string_overrun
= ;
2445 ac_gc_check_string_free_list
= ;
2446 ac_xmalloc_overrun
= ;
2447 ac_gc_check_cons_list
= ;;
2448 all
) ac_enable_checking
=1 ;
2449 ac_gc_check_stringbytes
=1 ;
2450 ac_gc_check_string_overrun
=1 ;
2451 ac_gc_check_string_free_list
=1 ;
2452 ac_xmalloc_overrun
=1 ;
2453 ac_gc_check_cons_list
=1 ;;
2454 # these enable particular checks
2455 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2456 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2457 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2458 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2459 conslist
) ac_gc_check_cons_list
=1 ;;
2460 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2461 $as_echo "$as_me: error: unknown check category $check" >&2;}
2462 { (exit 1); exit 1; }; } ;;
2467 if test x
$ac_enable_checking != x
; then
2469 cat >>confdefs.h
<<\_ACEOF
2470 #define ENABLE_CHECKING 1
2474 if test x
$ac_gc_check_stringbytes != x
; then
2476 cat >>confdefs.h
<<\_ACEOF
2477 #define GC_CHECK_STRING_BYTES 1
2481 if test x
$ac_gc_check_stringoverrun != x
; then
2483 cat >>confdefs.h
<<\_ACEOF
2484 #define GC_CHECK_STRING_OVERRUN 1
2488 if test x
$ac_gc_check_string_free_list != x
; then
2490 cat >>confdefs.h
<<\_ACEOF
2491 #define GC_CHECK_STRING_FREE_LIST 1
2495 if test x
$ac_xmalloc_overrun != x
; then
2497 cat >>confdefs.h
<<\_ACEOF
2498 #define XMALLOC_OVERRUN_CHECK 1
2502 if test x
$ac_gc_check_cons_list != x
; then
2504 cat >>confdefs.h
<<\_ACEOF
2505 #define GC_CHECK_CONS_LIST 1
2510 # Check whether --enable-profiling was given.
2511 if test "${enable_profiling+set}" = set; then
2512 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2515 if test x
$ac_enable_profiling != x
; then
2516 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2517 PROFILING_LDFLAGS
="-pg"
2523 # Check whether --enable-autodepend was given.
2524 if test "${enable_autodepend+set}" = set; then
2525 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2527 ac_enable_autodepend
=yes
2531 #### Make srcdir absolute, if it isn't already. It's important to
2532 #### avoid running the path through pwd unnecessarily, since pwd can
2533 #### give you automounter prefixes, which can go away. We do all this
2534 #### so Emacs can find its files when run uninstalled.
2535 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2540 ## We may be able to use the $PWD environment variable to make this
2541 ## absolute. But sometimes PWD is inaccurate.
2542 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2543 ## but that tested only for a well-formed and valid PWD,
2544 ## it did not object when PWD was well-formed and valid but just wrong.
2545 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2549 srcdir
="`(cd ${srcdir}; pwd)`"
2552 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2555 #### Check if the source directory already has a configured system in it.
2556 if test `pwd` != `(cd ${srcdir} && pwd)` \
2557 && test -f "${srcdir}/src/config.h" ; then
2558 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2559 as a build directory right now; it has been configured in its own
2560 right. To configure in another directory as well, you MUST
2561 use GNU make. If you do not have GNU make, then you must
2562 now do \`make distclean' in ${srcdir},
2563 and then run $0 again." >&5
2564 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2565 as a build directory right now; it has been configured in its own
2566 right. To configure in another directory as well, you MUST
2567 use GNU make. If you do not have GNU make, then you must
2568 now do \`make distclean' in ${srcdir},
2569 and then run $0 again." >&2;}
2572 #### Given the configuration name, set machfile and opsysfile to the
2573 #### names of the m/*.h and s/*.h files we should use.
2575 ### Canonicalize the configuration name.
2578 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2579 if test -f "$ac_dir/install-sh"; then
2581 ac_install_sh
="$ac_aux_dir/install-sh -c"
2583 elif test -f "$ac_dir/install.sh"; then
2585 ac_install_sh
="$ac_aux_dir/install.sh -c"
2587 elif test -f "$ac_dir/shtool"; then
2589 ac_install_sh
="$ac_aux_dir/shtool install -c"
2593 if test -z "$ac_aux_dir"; then
2594 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2595 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2596 { (exit 1); exit 1; }; }
2599 # These three variables are undocumented and unsupported,
2600 # and are intended to be withdrawn in a future Autoconf release.
2601 # They can cause serious problems if a builder's source tree is in a directory
2602 # whose full name contains unusual characters.
2603 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2604 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2605 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2608 # Make sure we can run config.sub.
2609 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2610 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2611 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2612 { (exit 1); exit 1; }; }
2614 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2615 $as_echo_n "checking build system type... " >&6; }
2616 if test "${ac_cv_build+set}" = set; then
2617 $as_echo_n "(cached) " >&6
2619 ac_build_alias
=$build_alias
2620 test "x$ac_build_alias" = x
&&
2621 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2622 test "x$ac_build_alias" = x
&&
2623 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2624 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2625 { (exit 1); exit 1; }; }
2626 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2627 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2628 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2629 { (exit 1); exit 1; }; }
2632 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2633 $as_echo "$ac_cv_build" >&6; }
2634 case $ac_cv_build in
2636 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2637 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2638 { (exit 1); exit 1; }; };;
2641 ac_save_IFS
=$IFS; IFS
='-'
2647 # Remember, the first character of IFS is used to create $*,
2648 # except with old shells:
2651 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2654 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2655 $as_echo_n "checking host system type... " >&6; }
2656 if test "${ac_cv_host+set}" = set; then
2657 $as_echo_n "(cached) " >&6
2659 if test "x$host_alias" = x
; then
2660 ac_cv_host
=$ac_cv_build
2662 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2663 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2664 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2665 { (exit 1); exit 1; }; }
2669 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2670 $as_echo "$ac_cv_host" >&6; }
2673 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2674 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2675 { (exit 1); exit 1; }; };;
2678 ac_save_IFS
=$IFS; IFS
='-'
2684 # Remember, the first character of IFS is used to create $*,
2685 # except with old shells:
2688 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2692 configuration
=${host_alias-${build_alias-$host}}
2696 ### If you add support for a new configuration, add code to this
2697 ### switch statement to recognize your configuration name and select
2698 ### the appropriate operating system and machine description files.
2700 ### You would hope that you could choose an m/*.h file pretty much
2701 ### based on the machine portion of the configuration name, and an s-
2702 ### file based on the operating system portion. However, it turns out
2703 ### that each m/*.h file is pretty manufacturer-specific - for
2704 ### example mips.h is MIPS
2705 ### So we basically have to have a special case for each
2706 ### configuration name.
2708 ### As far as handling version numbers on operating systems is
2709 ### concerned, make sure things will fail in a fixable way. If
2710 ### /etc/MACHINES doesn't say anything about version numbers, be
2711 ### prepared to handle anything reasonably. If version numbers
2712 ### matter, be sure /etc/MACHINES says something about it.
2714 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2715 ### "System V Release 4"; he writes, "The old convention encouraged
2716 ### confusion between `system' and `release' levels'."
2718 machine
='' opsys
='' unported
=no
2719 case "${canonical}" in
2724 case "${canonical}" in
2725 alpha
*-*-freebsd*) machine
=alpha
;;
2726 arm
*-*-freebsd*) machine
=arm
;;
2727 ia64-
*-freebsd*) machine
=ia64
;;
2728 sparc-
*-freebsd*) machine
=sparc
;;
2729 sparc64-
*-freebsd*) machine
=sparc
;;
2730 powerpc-
*-freebsd*) machine
=macppc
;;
2731 i
[3456]86-*-freebsd*) machine
=intel386
;;
2732 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2736 ## FreeBSD kernel + glibc based userland
2739 case "${canonical}" in
2740 alpha
*-*-kfreebsd*) machine
=alpha
;;
2741 ia64-
*-kfreebsd*) machine
=ia64
;;
2742 sparc-
*-kfreebsd*) machine
=sparc
;;
2743 sparc64-
*-kfreebsd*) machine
=sparc
;;
2744 powerpc-
*-kfreebsd*) machine
=macppc
;;
2745 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2746 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2753 if test -f /usr
/lib
/crti.o
; then
2755 cat >>confdefs.h
<<\_ACEOF
2756 #define HAVE_CRTIN /**/
2761 case "${canonical}" in
2762 alpha
*-*-netbsd*) machine
=alpha
;;
2763 i
[3456]86-*-netbsd*) machine
=intel386
;;
2764 mips-
*-netbsd*) machine
=mips
;;
2765 mipsel-
*-netbsd*) machine
=mips
;;
2766 mipseb-
*-netbsd*) machine
=mips
;;
2767 powerpc-
*-netbsd*) machine
=macppc
;;
2768 sparc
*-*-netbsd*) machine
=sparc
;;
2769 vax-
*-netbsd*) machine
=vax
;;
2770 arm-
*-netbsd*) machine
=arm
;;
2771 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2772 hppa-
*-netbsd*) machine
=hp800
;;
2773 m68k-
*-netbsd*) machine
=m68k
;;
2780 case "${canonical}" in
2781 alpha
*-*-openbsd*) machine
=alpha
;;
2782 arm-
*-openbsd*) machine
=arm
;;
2783 i386-
*-openbsd*) machine
=intel386
;;
2784 powerpc-
*-openbsd*) machine
=macppc
;;
2785 sparc
*-*-openbsd*) machine
=sparc
;;
2786 vax-
*-openbsd*) machine
=vax
;;
2787 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2788 hppa-
*-openbsd*) machine
=hp800
;;
2792 alpha
*-*-linux-gnu* )
2793 machine
=alpha opsys
=gnu-linux
2797 machine
=arm opsys
=gnu-linux
2800 ## Apple Darwin / Mac OS X
2802 case "${canonical}" in
2803 i
[3456]86-* ) machine
=intel386
;;
2804 powerpc-
* ) machine
=macppc
;;
2805 x86_64-
* ) machine
=amdx86-64
;;
2809 # Define CPP as follows to make autoconf work correctly.
2810 CPP
="${CC-cc} -E -no-cpp-precomp"
2811 # Use fink packages if available.
2812 if test -d /sw
/include
&& test -d /sw
/lib
; then
2813 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2814 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2815 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2819 ## HP 9000 series 700 and 800, running HP/UX
2820 hppa
*-hp-hpux10.2
* )
2821 machine
=hp800 opsys
=hpux10-20
2823 hppa
*-hp-hpux1[1-9]* )
2824 machine
=hp800 opsys
=hpux11
2825 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2828 hppa
*-*-linux-gnu* )
2829 machine
=hp800 opsys
=gnu-linux
2834 machine
=ibms390 opsys
=gnu-linux
2836 s390x-
*-linux-gnu* )
2837 machine
=ibms390x opsys
=gnu-linux
2839 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2840 machine
=ibmrs6000 opsys
=aix4-2
2842 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2843 machine
=ibmrs6000 opsys
=aix4-2
2845 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2846 machine
=ibmrs6000 opsys
=aix4-2
2848 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2849 machine
=ibmrs6000 opsys
=aix4-2
2852 ## Macintosh PowerPC
2853 powerpc
*-*-linux-gnu* )
2854 machine
=macppc opsys
=gnu-linux
2857 ## Silicon Graphics machines
2860 machine
=iris4d opsys
=irix6-5
2861 # Without defining _LANGUAGE_C, things get masked out in the headers
2862 # so that, for instance, grepping for `free' in stdlib.h fails and
2863 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2864 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2865 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2869 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2870 machine
=sparc opsys
=gnu-linux
2874 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2875 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2876 case "${canonical}" in
2877 i
[3456]86-*-* ) machine
=intel386
;;
2878 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2879 sparc
* ) machine
=sparc
;;
2882 case "${canonical}" in
2883 *-sunos5.6
* |
*-solaris2.6
* )
2885 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2888 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2890 emacs_check_sunpro_c
=yes
2891 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2893 *-sunos5* |
*-solaris* )
2895 emacs_check_sunpro_c
=yes
2896 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2899 ## Watch out for a compiler that we know will not work.
2900 case "${canonical}" in
2901 *-solaris* |
*-sunos5* )
2902 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2903 ## /usr/ucb/cc doesn't work;
2904 ## we should find some other compiler that does work.
2914 machine
=ia64 opsys
=gnu-linux
2917 ## Intel 386 machines where we don't care about the manufacturer
2920 case "${canonical}" in
2921 *-cygwin ) opsys
=cygwin
;;
2922 *-darwin* ) opsys
=darwin
2923 CPP
="${CC-cc} -E -no-cpp-precomp"
2925 *-linux-gnu* ) opsys
=gnu-linux
;;
2926 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2927 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2928 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2929 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2933 ## m68k Linux-based GNU system
2935 machine
=m68k opsys
=gnu-linux
2938 ## Mips Linux-based GNU system
2939 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2940 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2941 machine
=mips opsys
=gnu-linux
2944 ## AMD x86-64 Linux-based GNU system
2945 x86_64-
*-linux-gnu* )
2946 machine
=amdx86-64 opsys
=gnu-linux
2949 ## Tensilica Xtensa Linux-based GNU system
2950 xtensa
*-*-linux-gnu* )
2951 machine
=xtensa opsys
=gnu-linux
2954 ## SuperH Linux-based GNU system
2955 sh
[34]*-*-linux-gnu* )
2956 machine
=sh3 opsys
=gnu-linux
2964 ### If the code above didn't choose an operating system, just choose
2965 ### an operating system based on the configuration name. You really
2966 ### only want to use this when you have no idea what the right
2967 ### operating system is; if you know what operating systems a machine
2968 ### runs, it's cleaner to make it explicit in the case statement
2970 if test x
"${opsys}" = x
; then
2971 case "${canonical}" in
2972 *-gnu* ) opsys
=gnu
;;
2981 if test $unported = yes; then
2982 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2983 Check \`etc/MACHINES' for recognized configuration names." >&5
2984 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2985 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2986 { (exit 1); exit 1; }; }
2989 machfile
="m/${machine}.h"
2990 opsysfile
="s/${opsys}.h"
2993 #### Choose a compiler.
2994 test -n "$CC" && cc_specified
=yes
2996 # Save the value of CFLAGS that the user specified.
2997 SPECIFIED_CFLAGS
="$CFLAGS"
3000 ac_cpp
='$CPP $CPPFLAGS'
3001 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3004 if test -n "$ac_tool_prefix"; then
3005 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3006 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3007 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if test "${ac_cv_prog_CC+set}" = set; then
3010 $as_echo_n "(cached) " >&6
3012 if test -n "$CC"; then
3013 ac_cv_prog_CC
="$CC" # Let the user override the test.
3015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir
=.
3020 for ac_exec_ext
in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3023 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 if test -n "$CC"; then
3034 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3035 $as_echo "$CC" >&6; }
3037 { $as_echo "$as_me:$LINENO: result: no" >&5
3038 $as_echo "no" >&6; }
3043 if test -z "$ac_cv_prog_CC"; then
3045 # Extract the first word of "gcc", so it can be a program name with args.
3046 set dummy gcc
; ac_word
=$2
3047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3050 $as_echo_n "(cached) " >&6
3052 if test -n "$ac_ct_CC"; then
3053 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3059 test -z "$as_dir" && as_dir
=.
3060 for ac_exec_ext
in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_ac_ct_CC
="gcc"
3063 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3073 if test -n "$ac_ct_CC"; then
3074 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3075 $as_echo "$ac_ct_CC" >&6; }
3077 { $as_echo "$as_me:$LINENO: result: no" >&5
3078 $as_echo "no" >&6; }
3081 if test "x$ac_ct_CC" = x
; then
3084 case $cross_compiling:$ac_tool_warned in
3086 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3087 whose name does not start with the host triplet. If you think this
3088 configuration is useful to you, please write to autoconf@gnu.org." >&5
3089 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3090 whose name does not start with the host triplet. If you think this
3091 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3092 ac_tool_warned
=yes ;;
3100 if test -z "$CC"; then
3101 if test -n "$ac_tool_prefix"; then
3102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3103 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3104 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if test "${ac_cv_prog_CC+set}" = set; then
3107 $as_echo_n "(cached) " >&6
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC
="$CC" # Let the user override the test.
3112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3116 test -z "$as_dir" && as_dir
=.
3117 for ac_exec_ext
in '' $ac_executable_extensions; do
3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 if test -n "$CC"; then
3131 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3134 { $as_echo "$as_me:$LINENO: result: no" >&5
3135 $as_echo "no" >&6; }
3141 if test -z "$CC"; then
3142 # Extract the first word of "cc", so it can be a program name with args.
3143 set dummy cc
; ac_word
=$2
3144 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if test "${ac_cv_prog_CC+set}" = set; then
3147 $as_echo_n "(cached) " >&6
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC
="$CC" # Let the user override the test.
3153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3157 test -z "$as_dir" && as_dir
=.
3158 for ac_exec_ext
in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3161 ac_prog_rejected
=yes
3165 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 if test $ac_prog_rejected = yes; then
3173 # We found a bogon in the path, so make sure we never use it.
3174 set dummy
$ac_cv_prog_CC
3176 if test $# != 0; then
3177 # We chose a different compiler from the bogus one.
3178 # However, it has the same basename, so the bogon will be chosen
3179 # first if we set CC to just the basename; use the full file name.
3181 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3191 { $as_echo "$as_me:$LINENO: result: no" >&5
3192 $as_echo "no" >&6; }
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3199 for ac_prog
in cl.exe
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3203 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_CC+set}" = set; then
3206 $as_echo_n "(cached) " >&6
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC
="$CC" # Let the user override the test.
3211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir
=.
3216 for ac_exec_ext
in '' $ac_executable_extensions; do
3217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3219 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 if test -n "$CC"; then
3230 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3233 { $as_echo "$as_me:$LINENO: result: no" >&5
3234 $as_echo "no" >&6; }
3238 test -n "$CC" && break
3241 if test -z "$CC"; then
3243 for ac_prog
in cl.exe
3245 # Extract the first word of "$ac_prog", so it can be a program name with args.
3246 set dummy
$ac_prog; ac_word
=$2
3247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3250 $as_echo_n "(cached) " >&6
3252 if test -n "$ac_ct_CC"; then
3253 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3259 test -z "$as_dir" && as_dir
=.
3260 for ac_exec_ext
in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_ac_ct_CC
="$ac_prog"
3263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3273 if test -n "$ac_ct_CC"; then
3274 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3275 $as_echo "$ac_ct_CC" >&6; }
3277 { $as_echo "$as_me:$LINENO: result: no" >&5
3278 $as_echo "no" >&6; }
3282 test -n "$ac_ct_CC" && break
3285 if test "x$ac_ct_CC" = x
; then
3288 case $cross_compiling:$ac_tool_warned in
3290 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3291 whose name does not start with the host triplet. If you think this
3292 configuration is useful to you, please write to autoconf@gnu.org." >&5
3293 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3294 whose name does not start with the host triplet. If you think this
3295 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3296 ac_tool_warned
=yes ;;
3305 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3306 See \`config.log' for more details." >&5
3307 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3308 See \`config.log' for more details." >&2;}
3309 { (exit 1); exit 1; }; }
3311 # Provide some information about the compiler.
3312 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3315 { (ac_try
="$ac_compiler --version >&5"
3317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3321 $as_echo "$ac_try_echo") >&5
3322 (eval "$ac_compiler --version >&5") 2>&5
3324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }
3326 { (ac_try="$ac_compiler -v >&5"
3328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3329 *) ac_try_echo
=$ac_try;;
3331 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3332 $as_echo "$ac_try_echo") >&5
3333 (eval "$ac_compiler -v >&5") 2>&5
3335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }
3337 { (ac_try
="$ac_compiler -V >&5"
3339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3343 $as_echo "$ac_try_echo") >&5
3344 (eval "$ac_compiler -V >&5") 2>&5
3346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }
3349 cat >conftest.$ac_ext <<_ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3364 ac_clean_files_save=$ac_clean_files
3365 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3366 # Try to create an executable without -o first, disregard a.out.
3367 # It will help us diagnose broken compilers, and finding out an intuition
3369 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3370 $as_echo_n "checking for C compiler default output file name... " >&6; }
3371 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3373 # The possible output files:
3374 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3377 for ac_file in $ac_files
3380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3381 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3386 if { (ac_try="$ac_link_default"
3388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3389 *) ac_try_echo
=$ac_try;;
3391 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3392 $as_echo "$ac_try_echo") >&5
3393 (eval "$ac_link_default") 2>&5
3395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; then
3397 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3398 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3399 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3400 # so that the user can short-circuit this test for compilers unknown to
3402 for ac_file
in $ac_files ''
3404 test -f "$ac_file" ||
continue
3406 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3409 # We found the default executable, but exeext='' is most
3413 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3415 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3417 # We set ac_cv_exeext here because the later test for it is not
3418 # safe: cross compilers may not add the suffix if given an `-o'
3419 # argument, so we may need to know it at that point already.
3420 # Even if this section looks crufty: it has the advantage of
3427 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3433 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3434 $as_echo "$ac_file" >&6; }
3435 if test -z "$ac_file"; then
3436 $as_echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.
$ac_ext >&5
3439 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3440 See \`config.log' for more details." >&5
3441 $as_echo "$as_me: error: C compiler cannot create executables
3442 See \`config.log' for more details." >&2;}
3443 { (exit 77); exit 77; }; }
3446 ac_exeext
=$ac_cv_exeext
3448 # Check that the compiler produces executables we can run. If not, either
3449 # the compiler is broken, or we cross compile.
3450 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3451 $as_echo_n "checking whether the C compiler works... " >&6; }
3452 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3453 # If not cross compiling, check that we can run a simple program.
3454 if test "$cross_compiling" != yes; then
3455 if { ac_try
='./$ac_file'
3456 { (case "(($ac_try" in
3457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3461 $as_echo "$ac_try_echo") >&5
3462 (eval "$ac_try") 2>&5
3464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; }; then
3468 if test "$cross_compiling" = maybe; then
3471 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3472 If you meant to cross compile, use \`--host'.
3473 See \`config.log' for more details.
" >&5
3474 $as_echo "$as_me: error
: cannot run C compiled programs.
3475 If you meant to cross compile
, use \
`--host'.
3476 See \`config.log
' for more details." >&2;}
3477 { (exit 1); exit 1; }; }
3481 { $as_echo "$as_me:$LINENO: result: yes" >&5
3482 $as_echo "yes" >&6; }
3484 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3485 ac_clean_files=$ac_clean_files_save
3486 # Check that the compiler produces executables we can run. If not, either
3487 # the compiler is broken, or we cross compile.
3488 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3489 $as_echo_n "checking whether we are cross compiling... " >&6; }
3490 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3491 $as_echo "$cross_compiling" >&6; }
3493 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3494 $as_echo_n "checking for suffix of executables... " >&6; }
3495 if { (ac_try="$ac_link"
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3501 $as_echo "$ac_try_echo") >&5
3502 (eval "$ac_link") 2>&5
3504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; then
3506 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3507 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3508 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3510 for ac_file
in conftest.exe conftest conftest.
*; do
3511 test -f "$ac_file" ||
continue
3513 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3514 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3520 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3521 See \`config.log' for more details." >&5
3522 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3523 See \`config.log' for more details." >&2;}
3524 { (exit 1); exit 1; }; }
3527 rm -f conftest
$ac_cv_exeext
3528 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3529 $as_echo "$ac_cv_exeext" >&6; }
3531 rm -f conftest.
$ac_ext
3532 EXEEXT
=$ac_cv_exeext
3534 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3535 $as_echo_n "checking for suffix of object files... " >&6; }
3536 if test "${ac_cv_objext+set}" = set; then
3537 $as_echo_n "(cached) " >&6
3539 cat >conftest.
$ac_ext <<_ACEOF
3542 cat confdefs.h
>>conftest.
$ac_ext
3543 cat >>conftest.
$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3554 rm -f conftest.o conftest.obj
3555 if { (ac_try
="$ac_compile"
3557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3561 $as_echo "$ac_try_echo") >&5
3562 (eval "$ac_compile") 2>&5
3564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; then
3566 for ac_file in conftest.o conftest.obj conftest.*; do
3567 test -f "$ac_file" || continue;
3569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3575 $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3578 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3579 See \`config.log
' for more details." >&5
3580 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3581 See \`config.log' for more details.
" >&2;}
3582 { (exit 1); exit 1; }; }
3585 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3587 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3588 $as_echo "$ac_cv_objext" >&6; }
3589 OBJEXT=$ac_cv_objext
3591 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3592 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3593 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3594 $as_echo_n "(cached
) " >&6
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* 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 ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_compile") 2>conftest.er1
3624 grep -v '^ *+' conftest.er1 >conftest.err
3626 cat conftest.err >&5
3627 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3628 (exit $ac_status); } && {
3629 test -z "$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3631 } && test -s conftest.$ac_objext; then
3634 $as_echo "$as_me: failed program was
:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3644 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3645 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3646 if test $ac_compiler_gnu = yes; then
3651 ac_test_CFLAGS=${CFLAGS+set}
3652 ac_save_CFLAGS=$CFLAGS
3653 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3654 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3655 if test "${ac_cv_prog_cc_g+set}" = set; then
3656 $as_echo_n "(cached
) " >&6
3658 ac_save_c_werror_flag=$ac_c_werror_flag
3659 ac_c_werror_flag=yes
3662 cat >conftest.$ac_ext <<_ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3684 $as_echo "$ac_try_echo") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3687 grep -v '^ *+' conftest.er1 >conftest.err
3689 cat conftest.err >&5
3690 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3691 (exit $ac_status); } && {
3692 test -z "$ac_c_werror_flag" ||
3693 test ! -s conftest.err
3694 } && test -s conftest.$ac_objext; then
3697 $as_echo "$as_me: failed program was
:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3701 cat >conftest.$ac_ext <<_ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3723 $as_echo "$ac_try_echo") >&5
3724 (eval "$ac_compile") 2>conftest.er1
3726 grep -v '^ *+' conftest.er1 >conftest.err
3728 cat conftest.err >&5
3729 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3730 (exit $ac_status); } && {
3731 test -z "$ac_c_werror_flag" ||
3732 test ! -s conftest.err
3733 } && test -s conftest.$ac_objext; then
3736 $as_echo "$as_me: failed program was
:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 ac_c_werror_flag=$ac_save_c_werror_flag
3741 cat >conftest.$ac_ext <<_ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3756 rm -f conftest.$ac_objext
3757 if { (ac_try="$ac_compile"
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3762 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3763 $as_echo "$ac_try_echo") >&5
3764 (eval "$ac_compile") 2>conftest.er1
3766 grep -v '^ *+' conftest.er1 >conftest.err
3768 cat conftest.err >&5
3769 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3770 (exit $ac_status); } && {
3771 test -z "$ac_c_werror_flag" ||
3772 test ! -s conftest.err
3773 } && test -s conftest.$ac_objext; then
3776 $as_echo "$as_me: failed program was
:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 ac_c_werror_flag=$ac_save_c_werror_flag
3791 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3792 $as_echo "$ac_cv_prog_cc_g" >&6; }
3793 if test "$ac_test_CFLAGS" = set; then
3794 CFLAGS=$ac_save_CFLAGS
3795 elif test $ac_cv_prog_cc_g = yes; then
3796 if test "$GCC" = yes; then
3802 if test "$GCC" = yes; then
3808 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3809 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3810 if test "${ac_cv_prog_cc_c89+set}" = set; then
3811 $as_echo_n "(cached
) " >&6
3813 ac_cv_prog_cc_c89=no
3815 cat >conftest.$ac_ext <<_ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3823 #include <sys/types.h>
3824 #include <sys/stat.h>
3825 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3826 struct buf { int x; };
3827 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3828 static char *e (p, i)
3834 static char *f (char * (*g) (char **, int), char **p, ...)
3839 s = g (p, va_arg (v,int));
3844 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3845 function prototypes and stuff, but not '\xHH' hex character constants.
3846 These don't provoke an error unfortunately, instead are silently treated
3847 as 'x'. The following induces an error, until -std is added to get
3848 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3849 array size at least. It's necessary to write '\x00'==0 to get something
3850 that's true only with -std. */
3851 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3853 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3854 inside strings and character constants. */
3856 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3858 int test (int i, double x);
3859 struct s1 {int (*f) (int a);};
3860 struct s2 {int (*f) (double a);};
3861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3867 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3872 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3873 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3875 CC="$ac_save_CC $ac_arg"
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3883 $as_echo "$ac_try_echo") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3886 grep -v '^ *+' conftest.er1 >conftest.err
3888 cat conftest.err >&5
3889 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3890 (exit $ac_status); } && {
3891 test -z "$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 } && test -s conftest.$ac_objext; then
3894 ac_cv_prog_cc_c89=$ac_arg
3896 $as_echo "$as_me: failed program was
:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3902 rm -f core conftest.err conftest.$ac_objext
3903 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3905 rm -f conftest.$ac_ext
3910 case "x
$ac_cv_prog_cc_c89" in
3912 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3913 $as_echo "none needed
" >&6; } ;;
3915 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3916 $as_echo "unsupported
" >&6; } ;;
3918 CC="$CC $ac_cv_prog_cc_c89"
3919 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3920 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3925 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931 # On Suns, sometimes $CPP names a directory.
3932 if test -n "$CPP" && test -d "$CPP"; then
3936 ## If not using gcc, and on Solaris, and no CPP specified, see if
3937 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3938 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3939 test x"$CPP" = x; then
3940 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3941 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3943 if test "${emacs_cv_sunpro_c+set}" = set; then
3944 $as_echo_n "(cached
) " >&6
3946 cat >conftest.$ac_ext <<_ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3964 rm -f conftest.$ac_objext conftest$ac_exeext
3965 if { (ac_try="$ac_link"
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3971 $as_echo "$ac_try_echo") >&5
3972 (eval "$ac_link") 2>conftest.er1
3974 grep -v '^ *+' conftest.er1 >conftest.err
3976 cat conftest.err >&5
3977 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3978 (exit $ac_status); } && {
3979 test -z "$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 } && test -s conftest$ac_exeext && {
3982 test "$cross_compiling" = yes ||
3983 $as_test_x conftest$ac_exeext
3985 emacs_cv_sunpro_c=yes
3987 $as_echo "$as_me: failed program was
:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3990 emacs_cv_sunpro_c=no
3993 rm -rf conftest.dSYM
3994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3995 conftest$ac_exeext conftest.$ac_ext
3998 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3999 $as_echo "$emacs_cv_sunpro_c" >&6; }
4001 if test x"$emacs_cv_sunpro_c" = xyes; then
4002 NON_GNU_CPP="$CC -E -Xs"
4006 #### Some systems specify a CPP to use unless we are using GCC.
4007 #### Now that we know whether we are using GCC, we can decide whether
4008 #### to use that one.
4009 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4014 #### Some systems specify a CC to use unless we are using GCC.
4015 #### Now that we know whether we are using GCC, we can decide whether
4016 #### to use that one.
4017 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4018 test x$cc_specified != xyes
4023 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4025 CC="$CC $GCC_TEST_OPTIONS"
4028 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4030 CC="$CC $NON_GCC_TEST_OPTIONS"
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4039 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4040 # On Suns, sometimes $CPP names a directory.
4041 if test -n "$CPP" && test -d "$CPP"; then
4044 if test -z "$CPP"; then
4045 if test "${ac_cv_prog_CPP+set}" = set; then
4046 $as_echo_n "(cached
) " >&6
4048 # Double quotes because CPP needs to be expanded
4049 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4052 for ac_c_preproc_warn_flag in '' yes
4054 # Use a header file that comes with gcc, so configuring glibc
4055 # with a fresh cross-compiler works.
4056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser,
4059 # not just through cpp. "Syntax error
" is here to catch this case.
4060 cat >conftest.$ac_ext <<_ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4067 # include <limits.h>
4069 # include <assert.h>
4073 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4079 $as_echo "$ac_try_echo") >&5
4080 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4086 (exit $ac_status); } >/dev/null && {
4087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4092 $as_echo "$as_me: failed program was
:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 # Broken: fails on valid input.
4099 rm -f conftest.err conftest.$ac_ext
4101 # OK, works on sane cases. Now check whether nonexistent headers
4102 # can be detected and how.
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4111 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4116 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4117 $as_echo "$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 $as_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 $as_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
4156 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4157 $as_echo "$CPP" >&6; }
4159 for ac_c_preproc_warn_flag in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error
" is here to catch this case.
4167 cat >conftest.$ac_ext <<_ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4174 # include <limits.h>
4176 # include <assert.h>
4180 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4189 grep -v '^ *+' conftest.er1 >conftest.err
4191 cat conftest.err >&5
4192 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4193 (exit $ac_status); } >/dev/null && {
4194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4199 $as_echo "$as_me: failed program was
:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 # Broken: fails on valid input.
4206 rm -f conftest.err conftest.$ac_ext
4208 # OK, works on sane cases. Now check whether nonexistent headers
4209 # can be detected and how.
4210 cat >conftest.$ac_ext <<_ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4218 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4223 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4224 $as_echo "$ac_try_echo") >&5
4225 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4227 grep -v '^ *+' conftest.er1 >conftest.err
4229 cat conftest.err >&5
4230 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4231 (exit $ac_status); } >/dev/null && {
4232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4235 # Broken: success on invalid input.
4238 $as_echo "$as_me: failed program was
:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 # Passes both tests.
4246 rm -f conftest.err conftest.$ac_ext
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.err conftest.$ac_ext
4251 if $ac_preproc_ok; then
4254 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4255 See \
`config.log' for more details." >&5
4256 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4257 See \`config.log
' for more details." >&2;}
4258 { (exit 1); exit 1; }; }
4262 ac_cpp='$CPP $CPPFLAGS'
4263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4264 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4269 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4270 if test "${ac_cv_path_GREP+set}" = set; then
4271 $as_echo_n "(cached) " >&6
4273 if test -z "$GREP"; then
4274 ac_path_GREP_found=false
4275 # Loop through the user's path and
test for each of PROGNAME-LIST
4276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4277 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4280 test -z "$as_dir" && as_dir
=.
4281 for ac_prog
in grep ggrep
; do
4282 for ac_exec_ext
in '' $ac_executable_extensions; do
4283 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4284 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4285 # Check for GNU ac_path_GREP and select it if it is found.
4286 # Check for GNU $ac_path_GREP
4287 case `"$ac_path_GREP" --version 2>&1` in
4289 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4292 $as_echo_n 0123456789 >"conftest.in"
4295 cat "conftest.in" "conftest.in" >"conftest.tmp"
4296 mv "conftest.tmp" "conftest.in"
4297 cp "conftest.in" "conftest.nl"
4298 $as_echo 'GREP' >> "conftest.nl"
4299 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4300 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4301 ac_count
=`expr $ac_count + 1`
4302 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4303 # Best one so far, save it but keep looking for a better one
4304 ac_cv_path_GREP
="$ac_path_GREP"
4305 ac_path_GREP_max
=$ac_count
4307 # 10*(2^10) chars as input seems more than enough
4308 test $ac_count -gt 10 && break
4310 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4313 $ac_path_GREP_found && break 3
4318 if test -z "$ac_cv_path_GREP"; then
4319 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4320 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4321 { (exit 1); exit 1; }; }
4324 ac_cv_path_GREP
=$GREP
4328 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4329 $as_echo "$ac_cv_path_GREP" >&6; }
4330 GREP
="$ac_cv_path_GREP"
4333 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4334 $as_echo_n "checking for egrep... " >&6; }
4335 if test "${ac_cv_path_EGREP+set}" = set; then
4336 $as_echo_n "(cached) " >&6
4338 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4339 then ac_cv_path_EGREP
="$GREP -E"
4341 if test -z "$EGREP"; then
4342 ac_path_EGREP_found
=false
4343 # Loop through the user's path and test for each of PROGNAME-LIST
4344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4345 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4348 test -z "$as_dir" && as_dir
=.
4349 for ac_prog
in egrep; do
4350 for ac_exec_ext
in '' $ac_executable_extensions; do
4351 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4352 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4353 # Check for GNU ac_path_EGREP and select it if it is found.
4354 # Check for GNU $ac_path_EGREP
4355 case `"$ac_path_EGREP" --version 2>&1` in
4357 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4360 $as_echo_n 0123456789 >"conftest.in"
4363 cat "conftest.in" "conftest.in" >"conftest.tmp"
4364 mv "conftest.tmp" "conftest.in"
4365 cp "conftest.in" "conftest.nl"
4366 $as_echo 'EGREP' >> "conftest.nl"
4367 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4368 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4369 ac_count
=`expr $ac_count + 1`
4370 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4371 # Best one so far, save it but keep looking for a better one
4372 ac_cv_path_EGREP
="$ac_path_EGREP"
4373 ac_path_EGREP_max
=$ac_count
4375 # 10*(2^10) chars as input seems more than enough
4376 test $ac_count -gt 10 && break
4378 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4381 $ac_path_EGREP_found && break 3
4386 if test -z "$ac_cv_path_EGREP"; then
4387 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4388 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4389 { (exit 1); exit 1; }; }
4392 ac_cv_path_EGREP
=$EGREP
4397 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4398 $as_echo "$ac_cv_path_EGREP" >&6; }
4399 EGREP
="$ac_cv_path_EGREP"
4402 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4403 $as_echo_n "checking for ANSI C header files... " >&6; }
4404 if test "${ac_cv_header_stdc+set}" = set; then
4405 $as_echo_n "(cached) " >&6
4407 cat >conftest.
$ac_ext <<_ACEOF
4410 cat confdefs.h
>>conftest.
$ac_ext
4411 cat >>conftest.
$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4426 rm -f conftest.
$ac_objext
4427 if { (ac_try
="$ac_compile"
4429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4433 $as_echo "$ac_try_echo") >&5
4434 (eval "$ac_compile") 2>conftest.er1
4436 grep -v '^ *+' conftest.er1 >conftest.err
4438 cat conftest.err >&5
4439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } && {
4441 test -z "$ac_c_werror_flag" ||
4442 test ! -s conftest.err
4443 } && test -s conftest.$ac_objext; then
4444 ac_cv_header_stdc=yes
4446 $as_echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4449 ac_cv_header_stdc=no
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4454 if test $ac_cv_header_stdc = yes; then
4455 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4456 cat >conftest.$ac_ext <<_ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4466 $EGREP "memchr" >/dev/null 2>&1; then
4469 ac_cv_header_stdc=no
4475 if test $ac_cv_header_stdc = yes; then
4476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4477 cat >conftest.$ac_ext <<_ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4487 $EGREP "free" >/dev/null 2>&1; then
4490 ac_cv_header_stdc=no
4496 if test $ac_cv_header_stdc = yes; then
4497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4498 if test "$cross_compiling" = yes; then
4501 cat >conftest.$ac_ext <<_ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */
4509 #if ((' ' & 0x0FF) == 0x020)
4510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4513 # define ISLOWER(c) \
4514 (('a' <= (c) && (c) <= 'i') \
4515 || ('j' <= (c) && (c) <= 'r') \
4516 || ('s' <= (c) && (c) <= 'z'))
4517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4525 for (i = 0; i < 256; i++)
4526 if (XOR (islower (i), ISLOWER (i))
4527 || toupper (i) != TOUPPER (i))
4532 rm -f conftest$ac_exeext
4533 if { (ac_try="$ac_link"
4535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4536 *) ac_try_echo
=$ac_try;;
4538 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4539 $as_echo "$ac_try_echo") >&5
4540 (eval "$ac_link") 2>&5
4542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4544 { (case "(($ac_try" in
4545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4549 $as_echo "$ac_try_echo") >&5
4550 (eval "$ac_try") 2>&5
4552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4556 $as_echo "$as_me: program exited with status $ac_status" >&5
4557 $as_echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4561 ac_cv_header_stdc=no
4563 rm -rf conftest.dSYM
4564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4571 $as_echo "$ac_cv_header_stdc" >&6; }
4572 if test $ac_cv_header_stdc = yes; then
4574 cat >>confdefs.h <<\_ACEOF
4575 #define STDC_HEADERS 1
4580 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4590 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4591 inttypes.h stdint.h unistd.h
4593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4594 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4595 $as_echo_n "checking for $ac_header... " >&6; }
4596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4597 $as_echo_n "(cached) " >&6
4599 cat >conftest.$ac_ext <<_ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605 $ac_includes_default
4607 #include <$ac_header>
4609 rm -f conftest.$ac_objext
4610 if { (ac_try="$ac_compile"
4612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4613 *) ac_try_echo
=$ac_try;;
4615 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4616 $as_echo "$ac_try_echo") >&5
4617 (eval "$ac_compile") 2>conftest.er1
4619 grep -v '^ *+' conftest.er1
>conftest.err
4621 cat conftest.err
>&5
4622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } && {
4624 test -z "$ac_c_werror_flag" ||
4625 test ! -s conftest.err
4626 } && test -s conftest.
$ac_objext; then
4627 eval "$as_ac_Header=yes"
4629 $as_echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.
$ac_ext >&5
4632 eval "$as_ac_Header=no"
4635 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4637 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4638 $as_echo "$as_val"'`
4639 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4640 $as_echo "$ac_res" >&6; }
4641 if test `eval 'as_val=${'$as_ac_Header'}
4642 $as_echo "$as_val"'` = yes; then
4643 cat >>confdefs.h
<<_ACEOF
4644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4653 if test "${ac_cv_header_minix_config_h+set}" = set; then
4654 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4655 $as_echo_n "checking for minix/config.h... " >&6; }
4656 if test "${ac_cv_header_minix_config_h+set}" = set; then
4657 $as_echo_n "(cached) " >&6
4659 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4660 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4662 # Is the header compilable?
4663 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4664 $as_echo_n "checking minix/config.h usability... " >&6; }
4665 cat >conftest.
$ac_ext <<_ACEOF
4668 cat confdefs.h
>>conftest.
$ac_ext
4669 cat >>conftest.
$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4671 $ac_includes_default
4672 #include <minix/config.h>
4674 rm -f conftest.
$ac_objext
4675 if { (ac_try
="$ac_compile"
4677 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4681 $as_echo "$ac_try_echo") >&5
4682 (eval "$ac_compile") 2>conftest.er1
4684 grep -v '^ *+' conftest.er1 >conftest.err
4686 cat conftest.err >&5
4687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && {
4689 test -z "$ac_c_werror_flag" ||
4690 test ! -s conftest.err
4691 } && test -s conftest.$ac_objext; then
4692 ac_header_compiler=yes
4694 $as_echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4697 ac_header_compiler=no
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4702 $as_echo "$ac_header_compiler" >&6; }
4704 # Is the header present?
4705 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4706 $as_echo_n "checking minix/config.h presence... " >&6; }
4707 cat >conftest.$ac_ext <<_ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 #include <minix/config.h>
4715 if { (ac_try="$ac_cpp conftest.$ac_ext"
4717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4718 *) ac_try_echo
=$ac_try;;
4720 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4721 $as_echo "$ac_try_echo") >&5
4722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4724 grep -v '^ *+' conftest.er1
>conftest.err
4726 cat conftest.err
>&5
4727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } >/dev
/null
&& {
4729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4730 test ! -s conftest.err
4732 ac_header_preproc
=yes
4734 $as_echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.
$ac_ext >&5
4737 ac_header_preproc
=no
4740 rm -f conftest.err conftest.
$ac_ext
4741 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4742 $as_echo "$ac_header_preproc" >&6; }
4744 # So? What about this header?
4745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4747 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4748 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4749 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4750 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4751 ac_header_preproc
=yes
4754 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4755 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4756 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4757 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4758 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4759 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4760 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4761 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4762 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4763 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4764 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4765 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4769 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4770 $as_echo_n "checking for minix/config.h... " >&6; }
4771 if test "${ac_cv_header_minix_config_h+set}" = set; then
4772 $as_echo_n "(cached) " >&6
4774 ac_cv_header_minix_config_h
=$ac_header_preproc
4776 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4777 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4780 if test $ac_cv_header_minix_config_h = yes; then
4787 if test "$MINIX" = yes; then
4789 cat >>confdefs.h
<<\_ACEOF
4790 #define _POSIX_SOURCE 1
4794 cat >>confdefs.h
<<\_ACEOF
4795 #define _POSIX_1_SOURCE 2
4799 cat >>confdefs.h
<<\_ACEOF
4807 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4808 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4809 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4810 $as_echo_n "(cached) " >&6
4812 cat >conftest.
$ac_ext <<_ACEOF
4815 cat confdefs.h
>>conftest.
$ac_ext
4816 cat >>conftest.
$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4819 # define __EXTENSIONS__ 1
4820 $ac_includes_default
4829 rm -f conftest.
$ac_objext
4830 if { (ac_try
="$ac_compile"
4832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4836 $as_echo "$ac_try_echo") >&5
4837 (eval "$ac_compile") 2>conftest.er1
4839 grep -v '^ *+' conftest.er1 >conftest.err
4841 cat conftest.err >&5
4842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && {
4844 test -z "$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest.$ac_objext; then
4847 ac_cv_safe_to_define___extensions__=yes
4849 $as_echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 ac_cv_safe_to_define___extensions__=no
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4858 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4859 test $ac_cv_safe_to_define___extensions__ = yes &&
4860 cat >>confdefs.h <<\_ACEOF
4861 #define __EXTENSIONS__ 1
4864 cat >>confdefs.h <<\_ACEOF
4865 #define _ALL_SOURCE 1
4868 cat >>confdefs.h <<\_ACEOF
4869 #define _GNU_SOURCE 1
4872 cat >>confdefs.h <<\_ACEOF
4873 #define _POSIX_PTHREAD_SEMANTICS 1
4876 cat >>confdefs.h <<\_ACEOF
4877 #define _TANDEM_SOURCE 1
4882 ### Use -Wno-pointer-sign if the compiler supports it
4883 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4884 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4885 SAVE_CFLAGS="$CFLAGS"
4886 CFLAGS="$CFLAGS -Wno-pointer-sign"
4887 cat >conftest.$ac_ext <<_ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */
4902 rm -f conftest.$ac_objext
4903 if { (ac_try="$ac_compile"
4905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4906 *) ac_try_echo
=$ac_try;;
4908 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4909 $as_echo "$ac_try_echo") >&5
4910 (eval "$ac_compile") 2>conftest.er1
4912 grep -v '^ *+' conftest.er1
>conftest.err
4914 cat conftest.err
>&5
4915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } && {
4917 test -z "$ac_c_werror_flag" ||
4918 test ! -s conftest.err
4919 } && test -s conftest.
$ac_objext; then
4922 $as_echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.
$ac_ext >&5
4928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4929 if test $has_option = yes; then
4930 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4932 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4933 $as_echo "$has_option" >&6; }
4934 CFLAGS
="$SAVE_CFLAGS"
4938 ### Use -Wdeclaration-after-statement if the compiler supports it
4939 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4940 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4941 SAVE_CFLAGS
="$CFLAGS"
4942 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4943 cat >conftest.
$ac_ext <<_ACEOF
4946 cat confdefs.h
>>conftest.
$ac_ext
4947 cat >>conftest.
$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4958 rm -f conftest.
$ac_objext
4959 if { (ac_try
="$ac_compile"
4961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4965 $as_echo "$ac_try_echo") >&5
4966 (eval "$ac_compile") 2>conftest.er1
4968 grep -v '^ *+' conftest.er1 >conftest.err
4970 cat conftest.err >&5
4971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } && {
4973 test -z "$ac_c_werror_flag" ||
4974 test ! -s conftest.err
4975 } && test -s conftest.$ac_objext; then
4978 $as_echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 if test $has_option = yes; then
4986 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4988 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4989 $as_echo "$has_option" >&6; }
4990 CFLAGS="$SAVE_CFLAGS"
4994 #### Some other nice autoconf tests.
4996 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4997 $as_echo_n "checking whether ln -s works... " >&6; }
4999 if test "$LN_S" = "ln -s"; then
5000 { $as_echo "$as_me:$LINENO: result: yes" >&5
5001 $as_echo "yes" >&6; }
5003 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5004 $as_echo "no, using $LN_S" >&6; }
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5013 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5014 # On Suns, sometimes $CPP names a directory.
5015 if test -n "$CPP" && test -d "$CPP"; then
5018 if test -z "$CPP"; then
5019 if test "${ac_cv_prog_CPP+set}" = set; then
5020 $as_echo_n "(cached) " >&6
5022 # Double quotes because CPP needs to be expanded
5023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5026 for ac_c_preproc_warn_flag in '' yes
5028 # Use a header file that comes with gcc, so configuring glibc
5029 # with a fresh cross-compiler works.
5030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031 # <limits.h> exists even on freestanding compilers.
5032 # On the NeXT, cc -E runs the code through the compiler's parser,
5033 # not just through cpp. "Syntax error" is here to catch this case.
5034 cat >conftest.$ac_ext <<_ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5041 # include <limits.h>
5043 # include <assert.h>
5047 if { (ac_try="$ac_cpp conftest.$ac_ext"
5049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5050 *) ac_try_echo
=$ac_try;;
5052 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5053 $as_echo "$ac_try_echo") >&5
5054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5056 grep -v '^ *+' conftest.er1
>conftest.err
5058 cat conftest.err
>&5
5059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } >/dev
/null
&& {
5061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5062 test ! -s conftest.err
5066 $as_echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.
$ac_ext >&5
5069 # Broken: fails on valid input.
5073 rm -f conftest.err conftest.
$ac_ext
5075 # OK, works on sane cases. Now check whether nonexistent headers
5076 # can be detected and how.
5077 cat >conftest.
$ac_ext <<_ACEOF
5080 cat confdefs.h
>>conftest.
$ac_ext
5081 cat >>conftest.
$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 #include <ac_nonexistent.h>
5085 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5091 $as_echo "$ac_try_echo") >&5
5092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5094 grep -v '^ *+' conftest.er1 >conftest.err
5096 cat conftest.err >&5
5097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } >/dev/null && {
5099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5100 test ! -s conftest.err
5102 # Broken: success on invalid input.
5105 $as_echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5108 # Passes both tests.
5113 rm -f conftest.err conftest.$ac_ext
5116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5117 rm -f conftest.err conftest.
$ac_ext
5118 if $ac_preproc_ok; then
5130 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5131 $as_echo "$CPP" >&6; }
5133 for ac_c_preproc_warn_flag
in '' yes
5135 # Use a header file that comes with gcc, so configuring glibc
5136 # with a fresh cross-compiler works.
5137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5138 # <limits.h> exists even on freestanding compilers.
5139 # On the NeXT, cc -E runs the code through the compiler's parser,
5140 # not just through cpp. "Syntax error" is here to catch this case.
5141 cat >conftest.
$ac_ext <<_ACEOF
5144 cat confdefs.h
>>conftest.
$ac_ext
5145 cat >>conftest.
$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5148 # include <limits.h>
5150 # include <assert.h>
5154 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5157 *) ac_try_echo=$ac_try;;
5159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5160 $as_echo "$ac_try_echo") >&5
5161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5163 grep -v '^ *+' conftest.er1 >conftest.err
5165 cat conftest.err >&5
5166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } >/dev/null && {
5168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5169 test ! -s conftest.err
5173 $as_echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5176 # Broken: fails on valid input.
5180 rm -f conftest.err conftest.$ac_ext
5182 # OK, works on sane cases. Now check whether nonexistent headers
5183 # can be detected and how.
5184 cat >conftest.$ac_ext <<_ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 #include <ac_nonexistent.h>
5192 if { (ac_try="$ac_cpp conftest.$ac_ext"
5194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5195 *) ac_try_echo
=$ac_try;;
5197 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5198 $as_echo "$ac_try_echo") >&5
5199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5201 grep -v '^ *+' conftest.er1
>conftest.err
5203 cat conftest.err
>&5
5204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } >/dev
/null
&& {
5206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5209 # Broken: success on invalid input.
5212 $as_echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.
$ac_ext >&5
5215 # Passes both tests.
5220 rm -f conftest.err conftest.
$ac_ext
5223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5224 rm -f conftest.err conftest.
$ac_ext
5225 if $ac_preproc_ok; then
5228 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5229 See \`config.log' for more details." >&5
5230 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5231 See \`config.log' for more details." >&2;}
5232 { (exit 1); exit 1; }; }
5236 ac_cpp
='$CPP $CPPFLAGS'
5237 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5238 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5239 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5241 # Find a good install program. We prefer a C program (faster),
5242 # so one script is as good as another. But avoid the broken or
5243 # incompatible versions:
5244 # SysV /etc/install, /usr/sbin/install
5245 # SunOS /usr/etc/install
5246 # IRIX /sbin/install
5248 # AmigaOS /C/install, which installs bootblocks on floppy discs
5249 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5250 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5251 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5252 # OS/2's system install, which has a completely different semantic
5253 # ./install, which can be erroneously created by make from ./install.sh.
5254 # Reject install programs that cannot install multiple files.
5255 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5256 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5257 if test -z "$INSTALL"; then
5258 if test "${ac_cv_path_install+set}" = set; then
5259 $as_echo_n "(cached) " >&6
5261 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5265 test -z "$as_dir" && as_dir
=.
5266 # Account for people who put trailing slashes in PATH elements.
5268 .
/ | .
// |
/cC
/* | \
5269 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5270 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5273 # OSF1 and SCO ODT 3.0 have their own names for install.
5274 # Don't use installbsd from OSF since it installs stuff as root
5276 for ac_prog
in ginstall scoinst
install; do
5277 for ac_exec_ext
in '' $ac_executable_extensions; do
5278 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5279 if test $ac_prog = install &&
5280 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5281 # AIX install. It has an incompatible calling convention.
5283 elif test $ac_prog = install &&
5284 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5285 # program-specific install script used by HP pwplus--don't use.
5288 rm -rf conftest.one conftest.two conftest.dir
5289 echo one
> conftest.one
5290 echo two
> conftest.two
5292 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5293 test -s conftest.one
&& test -s conftest.two
&&
5294 test -s conftest.dir
/conftest.one
&&
5295 test -s conftest.dir
/conftest.two
5297 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5310 rm -rf conftest.one conftest.two conftest.dir
5313 if test "${ac_cv_path_install+set}" = set; then
5314 INSTALL
=$ac_cv_path_install
5316 # As a last resort, use the slow shell script. Don't cache a
5317 # value for INSTALL within a source directory, because that will
5318 # break other packages using the cache if that directory is
5319 # removed, or if the value is a relative name.
5320 INSTALL
=$ac_install_sh
5323 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5324 $as_echo "$INSTALL" >&6; }
5326 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5327 # It thinks the first close brace ends the variable substitution.
5328 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5330 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5332 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5334 if test "x$RANLIB" = x
; then
5335 if test -n "$ac_tool_prefix"; then
5336 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5337 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5338 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 $as_echo_n "checking for $ac_word... " >&6; }
5340 if test "${ac_cv_prog_RANLIB+set}" = set; then
5341 $as_echo_n "(cached) " >&6
5343 if test -n "$RANLIB"; then
5344 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5350 test -z "$as_dir" && as_dir
=.
5351 for ac_exec_ext
in '' $ac_executable_extensions; do
5352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5353 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5354 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 RANLIB
=$ac_cv_prog_RANLIB
5364 if test -n "$RANLIB"; then
5365 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5366 $as_echo "$RANLIB" >&6; }
5368 { $as_echo "$as_me:$LINENO: result: no" >&5
5369 $as_echo "no" >&6; }
5374 if test -z "$ac_cv_prog_RANLIB"; then
5375 ac_ct_RANLIB
=$RANLIB
5376 # Extract the first word of "ranlib", so it can be a program name with args.
5377 set dummy ranlib
; ac_word
=$2
5378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5381 $as_echo_n "(cached) " >&6
5383 if test -n "$ac_ct_RANLIB"; then
5384 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5390 test -z "$as_dir" && as_dir
=.
5391 for ac_exec_ext
in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5404 if test -n "$ac_ct_RANLIB"; then
5405 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5406 $as_echo "$ac_ct_RANLIB" >&6; }
5408 { $as_echo "$as_me:$LINENO: result: no" >&5
5409 $as_echo "no" >&6; }
5412 if test "x$ac_ct_RANLIB" = x
; then
5415 case $cross_compiling:$ac_tool_warned in
5417 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5418 whose name does not start with the host triplet. If you think this
5419 configuration is useful to you, please write to autoconf@gnu.org." >&5
5420 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5421 whose name does not start with the host triplet. If you think this
5422 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5423 ac_tool_warned
=yes ;;
5425 RANLIB
=$ac_ct_RANLIB
5428 RANLIB
="$ac_cv_prog_RANLIB"
5432 # Extract the first word of "install-info", so it can be a program name with args.
5433 set dummy install-info
; ac_word
=$2
5434 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5437 $as_echo_n "(cached) " >&6
5439 case $INSTALL_INFO in
5441 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5444 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5448 test -z "$as_dir" && as_dir
=.
5449 for ac_exec_ext
in '' $ac_executable_extensions; do
5450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5463 if test -n "$INSTALL_INFO"; then
5464 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5465 $as_echo "$INSTALL_INFO" >&6; }
5467 { $as_echo "$as_me:$LINENO: result: no" >&5
5468 $as_echo "no" >&6; }
5472 # Extract the first word of "install-info", so it can be a program name with args.
5473 set dummy install-info
; ac_word
=$2
5474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5477 $as_echo_n "(cached) " >&6
5479 case $INSTALL_INFO in
5481 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5485 for as_dir
in /usr
/sbin
5488 test -z "$as_dir" && as_dir
=.
5489 for ac_exec_ext
in '' $ac_executable_extensions; do
5490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5503 if test -n "$INSTALL_INFO"; then
5504 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5505 $as_echo "$INSTALL_INFO" >&6; }
5507 { $as_echo "$as_me:$LINENO: result: no" >&5
5508 $as_echo "no" >&6; }
5512 # Extract the first word of "install-info", so it can be a program name with args.
5513 set dummy install-info
; ac_word
=$2
5514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5517 $as_echo_n "(cached) " >&6
5519 case $INSTALL_INFO in
5521 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5528 test -z "$as_dir" && as_dir
=.
5529 for ac_exec_ext
in '' $ac_executable_extensions; do
5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5532 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5539 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5543 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5544 if test -n "$INSTALL_INFO"; then
5545 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5546 $as_echo "$INSTALL_INFO" >&6; }
5548 { $as_echo "$as_me:$LINENO: result: no" >&5
5549 $as_echo "no" >&6; }
5553 # Extract the first word of "gzip", so it can be a program name with args.
5554 set dummy
gzip; ac_word
=$2
5555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5558 $as_echo_n "(cached) " >&6
5562 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5569 test -z "$as_dir" && as_dir
=.
5570 for ac_exec_ext
in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5584 if test -n "$GZIP_PROG"; then
5585 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5586 $as_echo "$GZIP_PROG" >&6; }
5588 { $as_echo "$as_me:$LINENO: result: no" >&5
5589 $as_echo "no" >&6; }
5595 ## Need makeinfo >= 4.6 (?) to build the manuals.
5596 # Extract the first word of "makeinfo", so it can be a program name with args.
5597 set dummy makeinfo
; ac_word
=$2
5598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5601 $as_echo_n "(cached) " >&6
5605 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5612 test -z "$as_dir" && as_dir
=.
5613 for ac_exec_ext
in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5627 MAKEINFO
=$ac_cv_path_MAKEINFO
5628 if test -n "$MAKEINFO"; then
5629 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5630 $as_echo "$MAKEINFO" >&6; }
5632 { $as_echo "$as_me:$LINENO: result: no" >&5
5633 $as_echo "no" >&6; }
5637 if test "$MAKEINFO" != "no" && \
5638 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
5642 ## Makeinfo is unusual. For a released Emacs, the manuals are
5643 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5644 ## therefore in the category of "special tools" not normally required, which
5645 ## configure does not have to check for (eg autoconf itself).
5646 ## In a Bazaar checkout on the other hand, the manuals are not included.
5647 ## So makeinfo is a requirement to build from Bazaar, and configure
5648 ## should test for it as it does for any other build requirement.
5649 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5650 ## with pre-built manuals, from a Bazaar checkout.
5651 if test "$MAKEINFO" = "no"; then
5652 if test "x${with_makeinfo}" = "xno"; then
5654 elif test ! -e $srcdir/info
/emacs
; then
5655 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5656 source tree does not seem to have pre-built manuals in the \`info' directory.
5657 Either install a suitable version of makeinfo, or re-run configure
5658 with the \`--without-makeinfo' option to build without the manuals. " >&5
5659 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5660 source tree does not seem to have pre-built manuals in the \`info' directory.
5661 Either install a suitable version of makeinfo, or re-run configure
5662 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5663 { (exit 1); exit 1; }; }
5668 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5670 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5673 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5675 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5679 late_LDFLAGS
=$LDFLAGS
5680 if test "$GCC" = yes; then
5681 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5683 LDFLAGS
="$LDFLAGS -znocombreloc"
5686 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5687 $as_echo_n "checking for -znocombreloc... " >&6; }
5688 cat >conftest.
$ac_ext <<_ACEOF
5691 rm -f conftest.
$ac_objext conftest
$ac_exeext
5692 if { (ac_try
="$ac_link"
5694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5698 $as_echo "$ac_try_echo") >&5
5699 (eval "$ac_link") 2>conftest.er1
5701 grep -v '^ *+' conftest.er1 >conftest.err
5703 cat conftest.err >&5
5704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && {
5706 test -z "$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest$ac_exeext && {
5709 test "$cross_compiling" = yes ||
5710 $as_test_x conftest$ac_exeext
5712 { $as_echo "$as_me:$LINENO: result: yes" >&5
5713 $as_echo "yes" >&6; }
5715 $as_echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5718 LDFLAGS=$late_LDFLAGS
5719 { $as_echo "$as_me:$LINENO: result: no" >&5
5720 $as_echo "no" >&6; }
5723 rm -rf conftest.dSYM
5724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5725 conftest$ac_exeext conftest.$ac_ext
5727 #### Extract some information from the operating system and machine files.
5729 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5730 - which libraries the lib-src programs will want, and
5731 - whether the GNU malloc routines are usable..." >&5
5732 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5733 - which libraries the lib-src programs will want, and
5734 - whether the GNU malloc routines are usable..." >&6;}
5736 ### First figure out CFLAGS (which we use for running the compiler here)
5737 ### and REAL_CFLAGS (which we use for real compilation).
5738 ### The two are the same except on a few systems, where they are made
5739 ### different to work around various lossages. For example,
5740 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5741 ### as implying static linking.
5743 ### If the CFLAGS env var is specified, we use that value
5744 ### instead of the default.
5746 ### It's not important that this name contain the PID; you can't run
5747 ### two configures in the same directory and have anything work
5749 tempcname="conftest.c"
5752 #include "'${srcdir}'/src/'${opsysfile}'"
5753 #include "'${srcdir}'/src/'${machfile}'"
5754 #ifndef LIBS_MACHINE
5755 #define LIBS_MACHINE
5760 #ifndef C_SWITCH_SYSTEM
5761 #define C_SWITCH_SYSTEM
5763 #ifndef C_SWITCH_MACHINE
5764 #define C_SWITCH_MACHINE
5766 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5767 configure___ c_switch_system=C_SWITCH_SYSTEM
5768 configure___ c_switch_machine=C_SWITCH_MACHINE
5771 #define LIB_X11_LIB -lX11
5774 configure___ LIBX=LIB_X11_LIB
5777 configure___ unexec=UNEXEC
5779 configure___ unexec=unexec.o
5782 #ifdef SYSTEM_MALLOC
5783 configure___ system_malloc=yes
5785 configure___ system_malloc=no
5788 #ifdef USE_MMAP_FOR_BUFFERS
5789 configure___ use_mmap_for_buffers=yes
5791 configure___ use_mmap_for_buffers=no
5794 #ifndef C_OPTIMIZE_SWITCH
5796 #define C_OPTIMIZE_SWITCH -O2
5798 #define C_OPTIMIZE_SWITCH -O
5802 #ifndef C_WARNINGS_SWITCH
5803 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5806 #ifndef LD_SWITCH_MACHINE
5807 #define LD_SWITCH_MACHINE
5810 #ifndef LD_SWITCH_SYSTEM
5811 #define LD_SWITCH_SYSTEM
5814 #ifndef LD_SWITCH_X_SITE_AUX
5815 #define LD_SWITCH_X_SITE_AUX
5818 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5819 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5821 #ifdef THIS_IS_CONFIGURE
5823 /* Get the CFLAGS for tests in configure. */
5825 configure___ CFLAGS=C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5827 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5830 #else /* not THIS_IS_CONFIGURE */
5832 /* Get the CFLAGS for real compilation. */
5834 configure___ REAL_CFLAGS=C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5836 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5839 #endif /* not THIS_IS_CONFIGURE */
5842 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5844 # The value of CPP is a quoted variable reference, so we need to do this
5845 # to get its actual value...
5846 CPP=`eval "echo $CPP"`
5847 eval `${CPP} -Isrc ${tempcname} \
5848 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5849 if test "x$SPECIFIED_CFLAGS" = x; then
5850 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5851 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5853 REAL_CFLAGS="$CFLAGS"
5857 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5859 ### Make sure subsequent tests use flags consistent with the build flags.
5861 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5862 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5864 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5869 # Check whether --enable-largefile was given.
5870 if test "${enable_largefile+set}" = set; then
5871 enableval=$enable_largefile;
5874 if test "$enable_largefile" != no; then
5876 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5877 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5878 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5879 $as_echo_n "(cached) " >&6
5881 ac_cv_sys_largefile_CC=no
5882 if test "$GCC" != yes; then
5885 # IRIX 6.2 and later do not support large files by default,
5886 # so use the C compiler's -n32 option if that helps.
5887 cat >conftest.$ac_ext <<_ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5893 #include <sys/types.h>
5894 /* Check that off_t can represent 2**63 - 1 correctly.
5895 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5896 since some C++ compilers masquerading as C compilers
5897 incorrectly reject 9223372036854775807. */
5898 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5899 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5900 && LARGE_OFF_T % 2147483647 == 1)
5910 rm -f conftest.$ac_objext
5911 if { (ac_try="$ac_compile"
5913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5914 *) ac_try_echo
=$ac_try;;
5916 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5917 $as_echo "$ac_try_echo") >&5
5918 (eval "$ac_compile") 2>conftest.er1
5920 grep -v '^ *+' conftest.er1
>conftest.err
5922 cat conftest.err
>&5
5923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } && {
5925 test -z "$ac_c_werror_flag" ||
5926 test ! -s conftest.err
5927 } && test -s conftest.
$ac_objext; then
5930 $as_echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.
$ac_ext >&5
5936 rm -f core conftest.err conftest.
$ac_objext
5938 rm -f conftest.
$ac_objext
5939 if { (ac_try
="$ac_compile"
5941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945 $as_echo "$ac_try_echo") >&5
5946 (eval "$ac_compile") 2>conftest.er1
5948 grep -v '^ *+' conftest.er1 >conftest.err
5950 cat conftest.err >&5
5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && {
5953 test -z "$ac_c_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest.$ac_objext; then
5956 ac_cv_sys_largefile_CC=' -n32'; break
5958 $as_echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5964 rm -f core conftest.err conftest.$ac_objext
5968 rm -f conftest.$ac_ext
5971 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5972 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5973 if test "$ac_cv_sys_largefile_CC" != no; then
5974 CC=$CC$ac_cv_sys_largefile_CC
5977 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5978 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5979 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5980 $as_echo_n "(cached) " >&6
5983 cat >conftest.$ac_ext <<_ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989 #include <sys/types.h>
5990 /* Check that off_t can represent 2**63 - 1 correctly.
5991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5992 since some C++ compilers masquerading as C compilers
5993 incorrectly reject 9223372036854775807. */
5994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5996 && LARGE_OFF_T % 2147483647 == 1)
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6010 *) ac_try_echo
=$ac_try;;
6012 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6013 $as_echo "$ac_try_echo") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6016 grep -v '^ *+' conftest.er1
>conftest.err
6018 cat conftest.err
>&5
6019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.
$ac_objext; then
6024 ac_cv_sys_file_offset_bits
=no
; break
6026 $as_echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.
$ac_ext >&5
6032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6033 cat >conftest.
$ac_ext <<_ACEOF
6036 cat confdefs.h
>>conftest.
$ac_ext
6037 cat >>conftest.
$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6039 #define _FILE_OFFSET_BITS 64
6040 #include <sys/types.h>
6041 /* Check that off_t can represent 2**63 - 1 correctly.
6042 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6043 since some C++ compilers masquerading as C compilers
6044 incorrectly reject 9223372036854775807. */
6045 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6046 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6047 && LARGE_OFF_T % 2147483647 == 1)
6057 rm -f conftest.
$ac_objext
6058 if { (ac_try
="$ac_compile"
6060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6064 $as_echo "$ac_try_echo") >&5
6065 (eval "$ac_compile") 2>conftest.er1
6067 grep -v '^ *+' conftest.er1 >conftest.err
6069 cat conftest.err >&5
6070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && {
6072 test -z "$ac_c_werror_flag" ||
6073 test ! -s conftest.err
6074 } && test -s conftest.$ac_objext; then
6075 ac_cv_sys_file_offset_bits=64; break
6077 $as_echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 ac_cv_sys_file_offset_bits=unknown
6088 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6089 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6090 case $ac_cv_sys_file_offset_bits in #(
6093 cat >>confdefs.h <<_ACEOF
6094 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6099 if test $ac_cv_sys_file_offset_bits = unknown; then
6100 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6101 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6102 if test "${ac_cv_sys_large_files+set}" = set; then
6103 $as_echo_n "(cached) " >&6
6106 cat >conftest.$ac_ext <<_ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */
6112 #include <sys/types.h>
6113 /* Check that off_t can represent 2**63 - 1 correctly.
6114 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6115 since some C++ compilers masquerading as C compilers
6116 incorrectly reject 9223372036854775807. */
6117 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6118 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6119 && LARGE_OFF_T % 2147483647 == 1)
6129 rm -f conftest.$ac_objext
6130 if { (ac_try="$ac_compile"
6132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6133 *) ac_try_echo
=$ac_try;;
6135 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6136 $as_echo "$ac_try_echo") >&5
6137 (eval "$ac_compile") 2>conftest.er1
6139 grep -v '^ *+' conftest.er1
>conftest.err
6141 cat conftest.err
>&5
6142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && {
6144 test -z "$ac_c_werror_flag" ||
6145 test ! -s conftest.err
6146 } && test -s conftest.
$ac_objext; then
6147 ac_cv_sys_large_files
=no
; break
6149 $as_echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.
$ac_ext >&5
6155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6156 cat >conftest.
$ac_ext <<_ACEOF
6159 cat confdefs.h
>>conftest.
$ac_ext
6160 cat >>conftest.
$ac_ext <<_ACEOF
6161 /* end confdefs.h. */
6162 #define _LARGE_FILES 1
6163 #include <sys/types.h>
6164 /* Check that off_t can represent 2**63 - 1 correctly.
6165 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6166 since some C++ compilers masquerading as C compilers
6167 incorrectly reject 9223372036854775807. */
6168 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6169 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6170 && LARGE_OFF_T % 2147483647 == 1)
6180 rm -f conftest.
$ac_objext
6181 if { (ac_try
="$ac_compile"
6183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6187 $as_echo "$ac_try_echo") >&5
6188 (eval "$ac_compile") 2>conftest.er1
6190 grep -v '^ *+' conftest.er1 >conftest.err
6192 cat conftest.err >&5
6193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } && {
6195 test -z "$ac_c_werror_flag" ||
6196 test ! -s conftest.err
6197 } && test -s conftest.$ac_objext; then
6198 ac_cv_sys_large_files=1; break
6200 $as_echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 ac_cv_sys_large_files=unknown
6211 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6212 $as_echo "$ac_cv_sys_large_files" >&6; }
6213 case $ac_cv_sys_large_files in #(
6216 cat >>confdefs.h <<_ACEOF
6217 #define _LARGE_FILES $ac_cv_sys_large_files
6227 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6228 ### be located in either /usr/lib64 or /usr/lib.
6229 ### In some rare cases, /usr/lib64 exists but does not contain the
6230 ### relevant files (bug#1287). Hence test for crtn.o.
6231 case "${canonical}" in
6232 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6233 if test -e /usr/lib64/crtn.o; then
6235 cat >>confdefs.h <<\_ACEOF
6236 #define HAVE_LIB64_DIR 1
6245 if test "${with_sound}" != "no"; then
6246 # Sound support for GNU/Linux and the free BSDs.
6250 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6254 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6255 $as_echo_n "checking for $ac_header... " >&6; }
6256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6257 $as_echo_n "(cached) " >&6
6259 ac_res=`eval 'as_val=${'$as_ac_Header'}
6260 $as_echo "$as_val"'`
6261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6262 $as_echo "$ac_res" >&6; }
6264 # Is the header compilable?
6265 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6266 $as_echo_n "checking $ac_header usability... " >&6; }
6267 cat >conftest.$ac_ext <<_ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273 $ac_includes_default
6274 #include <$ac_header>
6276 rm -f conftest.$ac_objext
6277 if { (ac_try="$ac_compile"
6279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6280 *) ac_try_echo
=$ac_try;;
6282 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6283 $as_echo "$ac_try_echo") >&5
6284 (eval "$ac_compile") 2>conftest.er1
6286 grep -v '^ *+' conftest.er1
>conftest.err
6288 cat conftest.err
>&5
6289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest.
$ac_objext; then
6294 ac_header_compiler
=yes
6296 $as_echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.
$ac_ext >&5
6299 ac_header_compiler
=no
6302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6303 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6304 $as_echo "$ac_header_compiler" >&6; }
6306 # Is the header present?
6307 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6308 $as_echo_n "checking $ac_header presence... " >&6; }
6309 cat >conftest.
$ac_ext <<_ACEOF
6312 cat confdefs.h
>>conftest.
$ac_ext
6313 cat >>conftest.
$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6315 #include <$ac_header>
6317 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6323 $as_echo "$ac_try_echo") >&5
6324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6326 grep -v '^ *+' conftest.er1 >conftest.err
6328 cat conftest.err >&5
6329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } >/dev/null && {
6331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6332 test ! -s conftest.err
6334 ac_header_preproc=yes
6336 $as_echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.$ac_ext >&5
6339 ac_header_preproc=no
6342 rm -f conftest.err conftest.$ac_ext
6343 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6344 $as_echo "$ac_header_preproc" >&6; }
6346 # So? What about this header?
6347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6350 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6352 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6353 ac_header_preproc=yes
6356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6357 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6359 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6361 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6363 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6365 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6367 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6371 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6372 $as_echo_n "checking for $ac_header... " >&6; }
6373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6374 $as_echo_n "(cached) " >&6
6376 eval "$as_ac_Header=\$ac_header_preproc"
6378 ac_res=`eval 'as_val=${'$as_ac_Header'}
6379 $as_echo "$as_val"'`
6380 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6381 $as_echo "$ac_res" >&6; }
6384 if test `eval 'as_val=${'$as_ac_Header'}
6385 $as_echo "$as_val"'` = yes; then
6386 cat >>confdefs.h <<_ACEOF
6387 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6394 # Emulation library used on NetBSD.
6395 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6396 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6397 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6398 $as_echo_n "(cached) " >&6
6400 ac_check_lib_save_LIBS=$LIBS
6401 LIBS="-lossaudio $LIBS"
6402 cat >conftest.$ac_ext <<_ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6409 /* Override any GCC internal prototype to avoid an error.
6410 Use char because int might match the return type of a GCC
6411 builtin and then its argument prototype would still apply. */
6419 return _oss_ioctl ();
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (ac_try="$ac_link"
6427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6428 *) ac_try_echo
=$ac_try;;
6430 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6431 $as_echo "$ac_try_echo") >&5
6432 (eval "$ac_link") 2>conftest.er1
6434 grep -v '^ *+' conftest.er1
>conftest.err
6436 cat conftest.err
>&5
6437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } && {
6439 test -z "$ac_c_werror_flag" ||
6440 test ! -s conftest.err
6441 } && test -s conftest
$ac_exeext && {
6442 test "$cross_compiling" = yes ||
6443 $as_test_x conftest
$ac_exeext
6445 ac_cv_lib_ossaudio__oss_ioctl
=yes
6447 $as_echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.
$ac_ext >&5
6450 ac_cv_lib_ossaudio__oss_ioctl
=no
6453 rm -rf conftest.dSYM
6454 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6455 conftest
$ac_exeext conftest.
$ac_ext
6456 LIBS
=$ac_check_lib_save_LIBS
6458 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6459 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6460 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6469 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6473 # Extract the first word of "pkg-config", so it can be a program name with args.
6474 set dummy pkg-config
; ac_word
=$2
6475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6476 $as_echo_n "checking for $ac_word... " >&6; }
6477 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6478 $as_echo_n "(cached) " >&6
6482 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6489 test -z "$as_dir" && as_dir
=.
6490 for ac_exec_ext
in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6504 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6505 if test -n "$PKG_CONFIG"; then
6506 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6507 $as_echo "$PKG_CONFIG" >&6; }
6509 { $as_echo "$as_me:$LINENO: result: no" >&5
6510 $as_echo "no" >&6; }
6515 if test "$PKG_CONFIG" = "no" ; then
6518 PKG_CONFIG_MIN_VERSION
=0.9.0
6519 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6520 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6521 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6523 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6524 { $as_echo "$as_me:$LINENO: result: yes" >&5
6525 $as_echo "yes" >&6; }
6528 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6529 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6530 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6531 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6532 $as_echo "$ALSA_CFLAGS" >&6; }
6534 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6535 $as_echo_n "checking ALSA_LIBS... " >&6; }
6536 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6537 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6538 $as_echo "$ALSA_LIBS" >&6; }
6540 { $as_echo "$as_me:$LINENO: result: no" >&5
6541 $as_echo "no" >&6; }
6544 ## If we have a custom action on failure, don't print errors, but
6545 ## do set a variable so people can do so.
6546 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6553 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6554 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6558 if test $succeeded = yes; then
6564 if test $HAVE_ALSA = yes; then
6565 SAVE_CFLAGS
="$CFLAGS"
6566 SAVE_LDFLAGS
="$LDFLAGS"
6567 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6568 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6569 cat >conftest.
$ac_ext <<_ACEOF
6572 cat confdefs.h
>>conftest.
$ac_ext
6573 cat >>conftest.
$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 #include <asoundlib.h>
6579 snd_lib_error_set_handler (0);
6584 rm -f conftest.
$ac_objext
6585 if { (ac_try
="$ac_compile"
6587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6591 $as_echo "$ac_try_echo") >&5
6592 (eval "$ac_compile") 2>conftest.er1
6594 grep -v '^ *+' conftest.er1 >conftest.err
6596 cat conftest.err >&5
6597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } && {
6599 test -z "$ac_c_werror_flag" ||
6600 test ! -s conftest.err
6601 } && test -s conftest.$ac_objext; then
6602 emacs_alsa_normal=yes
6604 $as_echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 emacs_alsa_normal=no
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 if test "$emacs_alsa_normal" != yes; then
6612 cat >conftest.$ac_ext <<_ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618 #include <alsa/asoundlib.h>
6622 snd_lib_error_set_handler (0);
6627 rm -f conftest.$ac_objext
6628 if { (ac_try="$ac_compile"
6630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6631 *) ac_try_echo
=$ac_try;;
6633 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6634 $as_echo "$ac_try_echo") >&5
6635 (eval "$ac_compile") 2>conftest.er1
6637 grep -v '^ *+' conftest.er1
>conftest.err
6639 cat conftest.err
>&5
6640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } && {
6642 test -z "$ac_c_werror_flag" ||
6643 test ! -s conftest.err
6644 } && test -s conftest.
$ac_objext; then
6645 emacs_alsa_subdir
=yes
6647 $as_echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.
$ac_ext >&5
6650 emacs_alsa_subdir
=no
6653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6654 if test "$emacs_alsa_subdir" != yes; then
6655 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6656 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6657 { (exit 1); exit 1; }; }
6659 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6662 CFLAGS
="$SAVE_CFLAGS"
6663 LDFLAGS
="$SAVE_LDFLAGS"
6664 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6665 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6667 cat >>confdefs.h
<<\_ACEOF
6700 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6701 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6702 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6703 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6704 sys
/utsname.h
pwd.h utmp.h
6706 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6707 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6708 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6709 $as_echo_n "checking for $ac_header... " >&6; }
6710 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6711 $as_echo_n "(cached) " >&6
6713 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6714 $as_echo "$as_val"'`
6715 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6716 $as_echo "$ac_res" >&6; }
6718 # Is the header compilable?
6719 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6720 $as_echo_n "checking $ac_header usability... " >&6; }
6721 cat >conftest.
$ac_ext <<_ACEOF
6724 cat confdefs.h
>>conftest.
$ac_ext
6725 cat >>conftest.
$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6727 $ac_includes_default
6728 #include <$ac_header>
6730 rm -f conftest.
$ac_objext
6731 if { (ac_try
="$ac_compile"
6733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6737 $as_echo "$ac_try_echo") >&5
6738 (eval "$ac_compile") 2>conftest.er1
6740 grep -v '^ *+' conftest.er1 >conftest.err
6742 cat conftest.err >&5
6743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } && {
6745 test -z "$ac_c_werror_flag" ||
6746 test ! -s conftest.err
6747 } && test -s conftest.$ac_objext; then
6748 ac_header_compiler=yes
6750 $as_echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6753 ac_header_compiler=no
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6758 $as_echo "$ac_header_compiler" >&6; }
6760 # Is the header present?
6761 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6762 $as_echo_n "checking $ac_header presence... " >&6; }
6763 cat >conftest.$ac_ext <<_ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 #include <$ac_header>
6771 if { (ac_try="$ac_cpp conftest.$ac_ext"
6773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6774 *) ac_try_echo
=$ac_try;;
6776 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6777 $as_echo "$ac_try_echo") >&5
6778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6780 grep -v '^ *+' conftest.er1
>conftest.err
6782 cat conftest.err
>&5
6783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } >/dev
/null
&& {
6785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6786 test ! -s conftest.err
6788 ac_header_preproc
=yes
6790 $as_echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.
$ac_ext >&5
6793 ac_header_preproc
=no
6796 rm -f conftest.err conftest.
$ac_ext
6797 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6798 $as_echo "$ac_header_preproc" >&6; }
6800 # So? What about this header?
6801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6804 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6806 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6807 ac_header_preproc
=yes
6810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6811 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6813 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6815 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6817 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6819 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6821 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6825 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6826 $as_echo_n "checking for $ac_header... " >&6; }
6827 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6828 $as_echo_n "(cached) " >&6
6830 eval "$as_ac_Header=\$ac_header_preproc"
6832 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6833 $as_echo "$as_val"'`
6834 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6835 $as_echo "$ac_res" >&6; }
6838 if test `eval 'as_val=${'$as_ac_Header'}
6839 $as_echo "$as_val"'` = yes; then
6840 cat >>confdefs.h
<<_ACEOF
6841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6849 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6850 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6851 cat >conftest.
$ac_ext <<_ACEOF
6854 cat confdefs.h
>>conftest.
$ac_ext
6855 cat >>conftest.
$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6857 #include <sys/personality.h>
6861 personality (PER_LINUX32)
6866 rm -f conftest.
$ac_objext
6867 if { (ac_try
="$ac_compile"
6869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6870 *) ac_try_echo=$ac_try;;
6872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6873 $as_echo "$ac_try_echo") >&5
6874 (eval "$ac_compile") 2>conftest.er1
6876 grep -v '^ *+' conftest.er1 >conftest.err
6878 cat conftest.err >&5
6879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && {
6881 test -z "$ac_c_werror_flag" ||
6882 test ! -s conftest.err
6883 } && test -s conftest.$ac_objext; then
6884 emacs_cv_personality_linux32=yes
6886 $as_echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.$ac_ext >&5
6889 emacs_cv_personality_linux32=no
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6894 $as_echo "$emacs_cv_personality_linux32" >&6; }
6896 if test $emacs_cv_personality_linux32 = yes; then
6898 cat >>confdefs.h <<\_ACEOF
6899 #define HAVE_PERSONALITY_LINUX32 1
6905 for ac_header in term.h
6907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6909 $as_echo_n "checking for $ac_header... " >&6; }
6910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6911 $as_echo_n "(cached) " >&6
6913 cat >conftest.$ac_ext <<_ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 #include <$ac_header>
6921 if { (ac_try="$ac_cpp conftest.$ac_ext"
6923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6924 *) ac_try_echo
=$ac_try;;
6926 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6927 $as_echo "$ac_try_echo") >&5
6928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6930 grep -v '^ *+' conftest.er1
>conftest.err
6932 cat conftest.err
>&5
6933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } >/dev
/null
&& {
6935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6936 test ! -s conftest.err
6938 eval "$as_ac_Header=yes"
6940 $as_echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.
$ac_ext >&5
6943 eval "$as_ac_Header=no"
6946 rm -f conftest.err conftest.
$ac_ext
6948 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6949 $as_echo "$as_val"'`
6950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6951 $as_echo "$ac_res" >&6; }
6952 if test `eval 'as_val=${'$as_ac_Header'}
6953 $as_echo "$as_val"'` = yes; then
6954 cat >>confdefs.h
<<_ACEOF
6955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6962 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6963 $as_echo_n "checking for ANSI C header files... " >&6; }
6964 if test "${ac_cv_header_stdc+set}" = set; then
6965 $as_echo_n "(cached) " >&6
6967 cat >conftest.
$ac_ext <<_ACEOF
6970 cat confdefs.h
>>conftest.
$ac_ext
6971 cat >>conftest.
$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6986 rm -f conftest.
$ac_objext
6987 if { (ac_try
="$ac_compile"
6989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993 $as_echo "$ac_try_echo") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6996 grep -v '^ *+' conftest.er1 >conftest.err
6998 cat conftest.err >&5
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.$ac_objext; then
7004 ac_cv_header_stdc=yes
7006 $as_echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ac_cv_header_stdc=no
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 if test $ac_cv_header_stdc = yes; then
7015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7016 cat >conftest.$ac_ext <<_ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7026 $EGREP "memchr" >/dev/null 2>&1; then
7029 ac_cv_header_stdc=no
7035 if test $ac_cv_header_stdc = yes; then
7036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7037 cat >conftest.$ac_ext <<_ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7047 $EGREP "free" >/dev/null 2>&1; then
7050 ac_cv_header_stdc=no
7056 if test $ac_cv_header_stdc = yes; then
7057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7058 if test "$cross_compiling" = yes; then
7061 cat >conftest.$ac_ext <<_ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h. */
7069 #if ((' ' & 0x0FF) == 0x020)
7070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7071 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7073 # define ISLOWER(c) \
7074 (('a' <= (c) && (c) <= 'i') \
7075 || ('j' <= (c) && (c) <= 'r') \
7076 || ('s' <= (c) && (c) <= 'z'))
7077 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7080 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7085 for (i = 0; i < 256; i++)
7086 if (XOR (islower (i), ISLOWER (i))
7087 || toupper (i) != TOUPPER (i))
7092 rm -f conftest$ac_exeext
7093 if { (ac_try="$ac_link"
7095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7096 *) ac_try_echo
=$ac_try;;
7098 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7099 $as_echo "$ac_try_echo") >&5
7100 (eval "$ac_link") 2>&5
7102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7104 { (case "(($ac_try" in
7105 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7106 *) ac_try_echo=$ac_try;;
7108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7109 $as_echo "$ac_try_echo") >&5
7110 (eval "$ac_try") 2>&5
7112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7116 $as_echo "$as_me: program exited with status $ac_status" >&5
7117 $as_echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7121 ac_cv_header_stdc=no
7123 rm -rf conftest.dSYM
7124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7130 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7131 $as_echo "$ac_cv_header_stdc" >&6; }
7132 if test $ac_cv_header_stdc = yes; then
7134 cat >>confdefs.h <<\_ACEOF
7135 #define STDC_HEADERS 1
7140 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7141 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7142 if test "${ac_cv_header_time+set}" = set; then
7143 $as_echo_n "(cached) " >&6
7145 cat >conftest.$ac_ext <<_ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7151 #include <sys/types.h>
7152 #include <sys/time.h>
7158 if ((struct tm *) 0)
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7168 *) ac_try_echo
=$ac_try;;
7170 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7171 $as_echo "$ac_try_echo") >&5
7172 (eval "$ac_compile") 2>conftest.er1
7174 grep -v '^ *+' conftest.er1
>conftest.err
7176 cat conftest.err
>&5
7177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && {
7179 test -z "$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 } && test -s conftest.
$ac_objext; then
7182 ac_cv_header_time
=yes
7184 $as_echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.
$ac_ext >&5
7187 ac_cv_header_time
=no
7190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7192 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7193 $as_echo "$ac_cv_header_time" >&6; }
7194 if test $ac_cv_header_time = yes; then
7196 cat >>confdefs.h
<<\_ACEOF
7197 #define TIME_WITH_SYS_TIME 1
7202 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7203 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7204 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7205 $as_echo_n "(cached) " >&6
7207 cat >conftest.
$ac_ext <<_ACEOF
7210 cat confdefs.h
>>conftest.
$ac_ext
7211 cat >>conftest.
$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213 $ac_includes_default
7225 rm -f conftest.
$ac_objext
7226 if { (ac_try
="$ac_compile"
7228 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7232 $as_echo "$ac_try_echo") >&5
7233 (eval "$ac_compile") 2>conftest.er1
7235 grep -v '^ *+' conftest.er1 >conftest.err
7237 cat conftest.err >&5
7238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && {
7240 test -z "$ac_c_werror_flag" ||
7241 test ! -s conftest.err
7242 } && test -s conftest.$ac_objext; then
7243 ac_cv_have_decl_sys_siglist=yes
7245 $as_echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7248 ac_cv_have_decl_sys_siglist=no
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7254 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7255 if test $ac_cv_have_decl_sys_siglist = yes; then
7257 cat >>confdefs.h <<_ACEOF
7258 #define HAVE_DECL_SYS_SIGLIST 1
7263 cat >>confdefs.h <<_ACEOF
7264 #define HAVE_DECL_SYS_SIGLIST 0
7271 if test $ac_cv_have_decl_sys_siglist != yes; then
7272 # For Tru64, at least:
7273 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7274 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7275 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7276 $as_echo_n "(cached) " >&6
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 $ac_includes_default
7288 #ifndef __sys_siglist
7289 (void) __sys_siglist;
7296 rm -f conftest.$ac_objext
7297 if { (ac_try="$ac_compile"
7299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7300 *) ac_try_echo
=$ac_try;;
7302 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7303 $as_echo "$ac_try_echo") >&5
7304 (eval "$ac_compile") 2>conftest.er1
7306 grep -v '^ *+' conftest.er1
>conftest.err
7308 cat conftest.err
>&5
7309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } && {
7311 test -z "$ac_c_werror_flag" ||
7312 test ! -s conftest.err
7313 } && test -s conftest.
$ac_objext; then
7314 ac_cv_have_decl___sys_siglist
=yes
7316 $as_echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.
$ac_ext >&5
7319 ac_cv_have_decl___sys_siglist
=no
7322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7324 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7325 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7326 if test $ac_cv_have_decl___sys_siglist = yes; then
7328 cat >>confdefs.h
<<_ACEOF
7329 #define HAVE_DECL___SYS_SIGLIST 1
7334 cat >>confdefs.h
<<_ACEOF
7335 #define HAVE_DECL___SYS_SIGLIST 0
7342 if test $ac_cv_have_decl___sys_siglist = yes; then
7344 cat >>confdefs.h
<<\_ACEOF
7345 #define sys_siglist __sys_siglist
7350 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7351 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7352 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7353 $as_echo_n "(cached) " >&6
7355 cat >conftest.
$ac_ext <<_ACEOF
7358 cat confdefs.h
>>conftest.
$ac_ext
7359 cat >>conftest.
$ac_ext <<_ACEOF
7360 /* end confdefs.h. */
7361 #include <sys/types.h>
7362 #include <sys/wait.h>
7364 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7367 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7375 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7380 rm -f conftest.
$ac_objext
7381 if { (ac_try
="$ac_compile"
7383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7384 *) ac_try_echo=$ac_try;;
7386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7387 $as_echo "$ac_try_echo") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7390 grep -v '^ *+' conftest.er1 >conftest.err
7392 cat conftest.err >&5
7393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
7398 ac_cv_header_sys_wait_h=yes
7400 $as_echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7403 ac_cv_header_sys_wait_h=no
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7408 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7409 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7410 if test $ac_cv_header_sys_wait_h = yes; then
7412 cat >>confdefs.h <<\_ACEOF
7413 #define HAVE_SYS_WAIT_H 1
7419 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7420 $as_echo_n "checking for struct utimbuf... " >&6; }
7421 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7422 $as_echo_n "(cached) " >&6
7424 cat >conftest.$ac_ext <<_ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 #ifdef TIME_WITH_SYS_TIME
7431 #include <sys/time.h>
7434 #ifdef HAVE_SYS_TIME_H
7435 #include <sys/time.h>
7446 static struct utimbuf x; x.actime = x.modtime;
7451 rm -f conftest.$ac_objext
7452 if { (ac_try="$ac_compile"
7454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7455 *) ac_try_echo
=$ac_try;;
7457 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7458 $as_echo "$ac_try_echo") >&5
7459 (eval "$ac_compile") 2>conftest.er1
7461 grep -v '^ *+' conftest.er1
>conftest.err
7463 cat conftest.err
>&5
7464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } && {
7466 test -z "$ac_c_werror_flag" ||
7467 test ! -s conftest.err
7468 } && test -s conftest.
$ac_objext; then
7469 emacs_cv_struct_utimbuf
=yes
7471 $as_echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.
$ac_ext >&5
7474 emacs_cv_struct_utimbuf
=no
7477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7479 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7480 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7481 if test $emacs_cv_struct_utimbuf = yes; then
7483 cat >>confdefs.h
<<\_ACEOF
7484 #define HAVE_STRUCT_UTIMBUF 1
7489 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7490 $as_echo_n "checking return type of signal handlers... " >&6; }
7491 if test "${ac_cv_type_signal+set}" = set; then
7492 $as_echo_n "(cached) " >&6
7494 cat >conftest.
$ac_ext <<_ACEOF
7497 cat confdefs.h
>>conftest.
$ac_ext
7498 cat >>conftest.
$ac_ext <<_ACEOF
7499 /* end confdefs.h. */
7500 #include <sys/types.h>
7506 return *(signal (0, 0)) (0) == 1;
7511 rm -f conftest.
$ac_objext
7512 if { (ac_try
="$ac_compile"
7514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7518 $as_echo "$ac_try_echo") >&5
7519 (eval "$ac_compile") 2>conftest.er1
7521 grep -v '^ *+' conftest.er1 >conftest.err
7523 cat conftest.err >&5
7524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && {
7526 test -z "$ac_c_werror_flag" ||
7527 test ! -s conftest.err
7528 } && test -s conftest.$ac_objext; then
7529 ac_cv_type_signal=int
7531 $as_echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7534 ac_cv_type_signal=void
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7540 $as_echo "$ac_cv_type_signal" >&6; }
7542 cat >>confdefs.h <<_ACEOF
7543 #define RETSIGTYPE $ac_cv_type_signal
7548 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7549 $as_echo_n "checking for speed_t... " >&6; }
7550 if test "${emacs_cv_speed_t+set}" = set; then
7551 $as_echo_n "(cached) " >&6
7553 cat >conftest.$ac_ext <<_ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 #include <termios.h>
7568 rm -f conftest.$ac_objext
7569 if { (ac_try="$ac_compile"
7571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7572 *) ac_try_echo
=$ac_try;;
7574 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7575 $as_echo "$ac_try_echo") >&5
7576 (eval "$ac_compile") 2>conftest.er1
7578 grep -v '^ *+' conftest.er1
>conftest.err
7580 cat conftest.err
>&5
7581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } && {
7583 test -z "$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7585 } && test -s conftest.
$ac_objext; then
7586 emacs_cv_speed_t
=yes
7588 $as_echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.
$ac_ext >&5
7594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7596 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7597 $as_echo "$emacs_cv_speed_t" >&6; }
7598 if test $emacs_cv_speed_t = yes; then
7600 cat >>confdefs.h
<<\_ACEOF
7601 #define HAVE_SPEED_T 1
7606 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7607 $as_echo_n "checking for struct timeval... " >&6; }
7608 if test "${emacs_cv_struct_timeval+set}" = set; then
7609 $as_echo_n "(cached) " >&6
7611 cat >conftest.
$ac_ext <<_ACEOF
7614 cat confdefs.h
>>conftest.
$ac_ext
7615 cat >>conftest.
$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 #ifdef TIME_WITH_SYS_TIME
7618 #include <sys/time.h>
7621 #ifdef HAVE_SYS_TIME_H
7622 #include <sys/time.h>
7630 static struct timeval x; x.tv_sec = x.tv_usec;
7635 rm -f conftest.
$ac_objext
7636 if { (ac_try
="$ac_compile"
7638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7642 $as_echo "$ac_try_echo") >&5
7643 (eval "$ac_compile") 2>conftest.er1
7645 grep -v '^ *+' conftest.er1 >conftest.err
7647 cat conftest.err >&5
7648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } && {
7650 test -z "$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7652 } && test -s conftest.$ac_objext; then
7653 emacs_cv_struct_timeval=yes
7655 $as_echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7658 emacs_cv_struct_timeval=no
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7664 $as_echo "$emacs_cv_struct_timeval" >&6; }
7665 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7666 if test $emacs_cv_struct_timeval = yes; then
7668 cat >>confdefs.h <<\_ACEOF
7669 #define HAVE_TIMEVAL 1
7674 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7675 $as_echo_n "checking for struct exception... " >&6; }
7676 if test "${emacs_cv_struct_exception+set}" = set; then
7677 $as_echo_n "(cached) " >&6
7679 cat >conftest.$ac_ext <<_ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7689 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7694 rm -f conftest.$ac_objext
7695 if { (ac_try="$ac_compile"
7697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7698 *) ac_try_echo
=$ac_try;;
7700 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7701 $as_echo "$ac_try_echo") >&5
7702 (eval "$ac_compile") 2>conftest.er1
7704 grep -v '^ *+' conftest.er1
>conftest.err
7706 cat conftest.err
>&5
7707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest.
$ac_objext; then
7712 emacs_cv_struct_exception
=yes
7714 $as_echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.
$ac_ext >&5
7717 emacs_cv_struct_exception
=no
7720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7722 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7723 $as_echo "$emacs_cv_struct_exception" >&6; }
7724 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7725 if test $emacs_cv_struct_exception != yes; then
7727 cat >>confdefs.h
<<\_ACEOF
7728 #define NO_MATHERR 1
7734 for ac_header
in sys
/socket.h
7736 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7737 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7738 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7739 $as_echo_n "checking for $ac_header... " >&6; }
7740 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7741 $as_echo_n "(cached) " >&6
7743 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7744 $as_echo "$as_val"'`
7745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7746 $as_echo "$ac_res" >&6; }
7748 # Is the header compilable?
7749 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7750 $as_echo_n "checking $ac_header usability... " >&6; }
7751 cat >conftest.
$ac_ext <<_ACEOF
7754 cat confdefs.h
>>conftest.
$ac_ext
7755 cat >>conftest.
$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7757 $ac_includes_default
7758 #include <$ac_header>
7760 rm -f conftest.
$ac_objext
7761 if { (ac_try
="$ac_compile"
7763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7767 $as_echo "$ac_try_echo") >&5
7768 (eval "$ac_compile") 2>conftest.er1
7770 grep -v '^ *+' conftest.er1 >conftest.err
7772 cat conftest.err >&5
7773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } && {
7775 test -z "$ac_c_werror_flag" ||
7776 test ! -s conftest.err
7777 } && test -s conftest.$ac_objext; then
7778 ac_header_compiler=yes
7780 $as_echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7783 ac_header_compiler=no
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7788 $as_echo "$ac_header_compiler" >&6; }
7790 # Is the header present?
7791 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7792 $as_echo_n "checking $ac_header presence... " >&6; }
7793 cat >conftest.$ac_ext <<_ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 #include <$ac_header>
7801 if { (ac_try="$ac_cpp conftest.$ac_ext"
7803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7804 *) ac_try_echo
=$ac_try;;
7806 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7807 $as_echo "$ac_try_echo") >&5
7808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7810 grep -v '^ *+' conftest.er1
>conftest.err
7812 cat conftest.err
>&5
7813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } >/dev
/null
&& {
7815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7818 ac_header_preproc
=yes
7820 $as_echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.
$ac_ext >&5
7823 ac_header_preproc
=no
7826 rm -f conftest.err conftest.
$ac_ext
7827 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7828 $as_echo "$ac_header_preproc" >&6; }
7830 # So? What about this header?
7831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7834 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7836 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7837 ac_header_preproc
=yes
7840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7841 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7843 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7845 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7847 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7851 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7855 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7856 $as_echo_n "checking for $ac_header... " >&6; }
7857 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7858 $as_echo_n "(cached) " >&6
7860 eval "$as_ac_Header=\$ac_header_preproc"
7862 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7863 $as_echo "$as_val"'`
7864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7865 $as_echo "$ac_res" >&6; }
7868 if test `eval 'as_val=${'$as_ac_Header'}
7869 $as_echo "$as_val"'` = yes; then
7870 cat >>confdefs.h
<<_ACEOF
7871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7879 for ac_header
in net
/if.h
7881 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7882 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7883 $as_echo_n "checking for $ac_header... " >&6; }
7884 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7885 $as_echo_n "(cached) " >&6
7887 cat >conftest.
$ac_ext <<_ACEOF
7890 cat confdefs.h
>>conftest.
$ac_ext
7891 cat >>conftest.
$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7893 $ac_includes_default
7894 #if HAVE_SYS_SOCKET_H
7895 #include <sys/socket.h>
7898 #include <$ac_header>
7900 rm -f conftest.
$ac_objext
7901 if { (ac_try
="$ac_compile"
7903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7907 $as_echo "$ac_try_echo") >&5
7908 (eval "$ac_compile") 2>conftest.er1
7910 grep -v '^ *+' conftest.er1 >conftest.err
7912 cat conftest.err >&5
7913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } && {
7915 test -z "$ac_c_werror_flag" ||
7916 test ! -s conftest.err
7917 } && test -s conftest.$ac_objext; then
7918 eval "$as_ac_Header=yes"
7920 $as_echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 eval "$as_ac_Header=no"
7926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928 ac_res=`eval 'as_val=${'$as_ac_Header'}
7929 $as_echo "$as_val"'`
7930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7931 $as_echo "$ac_res" >&6; }
7932 if test `eval 'as_val=${'$as_ac_Header'}
7933 $as_echo "$as_val"'` = yes; then
7934 cat >>confdefs.h <<_ACEOF
7935 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7943 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7944 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7945 if test "${ac_cv_struct_tm+set}" = set; then
7946 $as_echo_n "(cached) " >&6
7948 cat >conftest.$ac_ext <<_ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */
7954 #include <sys/types.h>
7961 int *p = &tm.tm_sec;
7967 rm -f conftest.$ac_objext
7968 if { (ac_try="$ac_compile"
7970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7971 *) ac_try_echo
=$ac_try;;
7973 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7974 $as_echo "$ac_try_echo") >&5
7975 (eval "$ac_compile") 2>conftest.er1
7977 grep -v '^ *+' conftest.er1
>conftest.err
7979 cat conftest.err
>&5
7980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } && {
7982 test -z "$ac_c_werror_flag" ||
7983 test ! -s conftest.err
7984 } && test -s conftest.
$ac_objext; then
7985 ac_cv_struct_tm
=time.h
7987 $as_echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.
$ac_ext >&5
7990 ac_cv_struct_tm
=sys
/time.h
7993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7995 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7996 $as_echo "$ac_cv_struct_tm" >&6; }
7997 if test $ac_cv_struct_tm = sys
/time.h
; then
7999 cat >>confdefs.h
<<\_ACEOF
8000 #define TM_IN_SYS_TIME 1
8005 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8006 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8007 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8008 $as_echo_n "(cached) " >&6
8010 cat >conftest.
$ac_ext <<_ACEOF
8013 cat confdefs.h
>>conftest.
$ac_ext
8014 cat >>conftest.
$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 #include <sys/types.h>
8017 #include <$ac_cv_struct_tm>
8023 static struct tm ac_aggr;
8024 if (ac_aggr.tm_zone)
8030 rm -f conftest.
$ac_objext
8031 if { (ac_try
="$ac_compile"
8033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8037 $as_echo "$ac_try_echo") >&5
8038 (eval "$ac_compile") 2>conftest.er1
8040 grep -v '^ *+' conftest.er1 >conftest.err
8042 cat conftest.err >&5
8043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } && {
8045 test -z "$ac_c_werror_flag" ||
8046 test ! -s conftest.err
8047 } && test -s conftest.$ac_objext; then
8048 ac_cv_member_struct_tm_tm_zone=yes
8050 $as_echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8053 cat >conftest.$ac_ext <<_ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 #include <sys/types.h>
8060 #include <$ac_cv_struct_tm>
8066 static struct tm ac_aggr;
8067 if (sizeof ac_aggr.tm_zone)
8073 rm -f conftest.$ac_objext
8074 if { (ac_try="$ac_compile"
8076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8077 *) ac_try_echo
=$ac_try;;
8079 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8080 $as_echo "$ac_try_echo") >&5
8081 (eval "$ac_compile") 2>conftest.er1
8083 grep -v '^ *+' conftest.er1
>conftest.err
8085 cat conftest.err
>&5
8086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } && {
8088 test -z "$ac_c_werror_flag" ||
8089 test ! -s conftest.err
8090 } && test -s conftest.
$ac_objext; then
8091 ac_cv_member_struct_tm_tm_zone
=yes
8093 $as_echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.
$ac_ext >&5
8096 ac_cv_member_struct_tm_tm_zone
=no
8099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8104 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8105 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8106 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8108 cat >>confdefs.h
<<_ACEOF
8109 #define HAVE_STRUCT_TM_TM_ZONE 1
8115 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8117 cat >>confdefs.h
<<\_ACEOF
8118 #define HAVE_TM_ZONE 1
8122 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8123 $as_echo_n "checking whether tzname is declared... " >&6; }
8124 if test "${ac_cv_have_decl_tzname+set}" = set; then
8125 $as_echo_n "(cached) " >&6
8127 cat >conftest.
$ac_ext <<_ACEOF
8130 cat confdefs.h
>>conftest.
$ac_ext
8131 cat >>conftest.
$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8146 rm -f conftest.
$ac_objext
8147 if { (ac_try
="$ac_compile"
8149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8153 $as_echo "$ac_try_echo") >&5
8154 (eval "$ac_compile") 2>conftest.er1
8156 grep -v '^ *+' conftest.er1 >conftest.err
8158 cat conftest.err >&5
8159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } && {
8161 test -z "$ac_c_werror_flag" ||
8162 test ! -s conftest.err
8163 } && test -s conftest.$ac_objext; then
8164 ac_cv_have_decl_tzname=yes
8166 $as_echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8169 ac_cv_have_decl_tzname=no
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8175 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8176 if test $ac_cv_have_decl_tzname = yes; then
8178 cat >>confdefs.h <<_ACEOF
8179 #define HAVE_DECL_TZNAME 1
8184 cat >>confdefs.h <<_ACEOF
8185 #define HAVE_DECL_TZNAME 0
8192 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8193 $as_echo_n "checking for tzname... " >&6; }
8194 if test "${ac_cv_var_tzname+set}" = set; then
8195 $as_echo_n "(cached) " >&6
8197 cat >conftest.$ac_ext <<_ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8204 #if !HAVE_DECL_TZNAME
8205 extern char *tzname[];
8211 return tzname[0][0];
8216 rm -f conftest.$ac_objext conftest$ac_exeext
8217 if { (ac_try="$ac_link"
8219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8220 *) ac_try_echo
=$ac_try;;
8222 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8223 $as_echo "$ac_try_echo") >&5
8224 (eval "$ac_link") 2>conftest.er1
8226 grep -v '^ *+' conftest.er1
>conftest.err
8228 cat conftest.err
>&5
8229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } && {
8231 test -z "$ac_c_werror_flag" ||
8232 test ! -s conftest.err
8233 } && test -s conftest
$ac_exeext && {
8234 test "$cross_compiling" = yes ||
8235 $as_test_x conftest
$ac_exeext
8237 ac_cv_var_tzname
=yes
8239 $as_echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.
$ac_ext >&5
8245 rm -rf conftest.dSYM
8246 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8247 conftest
$ac_exeext conftest.
$ac_ext
8249 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8250 $as_echo "$ac_cv_var_tzname" >&6; }
8251 if test $ac_cv_var_tzname = yes; then
8253 cat >>confdefs.h
<<\_ACEOF
8254 #define HAVE_TZNAME 1
8260 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8261 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8262 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8263 $as_echo_n "(cached) " >&6
8265 cat >conftest.
$ac_ext <<_ACEOF
8268 cat confdefs.h
>>conftest.
$ac_ext
8269 cat >>conftest.
$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8276 static struct tm ac_aggr;
8277 if (ac_aggr.tm_gmtoff)
8283 rm -f conftest.
$ac_objext
8284 if { (ac_try
="$ac_compile"
8286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8290 $as_echo "$ac_try_echo") >&5
8291 (eval "$ac_compile") 2>conftest.er1
8293 grep -v '^ *+' conftest.er1 >conftest.err
8295 cat conftest.err >&5
8296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } && {
8298 test -z "$ac_c_werror_flag" ||
8299 test ! -s conftest.err
8300 } && test -s conftest.$ac_objext; then
8301 ac_cv_member_struct_tm_tm_gmtoff=yes
8303 $as_echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8306 cat >conftest.$ac_ext <<_ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8317 static struct tm ac_aggr;
8318 if (sizeof ac_aggr.tm_gmtoff)
8324 rm -f conftest.$ac_objext
8325 if { (ac_try="$ac_compile"
8327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8328 *) ac_try_echo
=$ac_try;;
8330 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8331 $as_echo "$ac_try_echo") >&5
8332 (eval "$ac_compile") 2>conftest.er1
8334 grep -v '^ *+' conftest.er1
>conftest.err
8336 cat conftest.err
>&5
8337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } && {
8339 test -z "$ac_c_werror_flag" ||
8340 test ! -s conftest.err
8341 } && test -s conftest.
$ac_objext; then
8342 ac_cv_member_struct_tm_tm_gmtoff
=yes
8344 $as_echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.
$ac_ext >&5
8347 ac_cv_member_struct_tm_tm_gmtoff
=no
8350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8355 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8356 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8357 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8359 cat >>confdefs.h
<<\_ACEOF
8360 #define HAVE_TM_GMTOFF 1
8365 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8366 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8367 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8368 $as_echo_n "(cached) " >&6
8370 cat >conftest.
$ac_ext <<_ACEOF
8373 cat confdefs.h
>>conftest.
$ac_ext
8374 cat >>conftest.
$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 $ac_includes_default
8377 #if HAVE_SYS_SOCKET_H
8378 #include <sys/socket.h>
8387 static struct ifreq ac_aggr;
8388 if (ac_aggr.ifr_flags)
8394 rm -f conftest.
$ac_objext
8395 if { (ac_try
="$ac_compile"
8397 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8401 $as_echo "$ac_try_echo") >&5
8402 (eval "$ac_compile") 2>conftest.er1
8404 grep -v '^ *+' conftest.er1 >conftest.err
8406 cat conftest.err >&5
8407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } && {
8409 test -z "$ac_c_werror_flag" ||
8410 test ! -s conftest.err
8411 } && test -s conftest.$ac_objext; then
8412 ac_cv_member_struct_ifreq_ifr_flags=yes
8414 $as_echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8417 cat >conftest.$ac_ext <<_ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8423 $ac_includes_default
8424 #if HAVE_SYS_SOCKET_H
8425 #include <sys/socket.h>
8434 static struct ifreq ac_aggr;
8435 if (sizeof ac_aggr.ifr_flags)
8441 rm -f conftest.$ac_objext
8442 if { (ac_try="$ac_compile"
8444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8445 *) ac_try_echo
=$ac_try;;
8447 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8448 $as_echo "$ac_try_echo") >&5
8449 (eval "$ac_compile") 2>conftest.er1
8451 grep -v '^ *+' conftest.er1
>conftest.err
8453 cat conftest.err
>&5
8454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } && {
8456 test -z "$ac_c_werror_flag" ||
8457 test ! -s conftest.err
8458 } && test -s conftest.
$ac_objext; then
8459 ac_cv_member_struct_ifreq_ifr_flags
=yes
8461 $as_echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.
$ac_ext >&5
8464 ac_cv_member_struct_ifreq_ifr_flags
=no
8467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8472 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8473 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8474 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8476 cat >>confdefs.h
<<_ACEOF
8477 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8482 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8483 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8484 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8485 $as_echo_n "(cached) " >&6
8487 cat >conftest.
$ac_ext <<_ACEOF
8490 cat confdefs.h
>>conftest.
$ac_ext
8491 cat >>conftest.
$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8493 $ac_includes_default
8494 #if HAVE_SYS_SOCKET_H
8495 #include <sys/socket.h>
8504 static struct ifreq ac_aggr;
8505 if (ac_aggr.ifr_hwaddr)
8511 rm -f conftest.
$ac_objext
8512 if { (ac_try
="$ac_compile"
8514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8518 $as_echo "$ac_try_echo") >&5
8519 (eval "$ac_compile") 2>conftest.er1
8521 grep -v '^ *+' conftest.er1 >conftest.err
8523 cat conftest.err >&5
8524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } && {
8526 test -z "$ac_c_werror_flag" ||
8527 test ! -s conftest.err
8528 } && test -s conftest.$ac_objext; then
8529 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8531 $as_echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8534 cat >conftest.$ac_ext <<_ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 $ac_includes_default
8541 #if HAVE_SYS_SOCKET_H
8542 #include <sys/socket.h>
8551 static struct ifreq ac_aggr;
8552 if (sizeof ac_aggr.ifr_hwaddr)
8558 rm -f conftest.$ac_objext
8559 if { (ac_try="$ac_compile"
8561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8562 *) ac_try_echo
=$ac_try;;
8564 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8565 $as_echo "$ac_try_echo") >&5
8566 (eval "$ac_compile") 2>conftest.er1
8568 grep -v '^ *+' conftest.er1
>conftest.err
8570 cat conftest.err
>&5
8571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && {
8573 test -z "$ac_c_werror_flag" ||
8574 test ! -s conftest.err
8575 } && test -s conftest.
$ac_objext; then
8576 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8578 $as_echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.
$ac_ext >&5
8581 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8589 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8590 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8591 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8593 cat >>confdefs.h
<<_ACEOF
8594 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8599 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8600 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8601 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8602 $as_echo_n "(cached) " >&6
8604 cat >conftest.
$ac_ext <<_ACEOF
8607 cat confdefs.h
>>conftest.
$ac_ext
8608 cat >>conftest.
$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610 $ac_includes_default
8611 #if HAVE_SYS_SOCKET_H
8612 #include <sys/socket.h>
8621 static struct ifreq ac_aggr;
8622 if (ac_aggr.ifr_netmask)
8628 rm -f conftest.
$ac_objext
8629 if { (ac_try
="$ac_compile"
8631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8635 $as_echo "$ac_try_echo") >&5
8636 (eval "$ac_compile") 2>conftest.er1
8638 grep -v '^ *+' conftest.er1 >conftest.err
8640 cat conftest.err >&5
8641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } && {
8643 test -z "$ac_c_werror_flag" ||
8644 test ! -s conftest.err
8645 } && test -s conftest.$ac_objext; then
8646 ac_cv_member_struct_ifreq_ifr_netmask=yes
8648 $as_echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8651 cat >conftest.$ac_ext <<_ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 $ac_includes_default
8658 #if HAVE_SYS_SOCKET_H
8659 #include <sys/socket.h>
8668 static struct ifreq ac_aggr;
8669 if (sizeof ac_aggr.ifr_netmask)
8675 rm -f conftest.$ac_objext
8676 if { (ac_try="$ac_compile"
8678 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8679 *) ac_try_echo
=$ac_try;;
8681 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8682 $as_echo "$ac_try_echo") >&5
8683 (eval "$ac_compile") 2>conftest.er1
8685 grep -v '^ *+' conftest.er1
>conftest.err
8687 cat conftest.err
>&5
8688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } && {
8690 test -z "$ac_c_werror_flag" ||
8691 test ! -s conftest.err
8692 } && test -s conftest.
$ac_objext; then
8693 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8695 $as_echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.
$ac_ext >&5
8698 ac_cv_member_struct_ifreq_ifr_netmask
=no
8701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8706 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8707 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8708 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8710 cat >>confdefs.h
<<_ACEOF
8711 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8716 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8717 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8718 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8719 $as_echo_n "(cached) " >&6
8721 cat >conftest.
$ac_ext <<_ACEOF
8724 cat confdefs.h
>>conftest.
$ac_ext
8725 cat >>conftest.
$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8727 $ac_includes_default
8728 #if HAVE_SYS_SOCKET_H
8729 #include <sys/socket.h>
8738 static struct ifreq ac_aggr;
8739 if (ac_aggr.ifr_broadaddr)
8745 rm -f conftest.
$ac_objext
8746 if { (ac_try
="$ac_compile"
8748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8752 $as_echo "$ac_try_echo") >&5
8753 (eval "$ac_compile") 2>conftest.er1
8755 grep -v '^ *+' conftest.er1 >conftest.err
8757 cat conftest.err >&5
8758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } && {
8760 test -z "$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8762 } && test -s conftest.$ac_objext; then
8763 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8765 $as_echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8768 cat >conftest.$ac_ext <<_ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 $ac_includes_default
8775 #if HAVE_SYS_SOCKET_H
8776 #include <sys/socket.h>
8785 static struct ifreq ac_aggr;
8786 if (sizeof ac_aggr.ifr_broadaddr)
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 ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8799 $as_echo "$ac_try_echo") >&5
8800 (eval "$ac_compile") 2>conftest.er1
8802 grep -v '^ *+' conftest.er1
>conftest.err
8804 cat conftest.err
>&5
8805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } && {
8807 test -z "$ac_c_werror_flag" ||
8808 test ! -s conftest.err
8809 } && test -s conftest.
$ac_objext; then
8810 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8812 $as_echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.
$ac_ext >&5
8815 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8818 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8823 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8824 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8825 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8827 cat >>confdefs.h
<<_ACEOF
8828 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8833 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8834 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8835 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8836 $as_echo_n "(cached) " >&6
8838 cat >conftest.
$ac_ext <<_ACEOF
8841 cat confdefs.h
>>conftest.
$ac_ext
8842 cat >>conftest.
$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8844 $ac_includes_default
8845 #if HAVE_SYS_SOCKET_H
8846 #include <sys/socket.h>
8855 static struct ifreq ac_aggr;
8856 if (ac_aggr.ifr_addr)
8862 rm -f conftest.
$ac_objext
8863 if { (ac_try
="$ac_compile"
8865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8869 $as_echo "$ac_try_echo") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8872 grep -v '^ *+' conftest.er1 >conftest.err
8874 cat conftest.err >&5
8875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_c_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.$ac_objext; then
8880 ac_cv_member_struct_ifreq_ifr_addr=yes
8882 $as_echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8885 cat >conftest.$ac_ext <<_ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 $ac_includes_default
8892 #if HAVE_SYS_SOCKET_H
8893 #include <sys/socket.h>
8902 static struct ifreq ac_aggr;
8903 if (sizeof ac_aggr.ifr_addr)
8909 rm -f conftest.$ac_objext
8910 if { (ac_try="$ac_compile"
8912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8913 *) ac_try_echo
=$ac_try;;
8915 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8916 $as_echo "$ac_try_echo") >&5
8917 (eval "$ac_compile") 2>conftest.er1
8919 grep -v '^ *+' conftest.er1
>conftest.err
8921 cat conftest.err
>&5
8922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && {
8924 test -z "$ac_c_werror_flag" ||
8925 test ! -s conftest.err
8926 } && test -s conftest.
$ac_objext; then
8927 ac_cv_member_struct_ifreq_ifr_addr
=yes
8929 $as_echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.
$ac_ext >&5
8932 ac_cv_member_struct_ifreq_ifr_addr
=no
8935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8940 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8941 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8942 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8944 cat >>confdefs.h
<<_ACEOF
8945 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8953 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8954 $as_echo_n "checking for function prototypes... " >&6; }
8955 if test "$ac_cv_prog_cc_c89" != no
; then
8956 { $as_echo "$as_me:$LINENO: result: yes" >&5
8957 $as_echo "yes" >&6; }
8959 cat >>confdefs.h
<<\_ACEOF
8960 #define PROTOTYPES 1
8964 cat >>confdefs.h
<<\_ACEOF
8965 #define __PROTOTYPES 1
8969 { $as_echo "$as_me:$LINENO: result: no" >&5
8970 $as_echo "no" >&6; }
8973 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8974 $as_echo_n "checking for working volatile... " >&6; }
8975 if test "${ac_cv_c_volatile+set}" = set; then
8976 $as_echo_n "(cached) " >&6
8978 cat >conftest.
$ac_ext <<_ACEOF
8981 cat confdefs.h
>>conftest.
$ac_ext
8982 cat >>conftest.
$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8990 int * volatile y = (int *) 0;
8996 rm -f conftest.
$ac_objext
8997 if { (ac_try
="$ac_compile"
8999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9000 *) ac_try_echo=$ac_try;;
9002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9003 $as_echo "$ac_try_echo") >&5
9004 (eval "$ac_compile") 2>conftest.er1
9006 grep -v '^ *+' conftest.er1 >conftest.err
9008 cat conftest.err >&5
9009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } && {
9011 test -z "$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 } && test -s conftest.$ac_objext; then
9014 ac_cv_c_volatile=yes
9016 $as_echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9025 $as_echo "$ac_cv_c_volatile" >&6; }
9026 if test $ac_cv_c_volatile = no; then
9028 cat >>confdefs.h <<\_ACEOF
9029 #define volatile /**/
9034 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9035 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9036 if test "${ac_cv_c_const+set}" = set; then
9037 $as_echo_n "(cached) " >&6
9039 cat >conftest.$ac_ext <<_ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9049 /* FIXME: Include the comments suggested by Paul. */
9051 /* Ultrix mips cc rejects this. */
9052 typedef int charset[2];
9054 /* SunOS 4.1.1 cc rejects this. */
9055 char const *const *pcpcc;
9057 /* NEC SVR4.0.2 mips cc rejects this. */
9058 struct point {int x, y;};
9059 static struct point const zero = {0,0};
9060 /* AIX XL C 1.02.0.0 rejects this.
9061 It does not let you subtract one const X* pointer from another in
9062 an arm of an if-expression whose if-part is not a constant
9064 const char *g = "string";
9065 pcpcc = &g + (g ? g-g : 0);
9066 /* HPUX 7.0 cc rejects these. */
9068 ppc = (char**) pcpcc;
9069 pcpcc = (char const *const *) ppc;
9070 { /* SCO 3.2v4 cc rejects this. */
9072 char const *s = 0 ? (char *) 0 : (char const *) 0;
9077 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9079 const int *foo = &x[0];
9082 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9083 typedef const int *iptr;
9087 { /* AIX XL C 1.02.0.0 rejects this saying
9088 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9089 struct s { int j; const int *ap[3]; };
9090 struct s *b; b->j = 5;
9092 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9096 return !cs[0] && !zero.x;
9103 rm -f conftest.$ac_objext
9104 if { (ac_try="$ac_compile"
9106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9107 *) ac_try_echo
=$ac_try;;
9109 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9110 $as_echo "$ac_try_echo") >&5
9111 (eval "$ac_compile") 2>conftest.er1
9113 grep -v '^ *+' conftest.er1
>conftest.err
9115 cat conftest.err
>&5
9116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } && {
9118 test -z "$ac_c_werror_flag" ||
9119 test ! -s conftest.err
9120 } && test -s conftest.
$ac_objext; then
9123 $as_echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.
$ac_ext >&5
9129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9131 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9132 $as_echo "$ac_cv_c_const" >&6; }
9133 if test $ac_cv_c_const = no
; then
9135 cat >>confdefs.h
<<\_ACEOF
9141 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9142 $as_echo_n "checking for void * support... " >&6; }
9143 if test "${emacs_cv_void_star+set}" = set; then
9144 $as_echo_n "(cached) " >&6
9146 cat >conftest.
$ac_ext <<_ACEOF
9149 cat confdefs.h
>>conftest.
$ac_ext
9150 cat >>conftest.
$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9161 rm -f conftest.
$ac_objext
9162 if { (ac_try
="$ac_compile"
9164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9168 $as_echo "$ac_try_echo") >&5
9169 (eval "$ac_compile") 2>conftest.er1
9171 grep -v '^ *+' conftest.er1 >conftest.err
9173 cat conftest.err >&5
9174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } && {
9176 test -z "$ac_c_werror_flag" ||
9177 test ! -s conftest.err
9178 } && test -s conftest.$ac_objext; then
9179 emacs_cv_void_star=yes
9181 $as_echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9184 emacs_cv_void_star=no
9187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9189 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9190 $as_echo "$emacs_cv_void_star" >&6; }
9191 if test $emacs_cv_void_star = yes; then
9192 cat >>confdefs.h <<\_ACEOF
9193 #define POINTER_TYPE void
9197 cat >>confdefs.h <<\_ACEOF
9198 #define POINTER_TYPE char
9207 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9208 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9210 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9211 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9212 $as_echo_n "(cached) " >&6
9214 cat >conftest.make <<\_ACEOF
9217 @echo '@@@%%%=$(MAKE)=@@@%%%'
9219 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9220 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9222 eval ac_cv_prog_make_${ac_make}_set=yes;;
9224 eval ac_cv_prog_make_${ac_make}_set=no;;
9228 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9229 { $as_echo "$as_me:$LINENO: result: yes" >&5
9230 $as_echo "yes" >&6; }
9233 { $as_echo "$as_me:$LINENO: result: no" >&5
9234 $as_echo "no" >&6; }
9235 SET_MAKE="MAKE=${MAKE-make}"
9239 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9240 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9241 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9243 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9244 if test "x$testval" != x; then
9247 ac_enable_autodepend=no
9249 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9250 $as_echo "$HAVE_GNU_MAKE" >&6; }
9251 if test $HAVE_GNU_MAKE = yes; then
9252 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9253 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9254 SAVE_CFLAGS="$CFLAGS"
9255 CFLAGS="$CFLAGS -MMD -MF deps.d"
9256 cat >conftest.$ac_ext <<_ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */
9271 rm -f conftest.$ac_objext
9272 if { (ac_try="$ac_compile"
9274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9275 *) ac_try_echo
=$ac_try;;
9277 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9278 $as_echo "$ac_try_echo") >&5
9279 (eval "$ac_compile") 2>conftest.er1
9281 grep -v '^ *+' conftest.er1
>conftest.err
9283 cat conftest.err
>&5
9284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } && {
9286 test -z "$ac_c_werror_flag" ||
9287 test ! -s conftest.err
9288 } && test -s conftest.
$ac_objext; then
9291 $as_echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.
$ac_ext >&5
9294 ac_enable_autodepend
=no
9297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9298 CFLAGS
="$SAVE_CFLAGS"
9299 test -f deps.d || ac_enable_autodepend
=no
9301 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9302 $as_echo "$ac_enable_autodepend" >&6; }
9304 if test $ac_enable_autodepend = yes; then
9306 cat >>confdefs.h
<<\_ACEOF
9307 #define AUTO_DEPEND 1
9313 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9314 $as_echo_n "checking for long file names... " >&6; }
9315 if test "${ac_cv_sys_long_file_names+set}" = set; then
9316 $as_echo_n "(cached) " >&6
9318 ac_cv_sys_long_file_names
=yes
9319 # Test for long file names in all the places we know might matter:
9320 # . the current directory, where building will happen
9321 # $prefix/lib where we will be installing things
9322 # $exec_prefix/lib likewise
9323 # $TMPDIR if set, where it might want to write temporary files
9324 # /tmp where it might want to write temporary files
9327 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9328 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9329 # in the usual case where exec_prefix is '${prefix}'.
9331 . |
/* | ?
:[\\/]*) ;; #(
9334 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9335 ac_xdir
=$ac_dir/cf$$
9336 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9337 ac_tf1
=$ac_xdir/conftest9012345
9338 ac_tf2
=$ac_xdir/conftest9012346
9339 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9340 ac_cv_sys_long_file_names
=no
9341 rm -f -r "$ac_xdir" 2>/dev
/null
9342 test $ac_cv_sys_long_file_names = no
&& break
9345 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9346 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9347 if test $ac_cv_sys_long_file_names = yes; then
9349 cat >>confdefs.h
<<\_ACEOF
9350 #define HAVE_LONG_FILE_NAMES 1
9356 #### Choose a window system.
9358 { $as_echo "$as_me:$LINENO: checking for X" >&5
9359 $as_echo_n "checking for X... " >&6; }
9362 # Check whether --with-x was given.
9363 if test "${with_x+set}" = set; then
9367 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9368 if test "x$with_x" = xno
; then
9369 # The user explicitly disabled X.
9372 case $x_includes,$x_libraries in #(
9373 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9374 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9375 { (exit 1); exit 1; }; };; #(
9376 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9377 $as_echo_n "(cached) " >&6
9379 # One or both of the vars are not set, and there is no cached value.
9380 ac_x_includes
=no ac_x_libraries
=no
9381 rm -f -r conftest.dir
9382 if mkdir conftest.dir
; then
9384 cat >Imakefile
<<'_ACEOF'
9386 @echo incroot='${INCROOT}'
9388 @echo usrlibdir='${USRLIBDIR}'
9390 @echo libdir='${LIBDIR}'
9392 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9393 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9394 for ac_var
in incroot usrlibdir libdir
; do
9395 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9397 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9398 for ac_extension
in a so sl dylib la dll
; do
9399 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9400 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9401 ac_im_usrlibdir
=$ac_im_libdir; break
9404 # Screen out bogus values from the imake configuration. They are
9405 # bogus both because they are the default anyway, and because
9406 # using them would break gcc on systems where it needs fixed includes.
9407 case $ac_im_incroot in
9408 /usr
/include
) ac_x_includes
= ;;
9409 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9411 case $ac_im_usrlibdir in
9413 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9417 rm -f -r conftest.dir
9420 # Standard set of common directories for X headers.
9421 # Check X11 before X11Rn because it is often a symlink to the current release.
9433 /usr/local/X11/include
9434 /usr/local/X11R6/include
9435 /usr/local/X11R5/include
9436 /usr/local/X11R4/include
9438 /usr/local/include/X11
9439 /usr/local/include/X11R6
9440 /usr/local/include/X11R5
9441 /usr/local/include/X11R4
9445 /usr/XFree86/include/X11
9449 /usr/unsupported/include
9451 /usr/local/x11r5/include
9452 /usr/lpp/Xamples/include
9454 /usr/openwin/include
9455 /usr/openwin/share/include'
9457 if test "$ac_x_includes" = no
; then
9458 # Guess where to find include files, by looking for Xlib.h.
9459 # First, try using that file with no special directory specified.
9460 cat >conftest.
$ac_ext <<_ACEOF
9463 cat confdefs.h
>>conftest.
$ac_ext
9464 cat >>conftest.
$ac_ext <<_ACEOF
9465 /* end confdefs.h. */
9466 #include <X11/Xlib.h>
9468 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9474 $as_echo "$ac_try_echo") >&5
9475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9477 grep -v '^ *+' conftest.er1 >conftest.err
9479 cat conftest.err >&5
9480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } >/dev/null && {
9482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9483 test ! -s conftest.err
9485 # We can compile using X headers with no special include directory.
9488 $as_echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9491 for ac_dir in $ac_x_header_dirs; do
9492 if test -r "$ac_dir/X11/Xlib.h"; then
9493 ac_x_includes=$ac_dir
9499 rm -f conftest.err conftest.$ac_ext
9500 fi # $ac_x_includes = no
9502 if test "$ac_x_libraries" = no; then
9503 # Check for the libraries.
9504 # See if we find them without any special options.
9505 # Don't add to $LIBS permanently.
9508 cat >conftest.$ac_ext <<_ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 #include <X11/Xlib.h>
9523 rm -f conftest.$ac_objext conftest$ac_exeext
9524 if { (ac_try="$ac_link"
9526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9527 *) ac_try_echo
=$ac_try;;
9529 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9530 $as_echo "$ac_try_echo") >&5
9531 (eval "$ac_link") 2>conftest.er1
9533 grep -v '^ *+' conftest.er1
>conftest.err
9535 cat conftest.err
>&5
9536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } && {
9538 test -z "$ac_c_werror_flag" ||
9539 test ! -s conftest.err
9540 } && test -s conftest
$ac_exeext && {
9541 test "$cross_compiling" = yes ||
9542 $as_test_x conftest
$ac_exeext
9545 # We can link X programs with no special library path.
9548 $as_echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.
$ac_ext >&5
9552 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9554 # Don't even attempt the hair of trying to link an X program!
9555 for ac_extension
in a so sl dylib la dll
; do
9556 if test -r "$ac_dir/libX11.$ac_extension"; then
9557 ac_x_libraries
=$ac_dir
9564 rm -rf conftest.dSYM
9565 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9566 conftest
$ac_exeext conftest.
$ac_ext
9567 fi # $ac_x_libraries = no
9569 case $ac_x_includes,$ac_x_libraries in #(
9571 # Didn't find X, or a directory has "'" in its name.
9572 ac_cv_have_x
="have_x=no";; #(
9574 # Record where we found X for the cache.
9575 ac_cv_have_x
="have_x=yes\
9576 ac_x_includes='$ac_x_includes'\
9577 ac_x_libraries='$ac_x_libraries'"
9583 eval "$ac_cv_have_x"
9586 if test "$have_x" != yes; then
9587 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9588 $as_echo "$have_x" >&6; }
9591 # If each of the values was on the command line, it overrides each guess.
9592 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9593 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9594 # Update the cache value to reflect the command line values.
9595 ac_cv_have_x
="have_x=yes\
9596 ac_x_includes='$x_includes'\
9597 ac_x_libraries='$x_libraries'"
9598 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9599 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9602 if test "$no_x" = yes; then
9608 ## Workaround for bug in autoconf <= 2.62.
9609 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9610 ## No need to do anything special for these standard directories.
9611 ## This is an experiment, take it out if it causes problems.
9612 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9614 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9618 if test "${x_libraries}" != NONE
; then
9619 if test -n "${x_libraries}"; then
9620 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9621 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9623 x_default_search_path
=""
9624 x_search_path
=${x_libraries}
9625 if test -z "${x_search_path}"; then
9626 x_search_path
=/usr
/lib
9628 for x_library
in `echo ${x_search_path}: | \
9629 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9631 ${x_library}/X11/%L/%T/%N%C%S:\
9632 ${x_library}/X11/%l/%T/%N%C%S:\
9633 ${x_library}/X11/%T/%N%C%S:\
9634 ${x_library}/X11/%L/%T/%N%S:\
9635 ${x_library}/X11/%l/%T/%N%S:\
9636 ${x_library}/X11/%T/%N%S"
9637 if test x
"${x_default_search_path}" = x
; then
9638 x_default_search_path
=${x_search_path}
9640 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9644 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9645 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9648 if test x
"${x_includes}" = x
; then
9649 bitmapdir
=/usr
/include
/X11
/bitmaps
9651 # accumulate include directories that have X11 bitmap subdirectories
9653 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9654 if test -d "${bmd}/X11/bitmaps"; then
9655 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9657 if test -d "${bmd}/bitmaps"; then
9658 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9661 if test ${bmd_acc} != "dummyval"; then
9662 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9669 tmp_CPPFLAGS
="$CPPFLAGS"
9670 tmp_CFLAGS
="$CFLAGS"
9671 CPPFLAGS
="$CPPFLAGS -x objective-c"
9672 CFLAGS
="$CFLAGS -x objective-c"
9673 if test "${with_ns}" != no
; then
9674 if test "${opsys}" = darwin
; then
9676 ns_appdir
=`pwd`/nextstep
/Emacs.app
9677 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9678 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9679 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9680 elif test -f $GNUSTEP_CONFIG_FILE; then
9682 ns_appdir
=`pwd`/nextstep
/Emacs.app
9683 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9684 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9685 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9686 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9687 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9688 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9689 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9690 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9691 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9692 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9694 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9695 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9696 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9697 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9698 $as_echo_n "(cached) " >&6
9700 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9701 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9703 # Is the header compilable?
9704 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9705 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9706 cat >conftest.
$ac_ext <<_ACEOF
9709 cat confdefs.h
>>conftest.
$ac_ext
9710 cat >>conftest.
$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9712 $ac_includes_default
9713 #include <AppKit/AppKit.h>
9715 rm -f conftest.
$ac_objext
9716 if { (ac_try
="$ac_compile"
9718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9722 $as_echo "$ac_try_echo") >&5
9723 (eval "$ac_compile") 2>conftest.er1
9725 grep -v '^ *+' conftest.er1 >conftest.err
9727 cat conftest.err >&5
9728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } && {
9730 test -z "$ac_c_werror_flag" ||
9731 test ! -s conftest.err
9732 } && test -s conftest.$ac_objext; then
9733 ac_header_compiler=yes
9735 $as_echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9738 ac_header_compiler=no
9741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9742 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9743 $as_echo "$ac_header_compiler" >&6; }
9745 # Is the header present?
9746 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9747 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9748 cat >conftest.$ac_ext <<_ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 #include <AppKit/AppKit.h>
9756 if { (ac_try="$ac_cpp conftest.$ac_ext"
9758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9759 *) ac_try_echo
=$ac_try;;
9761 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9762 $as_echo "$ac_try_echo") >&5
9763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9765 grep -v '^ *+' conftest.er1
>conftest.err
9767 cat conftest.err
>&5
9768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } >/dev
/null
&& {
9770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9771 test ! -s conftest.err
9773 ac_header_preproc
=yes
9775 $as_echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.
$ac_ext >&5
9778 ac_header_preproc
=no
9781 rm -f conftest.err conftest.
$ac_ext
9782 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9783 $as_echo "$ac_header_preproc" >&6; }
9785 # So? What about this header?
9786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9788 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9789 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9790 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9791 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9792 ac_header_preproc
=yes
9795 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9796 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9797 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9798 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9799 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9800 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9801 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9802 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9803 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9804 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9805 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9806 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9810 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9811 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9812 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9813 $as_echo_n "(cached) " >&6
9815 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
9817 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9818 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9821 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9824 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9825 files are missing or cannot be compiled." >&5
9826 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9827 files are missing or cannot be compiled." >&2;}
9828 { (exit 1); exit 1; }; }
9832 NS_HAVE_NSINTEGER
=yes
9833 cat >conftest.
$ac_ext <<_ACEOF
9836 cat confdefs.h
>>conftest.
$ac_ext
9837 cat >>conftest.
$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839 #include <Foundation/NSObjCRuntime.h>
9848 rm -f conftest.
$ac_objext
9849 if { (ac_try
="$ac_compile"
9851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9855 $as_echo "$ac_try_echo") >&5
9856 (eval "$ac_compile") 2>conftest.er1
9858 grep -v '^ *+' conftest.er1 >conftest.err
9860 cat conftest.err >&5
9861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } && {
9863 test -z "$ac_c_werror_flag" ||
9864 test ! -s conftest.err
9865 } && test -s conftest.$ac_objext; then
9866 ns_have_nsinteger=yes
9868 $as_echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9871 ns_have_nsinteger=no
9874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875 if test $ns_have_nsinteger = no; then
9876 NS_HAVE_NSINTEGER=no
9879 if test "${HAVE_NS}" = yes; then
9880 window_system=nextstep
9882 # set up packaging dirs
9883 exec_prefix=${ns_appbindir}
9884 libexecdir=${ns_appbindir}/libexec
9885 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9886 prefix=${ns_appresdir}
9889 CFLAGS="$tmp_CFLAGS"
9890 CPPFLAGS="$tmp_CPPFLAGS"
9892 case "${window_system}" in
9896 case "${with_x_toolkit}" in
9897 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9898 motif ) USE_X_TOOLKIT=MOTIF ;;
9900 USE_X_TOOLKIT=none ;;
9901 no ) USE_X_TOOLKIT=none ;;
9902 * ) USE_X_TOOLKIT=maybe ;;
9912 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9913 # Extract the first word of "X", so it can be a program name with args.
9914 set dummy X; ac_word=$2
9915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9916 $as_echo_n "checking for $ac_word... " >&6; }
9917 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9918 $as_echo_n "(cached) " >&6
9920 if test -n "$HAVE_XSERVER"; then
9921 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930 ac_cv_prog_HAVE_XSERVER="true"
9931 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9938 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9941 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9942 if test -n "$HAVE_XSERVER"; then
9943 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9944 $as_echo "$HAVE_XSERVER" >&6; }
9946 { $as_echo "$as_me:$LINENO: result: no" >&5
9947 $as_echo "no" >&6; }
9951 if test "$HAVE_XSERVER" = true ||
9952 test -n "$DISPLAY" ||
9953 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9954 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9955 were found. You should install the relevant development files for X
9956 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9957 sure you have development files for image handling, i.e.
9958 tiff, gif, jpeg, png and xpm.
9959 If you are sure you want Emacs compiled without X window support, pass
9962 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9963 were found. You should install the relevant development files for X
9964 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9965 sure you have development files for image handling, i.e.
9966 tiff, gif, jpeg, png and xpm.
9967 If you are sure you want Emacs compiled without X window support, pass
9969 to configure." >&2;}
9970 { (exit 1); exit 1; }; }
9974 ### If we're using X11, we should use the X menu package.
9977 yes ) HAVE_MENUS=yes ;;
9980 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9981 # Assume not, until told otherwise.
9984 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9985 $as_echo_n "checking for malloc_get_state... " >&6; }
9986 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9987 $as_echo_n "(cached) " >&6
9989 cat >conftest.$ac_ext <<_ACEOF
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h. */
9995 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9997 #define malloc_get_state innocuous_malloc_get_state
9999 /* System header to define __stub macros and hopefully few prototypes,
10000 which can conflict with char malloc_get_state (); below.
10001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10002 <limits.h> exists even on freestanding compilers. */
10005 # include <limits.h>
10007 # include <assert.h>
10010 #undef malloc_get_state
10012 /* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
10018 char malloc_get_state ();
10019 /* The GNU C library defines this for functions which it implements
10020 to always fail with ENOSYS. Some functions are actually named
10021 something starting with __ and the normal name is an alias. */
10022 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10029 return malloc_get_state ();
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (ac_try="$ac_link"
10036 case "(($ac_try" in
10037 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10038 *) ac_try_echo
=$ac_try;;
10040 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10041 $as_echo "$ac_try_echo") >&5
10042 (eval "$ac_link") 2>conftest.er1
10044 grep -v '^ *+' conftest.er1
>conftest.err
10046 cat conftest.err
>&5
10047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && {
10049 test -z "$ac_c_werror_flag" ||
10050 test ! -s conftest.err
10051 } && test -s conftest
$ac_exeext && {
10052 test "$cross_compiling" = yes ||
10053 $as_test_x conftest
$ac_exeext
10055 ac_cv_func_malloc_get_state
=yes
10057 $as_echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.
$ac_ext >&5
10060 ac_cv_func_malloc_get_state
=no
10063 rm -rf conftest.dSYM
10064 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10065 conftest
$ac_exeext conftest.
$ac_ext
10067 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10068 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10069 if test $ac_cv_func_malloc_get_state = yes; then
10075 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10076 $as_echo_n "checking for malloc_set_state... " >&6; }
10077 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10078 $as_echo_n "(cached) " >&6
10080 cat >conftest.
$ac_ext <<_ACEOF
10083 cat confdefs.h
>>conftest.
$ac_ext
10084 cat >>conftest.
$ac_ext <<_ACEOF
10085 /* end confdefs.h. */
10086 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10088 #define malloc_set_state innocuous_malloc_set_state
10090 /* System header to define __stub macros and hopefully few prototypes,
10091 which can conflict with char malloc_set_state (); below.
10092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10093 <limits.h> exists even on freestanding compilers. */
10096 # include <limits.h>
10098 # include <assert.h>
10101 #undef malloc_set_state
10103 /* Override any GCC internal prototype to avoid an error.
10104 Use char because int might match the return type of a GCC
10105 builtin and then its argument prototype would still apply. */
10109 char malloc_set_state ();
10110 /* The GNU C library defines this for functions which it implements
10111 to always fail with ENOSYS. Some functions are actually named
10112 something starting with __ and the normal name is an alias. */
10113 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10120 return malloc_set_state ();
10125 rm -f conftest.
$ac_objext conftest
$ac_exeext
10126 if { (ac_try
="$ac_link"
10127 case "(($ac_try" in
10128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10132 $as_echo "$ac_try_echo") >&5
10133 (eval "$ac_link") 2>conftest.er1
10135 grep -v '^ *+' conftest.er1 >conftest.err
10137 cat conftest.err >&5
10138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } && {
10140 test -z "$ac_c_werror_flag" ||
10141 test ! -s conftest.err
10142 } && test -s conftest$ac_exeext && {
10143 test "$cross_compiling" = yes ||
10144 $as_test_x conftest$ac_exeext
10146 ac_cv_func_malloc_set_state=yes
10148 $as_echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10151 ac_cv_func_malloc_set_state=no
10154 rm -rf conftest.dSYM
10155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10156 conftest$ac_exeext conftest.$ac_ext
10158 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10159 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10160 if test $ac_cv_func_malloc_set_state = yes; then
10166 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10167 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10168 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10169 $as_echo_n "(cached) " >&6
10171 cat >conftest.$ac_ext <<_ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10177 extern void (* __after_morecore_hook)();
10181 __after_morecore_hook = 0
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (ac_try="$ac_link"
10188 case "(($ac_try" in
10189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10190 *) ac_try_echo
=$ac_try;;
10192 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10193 $as_echo "$ac_try_echo") >&5
10194 (eval "$ac_link") 2>conftest.er1
10196 grep -v '^ *+' conftest.er1
>conftest.err
10198 cat conftest.err
>&5
10199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && {
10201 test -z "$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10203 } && test -s conftest
$ac_exeext && {
10204 test "$cross_compiling" = yes ||
10205 $as_test_x conftest
$ac_exeext
10207 emacs_cv_var___after_morecore_hook
=yes
10209 $as_echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.
$ac_ext >&5
10212 emacs_cv_var___after_morecore_hook
=no
10215 rm -rf conftest.dSYM
10216 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10217 conftest
$ac_exeext conftest.
$ac_ext
10219 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10220 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10221 if test $emacs_cv_var___after_morecore_hook = no
; then
10224 if test "${system_malloc}" = "yes"; then
10226 GNU_MALLOC_reason
="
10227 (The GNU allocators don't work with this system configuration.)"
10229 if test "$doug_lea_malloc" = "yes" ; then
10230 if test "$GNU_MALLOC" = yes ; then
10231 GNU_MALLOC_reason
="
10232 (Using Doug Lea's new malloc from the GNU C Library.)"
10235 cat >>confdefs.h
<<\_ACEOF
10236 #define DOUG_LEA_MALLOC 1
10241 if test x
"${REL_ALLOC}" = x
; then
10242 REL_ALLOC
=${GNU_MALLOC}
10248 for ac_header
in stdlib.h unistd.h
10250 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10251 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10252 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10253 $as_echo_n "checking for $ac_header... " >&6; }
10254 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10255 $as_echo_n "(cached) " >&6
10257 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10258 $as_echo "$as_val"'`
10259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10260 $as_echo "$ac_res" >&6; }
10262 # Is the header compilable?
10263 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10264 $as_echo_n "checking $ac_header usability... " >&6; }
10265 cat >conftest.
$ac_ext <<_ACEOF
10268 cat confdefs.h
>>conftest.
$ac_ext
10269 cat >>conftest.
$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10271 $ac_includes_default
10272 #include <$ac_header>
10274 rm -f conftest.
$ac_objext
10275 if { (ac_try
="$ac_compile"
10276 case "(($ac_try" in
10277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10278 *) ac_try_echo=$ac_try;;
10280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10281 $as_echo "$ac_try_echo") >&5
10282 (eval "$ac_compile") 2>conftest.er1
10284 grep -v '^ *+' conftest.er1 >conftest.err
10286 cat conftest.err >&5
10287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } && {
10289 test -z "$ac_c_werror_flag" ||
10290 test ! -s conftest.err
10291 } && test -s conftest.$ac_objext; then
10292 ac_header_compiler=yes
10294 $as_echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10297 ac_header_compiler=no
10300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10301 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10302 $as_echo "$ac_header_compiler" >&6; }
10304 # Is the header present?
10305 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10306 $as_echo_n "checking $ac_header presence... " >&6; }
10307 cat >conftest.$ac_ext <<_ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 #include <$ac_header>
10315 if { (ac_try="$ac_cpp conftest.$ac_ext"
10316 case "(($ac_try" in
10317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10318 *) ac_try_echo
=$ac_try;;
10320 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10321 $as_echo "$ac_try_echo") >&5
10322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10324 grep -v '^ *+' conftest.er1
>conftest.err
10326 cat conftest.err
>&5
10327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } >/dev
/null
&& {
10329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10330 test ! -s conftest.err
10332 ac_header_preproc
=yes
10334 $as_echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.
$ac_ext >&5
10337 ac_header_preproc
=no
10340 rm -f conftest.err conftest.
$ac_ext
10341 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10342 $as_echo "$ac_header_preproc" >&6; }
10344 # So? What about this header?
10345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10348 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10350 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10351 ac_header_preproc
=yes
10354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10355 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10357 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10359 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10361 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10363 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10365 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10369 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10370 $as_echo_n "checking for $ac_header... " >&6; }
10371 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10372 $as_echo_n "(cached) " >&6
10374 eval "$as_ac_Header=\$ac_header_preproc"
10376 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10377 $as_echo "$as_val"'`
10378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10379 $as_echo "$ac_res" >&6; }
10382 if test `eval 'as_val=${'$as_ac_Header'}
10383 $as_echo "$as_val"'` = yes; then
10384 cat >>confdefs.h
<<_ACEOF
10385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10393 for ac_func
in getpagesize
10395 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10396 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10397 $as_echo_n "checking for $ac_func... " >&6; }
10398 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10399 $as_echo_n "(cached) " >&6
10401 cat >conftest.
$ac_ext <<_ACEOF
10404 cat confdefs.h
>>conftest.
$ac_ext
10405 cat >>conftest.
$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10409 #define $ac_func innocuous_$ac_func
10411 /* System header to define __stub macros and hopefully few prototypes,
10412 which can conflict with char $ac_func (); below.
10413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10414 <limits.h> exists even on freestanding compilers. */
10417 # include <limits.h>
10419 # include <assert.h>
10424 /* Override any GCC internal prototype to avoid an error.
10425 Use char because int might match the return type of a GCC
10426 builtin and then its argument prototype would still apply. */
10431 /* The GNU C library defines this for functions which it implements
10432 to always fail with ENOSYS. Some functions are actually named
10433 something starting with __ and the normal name is an alias. */
10434 #if defined __stub_$ac_func || defined __stub___$ac_func
10441 return $ac_func ();
10446 rm -f conftest.
$ac_objext conftest
$ac_exeext
10447 if { (ac_try
="$ac_link"
10448 case "(($ac_try" in
10449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10453 $as_echo "$ac_try_echo") >&5
10454 (eval "$ac_link") 2>conftest.er1
10456 grep -v '^ *+' conftest.er1 >conftest.err
10458 cat conftest.err >&5
10459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && {
10461 test -z "$ac_c_werror_flag" ||
10462 test ! -s conftest.err
10463 } && test -s conftest$ac_exeext && {
10464 test "$cross_compiling" = yes ||
10465 $as_test_x conftest$ac_exeext
10467 eval "$as_ac_var=yes"
10469 $as_echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10472 eval "$as_ac_var=no"
10475 rm -rf conftest.dSYM
10476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10477 conftest$ac_exeext conftest.$ac_ext
10479 ac_res=`eval 'as_val=${'$as_ac_var'}
10480 $as_echo "$as_val"'`
10481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10482 $as_echo "$ac_res" >&6; }
10483 if test `eval 'as_val=${'$as_ac_var'}
10484 $as_echo "$as_val"'` = yes; then
10485 cat >>confdefs.h <<_ACEOF
10486 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10492 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10493 $as_echo_n "checking for working mmap... " >&6; }
10494 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10495 $as_echo_n "(cached) " >&6
10497 if test "$cross_compiling" = yes; then
10498 ac_cv_func_mmap_fixed_mapped=no
10500 cat >conftest.$ac_ext <<_ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 $ac_includes_default
10507 /* malloc might have been renamed as rpl_malloc. */
10510 /* Thanks to Mike Haertel and Jim Avera for this test.
10511 Here is a matrix of mmap possibilities:
10512 mmap private not fixed
10513 mmap private fixed at somewhere currently unmapped
10514 mmap private fixed at somewhere already mapped
10515 mmap shared not fixed
10516 mmap shared fixed at somewhere currently unmapped
10517 mmap shared fixed at somewhere already mapped
10518 For private mappings, we should verify that changes cannot be read()
10519 back from the file, nor mmap's back from the file at a different
10520 address. (There have been systems where private was not correctly
10521 implemented like the infamous i386 svr4.0, and systems where the
10522 VM page cache was not coherent with the file system buffer cache
10523 like early versions of FreeBSD and possibly contemporary NetBSD.)
10524 For shared mappings, we should conversely verify that changes get
10525 propagated back to all the places they're supposed to be.
10527 Grep wants private fixed already mapped.
10528 The main things grep needs to know about mmap are:
10529 * does it exist and is it safe to write into the mmap'd area
10530 * how to use it (BSD variants) */
10533 #include <sys/mman.h>
10535 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10539 /* This mess was copied from the GNU getpagesize.h. */
10540 #ifndef HAVE_GETPAGESIZE
10541 /* Assume that all systems that can run configure have sys/param.h. */
10542 # ifndef HAVE_SYS_PARAM_H
10543 # define HAVE_SYS_PARAM_H 1
10546 # ifdef _SC_PAGESIZE
10547 # define getpagesize() sysconf(_SC_PAGESIZE)
10548 # else /* no _SC_PAGESIZE */
10549 # ifdef HAVE_SYS_PARAM_H
10550 # include <sys/param.h>
10551 # ifdef EXEC_PAGESIZE
10552 # define getpagesize() EXEC_PAGESIZE
10553 # else /* no EXEC_PAGESIZE */
10555 # define getpagesize() NBPG * CLSIZE
10558 # endif /* no CLSIZE */
10559 # else /* no NBPG */
10561 # define getpagesize() NBPC
10562 # else /* no NBPC */
10564 # define getpagesize() PAGESIZE
10565 # endif /* PAGESIZE */
10566 # endif /* no NBPC */
10567 # endif /* no NBPG */
10568 # endif /* no EXEC_PAGESIZE */
10569 # else /* no HAVE_SYS_PARAM_H */
10570 # define getpagesize() 8192 /* punt totally */
10571 # endif /* no HAVE_SYS_PARAM_H */
10572 # endif /* no _SC_PAGESIZE */
10574 #endif /* no HAVE_GETPAGESIZE */
10579 char *data, *data2, *data3;
10583 pagesize = getpagesize ();
10585 /* First, make a file with some known garbage in it. */
10586 data = (char *) malloc (pagesize);
10589 for (i = 0; i < pagesize; ++i)
10590 *(data + i) = rand ();
10592 fd = creat ("conftest.mmap", 0600);
10595 if (write (fd, data, pagesize) != pagesize)
10599 /* Next, try to mmap the file at a fixed address which already has
10600 something else allocated at it. If we can, also make sure that
10601 we see the same garbage. */
10602 fd = open ("conftest.mmap", O_RDWR);
10605 data2 = (char *) malloc (2 * pagesize);
10608 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10609 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10610 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10612 for (i = 0; i < pagesize; ++i)
10613 if (*(data + i) != *(data2 + i))
10616 /* Finally, make sure that changes to the mapped area do not
10617 percolate back to the file as seen by read(). (This is a bug on
10618 some variants of i386 svr4.0.) */
10619 for (i = 0; i < pagesize; ++i)
10620 *(data2 + i) = *(data2 + i) + 1;
10621 data3 = (char *) malloc (pagesize);
10624 if (read (fd, data3, pagesize) != pagesize)
10626 for (i = 0; i < pagesize; ++i)
10627 if (*(data + i) != *(data3 + i))
10633 rm -f conftest$ac_exeext
10634 if { (ac_try="$ac_link"
10635 case "(($ac_try" in
10636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10637 *) ac_try_echo
=$ac_try;;
10639 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10640 $as_echo "$ac_try_echo") >&5
10641 (eval "$ac_link") 2>&5
10643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10645 { (case "(($ac_try" in
10646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10650 $as_echo "$ac_try_echo") >&5
10651 (eval "$ac_try") 2>&5
10653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 ac_cv_func_mmap_fixed_mapped=yes
10657 $as_echo "$as_me: program exited with status $ac_status" >&5
10658 $as_echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10661 ( exit $ac_status )
10662 ac_cv_func_mmap_fixed_mapped=no
10664 rm -rf conftest.dSYM
10665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10670 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10671 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10672 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10674 cat >>confdefs.h <<\_ACEOF
10675 #define HAVE_MMAP 1
10679 rm -f conftest.mmap
10681 if test $use_mmap_for_buffers = yes; then
10685 LIBS="$libsrc_libs $LIBS"
10688 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10689 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10690 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10691 $as_echo_n "(cached) " >&6
10693 ac_check_lib_save_LIBS=$LIBS
10694 LIBS="-ldnet $LIBS"
10695 cat >conftest.$ac_ext <<_ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10702 /* Override any GCC internal prototype to avoid an error.
10703 Use char because int might match the return type of a GCC
10704 builtin and then its argument prototype would still apply. */
10712 return dnet_ntoa ();
10717 rm -f conftest.$ac_objext conftest$ac_exeext
10718 if { (ac_try="$ac_link"
10719 case "(($ac_try" in
10720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10721 *) ac_try_echo
=$ac_try;;
10723 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10724 $as_echo "$ac_try_echo") >&5
10725 (eval "$ac_link") 2>conftest.er1
10727 grep -v '^ *+' conftest.er1
>conftest.err
10729 cat conftest.err
>&5
10730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } && {
10732 test -z "$ac_c_werror_flag" ||
10733 test ! -s conftest.err
10734 } && test -s conftest
$ac_exeext && {
10735 test "$cross_compiling" = yes ||
10736 $as_test_x conftest
$ac_exeext
10738 ac_cv_lib_dnet_dnet_ntoa
=yes
10740 $as_echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.
$ac_ext >&5
10743 ac_cv_lib_dnet_dnet_ntoa
=no
10746 rm -rf conftest.dSYM
10747 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10748 conftest
$ac_exeext conftest.
$ac_ext
10749 LIBS
=$ac_check_lib_save_LIBS
10751 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10752 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10753 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10754 cat >>confdefs.h
<<_ACEOF
10755 #define HAVE_LIBDNET 1
10758 LIBS
="-ldnet $LIBS"
10763 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10764 $as_echo_n "checking for main in -lXbsd... " >&6; }
10765 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10766 $as_echo_n "(cached) " >&6
10768 ac_check_lib_save_LIBS
=$LIBS
10769 LIBS
="-lXbsd $LIBS"
10770 cat >conftest.
$ac_ext <<_ACEOF
10773 cat confdefs.h
>>conftest.
$ac_ext
10774 cat >>conftest.
$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10786 rm -f conftest.
$ac_objext conftest
$ac_exeext
10787 if { (ac_try
="$ac_link"
10788 case "(($ac_try" in
10789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10793 $as_echo "$ac_try_echo") >&5
10794 (eval "$ac_link") 2>conftest.er1
10796 grep -v '^ *+' conftest.er1 >conftest.err
10798 cat conftest.err >&5
10799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } && {
10801 test -z "$ac_c_werror_flag" ||
10802 test ! -s conftest.err
10803 } && test -s conftest$ac_exeext && {
10804 test "$cross_compiling" = yes ||
10805 $as_test_x conftest$ac_exeext
10807 ac_cv_lib_Xbsd_main=yes
10809 $as_echo "$as_me: failed program was:" >&5
10810 sed 's/^/| /' conftest.$ac_ext >&5
10812 ac_cv_lib_Xbsd_main=no
10815 rm -rf conftest.dSYM
10816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10817 conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS
10820 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10821 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10822 if test $ac_cv_lib_Xbsd_main = yes; then
10823 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10828 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10829 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10830 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10831 $as_echo_n "(cached) " >&6
10833 ac_check_lib_save_LIBS=$LIBS
10834 LIBS="-lpthreads $LIBS"
10835 cat >conftest.$ac_ext <<_ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h. */
10842 /* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */
10852 return cma_open ();
10857 rm -f conftest.$ac_objext conftest$ac_exeext
10858 if { (ac_try="$ac_link"
10859 case "(($ac_try" in
10860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10861 *) ac_try_echo
=$ac_try;;
10863 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10864 $as_echo "$ac_try_echo") >&5
10865 (eval "$ac_link") 2>conftest.er1
10867 grep -v '^ *+' conftest.er1
>conftest.err
10869 cat conftest.err
>&5
10870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } && {
10872 test -z "$ac_c_werror_flag" ||
10873 test ! -s conftest.err
10874 } && test -s conftest
$ac_exeext && {
10875 test "$cross_compiling" = yes ||
10876 $as_test_x conftest
$ac_exeext
10878 ac_cv_lib_pthreads_cma_open
=yes
10880 $as_echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.
$ac_ext >&5
10883 ac_cv_lib_pthreads_cma_open
=no
10886 rm -rf conftest.dSYM
10887 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10888 conftest
$ac_exeext conftest.
$ac_ext
10889 LIBS
=$ac_check_lib_save_LIBS
10891 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10892 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10893 if test $ac_cv_lib_pthreads_cma_open = yes; then
10894 cat >>confdefs.h
<<_ACEOF
10895 #define HAVE_LIBPTHREADS 1
10898 LIBS
="-lpthreads $LIBS"
10906 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10907 $as_echo_n "checking for -bbigtoc option... " >&6; }
10908 if test "${gdb_cv_bigtoc+set}" = set; then
10909 $as_echo_n "(cached) " >&6
10913 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10914 *) gdb_cv_bigtoc
=-bbigtoc ;;
10917 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10918 cat >conftest.
$ac_ext <<_ACEOF
10921 cat confdefs.h
>>conftest.
$ac_ext
10922 cat >>conftest.
$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10933 rm -f conftest.
$ac_objext conftest
$ac_exeext
10934 if { (ac_try
="$ac_link"
10935 case "(($ac_try" in
10936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10940 $as_echo "$ac_try_echo") >&5
10941 (eval "$ac_link") 2>conftest.er1
10943 grep -v '^ *+' conftest.er1 >conftest.err
10945 cat conftest.err >&5
10946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } && {
10948 test -z "$ac_c_werror_flag" ||
10949 test ! -s conftest.err
10950 } && test -s conftest$ac_exeext && {
10951 test "$cross_compiling" = yes ||
10952 $as_test_x conftest$ac_exeext
10956 $as_echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10962 rm -rf conftest.dSYM
10963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10964 conftest$ac_exeext conftest.$ac_ext
10967 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10968 $as_echo "$gdb_cv_bigtoc" >&6; }
10972 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10973 # used for the tests that follow. We set them back to REAL_CFLAGS and
10974 # REAL_CPPFLAGS later on.
10976 REAL_CPPFLAGS="$CPPFLAGS"
10978 if test "${HAVE_X11}" = "yes"; then
10979 DEFS="$C_SWITCH_X_SITE $DEFS"
10980 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10982 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10983 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10985 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10986 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10987 # but it's more convenient here to set LD_RUN_PATH
10988 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10989 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10990 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10994 if test "${opsys}" = "gnu-linux"; then
10995 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10996 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10997 cat >conftest.$ac_ext <<_ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11007 XOpenDisplay ("foo");
11012 rm -f conftest.$ac_objext conftest$ac_exeext
11013 if { (ac_try="$ac_link"
11014 case "(($ac_try" in
11015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11016 *) ac_try_echo
=$ac_try;;
11018 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11019 $as_echo "$ac_try_echo") >&5
11020 (eval "$ac_link") 2>conftest.er1
11022 grep -v '^ *+' conftest.er1
>conftest.err
11024 cat conftest.err
>&5
11025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } && {
11027 test -z "$ac_c_werror_flag" ||
11028 test ! -s conftest.err
11029 } && test -s conftest
$ac_exeext && {
11030 test "$cross_compiling" = yes ||
11031 $as_test_x conftest
$ac_exeext
11033 xlinux_first_failure
=no
11035 $as_echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.
$ac_ext >&5
11038 xlinux_first_failure
=yes
11041 rm -rf conftest.dSYM
11042 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11043 conftest
$ac_exeext conftest.
$ac_ext
11044 if test "${xlinux_first_failure}" = "yes"; then
11045 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11046 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11047 OLD_CPPFLAGS
="$CPPFLAGS"
11049 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11050 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11051 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11052 LIBS
="$LIBS -b i486-linuxaout"
11053 cat >conftest.
$ac_ext <<_ACEOF
11056 cat confdefs.h
>>conftest.
$ac_ext
11057 cat >>conftest.
$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11063 XOpenDisplay ("foo");
11068 rm -f conftest.
$ac_objext conftest
$ac_exeext
11069 if { (ac_try
="$ac_link"
11070 case "(($ac_try" in
11071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11075 $as_echo "$ac_try_echo") >&5
11076 (eval "$ac_link") 2>conftest.er1
11078 grep -v '^ *+' conftest.er1 >conftest.err
11080 cat conftest.err >&5
11081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } && {
11083 test -z "$ac_c_werror_flag" ||
11084 test ! -s conftest.err
11085 } && test -s conftest$ac_exeext && {
11086 test "$cross_compiling" = yes ||
11087 $as_test_x conftest$ac_exeext
11089 xlinux_second_failure=no
11091 $as_echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 xlinux_second_failure=yes
11097 rm -rf conftest.dSYM
11098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11099 conftest$ac_exeext conftest.$ac_ext
11100 if test "${xlinux_second_failure}" = "yes"; then
11101 # If we get the same failure with -b, there is no use adding -b.
11102 # So take it out. This plays safe.
11103 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11104 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11105 CPPFLAGS="$OLD_CPPFLAGS"
11107 { $as_echo "$as_me:$LINENO: result: no" >&5
11108 $as_echo "no" >&6; }
11110 { $as_echo "$as_me:$LINENO: result: yes" >&5
11111 $as_echo "yes" >&6; }
11114 { $as_echo "$as_me:$LINENO: result: no" >&5
11115 $as_echo "no" >&6; }
11119 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11120 # header files included from there.
11121 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11122 $as_echo_n "checking for Xkb... " >&6; }
11123 cat >conftest.$ac_ext <<_ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */
11129 #include <X11/Xlib.h>
11130 #include <X11/XKBlib.h>
11134 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (ac_try="$ac_link"
11141 case "(($ac_try" in
11142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11143 *) ac_try_echo
=$ac_try;;
11145 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11146 $as_echo "$ac_try_echo") >&5
11147 (eval "$ac_link") 2>conftest.er1
11149 grep -v '^ *+' conftest.er1
>conftest.err
11151 cat conftest.err
>&5
11152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } && {
11154 test -z "$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11156 } && test -s conftest
$ac_exeext && {
11157 test "$cross_compiling" = yes ||
11158 $as_test_x conftest
$ac_exeext
11162 $as_echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.
$ac_ext >&5
11168 rm -rf conftest.dSYM
11169 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11170 conftest
$ac_exeext conftest.
$ac_ext
11171 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11172 $as_echo "$emacs_xkb" >&6; }
11173 if test $emacs_xkb = yes; then
11175 cat >>confdefs.h
<<\_ACEOF
11176 #define HAVE_XKBGETKEYBOARD 1
11185 for ac_func
in XrmSetDatabase XScreenResourceString \
11186 XScreenNumberOfScreen XSetWMProtocols
11188 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11189 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11190 $as_echo_n "checking for $ac_func... " >&6; }
11191 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11192 $as_echo_n "(cached) " >&6
11194 cat >conftest.
$ac_ext <<_ACEOF
11197 cat confdefs.h
>>conftest.
$ac_ext
11198 cat >>conftest.
$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11202 #define $ac_func innocuous_$ac_func
11204 /* System header to define __stub macros and hopefully few prototypes,
11205 which can conflict with char $ac_func (); below.
11206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11207 <limits.h> exists even on freestanding compilers. */
11210 # include <limits.h>
11212 # include <assert.h>
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11224 /* The GNU C library defines this for functions which it implements
11225 to always fail with ENOSYS. Some functions are actually named
11226 something starting with __ and the normal name is an alias. */
11227 #if defined __stub_$ac_func || defined __stub___$ac_func
11234 return $ac_func ();
11239 rm -f conftest.
$ac_objext conftest
$ac_exeext
11240 if { (ac_try
="$ac_link"
11241 case "(($ac_try" in
11242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11246 $as_echo "$ac_try_echo") >&5
11247 (eval "$ac_link") 2>conftest.er1
11249 grep -v '^ *+' conftest.er1 >conftest.err
11251 cat conftest.err >&5
11252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } && {
11254 test -z "$ac_c_werror_flag" ||
11255 test ! -s conftest.err
11256 } && test -s conftest$ac_exeext && {
11257 test "$cross_compiling" = yes ||
11258 $as_test_x conftest$ac_exeext
11260 eval "$as_ac_var=yes"
11262 $as_echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 eval "$as_ac_var=no"
11268 rm -rf conftest.dSYM
11269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11270 conftest$ac_exeext conftest.$ac_ext
11272 ac_res=`eval 'as_val=${'$as_ac_var'}
11273 $as_echo "$as_val"'`
11274 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11275 $as_echo "$ac_res" >&6; }
11276 if test `eval 'as_val=${'$as_ac_var'}
11277 $as_echo "$as_val"'` = yes; then
11278 cat >>confdefs.h <<_ACEOF
11279 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11287 if test "${window_system}" = "x11"; then
11288 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11289 $as_echo_n "checking X11 version 6... " >&6; }
11290 if test "${emacs_cv_x11_version_6+set}" = set; then
11291 $as_echo_n "(cached) " >&6
11293 cat >conftest.$ac_ext <<_ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 #include <X11/Xlib.h>
11303 #if XlibSpecificationRelease < 6
11311 rm -f conftest.$ac_objext conftest$ac_exeext
11312 if { (ac_try="$ac_link"
11313 case "(($ac_try" in
11314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11315 *) ac_try_echo
=$ac_try;;
11317 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11318 $as_echo "$ac_try_echo") >&5
11319 (eval "$ac_link") 2>conftest.er1
11321 grep -v '^ *+' conftest.er1
>conftest.err
11323 cat conftest.err
>&5
11324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } && {
11326 test -z "$ac_c_werror_flag" ||
11327 test ! -s conftest.err
11328 } && test -s conftest
$ac_exeext && {
11329 test "$cross_compiling" = yes ||
11330 $as_test_x conftest
$ac_exeext
11332 emacs_cv_x11_version_6
=yes
11334 $as_echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.
$ac_ext >&5
11337 emacs_cv_x11_version_6
=no
11340 rm -rf conftest.dSYM
11341 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11342 conftest
$ac_exeext conftest.
$ac_ext
11345 if test $emacs_cv_x11_version_6 = yes; then
11346 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11347 $as_echo "6 or newer" >&6; }
11349 cat >>confdefs.h
<<\_ACEOF
11350 #define HAVE_X11R6 1
11354 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11355 $as_echo "before 6" >&6; }
11360 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11362 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11363 if test "${with_rsvg}" != "no"; then
11364 RSVG_REQUIRED
=2.11.0
11365 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11370 # Extract the first word of "pkg-config", so it can be a program name with args.
11371 set dummy pkg-config
; ac_word
=$2
11372 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11373 $as_echo_n "checking for $ac_word... " >&6; }
11374 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11375 $as_echo_n "(cached) " >&6
11377 case $PKG_CONFIG in
11379 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11383 for as_dir
in $PATH
11386 test -z "$as_dir" && as_dir
=.
11387 for ac_exec_ext
in '' $ac_executable_extensions; do
11388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11389 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11397 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11401 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11402 if test -n "$PKG_CONFIG"; then
11403 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11404 $as_echo "$PKG_CONFIG" >&6; }
11406 { $as_echo "$as_me:$LINENO: result: no" >&5
11407 $as_echo "no" >&6; }
11412 if test "$PKG_CONFIG" = "no" ; then
11415 PKG_CONFIG_MIN_VERSION
=0.9.0
11416 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11417 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11418 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11420 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11421 { $as_echo "$as_me:$LINENO: result: yes" >&5
11422 $as_echo "yes" >&6; }
11425 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11426 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11427 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11428 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11429 $as_echo "$RSVG_CFLAGS" >&6; }
11431 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11432 $as_echo_n "checking RSVG_LIBS... " >&6; }
11433 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11434 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11435 $as_echo "$RSVG_LIBS" >&6; }
11437 { $as_echo "$as_me:$LINENO: result: no" >&5
11438 $as_echo "no" >&6; }
11441 ## If we have a custom action on failure, don't print errors, but
11442 ## do set a variable so people can do so.
11443 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11450 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11451 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11455 if test $succeeded = yes; then
11464 if test ".${RSVG_CFLAGS}" != "."; then
11467 cat >>confdefs.h
<<\_ACEOF
11468 #define HAVE_RSVG 1
11471 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11472 LIBS
="$RSVG_LIBS $LIBS"
11479 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11482 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11487 # Extract the first word of "pkg-config", so it can be a program name with args.
11488 set dummy pkg-config
; ac_word
=$2
11489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11490 $as_echo_n "checking for $ac_word... " >&6; }
11491 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11492 $as_echo_n "(cached) " >&6
11494 case $PKG_CONFIG in
11496 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11500 for as_dir
in $PATH
11503 test -z "$as_dir" && as_dir
=.
11504 for ac_exec_ext
in '' $ac_executable_extensions; do
11505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11506 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11507 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11514 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11518 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11519 if test -n "$PKG_CONFIG"; then
11520 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11521 $as_echo "$PKG_CONFIG" >&6; }
11523 { $as_echo "$as_me:$LINENO: result: no" >&5
11524 $as_echo "no" >&6; }
11529 if test "$PKG_CONFIG" = "no" ; then
11532 PKG_CONFIG_MIN_VERSION
=0.9.0
11533 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11534 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11535 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11537 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11538 { $as_echo "$as_me:$LINENO: result: yes" >&5
11539 $as_echo "yes" >&6; }
11542 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11543 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11544 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11545 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11546 $as_echo "$GTK_CFLAGS" >&6; }
11548 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11549 $as_echo_n "checking GTK_LIBS... " >&6; }
11550 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11551 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11552 $as_echo "$GTK_LIBS" >&6; }
11554 { $as_echo "$as_me:$LINENO: result: no" >&5
11555 $as_echo "no" >&6; }
11558 ## If we have a custom action on failure, don't print errors, but
11559 ## do set a variable so people can do so.
11560 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11567 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11568 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11572 if test $succeeded = yes; then
11578 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11579 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11580 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11581 { (exit 1); exit 1; }; }
11587 if test x
"$pkg_check_gtk" = xyes
; then
11591 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11592 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11593 LIBS
="$GTK_LIBS $LIBS"
11596 for ac_func
in gtk_main
11598 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11599 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11600 $as_echo_n "checking for $ac_func... " >&6; }
11601 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11602 $as_echo_n "(cached) " >&6
11604 cat >conftest.
$ac_ext <<_ACEOF
11607 cat confdefs.h
>>conftest.
$ac_ext
11608 cat >>conftest.
$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11612 #define $ac_func innocuous_$ac_func
11614 /* System header to define __stub macros and hopefully few prototypes,
11615 which can conflict with char $ac_func (); below.
11616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11617 <limits.h> exists even on freestanding compilers. */
11620 # include <limits.h>
11622 # include <assert.h>
11627 /* Override any GCC internal prototype to avoid an error.
11628 Use char because int might match the return type of a GCC
11629 builtin and then its argument prototype would still apply. */
11634 /* The GNU C library defines this for functions which it implements
11635 to always fail with ENOSYS. Some functions are actually named
11636 something starting with __ and the normal name is an alias. */
11637 #if defined __stub_$ac_func || defined __stub___$ac_func
11644 return $ac_func ();
11649 rm -f conftest.
$ac_objext conftest
$ac_exeext
11650 if { (ac_try
="$ac_link"
11651 case "(($ac_try" in
11652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11656 $as_echo "$ac_try_echo") >&5
11657 (eval "$ac_link") 2>conftest.er1
11659 grep -v '^ *+' conftest.er1 >conftest.err
11661 cat conftest.err >&5
11662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } && {
11664 test -z "$ac_c_werror_flag" ||
11665 test ! -s conftest.err
11666 } && test -s conftest$ac_exeext && {
11667 test "$cross_compiling" = yes ||
11668 $as_test_x conftest$ac_exeext
11670 eval "$as_ac_var=yes"
11672 $as_echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11675 eval "$as_ac_var=no"
11678 rm -rf conftest.dSYM
11679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11680 conftest$ac_exeext conftest.$ac_ext
11682 ac_res=`eval 'as_val=${'$as_ac_var'}
11683 $as_echo "$as_val"'`
11684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11685 $as_echo "$ac_res" >&6; }
11686 if test `eval 'as_val=${'$as_ac_var'}
11687 $as_echo "$as_val"'` = yes; then
11688 cat >>confdefs.h <<_ACEOF
11689 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11695 if test "${GTK_COMPILES}" != "yes"; then
11696 if test "$USE_X_TOOLKIT" != "maybe"; then
11697 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11698 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11699 { (exit 1); exit 1; }; };
11704 cat >>confdefs.h <<\_ACEOF
11710 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11713 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11714 closing open displays. This is no problem if you just use
11715 one display, but if you use more than one and close one of them
11716 Emacs may crash." >&5
11717 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11718 closing open displays. This is no problem if you just use
11719 one display, but if you use more than one and close one of them
11720 Emacs may crash." >&2;}
11729 if test "${HAVE_GTK}" = "yes"; then
11731 if test "$with_toolkit_scroll_bars" != no; then
11732 with_toolkit_scroll_bars=yes
11735 HAVE_GTK_MULTIDISPLAY=no
11737 for ac_func in gdk_display_open
11739 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11740 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11741 $as_echo_n "checking for $ac_func... " >&6; }
11742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11743 $as_echo_n "(cached) " >&6
11745 cat >conftest.$ac_ext <<_ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11753 #define $ac_func innocuous_$ac_func
11755 /* System header to define __stub macros and hopefully few prototypes,
11756 which can conflict with char $ac_func (); below.
11757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11758 <limits.h> exists even on freestanding compilers. */
11761 # include <limits.h>
11763 # include <assert.h>
11768 /* Override any GCC internal prototype to avoid an error.
11769 Use char because int might match the return type of a GCC
11770 builtin and then its argument prototype would still apply. */
11775 /* The GNU C library defines this for functions which it implements
11776 to always fail with ENOSYS. Some functions are actually named
11777 something starting with __ and the normal name is an alias. */
11778 #if defined __stub_$ac_func || defined __stub___$ac_func
11785 return $ac_func ();
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (ac_try="$ac_link"
11792 case "(($ac_try" in
11793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11794 *) ac_try_echo
=$ac_try;;
11796 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11797 $as_echo "$ac_try_echo") >&5
11798 (eval "$ac_link") 2>conftest.er1
11800 grep -v '^ *+' conftest.er1
>conftest.err
11802 cat conftest.err
>&5
11803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } && {
11805 test -z "$ac_c_werror_flag" ||
11806 test ! -s conftest.err
11807 } && test -s conftest
$ac_exeext && {
11808 test "$cross_compiling" = yes ||
11809 $as_test_x conftest
$ac_exeext
11811 eval "$as_ac_var=yes"
11813 $as_echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.
$ac_ext >&5
11816 eval "$as_ac_var=no"
11819 rm -rf conftest.dSYM
11820 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11821 conftest
$ac_exeext conftest.
$ac_ext
11823 ac_res
=`eval 'as_val=${'$as_ac_var'}
11824 $as_echo "$as_val"'`
11825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11826 $as_echo "$ac_res" >&6; }
11827 if test `eval 'as_val=${'$as_ac_var'}
11828 $as_echo "$as_val"'` = yes; then
11829 cat >>confdefs.h
<<_ACEOF
11830 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11832 HAVE_GTK_MULTIDISPLAY
=yes
11836 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11838 cat >>confdefs.h
<<\_ACEOF
11839 #define HAVE_GTK_MULTIDISPLAY 1
11844 HAVE_GTK_FILE_SELECTION
=no
11845 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11846 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11847 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11848 $as_echo_n "(cached) " >&6
11850 cat >conftest.
$ac_ext <<_ACEOF
11853 cat confdefs.h
>>conftest.
$ac_ext
11854 cat >>conftest.
$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 $ac_includes_default
11857 #include <gtk/gtk.h>
11862 #ifndef GTK_TYPE_FILE_SELECTION
11863 (void) GTK_TYPE_FILE_SELECTION;
11870 rm -f conftest.
$ac_objext
11871 if { (ac_try
="$ac_compile"
11872 case "(($ac_try" in
11873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11877 $as_echo "$ac_try_echo") >&5
11878 (eval "$ac_compile") 2>conftest.er1
11880 grep -v '^ *+' conftest.er1 >conftest.err
11882 cat conftest.err >&5
11883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } && {
11885 test -z "$ac_c_werror_flag" ||
11886 test ! -s conftest.err
11887 } && test -s conftest.$ac_objext; then
11888 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11890 $as_echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11893 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11899 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11900 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11901 HAVE_GTK_FILE_SELECTION=yes
11903 HAVE_GTK_FILE_SELECTION=no
11906 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11908 for ac_func in gtk_file_selection_new
11910 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11911 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11912 $as_echo_n "checking for $ac_func... " >&6; }
11913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11914 $as_echo_n "(cached) " >&6
11916 cat >conftest.$ac_ext <<_ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11924 #define $ac_func innocuous_$ac_func
11926 /* System header to define __stub macros and hopefully few prototypes,
11927 which can conflict with char $ac_func (); below.
11928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11929 <limits.h> exists even on freestanding compilers. */
11932 # include <limits.h>
11934 # include <assert.h>
11939 /* Override any GCC internal prototype to avoid an error.
11940 Use char because int might match the return type of a GCC
11941 builtin and then its argument prototype would still apply. */
11946 /* The GNU C library defines this for functions which it implements
11947 to always fail with ENOSYS. Some functions are actually named
11948 something starting with __ and the normal name is an alias. */
11949 #if defined __stub_$ac_func || defined __stub___$ac_func
11956 return $ac_func ();
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (ac_try="$ac_link"
11963 case "(($ac_try" in
11964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11965 *) ac_try_echo
=$ac_try;;
11967 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11968 $as_echo "$ac_try_echo") >&5
11969 (eval "$ac_link") 2>conftest.er1
11971 grep -v '^ *+' conftest.er1
>conftest.err
11973 cat conftest.err
>&5
11974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } && {
11976 test -z "$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11978 } && test -s conftest
$ac_exeext && {
11979 test "$cross_compiling" = yes ||
11980 $as_test_x conftest
$ac_exeext
11982 eval "$as_ac_var=yes"
11984 $as_echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.
$ac_ext >&5
11987 eval "$as_ac_var=no"
11990 rm -rf conftest.dSYM
11991 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11992 conftest
$ac_exeext conftest.
$ac_ext
11994 ac_res
=`eval 'as_val=${'$as_ac_var'}
11995 $as_echo "$as_val"'`
11996 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11997 $as_echo "$ac_res" >&6; }
11998 if test `eval 'as_val=${'$as_ac_var'}
11999 $as_echo "$as_val"'` = yes; then
12000 cat >>confdefs.h
<<_ACEOF
12001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12003 HAVE_GTK_FILE_SELECTION
=yes
12005 HAVE_GTK_FILE_SELECTION
=no
12011 HAVE_GTK_FILE_CHOOSER
=no
12012 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12013 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12014 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12015 $as_echo_n "(cached) " >&6
12017 cat >conftest.
$ac_ext <<_ACEOF
12020 cat confdefs.h
>>conftest.
$ac_ext
12021 cat >>conftest.
$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12023 $ac_includes_default
12024 #include <gtk/gtk.h>
12029 #ifndef GTK_TYPE_FILE_CHOOSER
12030 (void) GTK_TYPE_FILE_CHOOSER;
12037 rm -f conftest.
$ac_objext
12038 if { (ac_try
="$ac_compile"
12039 case "(($ac_try" in
12040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12044 $as_echo "$ac_try_echo") >&5
12045 (eval "$ac_compile") 2>conftest.er1
12047 grep -v '^ *+' conftest.er1 >conftest.err
12049 cat conftest.err >&5
12050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest.$ac_objext; then
12055 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12057 $as_echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12060 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12066 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12067 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12068 HAVE_GTK_FILE_CHOOSER=yes
12070 HAVE_GTK_FILE_CHOOSER=no
12073 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12075 for ac_func in gtk_file_chooser_dialog_new
12077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12078 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12079 $as_echo_n "checking for $ac_func... " >&6; }
12080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12081 $as_echo_n "(cached) " >&6
12083 cat >conftest.$ac_ext <<_ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12091 #define $ac_func innocuous_$ac_func
12093 /* System header to define __stub macros and hopefully few prototypes,
12094 which can conflict with char $ac_func (); below.
12095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12096 <limits.h> exists even on freestanding compilers. */
12099 # include <limits.h>
12101 # include <assert.h>
12106 /* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12113 /* The GNU C library defines this for functions which it implements
12114 to always fail with ENOSYS. Some functions are actually named
12115 something starting with __ and the normal name is an alias. */
12116 #if defined __stub_$ac_func || defined __stub___$ac_func
12123 return $ac_func ();
12128 rm -f conftest.$ac_objext conftest$ac_exeext
12129 if { (ac_try="$ac_link"
12130 case "(($ac_try" in
12131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12132 *) ac_try_echo
=$ac_try;;
12134 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12135 $as_echo "$ac_try_echo") >&5
12136 (eval "$ac_link") 2>conftest.er1
12138 grep -v '^ *+' conftest.er1
>conftest.err
12140 cat conftest.err
>&5
12141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } && {
12143 test -z "$ac_c_werror_flag" ||
12144 test ! -s conftest.err
12145 } && test -s conftest
$ac_exeext && {
12146 test "$cross_compiling" = yes ||
12147 $as_test_x conftest
$ac_exeext
12149 eval "$as_ac_var=yes"
12151 $as_echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.
$ac_ext >&5
12154 eval "$as_ac_var=no"
12157 rm -rf conftest.dSYM
12158 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12159 conftest
$ac_exeext conftest.
$ac_ext
12161 ac_res
=`eval 'as_val=${'$as_ac_var'}
12162 $as_echo "$as_val"'`
12163 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12164 $as_echo "$ac_res" >&6; }
12165 if test `eval 'as_val=${'$as_ac_var'}
12166 $as_echo "$as_val"'` = yes; then
12167 cat >>confdefs.h
<<_ACEOF
12168 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12170 HAVE_GTK_FILE_CHOOSER
=yes
12172 HAVE_GTK_FILE_CHOOSER
=no
12178 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12179 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12181 cat >>confdefs.h
<<\_ACEOF
12182 #define HAVE_GTK_FILE_BOTH 1
12187 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12188 HAVE_GTK_AND_PTHREAD
=no
12190 for ac_header
in pthread.h
12192 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12193 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12194 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12195 $as_echo_n "checking for $ac_header... " >&6; }
12196 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12197 $as_echo_n "(cached) " >&6
12199 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12200 $as_echo "$as_val"'`
12201 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12202 $as_echo "$ac_res" >&6; }
12204 # Is the header compilable?
12205 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12206 $as_echo_n "checking $ac_header usability... " >&6; }
12207 cat >conftest.
$ac_ext <<_ACEOF
12210 cat confdefs.h
>>conftest.
$ac_ext
12211 cat >>conftest.
$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12213 $ac_includes_default
12214 #include <$ac_header>
12216 rm -f conftest.
$ac_objext
12217 if { (ac_try
="$ac_compile"
12218 case "(($ac_try" in
12219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12223 $as_echo "$ac_try_echo") >&5
12224 (eval "$ac_compile") 2>conftest.er1
12226 grep -v '^ *+' conftest.er1 >conftest.err
12228 cat conftest.err >&5
12229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } && {
12231 test -z "$ac_c_werror_flag" ||
12232 test ! -s conftest.err
12233 } && test -s conftest.$ac_objext; then
12234 ac_header_compiler=yes
12236 $as_echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 ac_header_compiler=no
12242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12243 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12244 $as_echo "$ac_header_compiler" >&6; }
12246 # Is the header present?
12247 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12248 $as_echo_n "checking $ac_header presence... " >&6; }
12249 cat >conftest.$ac_ext <<_ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12255 #include <$ac_header>
12257 if { (ac_try="$ac_cpp conftest.$ac_ext"
12258 case "(($ac_try" in
12259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12260 *) ac_try_echo
=$ac_try;;
12262 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12263 $as_echo "$ac_try_echo") >&5
12264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12266 grep -v '^ *+' conftest.er1
>conftest.err
12268 cat conftest.err
>&5
12269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } >/dev
/null
&& {
12271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12272 test ! -s conftest.err
12274 ac_header_preproc
=yes
12276 $as_echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.
$ac_ext >&5
12279 ac_header_preproc
=no
12282 rm -f conftest.err conftest.
$ac_ext
12283 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12284 $as_echo "$ac_header_preproc" >&6; }
12286 # So? What about this header?
12287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12290 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12293 ac_header_preproc
=yes
12296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12297 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12299 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12301 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12303 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12305 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12307 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12311 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12312 $as_echo_n "checking for $ac_header... " >&6; }
12313 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12314 $as_echo_n "(cached) " >&6
12316 eval "$as_ac_Header=\$ac_header_preproc"
12318 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12319 $as_echo "$as_val"'`
12320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12321 $as_echo "$ac_res" >&6; }
12324 if test `eval 'as_val=${'$as_ac_Header'}
12325 $as_echo "$as_val"'` = yes; then
12326 cat >>confdefs.h
<<_ACEOF
12327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12334 if test "$ac_cv_header_pthread_h"; then
12335 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12336 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12337 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12338 $as_echo_n "(cached) " >&6
12340 ac_check_lib_save_LIBS
=$LIBS
12341 LIBS
="-lpthread $LIBS"
12342 cat >conftest.
$ac_ext <<_ACEOF
12345 cat confdefs.h
>>conftest.
$ac_ext
12346 cat >>conftest.
$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12349 /* Override any GCC internal prototype to avoid an error.
12350 Use char because int might match the return type of a GCC
12351 builtin and then its argument prototype would still apply. */
12355 char pthread_self ();
12359 return pthread_self ();
12364 rm -f conftest.
$ac_objext conftest
$ac_exeext
12365 if { (ac_try
="$ac_link"
12366 case "(($ac_try" in
12367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12371 $as_echo "$ac_try_echo") >&5
12372 (eval "$ac_link") 2>conftest.er1
12374 grep -v '^ *+' conftest.er1 >conftest.err
12376 cat conftest.err >&5
12377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } && {
12379 test -z "$ac_c_werror_flag" ||
12380 test ! -s conftest.err
12381 } && test -s conftest$ac_exeext && {
12382 test "$cross_compiling" = yes ||
12383 $as_test_x conftest$ac_exeext
12385 ac_cv_lib_pthread_pthread_self=yes
12387 $as_echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12390 ac_cv_lib_pthread_pthread_self=no
12393 rm -rf conftest.dSYM
12394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12395 conftest$ac_exeext conftest.$ac_ext
12396 LIBS=$ac_check_lib_save_LIBS
12398 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12399 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12400 if test $ac_cv_lib_pthread_pthread_self = yes; then
12401 HAVE_GTK_AND_PTHREAD=yes
12405 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12406 case "${canonical}" in
12408 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12411 cat >>confdefs.h <<\_ACEOF
12412 #define HAVE_GTK_AND_PTHREAD 1
12421 if test "${with_dbus}" = "yes"; then
12425 # Extract the first word of "pkg-config", so it can be a program name with args.
12426 set dummy pkg-config; ac_word=$2
12427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12428 $as_echo_n "checking for $ac_word... " >&6; }
12429 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12430 $as_echo_n "(cached) " >&6
12432 case $PKG_CONFIG in
12434 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $PATH
12441 test -z "$as_dir" && as_dir=.
12442 for ac_exec_ext in '' $ac_executable_extensions; do
12443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12444 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12452 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12456 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12457 if test -n "$PKG_CONFIG"; then
12458 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12459 $as_echo "$PKG_CONFIG" >&6; }
12461 { $as_echo "$as_me:$LINENO: result: no" >&5
12462 $as_echo "no" >&6; }
12467 if test "$PKG_CONFIG" = "no" ; then
12470 PKG_CONFIG_MIN_VERSION=0.9.0
12471 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12472 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12473 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12475 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12476 { $as_echo "$as_me:$LINENO: result: yes" >&5
12477 $as_echo "yes" >&6; }
12480 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12481 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12482 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12483 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12484 $as_echo "$DBUS_CFLAGS" >&6; }
12486 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12487 $as_echo_n "checking DBUS_LIBS... " >&6; }
12488 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12489 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12490 $as_echo "$DBUS_LIBS" >&6; }
12492 { $as_echo "$as_me:$LINENO: result: no" >&5
12493 $as_echo "no" >&6; }
12496 ## If we have a custom action on failure, don't print errors, but
12497 ## do set a variable so people can do so.
12498 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12505 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12506 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12510 if test $succeeded = yes; then
12516 if test "$HAVE_DBUS" = yes; then
12517 LIBS="$LIBS $DBUS_LIBS"
12519 cat >>confdefs.h <<\_ACEOF
12520 #define HAVE_DBUS 1
12524 for ac_func in dbus_watch_get_unix_fd
12526 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12527 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12528 $as_echo_n "checking for $ac_func... " >&6; }
12529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12530 $as_echo_n "(cached) " >&6
12532 cat >conftest.$ac_ext <<_ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12540 #define $ac_func innocuous_$ac_func
12542 /* System header to define __stub macros and hopefully few prototypes,
12543 which can conflict with char $ac_func (); below.
12544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12545 <limits.h> exists even on freestanding compilers. */
12548 # include <limits.h>
12550 # include <assert.h>
12555 /* Override any GCC internal prototype to avoid an error.
12556 Use char because int might match the return type of a GCC
12557 builtin and then its argument prototype would still apply. */
12562 /* The GNU C library defines this for functions which it implements
12563 to always fail with ENOSYS. Some functions are actually named
12564 something starting with __ and the normal name is an alias. */
12565 #if defined __stub_$ac_func || defined __stub___$ac_func
12572 return $ac_func ();
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (ac_try="$ac_link"
12579 case "(($ac_try" in
12580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12581 *) ac_try_echo
=$ac_try;;
12583 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12584 $as_echo "$ac_try_echo") >&5
12585 (eval "$ac_link") 2>conftest.er1
12587 grep -v '^ *+' conftest.er1
>conftest.err
12589 cat conftest.err
>&5
12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } && {
12592 test -z "$ac_c_werror_flag" ||
12593 test ! -s conftest.err
12594 } && test -s conftest
$ac_exeext && {
12595 test "$cross_compiling" = yes ||
12596 $as_test_x conftest
$ac_exeext
12598 eval "$as_ac_var=yes"
12600 $as_echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.
$ac_ext >&5
12603 eval "$as_ac_var=no"
12606 rm -rf conftest.dSYM
12607 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12608 conftest
$ac_exeext conftest.
$ac_ext
12610 ac_res
=`eval 'as_val=${'$as_ac_var'}
12611 $as_echo "$as_val"'`
12612 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12613 $as_echo "$ac_res" >&6; }
12614 if test `eval 'as_val=${'$as_ac_var'}
12615 $as_echo "$as_val"'` = yes; then
12616 cat >>confdefs.h
<<_ACEOF
12617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12623 DBUS_OBJ
=dbusbind.o
12629 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12633 # Extract the first word of "pkg-config", so it can be a program name with args.
12634 set dummy pkg-config
; ac_word
=$2
12635 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12636 $as_echo_n "checking for $ac_word... " >&6; }
12637 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12638 $as_echo_n "(cached) " >&6
12640 case $PKG_CONFIG in
12642 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12645 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12646 for as_dir
in $PATH
12649 test -z "$as_dir" && as_dir
=.
12650 for ac_exec_ext
in '' $ac_executable_extensions; do
12651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12652 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12653 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12660 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12664 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12665 if test -n "$PKG_CONFIG"; then
12666 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12667 $as_echo "$PKG_CONFIG" >&6; }
12669 { $as_echo "$as_me:$LINENO: result: no" >&5
12670 $as_echo "no" >&6; }
12675 if test "$PKG_CONFIG" = "no" ; then
12678 PKG_CONFIG_MIN_VERSION
=0.9.0
12679 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12680 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12681 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12683 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12684 { $as_echo "$as_me:$LINENO: result: yes" >&5
12685 $as_echo "yes" >&6; }
12688 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12689 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12690 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12691 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12692 $as_echo "$GCONF_CFLAGS" >&6; }
12694 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12695 $as_echo_n "checking GCONF_LIBS... " >&6; }
12696 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12697 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12698 $as_echo "$GCONF_LIBS" >&6; }
12700 { $as_echo "$as_me:$LINENO: result: no" >&5
12701 $as_echo "no" >&6; }
12704 ## If we have a custom action on failure, don't print errors, but
12705 ## do set a variable so people can do so.
12706 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12713 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12714 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12718 if test $succeeded = yes; then
12724 if test "$HAVE_GCONF" = yes; then
12726 cat >>confdefs.h
<<\_ACEOF
12727 #define HAVE_GCONF 1
12735 if test "${with_selinux}" = "yes"; then
12736 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
12737 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12738 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
12739 $as_echo_n "(cached) " >&6
12741 ac_check_lib_save_LIBS
=$LIBS
12742 LIBS
="-lselinux $LIBS"
12743 cat >conftest.
$ac_ext <<_ACEOF
12746 cat confdefs.h
>>conftest.
$ac_ext
12747 cat >>conftest.
$ac_ext <<_ACEOF
12748 /* end confdefs.h. */
12750 /* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12756 char lgetfilecon ();
12760 return lgetfilecon ();
12765 rm -f conftest.
$ac_objext conftest
$ac_exeext
12766 if { (ac_try
="$ac_link"
12767 case "(($ac_try" in
12768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12772 $as_echo "$ac_try_echo") >&5
12773 (eval "$ac_link") 2>conftest.er1
12775 grep -v '^ *+' conftest.er1 >conftest.err
12777 cat conftest.err >&5
12778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } && {
12780 test -z "$ac_c_werror_flag" ||
12781 test ! -s conftest.err
12782 } && test -s conftest$ac_exeext && {
12783 test "$cross_compiling" = yes ||
12784 $as_test_x conftest$ac_exeext
12786 ac_cv_lib_selinux_lgetfilecon=yes
12788 $as_echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12791 ac_cv_lib_selinux_lgetfilecon=no
12794 rm -rf conftest.dSYM
12795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12796 conftest$ac_exeext conftest.$ac_ext
12797 LIBS=$ac_check_lib_save_LIBS
12799 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12800 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12801 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
12802 HAVE_LIBSELINUX=yes
12807 if test "$HAVE_LIBSELINUX" = yes; then
12809 cat >>confdefs.h <<\_ACEOF
12810 #define HAVE_LIBSELINUX 1
12813 LIBSELINUX_LIBS=-lselinux
12819 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12820 if test "$with_xaw3d" != no; then
12821 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12822 $as_echo_n "checking for xaw3d... " >&6; }
12823 if test "${emacs_cv_xaw3d+set}" = set; then
12824 $as_echo_n "(cached) " >&6
12826 cat >conftest.$ac_ext <<_ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12833 #include <X11/Intrinsic.h>
12834 #include <X11/Xaw3d/Simple.h>
12843 rm -f conftest.$ac_objext conftest$ac_exeext
12844 if { (ac_try="$ac_link"
12845 case "(($ac_try" in
12846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12847 *) ac_try_echo
=$ac_try;;
12849 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12850 $as_echo "$ac_try_echo") >&5
12851 (eval "$ac_link") 2>conftest.er1
12853 grep -v '^ *+' conftest.er1
>conftest.err
12855 cat conftest.err
>&5
12856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } && {
12858 test -z "$ac_c_werror_flag" ||
12859 test ! -s conftest.err
12860 } && test -s conftest
$ac_exeext && {
12861 test "$cross_compiling" = yes ||
12862 $as_test_x conftest
$ac_exeext
12866 $as_echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.
$ac_ext >&5
12872 rm -rf conftest.dSYM
12873 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12874 conftest
$ac_exeext conftest.
$ac_ext
12880 if test $emacs_cv_xaw3d = yes; then
12881 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12882 $as_echo "yes; using Lucid toolkit" >&6; }
12883 USE_X_TOOLKIT
=LUCID
12886 cat >>confdefs.h
<<\_ACEOF
12887 #define HAVE_XAW3D 1
12891 { $as_echo "$as_me:$LINENO: result: no" >&5
12892 $as_echo "no" >&6; }
12893 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12894 $as_echo_n "checking for libXaw... " >&6; }
12895 if test "${emacs_cv_xaw+set}" = set; then
12896 $as_echo_n "(cached) " >&6
12898 cat >conftest.
$ac_ext <<_ACEOF
12901 cat confdefs.h
>>conftest.
$ac_ext
12902 cat >>conftest.
$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12905 #include <X11/Intrinsic.h>
12906 #include <X11/Xaw/Simple.h>
12915 rm -f conftest.
$ac_objext conftest
$ac_exeext
12916 if { (ac_try
="$ac_link"
12917 case "(($ac_try" in
12918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12922 $as_echo "$ac_try_echo") >&5
12923 (eval "$ac_link") 2>conftest.er1
12925 grep -v '^ *+' conftest.er1 >conftest.err
12927 cat conftest.err >&5
12928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } && {
12930 test -z "$ac_c_werror_flag" ||
12931 test ! -s conftest.err
12932 } && test -s conftest$ac_exeext && {
12933 test "$cross_compiling" = yes ||
12934 $as_test_x conftest$ac_exeext
12938 $as_echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12944 rm -rf conftest.dSYM
12945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12946 conftest$ac_exeext conftest.$ac_ext
12949 if test $emacs_cv_xaw = yes; then
12950 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12951 $as_echo "yes; using Lucid toolkit" >&6; }
12952 USE_X_TOOLKIT=LUCID
12953 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12954 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12955 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12956 { (exit 1); exit 1; }; }
12958 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12959 $as_echo "no; do not use toolkit by default" >&6; }
12965 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12967 if test "${USE_X_TOOLKIT}" != "none"; then
12968 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12969 $as_echo_n "checking X11 toolkit version... " >&6; }
12970 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12971 $as_echo_n "(cached) " >&6
12973 cat >conftest.$ac_ext <<_ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */
12979 #include <X11/Intrinsic.h>
12983 #if XtSpecificationRelease < 6
12991 rm -f conftest.$ac_objext conftest$ac_exeext
12992 if { (ac_try="$ac_link"
12993 case "(($ac_try" in
12994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12995 *) ac_try_echo
=$ac_try;;
12997 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12998 $as_echo "$ac_try_echo") >&5
12999 (eval "$ac_link") 2>conftest.er1
13001 grep -v '^ *+' conftest.er1
>conftest.err
13003 cat conftest.err
>&5
13004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } && {
13006 test -z "$ac_c_werror_flag" ||
13007 test ! -s conftest.err
13008 } && test -s conftest
$ac_exeext && {
13009 test "$cross_compiling" = yes ||
13010 $as_test_x conftest
$ac_exeext
13012 emacs_cv_x11_toolkit_version_6
=yes
13014 $as_echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.
$ac_ext >&5
13017 emacs_cv_x11_toolkit_version_6
=no
13020 rm -rf conftest.dSYM
13021 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13022 conftest
$ac_exeext conftest.
$ac_ext
13025 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
13026 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13027 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13028 $as_echo "6 or newer" >&6; }
13030 cat >>confdefs.h
<<\_ACEOF
13031 #define HAVE_X11XTR6 1
13035 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13036 $as_echo "before 6" >&6; }
13040 if test x
$HAVE_X11XTR6 = xyes
; then
13041 LIBS
="-lXt -lSM -lICE $LIBS"
13046 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13047 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13048 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13049 $as_echo_n "(cached) " >&6
13051 ac_check_lib_save_LIBS
=$LIBS
13053 cat >conftest.
$ac_ext <<_ACEOF
13056 cat confdefs.h
>>conftest.
$ac_ext
13057 cat >>conftest.
$ac_ext <<_ACEOF
13058 /* end confdefs.h. */
13060 /* Override any GCC internal prototype to avoid an error.
13061 Use char because int might match the return type of a GCC
13062 builtin and then its argument prototype would still apply. */
13066 char XmuConvertStandardSelection ();
13070 return XmuConvertStandardSelection ();
13075 rm -f conftest.
$ac_objext conftest
$ac_exeext
13076 if { (ac_try
="$ac_link"
13077 case "(($ac_try" in
13078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13082 $as_echo "$ac_try_echo") >&5
13083 (eval "$ac_link") 2>conftest.er1
13085 grep -v '^ *+' conftest.er1 >conftest.err
13087 cat conftest.err >&5
13088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest$ac_exeext && {
13093 test "$cross_compiling" = yes ||
13094 $as_test_x conftest$ac_exeext
13096 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13098 $as_echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13101 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13104 rm -rf conftest.dSYM
13105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13106 conftest$ac_exeext conftest.$ac_ext
13107 LIBS=$ac_check_lib_save_LIBS
13109 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13110 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13111 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13112 cat >>confdefs.h <<_ACEOF
13113 #define HAVE_LIBXMU 1
13120 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13123 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13124 if test "${HAVE_X11}" = "yes"; then
13125 if test "${USE_X_TOOLKIT}" != "none"; then
13127 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13128 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13129 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13130 $as_echo_n "(cached) " >&6
13132 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-lXext $LIBS"
13134 cat >conftest.$ac_ext <<_ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13141 /* Override any GCC internal prototype to avoid an error.
13142 Use char because int might match the return type of a GCC
13143 builtin and then its argument prototype would still apply. */
13147 char XShapeQueryExtension ();
13151 return XShapeQueryExtension ();
13156 rm -f conftest.$ac_objext conftest$ac_exeext
13157 if { (ac_try="$ac_link"
13158 case "(($ac_try" in
13159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13160 *) ac_try_echo
=$ac_try;;
13162 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13163 $as_echo "$ac_try_echo") >&5
13164 (eval "$ac_link") 2>conftest.er1
13166 grep -v '^ *+' conftest.er1
>conftest.err
13168 cat conftest.err
>&5
13169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } && {
13171 test -z "$ac_c_werror_flag" ||
13172 test ! -s conftest.err
13173 } && test -s conftest
$ac_exeext && {
13174 test "$cross_compiling" = yes ||
13175 $as_test_x conftest
$ac_exeext
13177 ac_cv_lib_Xext_XShapeQueryExtension
=yes
13179 $as_echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.
$ac_ext >&5
13182 ac_cv_lib_Xext_XShapeQueryExtension
=no
13185 rm -rf conftest.dSYM
13186 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13187 conftest
$ac_exeext conftest.
$ac_ext
13188 LIBS
=$ac_check_lib_save_LIBS
13190 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13191 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13192 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13193 cat >>confdefs.h
<<_ACEOF
13194 #define HAVE_LIBXEXT 1
13197 LIBS
="-lXext $LIBS"
13204 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13205 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13206 $as_echo_n "checking for Motif version 2.1... " >&6; }
13207 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13208 $as_echo_n "(cached) " >&6
13210 cat >conftest.
$ac_ext <<_ACEOF
13213 cat confdefs.h
>>conftest.
$ac_ext
13214 cat >>conftest.
$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13220 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13223 Motif version prior to 2.1.
13229 rm -f conftest.
$ac_objext
13230 if { (ac_try
="$ac_compile"
13231 case "(($ac_try" in
13232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13236 $as_echo "$ac_try_echo") >&5
13237 (eval "$ac_compile") 2>conftest.er1
13239 grep -v '^ *+' conftest.er1 >conftest.err
13241 cat conftest.err >&5
13242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } && {
13244 test -z "$ac_c_werror_flag" ||
13245 test ! -s conftest.err
13246 } && test -s conftest.$ac_objext; then
13247 emacs_cv_motif_version_2_1=yes
13249 $as_echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13252 emacs_cv_motif_version_2_1=no
13255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13257 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13258 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13259 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13260 if test $emacs_cv_motif_version_2_1 = yes; then
13263 cat >>confdefs.h <<\_ACEOF
13264 #define HAVE_MOTIF_2_1 1
13267 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13268 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13269 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13270 $as_echo_n "(cached) " >&6
13272 ac_check_lib_save_LIBS=$LIBS
13274 cat >conftest.$ac_ext <<_ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13281 /* Override any GCC internal prototype to avoid an error.
13282 Use char because int might match the return type of a GCC
13283 builtin and then its argument prototype would still apply. */
13287 char XpCreateContext ();
13291 return XpCreateContext ();
13296 rm -f conftest.$ac_objext conftest$ac_exeext
13297 if { (ac_try="$ac_link"
13298 case "(($ac_try" in
13299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13300 *) ac_try_echo
=$ac_try;;
13302 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13303 $as_echo "$ac_try_echo") >&5
13304 (eval "$ac_link") 2>conftest.er1
13306 grep -v '^ *+' conftest.er1
>conftest.err
13308 cat conftest.err
>&5
13309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } && {
13311 test -z "$ac_c_werror_flag" ||
13312 test ! -s conftest.err
13313 } && test -s conftest
$ac_exeext && {
13314 test "$cross_compiling" = yes ||
13315 $as_test_x conftest
$ac_exeext
13317 ac_cv_lib_Xp_XpCreateContext
=yes
13319 $as_echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.
$ac_ext >&5
13322 ac_cv_lib_Xp_XpCreateContext
=no
13325 rm -rf conftest.dSYM
13326 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13327 conftest
$ac_exeext conftest.
$ac_ext
13328 LIBS
=$ac_check_lib_save_LIBS
13330 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13331 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13332 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13336 if test ${HAVE_LIBXP} = yes; then
13338 cat >>confdefs.h
<<\_ACEOF
13339 #define HAVE_LIBXP 1
13344 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13345 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13346 if test "${emacs_cv_lesstif+set}" = set; then
13347 $as_echo_n "(cached) " >&6
13349 # We put this in CFLAGS temporarily to precede other -I options
13350 # that might be in CFLAGS temporarily.
13351 # We put this in CPPFLAGS where it precedes the other -I options.
13352 OLD_CPPFLAGS
=$CPPFLAGS
13354 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13355 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13356 cat >conftest.
$ac_ext <<_ACEOF
13359 cat confdefs.h
>>conftest.
$ac_ext
13360 cat >>conftest.
$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13371 rm -f conftest.
$ac_objext
13372 if { (ac_try
="$ac_compile"
13373 case "(($ac_try" in
13374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13378 $as_echo "$ac_try_echo") >&5
13379 (eval "$ac_compile") 2>conftest.er1
13381 grep -v '^ *+' conftest.er1 >conftest.err
13383 cat conftest.err >&5
13384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } && {
13386 test -z "$ac_c_werror_flag" ||
13387 test ! -s conftest.err
13388 } && test -s conftest.$ac_objext; then
13389 emacs_cv_lesstif=yes
13391 $as_echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 emacs_cv_lesstif=no
13397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13399 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13400 $as_echo "$emacs_cv_lesstif" >&6; }
13401 if test $emacs_cv_lesstif = yes; then
13402 # Make sure this -I option remains in CPPFLAGS after it is set
13403 # back to REAL_CPPFLAGS.
13404 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13405 # have those other -I options anyway. Ultimately, having this
13406 # directory ultimately in CPPFLAGS will be enough.
13407 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13408 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13411 CPPFLAGS=$OLD_CPPFLAGS
13418 USE_TOOLKIT_SCROLL_BARS=no
13419 if test "${with_toolkit_scroll_bars}" != "no"; then
13420 if test "${USE_X_TOOLKIT}" != "none"; then
13421 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13422 cat >>confdefs.h <<\_ACEOF
13423 #define USE_TOOLKIT_SCROLL_BARS 1
13427 USE_TOOLKIT_SCROLL_BARS=yes
13428 elif test "${HAVE_XAW3D}" = "yes"; then
13429 cat >>confdefs.h <<\_ACEOF
13430 #define USE_TOOLKIT_SCROLL_BARS 1
13433 USE_TOOLKIT_SCROLL_BARS=yes
13435 elif test "${HAVE_GTK}" = "yes"; then
13436 cat >>confdefs.h <<\_ACEOF
13437 #define USE_TOOLKIT_SCROLL_BARS 1
13440 USE_TOOLKIT_SCROLL_BARS=yes
13441 elif test "${HAVE_NS}" = "yes"; then
13442 cat >>confdefs.h <<\_ACEOF
13443 #define USE_TOOLKIT_SCROLL_BARS 1
13446 USE_TOOLKIT_SCROLL_BARS=yes
13450 cat >conftest.$ac_ext <<_ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h. */
13457 #include <X11/Xlib.h>
13458 #include <X11/Xresource.h>
13467 rm -f conftest.$ac_objext
13468 if { (ac_try="$ac_compile"
13469 case "(($ac_try" in
13470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13471 *) ac_try_echo
=$ac_try;;
13473 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13474 $as_echo "$ac_try_echo") >&5
13475 (eval "$ac_compile") 2>conftest.er1
13477 grep -v '^ *+' conftest.er1
>conftest.err
13479 cat conftest.err
>&5
13480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } && {
13482 test -z "$ac_c_werror_flag" ||
13483 test ! -s conftest.err
13484 } && test -s conftest.
$ac_objext; then
13487 cat >>confdefs.h
<<\_ACEOF
13492 $as_echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.
$ac_ext >&5
13498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13501 if test "${with_xim}" != "no"; then
13503 cat >>confdefs.h
<<\_ACEOF
13510 if test "${HAVE_XIM}" != "no"; then
13511 late_CFLAGS
=$CFLAGS
13512 if test "$GCC" = yes; then
13513 CFLAGS
="$CFLAGS --pedantic-errors"
13515 cat >conftest.
$ac_ext <<_ACEOF
13518 cat confdefs.h
>>conftest.
$ac_ext
13519 cat >>conftest.
$ac_ext <<_ACEOF
13520 /* end confdefs.h. */
13522 #include <X11/Xlib.h>
13523 #include <X11/Xresource.h>
13532 XPointer *client_data;
13534 /* If we're not using GCC, it's probably not XFree86, and this is
13535 probably right, but we can't use something like --pedantic-errors. */
13536 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13537 char*, XIMProc, XPointer*);
13539 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13545 rm -f conftest.
$ac_objext
13546 if { (ac_try
="$ac_compile"
13547 case "(($ac_try" in
13548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13552 $as_echo "$ac_try_echo") >&5
13553 (eval "$ac_compile") 2>conftest.er1
13555 grep -v '^ *+' conftest.er1 >conftest.err
13557 cat conftest.err >&5
13558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } && {
13560 test -z "$ac_c_werror_flag" ||
13561 test ! -s conftest.err
13562 } && test -s conftest.$ac_objext; then
13563 emacs_cv_arg6_star=yes
13565 $as_echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573 if test "$emacs_cv_arg6_star" = yes; then
13574 cat >>confdefs.h <<\_ACEOF
13575 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13579 cat >>confdefs.h <<\_ACEOF
13580 #define XRegisterIMInstantiateCallback_arg6 XPointer
13584 CFLAGS=$late_CFLAGS
13587 ### Start of font-backend (under any platform) section.
13588 # (nothing here yet -- this is a placeholder)
13589 ### End of font-backend (under any platform) section.
13591 ### Start of font-backend (under X11) section.
13592 if test "${HAVE_X11}" = "yes"; then
13596 # Extract the first word of "pkg-config", so it can be a program name with args.
13597 set dummy pkg-config; ac_word=$2
13598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13599 $as_echo_n "checking for $ac_word... " >&6; }
13600 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13601 $as_echo_n "(cached) " >&6
13603 case $PKG_CONFIG in
13605 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13609 for as_dir in $PATH
13612 test -z "$as_dir" && as_dir=.
13613 for ac_exec_ext in '' $ac_executable_extensions; do
13614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13615 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13623 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13627 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13628 if test -n "$PKG_CONFIG"; then
13629 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13630 $as_echo "$PKG_CONFIG" >&6; }
13632 { $as_echo "$as_me:$LINENO: result: no" >&5
13633 $as_echo "no" >&6; }
13638 if test "$PKG_CONFIG" = "no" ; then
13641 PKG_CONFIG_MIN_VERSION=0.9.0
13642 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13643 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13644 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13646 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13647 { $as_echo "$as_me:$LINENO: result: yes" >&5
13648 $as_echo "yes" >&6; }
13651 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13652 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13653 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13654 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13655 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13657 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13658 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13659 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13660 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13661 $as_echo "$FONTCONFIG_LIBS" >&6; }
13663 { $as_echo "$as_me:$LINENO: result: no" >&5
13664 $as_echo "no" >&6; }
13665 FONTCONFIG_CFLAGS=""
13667 ## If we have a custom action on failure, don't print errors, but
13668 ## do set a variable so people can do so.
13669 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13676 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13677 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13681 if test $succeeded = yes; then
13688 ## Use -lXft if available, unless `--with-xft=no
'.
13690 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13693 if test "x${with_xft}" != "xno"; then
13698 # Extract the first word of "pkg-config", so it can be a program name with args.
13699 set dummy pkg-config; ac_word=$2
13700 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13701 $as_echo_n "checking for $ac_word... " >&6; }
13702 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13703 $as_echo_n "(cached) " >&6
13705 case $PKG_CONFIG in
13707 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13711 for as_dir in $PATH
13714 test -z "$as_dir" && as_dir=.
13715 for ac_exec_ext in '' $ac_executable_extensions; do
13716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13717 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13725 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13729 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13730 if test -n "$PKG_CONFIG"; then
13731 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13732 $as_echo "$PKG_CONFIG" >&6; }
13734 { $as_echo "$as_me:$LINENO: result: no" >&5
13735 $as_echo "no" >&6; }
13740 if test "$PKG_CONFIG" = "no" ; then
13743 PKG_CONFIG_MIN_VERSION=0.9.0
13744 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13745 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13746 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13748 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13749 { $as_echo "$as_me:$LINENO: result: yes" >&5
13750 $as_echo "yes" >&6; }
13753 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13754 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13755 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
13756 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13757 $as_echo "$XFT_CFLAGS" >&6; }
13759 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13760 $as_echo_n "checking XFT_LIBS... " >&6; }
13761 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
13762 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13763 $as_echo "$XFT_LIBS" >&6; }
13765 { $as_echo "$as_me:$LINENO: result: no" >&5
13766 $as_echo "no" >&6; }
13769 ## If we have a custom action on failure, don't print errors
, but
13770 ## do set a variable so people can do so.
13771 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13778 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13779 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13783 if test $succeeded = yes; then
13789 ## Because xftfont.c uses XRenderQueryExtension, we also
13790 ## need to link to -lXrender.
13792 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13793 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13794 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13795 $as_echo_n "(cached) " >&6
13797 ac_check_lib_save_LIBS
=$LIBS
13798 LIBS
="-lXrender $LIBS"
13799 cat >conftest.
$ac_ext <<_ACEOF
13802 cat confdefs.h
>>conftest.
$ac_ext
13803 cat >>conftest.
$ac_ext <<_ACEOF
13804 /* end confdefs.h. */
13806 /* Override any GCC internal prototype to avoid an error.
13807 Use char because int might match the return type of a GCC
13808 builtin and then its argument prototype would still apply. */
13812 char XRenderQueryExtension ();
13816 return XRenderQueryExtension ();
13821 rm -f conftest.
$ac_objext conftest
$ac_exeext
13822 if { (ac_try
="$ac_link"
13823 case "(($ac_try" in
13824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13825 *) ac_try_echo=$ac_try;;
13827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13828 $as_echo "$ac_try_echo") >&5
13829 (eval "$ac_link") 2>conftest.er1
13831 grep -v '^ *+' conftest.er1 >conftest.err
13833 cat conftest.err >&5
13834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } && {
13836 test -z "$ac_c_werror_flag" ||
13837 test ! -s conftest.err
13838 } && test -s conftest$ac_exeext && {
13839 test "$cross_compiling" = yes ||
13840 $as_test_x conftest$ac_exeext
13842 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13844 $as_echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13847 ac_cv_lib_Xrender_XRenderQueryExtension=no
13850 rm -rf conftest.dSYM
13851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13852 conftest$ac_exeext conftest.$ac_ext
13853 LIBS=$ac_check_lib_save_LIBS
13855 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13856 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13857 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13861 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13862 OLD_CPPFLAGS="$CPPFLAGS"
13863 OLD_CFLAGS="$CFLAGS"
13865 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13866 CFLAGS="$CFLAGS $XFT_CFLAGS"
13867 XFT_LIBS="-lXrender $XFT_LIBS"
13868 LIBS="$XFT_LIBS $LIBS"
13869 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13870 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13871 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13872 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13873 $as_echo_n "(cached) " >&6
13875 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13876 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13878 # Is the header compilable?
13879 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13880 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13881 cat >conftest.$ac_ext <<_ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13887 $ac_includes_default
13888 #include <X11/Xft/Xft.h>
13890 rm -f conftest.$ac_objext
13891 if { (ac_try="$ac_compile"
13892 case "(($ac_try" in
13893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13894 *) ac_try_echo
=$ac_try;;
13896 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13897 $as_echo "$ac_try_echo") >&5
13898 (eval "$ac_compile") 2>conftest.er1
13900 grep -v '^ *+' conftest.er1
>conftest.err
13902 cat conftest.err
>&5
13903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && {
13905 test -z "$ac_c_werror_flag" ||
13906 test ! -s conftest.err
13907 } && test -s conftest.
$ac_objext; then
13908 ac_header_compiler
=yes
13910 $as_echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.
$ac_ext >&5
13913 ac_header_compiler
=no
13916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13917 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13918 $as_echo "$ac_header_compiler" >&6; }
13920 # Is the header present?
13921 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13922 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13923 cat >conftest.
$ac_ext <<_ACEOF
13926 cat confdefs.h
>>conftest.
$ac_ext
13927 cat >>conftest.
$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 #include <X11/Xft/Xft.h>
13931 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13932 case "(($ac_try" in
13933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13937 $as_echo "$ac_try_echo") >&5
13938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13940 grep -v '^ *+' conftest.er1 >conftest.err
13942 cat conftest.err >&5
13943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } >/dev/null && {
13945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13948 ac_header_preproc=yes
13950 $as_echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 ac_header_preproc=no
13956 rm -f conftest.err conftest.$ac_ext
13957 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13958 $as_echo "$ac_header_preproc" >&6; }
13960 # So? What about this header?
13961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13963 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13964 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13965 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13966 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13967 ac_header_preproc=yes
13970 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13971 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13972 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13973 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13974 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13975 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13976 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13977 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13978 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13979 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13980 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13981 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13985 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13986 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13987 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13988 $as_echo_n "(cached) " >&6
13990 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13992 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13993 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13996 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13997 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13998 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13999 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14000 $as_echo_n "(cached) " >&6
14002 ac_check_lib_save_LIBS=$LIBS
14003 LIBS="-lXft $XFT_LIBS $LIBS"
14004 cat >conftest.$ac_ext <<_ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14011 /* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */
14017 char XftFontOpen ();
14021 return XftFontOpen ();
14026 rm -f conftest.$ac_objext conftest$ac_exeext
14027 if { (ac_try="$ac_link"
14028 case "(($ac_try" in
14029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14030 *) ac_try_echo
=$ac_try;;
14032 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14033 $as_echo "$ac_try_echo") >&5
14034 (eval "$ac_link") 2>conftest.er1
14036 grep -v '^ *+' conftest.er1
>conftest.err
14038 cat conftest.err
>&5
14039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } && {
14041 test -z "$ac_c_werror_flag" ||
14042 test ! -s conftest.err
14043 } && test -s conftest
$ac_exeext && {
14044 test "$cross_compiling" = yes ||
14045 $as_test_x conftest
$ac_exeext
14047 ac_cv_lib_Xft_XftFontOpen
=yes
14049 $as_echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.
$ac_ext >&5
14052 ac_cv_lib_Xft_XftFontOpen
=no
14055 rm -rf conftest.dSYM
14056 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14057 conftest
$ac_exeext conftest.
$ac_ext
14058 LIBS
=$ac_check_lib_save_LIBS
14060 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14061 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14062 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14070 if test "${HAVE_XFT}" = "yes"; then
14072 cat >>confdefs.h
<<\_ACEOF
14077 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14079 CPPFLAGS
="$OLD_CPPFLAGS"
14080 CFLAGS
="$OLD_CFLAGS"
14082 fi # "${HAVE_XFT}" = "yes"
14083 fi # "$HAVE_XFT" != no
14084 fi # "x${with_xft}" != "xno"
14086 if test "$HAVE_XFT" != "yes"; then
14092 ## We used to allow building with FreeType and without Xft.
14093 ## However, the ftx font backend driver is not in good shape.
14094 if test "${HAVE_XFT}" = "yes"; then
14101 if test "${HAVE_FREETYPE}" = "yes"; then
14103 cat >>confdefs.h
<<\_ACEOF
14104 #define HAVE_FREETYPE 1
14107 if test "${with_libotf}" != "no"; then
14111 # Extract the first word of "pkg-config", so it can be a program name with args.
14112 set dummy pkg-config
; ac_word
=$2
14113 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14114 $as_echo_n "checking for $ac_word... " >&6; }
14115 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14116 $as_echo_n "(cached) " >&6
14118 case $PKG_CONFIG in
14120 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14123 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14124 for as_dir
in $PATH
14127 test -z "$as_dir" && as_dir
=.
14128 for ac_exec_ext
in '' $ac_executable_extensions; do
14129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14130 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14138 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14142 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14143 if test -n "$PKG_CONFIG"; then
14144 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14145 $as_echo "$PKG_CONFIG" >&6; }
14147 { $as_echo "$as_me:$LINENO: result: no" >&5
14148 $as_echo "no" >&6; }
14153 if test "$PKG_CONFIG" = "no" ; then
14156 PKG_CONFIG_MIN_VERSION
=0.9.0
14157 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14158 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14159 $as_echo_n "checking for libotf... " >&6; }
14161 if $PKG_CONFIG --exists "libotf" 2>&5; then
14162 { $as_echo "$as_me:$LINENO: result: yes" >&5
14163 $as_echo "yes" >&6; }
14166 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14167 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14168 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14169 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14170 $as_echo "$LIBOTF_CFLAGS" >&6; }
14172 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14173 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14174 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14175 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14176 $as_echo "$LIBOTF_LIBS" >&6; }
14178 { $as_echo "$as_me:$LINENO: result: no" >&5
14179 $as_echo "no" >&6; }
14182 ## If we have a custom action on failure, don't print errors, but
14183 ## do set a variable so people can do so.
14184 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14191 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14192 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14196 if test $succeeded = yes; then
14202 if test "$HAVE_LIBOTF" = "yes"; then
14204 cat >>confdefs.h
<<\_ACEOF
14205 #define HAVE_LIBOTF 1
14208 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14209 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14210 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14211 $as_echo_n "(cached) " >&6
14213 ac_check_lib_save_LIBS
=$LIBS
14215 cat >conftest.
$ac_ext <<_ACEOF
14218 cat confdefs.h
>>conftest.
$ac_ext
14219 cat >>conftest.
$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14222 /* Override any GCC internal prototype to avoid an error.
14223 Use char because int might match the return type of a GCC
14224 builtin and then its argument prototype would still apply. */
14228 char OTF_get_variation_glyphs ();
14232 return OTF_get_variation_glyphs ();
14237 rm -f conftest.
$ac_objext conftest
$ac_exeext
14238 if { (ac_try
="$ac_link"
14239 case "(($ac_try" in
14240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14244 $as_echo "$ac_try_echo") >&5
14245 (eval "$ac_link") 2>conftest.er1
14247 grep -v '^ *+' conftest.er1 >conftest.err
14249 cat conftest.err >&5
14250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } && {
14252 test -z "$ac_c_werror_flag" ||
14253 test ! -s conftest.err
14254 } && test -s conftest$ac_exeext && {
14255 test "$cross_compiling" = yes ||
14256 $as_test_x conftest$ac_exeext
14258 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14260 $as_echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14266 rm -rf conftest.dSYM
14267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14268 conftest$ac_exeext conftest.$ac_ext
14269 LIBS=$ac_check_lib_save_LIBS
14271 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14272 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14273 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14274 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14276 HAVE_OTF_GET_VARIATION_GLYPHS=no
14279 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14281 cat >>confdefs.h <<\_ACEOF
14282 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14291 if test "${HAVE_LIBOTF}" = yes; then
14292 if test "${with_m17n_flt}" != "no"; then
14296 # Extract the first word of "pkg-config", so it can be a program name with args.
14297 set dummy pkg-config; ac_word=$2
14298 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14299 $as_echo_n "checking for $ac_word... " >&6; }
14300 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14301 $as_echo_n "(cached) " >&6
14303 case $PKG_CONFIG in
14305 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309 for as_dir in $PATH
14312 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do
14314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14315 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14323 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14327 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14328 if test -n "$PKG_CONFIG"; then
14329 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14330 $as_echo "$PKG_CONFIG" >&6; }
14332 { $as_echo "$as_me:$LINENO: result: no" >&5
14333 $as_echo "no" >&6; }
14338 if test "$PKG_CONFIG" = "no" ; then
14341 PKG_CONFIG_MIN_VERSION=0.9.0
14342 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14343 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14344 $as_echo_n "checking for m17n-flt... " >&6; }
14346 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14347 { $as_echo "$as_me:$LINENO: result: yes" >&5
14348 $as_echo "yes" >&6; }
14351 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14352 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14353 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14354 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14355 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14357 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14358 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14359 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14360 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14361 $as_echo "$M17N_FLT_LIBS" >&6; }
14363 { $as_echo "$as_me:$LINENO: result: no" >&5
14364 $as_echo "no" >&6; }
14367 ## If we have a custom action on failure, don't print errors, but
14368 ## do set a variable so people can do so.
14369 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14376 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14377 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14381 if test $succeeded = yes; then
14387 if test "$HAVE_M17N_FLT" = "yes"; then
14389 cat >>confdefs.h <<\_ACEOF
14390 #define HAVE_M17N_FLT 1
14402 ### End of font-backend (under X11) section.
14413 ### Use -lXpm if available, unless `--with-xpm=no
'.
14416 if test "${HAVE_X11}" = "yes"; then
14417 if test "${with_xpm}" != "no"; then
14418 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14419 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14420 $as_echo_n "checking for X11/xpm.h... " >&6; }
14421 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14422 $as_echo_n "(cached) " >&6
14424 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14425 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14427 # Is the header compilable?
14428 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14429 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14430 cat >conftest.$ac_ext <<_ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14436 $ac_includes_default
14437 #include <X11/xpm.h>
14439 rm -f conftest.$ac_objext
14440 if { (ac_try="$ac_compile"
14441 case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14446 $as_echo "$ac_try_echo") >&5
14447 (eval "$ac_compile") 2>conftest.er1
14449 grep -v '^
*+' conftest.er1 >conftest.err
14451 cat conftest.err >&5
14452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } && {
14454 test -z "$ac_c_werror_flag" ||
14455 test ! -s conftest.err
14456 } && test -s conftest.$ac_objext; then
14457 ac_header_compiler=yes
14459 $as_echo "$as_me: failed program was:" >&5
14460 sed 's
/^
/|
/' conftest.$ac_ext >&5
14462 ac_header_compiler=no
14465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14467 $as_echo "$ac_header_compiler" >&6; }
14469 # Is the header present?
14470 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14471 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14472 cat >conftest.$ac_ext <<_ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 #include <X11/xpm.h>
14480 if { (ac_try="$ac_cpp conftest.$ac_ext"
14481 case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14486 $as_echo "$ac_try_echo") >&5
14487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14489 grep -v '^
*+' conftest.er1 >conftest.err
14491 cat conftest.err >&5
14492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } >/dev/null && {
14494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14495 test ! -s conftest.err
14497 ac_header_preproc=yes
14499 $as_echo "$as_me: failed program was:" >&5
14500 sed 's
/^
/|
/' conftest.$ac_ext >&5
14502 ac_header_preproc=no
14505 rm -f conftest.err conftest.$ac_ext
14506 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14507 $as_echo "$ac_header_preproc" >&6; }
14509 # So? What about this header?
14510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14512 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14513 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14514 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14515 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14516 ac_header_preproc=yes
14519 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14520 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14521 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14522 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14523 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14524 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14525 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14526 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14527 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14528 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14529 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14530 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14534 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14535 $as_echo_n "checking for X11/xpm.h... " >&6; }
14536 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14537 $as_echo_n "(cached) " >&6
14539 ac_cv_header_X11_xpm_h=$ac_header_preproc
14541 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14542 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14545 if test $ac_cv_header_X11_xpm_h = yes; then
14546 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14547 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14548 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14549 $as_echo_n "(cached) " >&6
14551 ac_check_lib_save_LIBS=$LIBS
14552 LIBS="-lXpm -lX11 $LIBS"
14553 cat >conftest.$ac_ext <<_ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14560 /* Override any GCC internal prototype to avoid an error.
14561 Use char because int might match the return type of a GCC
14562 builtin and then its argument prototype would still apply. */
14566 char XpmReadFileToPixmap ();
14570 return XpmReadFileToPixmap ();
14575 rm -f conftest.$ac_objext conftest$ac_exeext
14576 if { (ac_try="$ac_link"
14577 case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14582 $as_echo "$ac_try_echo") >&5
14583 (eval "$ac_link") 2>conftest.er1
14585 grep -v '^
*+' conftest.er1 >conftest.err
14587 cat conftest.err >&5
14588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } && {
14590 test -z "$ac_c_werror_flag" ||
14591 test ! -s conftest.err
14592 } && test -s conftest$ac_exeext && {
14593 test "$cross_compiling" = yes ||
14594 $as_test_x conftest$ac_exeext
14596 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14598 $as_echo "$as_me: failed program was:" >&5
14599 sed 's
/^
/|
/' conftest.$ac_ext >&5
14601 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14604 rm -rf conftest.dSYM
14605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14606 conftest$ac_exeext conftest.$ac_ext
14607 LIBS=$ac_check_lib_save_LIBS
14609 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14610 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14611 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14618 if test "${HAVE_XPM}" = "yes"; then
14619 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14620 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14621 cat >conftest.$ac_ext <<_ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14627 #include "X11/xpm.h"
14628 #ifndef XpmReturnAllocPixels
14629 no_return_alloc_pixels
14633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14634 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14642 if test "${HAVE_XPM}" = "yes"; then
14643 { $as_echo "$as_me:$LINENO: result: yes" >&5
14644 $as_echo "yes" >&6; }
14646 { $as_echo "$as_me:$LINENO: result: no" >&5
14647 $as_echo "no" >&6; }
14652 if test "${HAVE_XPM}" = "yes"; then
14654 cat >>confdefs.h <<\_ACEOF
14663 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14666 if test "${HAVE_X11}" = "yes"; then
14667 if test "${with_jpeg}" != "no"; then
14668 if test "${ac_cv_header_jerror_h+set}" = set; then
14669 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14670 $as_echo_n "checking for jerror.h... " >&6; }
14671 if test "${ac_cv_header_jerror_h+set}" = set; then
14672 $as_echo_n "(cached) " >&6
14674 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14675 $as_echo "$ac_cv_header_jerror_h" >&6; }
14677 # Is the header compilable?
14678 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14679 $as_echo_n "checking jerror.h usability... " >&6; }
14680 cat >conftest.
$ac_ext <<_ACEOF
14683 cat confdefs.h
>>conftest.
$ac_ext
14684 cat >>conftest.
$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14686 $ac_includes_default
14687 #include <jerror.h>
14689 rm -f conftest.
$ac_objext
14690 if { (ac_try
="$ac_compile"
14691 case "(($ac_try" in
14692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14696 $as_echo "$ac_try_echo") >&5
14697 (eval "$ac_compile") 2>conftest.er1
14699 grep -v '^ *+' conftest.er1 >conftest.err
14701 cat conftest.err >&5
14702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && {
14704 test -z "$ac_c_werror_flag" ||
14705 test ! -s conftest.err
14706 } && test -s conftest.$ac_objext; then
14707 ac_header_compiler=yes
14709 $as_echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14712 ac_header_compiler=no
14715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14717 $as_echo "$ac_header_compiler" >&6; }
14719 # Is the header present?
14720 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14721 $as_echo_n "checking jerror.h presence... " >&6; }
14722 cat >conftest.$ac_ext <<_ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h. */
14728 #include <jerror.h>
14730 if { (ac_try="$ac_cpp conftest.$ac_ext"
14731 case "(($ac_try" in
14732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14733 *) ac_try_echo
=$ac_try;;
14735 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14736 $as_echo "$ac_try_echo") >&5
14737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14739 grep -v '^ *+' conftest.er1
>conftest.err
14741 cat conftest.err
>&5
14742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } >/dev
/null
&& {
14744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14745 test ! -s conftest.err
14747 ac_header_preproc
=yes
14749 $as_echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.
$ac_ext >&5
14752 ac_header_preproc
=no
14755 rm -f conftest.err conftest.
$ac_ext
14756 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14757 $as_echo "$ac_header_preproc" >&6; }
14759 # So? What about this header?
14760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14762 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14763 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14764 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14765 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14766 ac_header_preproc
=yes
14769 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14770 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14771 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14772 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14773 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14774 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14775 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14776 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14777 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14778 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14779 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14780 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14784 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14785 $as_echo_n "checking for jerror.h... " >&6; }
14786 if test "${ac_cv_header_jerror_h+set}" = set; then
14787 $as_echo_n "(cached) " >&6
14789 ac_cv_header_jerror_h
=$ac_header_preproc
14791 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14792 $as_echo "$ac_cv_header_jerror_h" >&6; }
14795 if test $ac_cv_header_jerror_h = yes; then
14796 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14797 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14798 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14799 $as_echo_n "(cached) " >&6
14801 ac_check_lib_save_LIBS
=$LIBS
14802 LIBS
="-ljpeg $LIBS"
14803 cat >conftest.
$ac_ext <<_ACEOF
14806 cat confdefs.h
>>conftest.
$ac_ext
14807 cat >>conftest.
$ac_ext <<_ACEOF
14808 /* end confdefs.h. */
14810 /* Override any GCC internal prototype to avoid an error.
14811 Use char because int might match the return type of a GCC
14812 builtin and then its argument prototype would still apply. */
14816 char jpeg_destroy_compress ();
14820 return jpeg_destroy_compress ();
14825 rm -f conftest.
$ac_objext conftest
$ac_exeext
14826 if { (ac_try
="$ac_link"
14827 case "(($ac_try" in
14828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14832 $as_echo "$ac_try_echo") >&5
14833 (eval "$ac_link") 2>conftest.er1
14835 grep -v '^ *+' conftest.er1 >conftest.err
14837 cat conftest.err >&5
14838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } && {
14840 test -z "$ac_c_werror_flag" ||
14841 test ! -s conftest.err
14842 } && test -s conftest$ac_exeext && {
14843 test "$cross_compiling" = yes ||
14844 $as_test_x conftest$ac_exeext
14846 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14848 $as_echo "$as_me: failed program was:" >&5
14849 sed 's/^/| /' conftest.$ac_ext >&5
14851 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14854 rm -rf conftest.dSYM
14855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14856 conftest$ac_exeext conftest.$ac_ext
14857 LIBS=$ac_check_lib_save_LIBS
14859 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14860 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14861 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14871 if test "${HAVE_JPEG}" = "yes"; then
14872 cat >>confdefs.h <<\_ACEOF
14873 #define HAVE_JPEG 1
14876 cat >conftest.$ac_ext <<_ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14882 #include <jpeglib.h>
14883 version=JPEG_LIB_VERSION
14886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14887 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14888 cat >>confdefs.h <<\_ACEOF
14889 #define HAVE_JPEG 1
14893 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14894 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14900 if test "${HAVE_JPEG}" = "yes"; then
14906 ### Use -lpng if available, unless `--with-png=no
'.
14909 if test "${HAVE_X11}" = "yes"; then
14910 if test "${with_png}" != "no"; then
14911 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14912 # in /usr/include/libpng.
14915 for ac_header in png.h libpng/png.h
14917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14919 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14920 $as_echo_n "checking for $ac_header... " >&6; }
14921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14922 $as_echo_n "(cached) " >&6
14924 ac_res=`eval 'as_val
=${'$as_ac_Header'}
14925 $as_echo "$as_val"'`
14926 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14927 $as_echo "$ac_res" >&6; }
14929 # Is the header compilable?
14930 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14931 $as_echo_n "checking $ac_header usability... " >&6; }
14932 cat >conftest.$ac_ext <<_ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h. */
14938 $ac_includes_default
14939 #include <$ac_header>
14941 rm -f conftest.$ac_objext
14942 if { (ac_try="$ac_compile"
14943 case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14948 $as_echo "$ac_try_echo") >&5
14949 (eval "$ac_compile") 2>conftest.er1
14951 grep -v '^
*+' conftest.er1 >conftest.err
14953 cat conftest.err >&5
14954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } && {
14956 test -z "$ac_c_werror_flag" ||
14957 test ! -s conftest.err
14958 } && test -s conftest.$ac_objext; then
14959 ac_header_compiler=yes
14961 $as_echo "$as_me: failed program was:" >&5
14962 sed 's
/^
/|
/' conftest.$ac_ext >&5
14964 ac_header_compiler=no
14967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14968 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14969 $as_echo "$ac_header_compiler" >&6; }
14971 # Is the header present?
14972 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14973 $as_echo_n "checking $ac_header presence... " >&6; }
14974 cat >conftest.$ac_ext <<_ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14980 #include <$ac_header>
14982 if { (ac_try="$ac_cpp conftest.$ac_ext"
14983 case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14988 $as_echo "$ac_try_echo") >&5
14989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14991 grep -v '^
*+' conftest.er1 >conftest.err
14993 cat conftest.err >&5
14994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } >/dev/null && {
14996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14997 test ! -s conftest.err
14999 ac_header_preproc=yes
15001 $as_echo "$as_me: failed program was:" >&5
15002 sed 's
/^
/|
/' conftest.$ac_ext >&5
15004 ac_header_preproc=no
15007 rm -f conftest.err conftest.$ac_ext
15008 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15009 $as_echo "$ac_header_preproc" >&6; }
15011 # So? What about this header?
15012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15015 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
15017 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
15018 ac_header_preproc=yes
15021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15022 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15024 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15026 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15028 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
15030 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
15031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15032 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15036 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15037 $as_echo_n "checking for $ac_header... " >&6; }
15038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15039 $as_echo_n "(cached) " >&6
15041 eval "$as_ac_Header=\$ac_header_preproc"
15043 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15044 $as_echo "$as_val"'`
15045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15046 $as_echo "$ac_res" >&6; }
15049 if test `eval 'as_val
=${'$as_ac_Header'}
15050 $as_echo "$as_val"'` = yes; then
15051 cat >>confdefs.h <<_ACEOF
15052 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15059 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15060 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15061 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15062 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15063 $as_echo_n "(cached) " >&6
15065 ac_check_lib_save_LIBS=$LIBS
15066 LIBS="-lpng -lz -lm $LIBS"
15067 cat >conftest.$ac_ext <<_ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15074 /* Override any GCC internal prototype to avoid an error.
15075 Use char because int might match the return type of a GCC
15076 builtin and then its argument prototype would still apply. */
15080 char png_get_channels ();
15084 return png_get_channels ();
15089 rm -f conftest.$ac_objext conftest$ac_exeext
15090 if { (ac_try="$ac_link"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15096 $as_echo "$ac_try_echo") >&5
15097 (eval "$ac_link") 2>conftest.er1
15099 grep -v '^
*+' conftest.er1 >conftest.err
15101 cat conftest.err >&5
15102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } && {
15104 test -z "$ac_c_werror_flag" ||
15105 test ! -s conftest.err
15106 } && test -s conftest$ac_exeext && {
15107 test "$cross_compiling" = yes ||
15108 $as_test_x conftest$ac_exeext
15110 ac_cv_lib_png_png_get_channels=yes
15112 $as_echo "$as_me: failed program was:" >&5
15113 sed 's
/^
/|
/' conftest.$ac_ext >&5
15115 ac_cv_lib_png_png_get_channels=no
15118 rm -rf conftest.dSYM
15119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15120 conftest$ac_exeext conftest.$ac_ext
15121 LIBS=$ac_check_lib_save_LIBS
15123 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15124 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15125 if test $ac_cv_lib_png_png_get_channels = yes; then
15132 if test "${HAVE_PNG}" = "yes"; then
15134 cat >>confdefs.h <<\_ACEOF
15138 LIBPNG="-lpng -lz -lm"
15143 ### Use -ltiff if available, unless `--with-tiff=no'.
15146 if test "${HAVE_X11}" = "yes"; then
15147 if test "${with_tiff}" != "no"; then
15148 if test "${ac_cv_header_tiffio_h+set}" = set; then
15149 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15150 $as_echo_n "checking for tiffio.h... " >&6; }
15151 if test "${ac_cv_header_tiffio_h+set}" = set; then
15152 $as_echo_n "(cached) " >&6
15154 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15155 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15157 # Is the header compilable?
15158 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15159 $as_echo_n "checking tiffio.h usability... " >&6; }
15160 cat >conftest.
$ac_ext <<_ACEOF
15163 cat confdefs.h
>>conftest.
$ac_ext
15164 cat >>conftest.
$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15166 $ac_includes_default
15167 #include <tiffio.h>
15169 rm -f conftest.
$ac_objext
15170 if { (ac_try
="$ac_compile"
15171 case "(($ac_try" in
15172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15173 *) ac_try_echo=$ac_try;;
15175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15176 $as_echo "$ac_try_echo") >&5
15177 (eval "$ac_compile") 2>conftest.er1
15179 grep -v '^ *+' conftest.er1 >conftest.err
15181 cat conftest.err >&5
15182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } && {
15184 test -z "$ac_c_werror_flag" ||
15185 test ! -s conftest.err
15186 } && test -s conftest.$ac_objext; then
15187 ac_header_compiler=yes
15189 $as_echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15192 ac_header_compiler=no
15195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15197 $as_echo "$ac_header_compiler" >&6; }
15199 # Is the header present?
15200 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15201 $as_echo_n "checking tiffio.h presence... " >&6; }
15202 cat >conftest.$ac_ext <<_ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208 #include <tiffio.h>
15210 if { (ac_try="$ac_cpp conftest.$ac_ext"
15211 case "(($ac_try" in
15212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15213 *) ac_try_echo
=$ac_try;;
15215 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15216 $as_echo "$ac_try_echo") >&5
15217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15219 grep -v '^ *+' conftest.er1
>conftest.err
15221 cat conftest.err
>&5
15222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } >/dev
/null
&& {
15224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15225 test ! -s conftest.err
15227 ac_header_preproc
=yes
15229 $as_echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.
$ac_ext >&5
15232 ac_header_preproc
=no
15235 rm -f conftest.err conftest.
$ac_ext
15236 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15237 $as_echo "$ac_header_preproc" >&6; }
15239 # So? What about this header?
15240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15242 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15243 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15244 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15245 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15246 ac_header_preproc
=yes
15249 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15250 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15251 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15252 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15253 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15254 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15255 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15256 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15257 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15258 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15259 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15260 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15264 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15265 $as_echo_n "checking for tiffio.h... " >&6; }
15266 if test "${ac_cv_header_tiffio_h+set}" = set; then
15267 $as_echo_n "(cached) " >&6
15269 ac_cv_header_tiffio_h
=$ac_header_preproc
15271 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15272 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15275 if test $ac_cv_header_tiffio_h = yes; then
15277 # At least one tiff package requires the jpeg library.
15278 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15279 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15280 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15281 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15282 $as_echo_n "(cached) " >&6
15284 ac_check_lib_save_LIBS
=$LIBS
15285 LIBS
="-ltiff $tifflibs $LIBS"
15286 cat >conftest.
$ac_ext <<_ACEOF
15289 cat confdefs.h
>>conftest.
$ac_ext
15290 cat >>conftest.
$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15293 /* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */
15299 char TIFFGetVersion ();
15303 return TIFFGetVersion ();
15308 rm -f conftest.
$ac_objext conftest
$ac_exeext
15309 if { (ac_try
="$ac_link"
15310 case "(($ac_try" in
15311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15315 $as_echo "$ac_try_echo") >&5
15316 (eval "$ac_link") 2>conftest.er1
15318 grep -v '^ *+' conftest.er1 >conftest.err
15320 cat conftest.err >&5
15321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } && {
15323 test -z "$ac_c_werror_flag" ||
15324 test ! -s conftest.err
15325 } && test -s conftest$ac_exeext && {
15326 test "$cross_compiling" = yes ||
15327 $as_test_x conftest$ac_exeext
15329 ac_cv_lib_tiff_TIFFGetVersion=yes
15331 $as_echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15334 ac_cv_lib_tiff_TIFFGetVersion=no
15337 rm -rf conftest.dSYM
15338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15339 conftest$ac_exeext conftest.$ac_ext
15340 LIBS=$ac_check_lib_save_LIBS
15342 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15343 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15344 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15353 if test "${HAVE_TIFF}" = "yes"; then
15355 cat >>confdefs.h <<\_ACEOF
15356 #define HAVE_TIFF 1
15364 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15367 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15368 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15369 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15370 $as_echo_n "checking for gif_lib.h... " >&6; }
15371 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15372 $as_echo_n "(cached) " >&6
15374 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15375 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15377 # Is the header compilable?
15378 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15379 $as_echo_n "checking gif_lib.h usability... " >&6; }
15380 cat >conftest.$ac_ext <<_ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 $ac_includes_default
15387 #include <gif_lib.h>
15389 rm -f conftest.$ac_objext
15390 if { (ac_try="$ac_compile"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15396 $as_echo "$ac_try_echo") >&5
15397 (eval "$ac_compile") 2>conftest.er1
15399 grep -v '^
*+' conftest.er1 >conftest.err
15401 cat conftest.err >&5
15402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } && {
15404 test -z "$ac_c_werror_flag" ||
15405 test ! -s conftest.err
15406 } && test -s conftest.$ac_objext; then
15407 ac_header_compiler=yes
15409 $as_echo "$as_me: failed program was:" >&5
15410 sed 's
/^
/|
/' conftest.$ac_ext >&5
15412 ac_header_compiler=no
15415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15417 $as_echo "$ac_header_compiler" >&6; }
15419 # Is the header present?
15420 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15421 $as_echo_n "checking gif_lib.h presence... " >&6; }
15422 cat >conftest.$ac_ext <<_ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15428 #include <gif_lib.h>
15430 if { (ac_try="$ac_cpp conftest.$ac_ext"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15436 $as_echo "$ac_try_echo") >&5
15437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15439 grep -v '^
*+' conftest.er1 >conftest.err
15441 cat conftest.err >&5
15442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } >/dev/null && {
15444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15445 test ! -s conftest.err
15447 ac_header_preproc=yes
15449 $as_echo "$as_me: failed program was:" >&5
15450 sed 's
/^
/|
/' conftest.$ac_ext >&5
15452 ac_header_preproc=no
15455 rm -f conftest.err conftest.$ac_ext
15456 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15457 $as_echo "$ac_header_preproc" >&6; }
15459 # So? What about this header?
15460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15462 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15463 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15464 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15465 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15466 ac_header_preproc=yes
15469 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15470 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15471 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15472 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15473 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15474 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15475 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15476 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15477 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15478 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15479 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15480 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15484 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15485 $as_echo_n "checking for gif_lib.h... " >&6; }
15486 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15487 $as_echo_n "(cached) " >&6
15489 ac_cv_header_gif_lib_h=$ac_header_preproc
15491 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15492 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15495 if test $ac_cv_header_gif_lib_h = yes; then
15496 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15497 # Earlier versions can crash Emacs.
15498 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15499 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15500 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15501 $as_echo_n "(cached) " >&6
15503 ac_check_lib_save_LIBS=$LIBS
15505 cat >conftest.$ac_ext <<_ACEOF
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h. */
15512 /* Override any GCC internal prototype to avoid an error.
15513 Use char because int might match the return type of a GCC
15514 builtin and then its argument prototype would still apply. */
15518 char EGifPutExtensionLast ();
15522 return EGifPutExtensionLast ();
15527 rm -f conftest.$ac_objext conftest$ac_exeext
15528 if { (ac_try="$ac_link"
15529 case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15534 $as_echo "$ac_try_echo") >&5
15535 (eval "$ac_link") 2>conftest.er1
15537 grep -v '^
*+' conftest.er1 >conftest.err
15539 cat conftest.err >&5
15540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } && {
15542 test -z "$ac_c_werror_flag" ||
15543 test ! -s conftest.err
15544 } && test -s conftest$ac_exeext && {
15545 test "$cross_compiling" = yes ||
15546 $as_test_x conftest$ac_exeext
15548 ac_cv_lib_gif_EGifPutExtensionLast=yes
15550 $as_echo "$as_me: failed program was:" >&5
15551 sed 's
/^
/|
/' conftest.$ac_ext >&5
15553 ac_cv_lib_gif_EGifPutExtensionLast=no
15556 rm -rf conftest.dSYM
15557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15558 conftest$ac_exeext conftest.$ac_ext
15559 LIBS=$ac_check_lib_save_LIBS
15561 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15562 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15563 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15573 if test "$HAVE_GIF" = yes; then
15575 elif test "$HAVE_GIF" = maybe; then
15576 # If gif_lib.h but no libgif, try libungif.
15577 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15578 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15579 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15580 $as_echo_n "(cached) " >&6
15582 ac_check_lib_save_LIBS=$LIBS
15583 LIBS="-lungif $LIBS"
15584 cat >conftest.$ac_ext <<_ACEOF
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h. */
15591 /* Override any GCC internal prototype to avoid an error.
15592 Use char because int might match the return type of a GCC
15593 builtin and then its argument prototype would still apply. */
15597 char EGifPutExtensionLast ();
15601 return EGifPutExtensionLast ();
15606 rm -f conftest.$ac_objext conftest$ac_exeext
15607 if { (ac_try="$ac_link"
15608 case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15613 $as_echo "$ac_try_echo") >&5
15614 (eval "$ac_link") 2>conftest.er1
15616 grep -v '^
*+' conftest.er1 >conftest.err
15618 cat conftest.err >&5
15619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } && {
15621 test -z "$ac_c_werror_flag" ||
15622 test ! -s conftest.err
15623 } && test -s conftest$ac_exeext && {
15624 test "$cross_compiling" = yes ||
15625 $as_test_x conftest$ac_exeext
15627 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15629 $as_echo "$as_me: failed program was:" >&5
15630 sed 's
/^
/|
/' conftest.$ac_ext >&5
15632 ac_cv_lib_ungif_EGifPutExtensionLast=no
15635 rm -rf conftest.dSYM
15636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15637 conftest$ac_exeext conftest.$ac_ext
15638 LIBS=$ac_check_lib_save_LIBS
15640 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15641 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15642 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15648 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15651 if test "${HAVE_GIF}" = "yes"; then
15653 cat >>confdefs.h <<\_ACEOF
15661 if test "${HAVE_X11}" = "yes"; then
15664 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15665 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15666 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15667 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15668 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15669 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15670 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15671 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15672 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15673 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15675 if test "X${MISSING}" != X; then
15676 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15678 Maybe some development libraries/packages are missing?
15679 If you don't want to link with them give
15681 as options to configure
" >&5
15682 $as_echo "$as_me: error
: The following required libraries were not found
:
15684 Maybe some development libraries
/packages are missing?
15685 If you don
't want to link with them give
15687 as options to configure" >&2;}
15688 { (exit 1); exit 1; }; }
15692 ### Use -lgpm if available, unless `--with-gpm=no'.
15695 if test "${with_gpm}" != "no"; then
15696 if test "${ac_cv_header_gpm_h+set}" = set; then
15697 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15698 $as_echo_n "checking for gpm.h... " >&6; }
15699 if test "${ac_cv_header_gpm_h+set}" = set; then
15700 $as_echo_n "(cached) " >&6
15702 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15703 $as_echo "$ac_cv_header_gpm_h" >&6; }
15705 # Is the header compilable?
15706 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15707 $as_echo_n "checking gpm.h usability... " >&6; }
15708 cat >conftest.
$ac_ext <<_ACEOF
15711 cat confdefs.h
>>conftest.
$ac_ext
15712 cat >>conftest.
$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15714 $ac_includes_default
15717 rm -f conftest.
$ac_objext
15718 if { (ac_try
="$ac_compile"
15719 case "(($ac_try" in
15720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15724 $as_echo "$ac_try_echo") >&5
15725 (eval "$ac_compile") 2>conftest.er1
15727 grep -v '^ *+' conftest.er1 >conftest.err
15729 cat conftest.err >&5
15730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } && {
15732 test -z "$ac_c_werror_flag" ||
15733 test ! -s conftest.err
15734 } && test -s conftest.$ac_objext; then
15735 ac_header_compiler=yes
15737 $as_echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15740 ac_header_compiler=no
15743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15744 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15745 $as_echo "$ac_header_compiler" >&6; }
15747 # Is the header present?
15748 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15749 $as_echo_n "checking gpm.h presence... " >&6; }
15750 cat >conftest.$ac_ext <<_ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15758 if { (ac_try="$ac_cpp conftest.$ac_ext"
15759 case "(($ac_try" in
15760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15761 *) ac_try_echo
=$ac_try;;
15763 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15764 $as_echo "$ac_try_echo") >&5
15765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15767 grep -v '^ *+' conftest.er1
>conftest.err
15769 cat conftest.err
>&5
15770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } >/dev
/null
&& {
15772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15773 test ! -s conftest.err
15775 ac_header_preproc
=yes
15777 $as_echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.
$ac_ext >&5
15780 ac_header_preproc
=no
15783 rm -f conftest.err conftest.
$ac_ext
15784 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15785 $as_echo "$ac_header_preproc" >&6; }
15787 # So? What about this header?
15788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15790 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15791 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15792 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15793 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15794 ac_header_preproc
=yes
15797 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15798 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15799 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15800 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15801 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15802 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15803 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15804 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15805 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15806 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15807 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15808 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15812 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15813 $as_echo_n "checking for gpm.h... " >&6; }
15814 if test "${ac_cv_header_gpm_h+set}" = set; then
15815 $as_echo_n "(cached) " >&6
15817 ac_cv_header_gpm_h
=$ac_header_preproc
15819 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15820 $as_echo "$ac_cv_header_gpm_h" >&6; }
15823 if test $ac_cv_header_gpm_h = yes; then
15824 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15825 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15826 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15827 $as_echo_n "(cached) " >&6
15829 ac_check_lib_save_LIBS
=$LIBS
15831 cat >conftest.
$ac_ext <<_ACEOF
15834 cat confdefs.h
>>conftest.
$ac_ext
15835 cat >>conftest.
$ac_ext <<_ACEOF
15836 /* end confdefs.h. */
15838 /* Override any GCC internal prototype to avoid an error.
15839 Use char because int might match the return type of a GCC
15840 builtin and then its argument prototype would still apply. */
15848 return Gpm_Open ();
15853 rm -f conftest.
$ac_objext conftest
$ac_exeext
15854 if { (ac_try
="$ac_link"
15855 case "(($ac_try" in
15856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15860 $as_echo "$ac_try_echo") >&5
15861 (eval "$ac_link") 2>conftest.er1
15863 grep -v '^ *+' conftest.er1 >conftest.err
15865 cat conftest.err >&5
15866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } && {
15868 test -z "$ac_c_werror_flag" ||
15869 test ! -s conftest.err
15870 } && test -s conftest$ac_exeext && {
15871 test "$cross_compiling" = yes ||
15872 $as_test_x conftest$ac_exeext
15874 ac_cv_lib_gpm_Gpm_Open=yes
15876 $as_echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15879 ac_cv_lib_gpm_Gpm_Open=no
15882 rm -rf conftest.dSYM
15883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15884 conftest$ac_exeext conftest.$ac_ext
15885 LIBS=$ac_check_lib_save_LIBS
15887 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15888 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15889 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15897 if test "${HAVE_GPM}" = "yes"; then
15899 cat >>confdefs.h <<\_ACEOF
15908 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15909 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15910 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15911 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15912 $as_echo_n "(cached) " >&6
15914 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15915 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15917 # Is the header compilable?
15918 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15919 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15920 cat >conftest.$ac_ext <<_ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 $ac_includes_default
15927 #include <malloc/malloc.h>
15929 rm -f conftest.$ac_objext
15930 if { (ac_try="$ac_compile"
15931 case "(($ac_try" in
15932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15933 *) ac_try_echo
=$ac_try;;
15935 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15936 $as_echo "$ac_try_echo") >&5
15937 (eval "$ac_compile") 2>conftest.er1
15939 grep -v '^ *+' conftest.er1
>conftest.err
15941 cat conftest.err
>&5
15942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } && {
15944 test -z "$ac_c_werror_flag" ||
15945 test ! -s conftest.err
15946 } && test -s conftest.
$ac_objext; then
15947 ac_header_compiler
=yes
15949 $as_echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.
$ac_ext >&5
15952 ac_header_compiler
=no
15955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15956 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15957 $as_echo "$ac_header_compiler" >&6; }
15959 # Is the header present?
15960 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15961 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15962 cat >conftest.
$ac_ext <<_ACEOF
15965 cat confdefs.h
>>conftest.
$ac_ext
15966 cat >>conftest.
$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15968 #include <malloc/malloc.h>
15970 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15971 case "(($ac_try" in
15972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15976 $as_echo "$ac_try_echo") >&5
15977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15979 grep -v '^ *+' conftest.er1 >conftest.err
15981 cat conftest.err >&5
15982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } >/dev/null && {
15984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15985 test ! -s conftest.err
15987 ac_header_preproc=yes
15989 $as_echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15992 ac_header_preproc=no
15995 rm -f conftest.err conftest.$ac_ext
15996 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15997 $as_echo "$ac_header_preproc" >&6; }
15999 # So? What about this header?
16000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16002 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16003 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16004 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16005 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16006 ac_header_preproc=yes
16009 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16010 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16011 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16012 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16013 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16014 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16015 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16016 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16017 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16018 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16019 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16020 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16024 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16025 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16026 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16027 $as_echo_n "(cached) " >&6
16029 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16031 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16032 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16035 if test $ac_cv_header_malloc_malloc_h = yes; then
16037 cat >>confdefs.h <<\_ACEOF
16038 #define HAVE_MALLOC_MALLOC_H 1
16045 ### Use NeXTstep API to implement GUI.
16046 if test "${HAVE_NS}" = "yes"; then
16048 cat >>confdefs.h <<\_ACEOF
16052 if test "${NS_IMPL_COCOA}" = "yes"; then
16054 cat >>confdefs.h <<\_ACEOF
16055 #define NS_IMPL_COCOA 1
16060 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16062 cat >>confdefs.h <<\_ACEOF
16063 #define NS_IMPL_GNUSTEP 1
16066 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16068 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16070 cat >>confdefs.h <<\_ACEOF
16071 #define NS_HAVE_NSINTEGER 1
16075 # We also have mouse menus.
16081 ### Use session management (-lSM -lICE) if available
16084 if test "${HAVE_X11}" = "yes"; then
16085 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16086 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16087 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16088 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16089 $as_echo_n "(cached) " >&6
16091 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16092 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16094 # Is the header compilable?
16095 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16096 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16097 cat >conftest.$ac_ext <<_ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 $ac_includes_default
16104 #include <X11/SM/SMlib.h>
16106 rm -f conftest.$ac_objext
16107 if { (ac_try="$ac_compile"
16108 case "(($ac_try" in
16109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16110 *) ac_try_echo
=$ac_try;;
16112 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16113 $as_echo "$ac_try_echo") >&5
16114 (eval "$ac_compile") 2>conftest.er1
16116 grep -v '^ *+' conftest.er1
>conftest.err
16118 cat conftest.err
>&5
16119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } && {
16121 test -z "$ac_c_werror_flag" ||
16122 test ! -s conftest.err
16123 } && test -s conftest.
$ac_objext; then
16124 ac_header_compiler
=yes
16126 $as_echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.
$ac_ext >&5
16129 ac_header_compiler
=no
16132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16133 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16134 $as_echo "$ac_header_compiler" >&6; }
16136 # Is the header present?
16137 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16138 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16139 cat >conftest.
$ac_ext <<_ACEOF
16142 cat confdefs.h
>>conftest.
$ac_ext
16143 cat >>conftest.
$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16145 #include <X11/SM/SMlib.h>
16147 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16148 case "(($ac_try" in
16149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16153 $as_echo "$ac_try_echo") >&5
16154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16156 grep -v '^ *+' conftest.er1 >conftest.err
16158 cat conftest.err >&5
16159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } >/dev/null && {
16161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16162 test ! -s conftest.err
16164 ac_header_preproc=yes
16166 $as_echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16169 ac_header_preproc=no
16172 rm -f conftest.err conftest.$ac_ext
16173 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16174 $as_echo "$ac_header_preproc" >&6; }
16176 # So? What about this header?
16177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16179 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16180 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16181 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16182 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16183 ac_header_preproc=yes
16186 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16187 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16188 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16189 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16190 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16191 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16192 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16193 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16194 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16195 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16196 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16197 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16201 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16202 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16203 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16204 $as_echo_n "(cached) " >&6
16206 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16208 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16209 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16212 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16213 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16214 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16215 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16216 $as_echo_n "(cached) " >&6
16218 ac_check_lib_save_LIBS=$LIBS
16219 LIBS="-lSM -lICE $LIBS"
16220 cat >conftest.$ac_ext <<_ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16227 /* Override any GCC internal prototype to avoid an error.
16228 Use char because int might match the return type of a GCC
16229 builtin and then its argument prototype would still apply. */
16233 char SmcOpenConnection ();
16237 return SmcOpenConnection ();
16242 rm -f conftest.$ac_objext conftest$ac_exeext
16243 if { (ac_try="$ac_link"
16244 case "(($ac_try" in
16245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16246 *) ac_try_echo
=$ac_try;;
16248 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16249 $as_echo "$ac_try_echo") >&5
16250 (eval "$ac_link") 2>conftest.er1
16252 grep -v '^ *+' conftest.er1
>conftest.err
16254 cat conftest.err
>&5
16255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } && {
16257 test -z "$ac_c_werror_flag" ||
16258 test ! -s conftest.err
16259 } && test -s conftest
$ac_exeext && {
16260 test "$cross_compiling" = yes ||
16261 $as_test_x conftest
$ac_exeext
16263 ac_cv_lib_SM_SmcOpenConnection
=yes
16265 $as_echo "$as_me: failed program was:" >&5
16266 sed 's/^/| /' conftest.
$ac_ext >&5
16268 ac_cv_lib_SM_SmcOpenConnection
=no
16271 rm -rf conftest.dSYM
16272 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16273 conftest
$ac_exeext conftest.
$ac_ext
16274 LIBS
=$ac_check_lib_save_LIBS
16276 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16277 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16278 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16286 if test "${HAVE_X_SM}" = "yes"; then
16288 cat >>confdefs.h
<<\_ACEOF
16289 #define HAVE_X_SM 1
16292 LIBXSM
="-lSM -lICE"
16295 *) LIBS
="$LIBXSM $LIBS" ;;
16301 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16302 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16303 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16304 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16305 $as_echo_n "(cached) " >&6
16307 cat >conftest.
$ac_ext <<_ACEOF
16310 cat confdefs.h
>>conftest.
$ac_ext
16311 cat >>conftest.
$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16322 rm -f conftest.
$ac_objext conftest
$ac_exeext
16323 if { (ac_try
="$ac_link"
16324 case "(($ac_try" in
16325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16329 $as_echo "$ac_try_echo") >&5
16330 (eval "$ac_link") 2>conftest.er1
16332 grep -v '^ *+' conftest.er1 >conftest.err
16334 cat conftest.err >&5
16335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); } && {
16337 test -z "$ac_c_werror_flag" ||
16338 test ! -s conftest.err
16339 } && test -s conftest$ac_exeext && {
16340 test "$cross_compiling" = yes ||
16341 $as_test_x conftest$ac_exeext
16343 emacs_cv_netdb_declares_h_errno=yes
16345 $as_echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16348 emacs_cv_netdb_declares_h_errno=no
16351 rm -rf conftest.dSYM
16352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16353 conftest$ac_exeext conftest.$ac_ext
16355 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16356 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16357 if test $emacs_cv_netdb_declares_h_errno = yes; then
16359 cat >>confdefs.h <<\_ACEOF
16360 #define HAVE_H_ERRNO 1
16365 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16366 # for constant arguments. Useless!
16367 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16368 $as_echo_n "checking for working alloca.h... " >&6; }
16369 if test "${ac_cv_working_alloca_h+set}" = set; then
16370 $as_echo_n "(cached) " >&6
16372 cat >conftest.$ac_ext <<_ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16378 #include <alloca.h>
16382 char *p = (char *) alloca (2 * sizeof (int));
16388 rm -f conftest.$ac_objext conftest$ac_exeext
16389 if { (ac_try="$ac_link"
16390 case "(($ac_try" in
16391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16392 *) ac_try_echo
=$ac_try;;
16394 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16395 $as_echo "$ac_try_echo") >&5
16396 (eval "$ac_link") 2>conftest.er1
16398 grep -v '^ *+' conftest.er1
>conftest.err
16400 cat conftest.err
>&5
16401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } && {
16403 test -z "$ac_c_werror_flag" ||
16404 test ! -s conftest.err
16405 } && test -s conftest
$ac_exeext && {
16406 test "$cross_compiling" = yes ||
16407 $as_test_x conftest
$ac_exeext
16409 ac_cv_working_alloca_h
=yes
16411 $as_echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.
$ac_ext >&5
16414 ac_cv_working_alloca_h
=no
16417 rm -rf conftest.dSYM
16418 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16419 conftest
$ac_exeext conftest.
$ac_ext
16421 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16422 $as_echo "$ac_cv_working_alloca_h" >&6; }
16423 if test $ac_cv_working_alloca_h = yes; then
16425 cat >>confdefs.h
<<\_ACEOF
16426 #define HAVE_ALLOCA_H 1
16431 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16432 $as_echo_n "checking for alloca... " >&6; }
16433 if test "${ac_cv_func_alloca_works+set}" = set; then
16434 $as_echo_n "(cached) " >&6
16436 cat >conftest.
$ac_ext <<_ACEOF
16439 cat confdefs.h
>>conftest.
$ac_ext
16440 cat >>conftest.
$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16443 # define alloca __builtin_alloca
16446 # include <malloc.h>
16447 # define alloca _alloca
16449 # ifdef HAVE_ALLOCA_H
16450 # include <alloca.h>
16455 # ifndef alloca /* predefined by HP cc +Olibcalls */
16466 char *p = (char *) alloca (1);
16472 rm -f conftest.
$ac_objext conftest
$ac_exeext
16473 if { (ac_try
="$ac_link"
16474 case "(($ac_try" in
16475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16479 $as_echo "$ac_try_echo") >&5
16480 (eval "$ac_link") 2>conftest.er1
16482 grep -v '^ *+' conftest.er1 >conftest.err
16484 cat conftest.err >&5
16485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } && {
16487 test -z "$ac_c_werror_flag" ||
16488 test ! -s conftest.err
16489 } && test -s conftest$ac_exeext && {
16490 test "$cross_compiling" = yes ||
16491 $as_test_x conftest$ac_exeext
16493 ac_cv_func_alloca_works=yes
16495 $as_echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 ac_cv_func_alloca_works=no
16501 rm -rf conftest.dSYM
16502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16503 conftest$ac_exeext conftest.$ac_ext
16505 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16506 $as_echo "$ac_cv_func_alloca_works" >&6; }
16508 if test $ac_cv_func_alloca_works = yes; then
16510 cat >>confdefs.h <<\_ACEOF
16511 #define HAVE_ALLOCA 1
16515 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16516 # that cause trouble. Some versions do not even contain alloca or
16517 # contain a buggy version. If you still want to use their alloca,
16518 # use ar to extract alloca.o from them instead of compiling alloca.c.
16520 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16522 cat >>confdefs.h <<\_ACEOF
16527 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16528 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16529 if test "${ac_cv_os_cray+set}" = set; then
16530 $as_echo_n "(cached
) " >&6
16532 cat >conftest.$ac_ext <<_ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h. */
16538 #if defined CRAY && ! defined CRAY2
16545 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16546 $EGREP "webecray
" >/dev/null 2>&1; then
16554 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16555 $as_echo "$ac_cv_os_cray" >&6; }
16556 if test $ac_cv_os_cray = yes; then
16557 for ac_func in _getb67 GETB67 getb67; do
16558 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16559 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16560 $as_echo_n "checking
for $ac_func...
" >&6; }
16561 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16562 $as_echo_n "(cached
) " >&6
16564 cat >conftest.$ac_ext <<_ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h. */
16570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16572 #define $ac_func innocuous_$ac_func
16574 /* System header to define __stub macros and hopefully few prototypes,
16575 which can conflict with char $ac_func (); below.
16576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16577 <limits.h> exists even on freestanding compilers. */
16580 # include <limits.h>
16582 # include <assert.h>
16587 /* Override any GCC internal prototype to avoid an error.
16588 Use char because int might match the return type of a GCC
16589 builtin and then its argument prototype would still apply. */
16594 /* The GNU C library defines this for functions which it implements
16595 to always fail with ENOSYS. Some functions are actually named
16596 something starting with __ and the normal name is an alias. */
16597 #if defined __stub_$ac_func || defined __stub___$ac_func
16604 return $ac_func ();
16609 rm -f conftest.$ac_objext conftest$ac_exeext
16610 if { (ac_try="$ac_link"
16611 case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16615 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16616 $as_echo "$ac_try_echo") >&5
16617 (eval "$ac_link") 2>conftest.er1
16619 grep -v '^ *+' conftest.er1 >conftest.err
16621 cat conftest.err >&5
16622 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16623 (exit $ac_status); } && {
16624 test -z "$ac_c_werror_flag" ||
16625 test ! -s conftest.err
16626 } && test -s conftest$ac_exeext && {
16627 test "$cross_compiling" = yes ||
16628 $as_test_x conftest$ac_exeext
16630 eval "$as_ac_var=yes"
16632 $as_echo "$as_me: failed program was
:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16635 eval "$as_ac_var=no
"
16638 rm -rf conftest.dSYM
16639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16640 conftest$ac_exeext conftest.$ac_ext
16642 ac_res=`eval 'as_val=${'$as_ac_var'}
16643 $as_echo "$as_val"'`
16644 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16645 $as_echo "$ac_res" >&6; }
16646 if test `eval 'as_val=${'$as_ac_var'}
16647 $as_echo "$as_val"'` = yes; then
16649 cat >>confdefs.h <<_ACEOF
16650 #define CRAY_STACKSEG_END $ac_func
16659 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16660 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16661 if test "${ac_cv_c_stack_direction+set}" = set; then
16662 $as_echo_n "(cached
) " >&6
16664 if test "$cross_compiling" = yes; then
16665 ac_cv_c_stack_direction=0
16667 cat >conftest.$ac_ext <<_ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16673 $ac_includes_default
16675 find_stack_direction ()
16677 static char *addr = 0;
16682 return find_stack_direction ();
16685 return (&dummy > addr) ? 1 : -1;
16691 return find_stack_direction () < 0;
16694 rm -f conftest$ac_exeext
16695 if { (ac_try="$ac_link"
16696 case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16700 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16701 $as_echo "$ac_try_echo") >&5
16702 (eval "$ac_link") 2>&5
16704 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16706 { (case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16710 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16711 $as_echo "$ac_try_echo") >&5
16712 (eval "$ac_try") 2>&5
16714 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 ac_cv_c_stack_direction=1
16718 $as_echo "$as_me: program exited with status
$ac_status" >&5
16719 $as_echo "$as_me: failed program was
:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16722 ( exit $ac_status )
16723 ac_cv_c_stack_direction=-1
16725 rm -rf conftest.dSYM
16726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16731 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
16732 $as_echo "$ac_cv_c_stack_direction" >&6; }
16734 cat >>confdefs.h <<_ACEOF
16735 #define STACK_DIRECTION $ac_cv_c_stack_direction
16742 if test x"$ac_cv_func_alloca_works" != xyes; then
16743 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
16744 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
16745 { (exit 1); exit 1; }; }
16748 # fmod, logb, and frexp are found in -lm on most systems.
16749 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16751 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
16752 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
16753 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16754 $as_echo_n "(cached
) " >&6
16756 ac_check_lib_save_LIBS=$LIBS
16758 cat >conftest.$ac_ext <<_ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16765 /* Override any GCC internal prototype to avoid an error.
16766 Use char because int might match the return type of a GCC
16767 builtin and then its argument prototype would still apply. */
16780 rm -f conftest.$ac_objext conftest$ac_exeext
16781 if { (ac_try="$ac_link"
16782 case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16786 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16787 $as_echo "$ac_try_echo") >&5
16788 (eval "$ac_link") 2>conftest.er1
16790 grep -v '^ *+' conftest.er1 >conftest.err
16792 cat conftest.err >&5
16793 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16794 (exit $ac_status); } && {
16795 test -z "$ac_c_werror_flag" ||
16796 test ! -s conftest.err
16797 } && test -s conftest$ac_exeext && {
16798 test "$cross_compiling" = yes ||
16799 $as_test_x conftest$ac_exeext
16801 ac_cv_lib_m_sqrt=yes
16803 $as_echo "$as_me: failed program was
:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16806 ac_cv_lib_m_sqrt=no
16809 rm -rf conftest.dSYM
16810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16811 conftest$ac_exeext conftest.$ac_ext
16812 LIBS=$ac_check_lib_save_LIBS
16814 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
16815 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16816 if test $ac_cv_lib_m_sqrt = yes; then
16817 cat >>confdefs.h <<_ACEOF
16818 #define HAVE_LIBM 1
16826 # Check for mail-locking functions in a "mail" library. Probably this should
16827 # have the same check as for liblockfile below.
16828 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
16829 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
16830 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16831 $as_echo_n "(cached
) " >&6
16833 ac_check_lib_save_LIBS=$LIBS
16834 LIBS="-lmail $LIBS"
16835 cat >conftest.$ac_ext <<_ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16842 /* Override any GCC internal prototype to avoid an error.
16843 Use char because int might match the return type of a GCC
16844 builtin and then its argument prototype would still apply. */
16852 return maillock ();
16857 rm -f conftest.$ac_objext conftest$ac_exeext
16858 if { (ac_try="$ac_link"
16859 case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16863 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16864 $as_echo "$ac_try_echo") >&5
16865 (eval "$ac_link") 2>conftest.er1
16867 grep -v '^ *+' conftest.er1 >conftest.err
16869 cat conftest.err >&5
16870 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16871 (exit $ac_status); } && {
16872 test -z "$ac_c_werror_flag" ||
16873 test ! -s conftest.err
16874 } && test -s conftest$ac_exeext && {
16875 test "$cross_compiling" = yes ||
16876 $as_test_x conftest$ac_exeext
16878 ac_cv_lib_mail_maillock=yes
16880 $as_echo "$as_me: failed program was
:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16883 ac_cv_lib_mail_maillock=no
16886 rm -rf conftest.dSYM
16887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16888 conftest$ac_exeext conftest.$ac_ext
16889 LIBS=$ac_check_lib_save_LIBS
16891 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
16892 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16893 if test $ac_cv_lib_mail_maillock = yes; then
16899 if test $have_mail = yes; then
16901 LIBS="$LIBS_MAIL $LIBS"
16903 cat >>confdefs.h <<\_ACEOF
16904 #define HAVE_LIBMAIL 1
16910 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
16911 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
16912 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16913 $as_echo_n "(cached
) " >&6
16915 ac_check_lib_save_LIBS=$LIBS
16916 LIBS="-llockfile $LIBS"
16917 cat >conftest.$ac_ext <<_ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h. */
16924 /* Override any GCC internal prototype to avoid an error.
16925 Use char because int might match the return type of a GCC
16926 builtin and then its argument prototype would still apply. */
16934 return maillock ();
16939 rm -f conftest.$ac_objext conftest$ac_exeext
16940 if { (ac_try="$ac_link"
16941 case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16945 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16946 $as_echo "$ac_try_echo") >&5
16947 (eval "$ac_link") 2>conftest.er1
16949 grep -v '^ *+' conftest.er1 >conftest.err
16951 cat conftest.err >&5
16952 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16953 (exit $ac_status); } && {
16954 test -z "$ac_c_werror_flag" ||
16955 test ! -s conftest.err
16956 } && test -s conftest$ac_exeext && {
16957 test "$cross_compiling" = yes ||
16958 $as_test_x conftest$ac_exeext
16960 ac_cv_lib_lockfile_maillock=yes
16962 $as_echo "$as_me: failed program was
:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ac_cv_lib_lockfile_maillock=no
16968 rm -rf conftest.dSYM
16969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16970 conftest$ac_exeext conftest.$ac_ext
16971 LIBS=$ac_check_lib_save_LIBS
16973 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
16974 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16975 if test $ac_cv_lib_lockfile_maillock = yes; then
16981 if test $have_lockfile = yes; then
16982 LIBS_MAIL=-llockfile
16983 LIBS="$LIBS_MAIL $LIBS"
16985 cat >>confdefs.h <<\_ACEOF
16986 #define HAVE_LIBLOCKFILE 1
16990 # If we have the shared liblockfile, assume we must use it for mail
16991 # locking (e.g. Debian). If we couldn't link against liblockfile
16992 # (no liblockfile.a installed), ensure that we don't need to.
16993 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
16994 set dummy liblockfile.so; ac_word=$2
16995 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
16996 $as_echo_n "checking
for $ac_word...
" >&6; }
16997 if test "${ac_cv_prog_liblockfile+set}" = set; then
16998 $as_echo_n "(cached
) " >&6
17000 if test -n "$liblockfile"; then
17001 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17004 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
17005 for as_dir in $as_dummy
17008 test -z "$as_dir" && as_dir=.
17009 for ac_exec_ext in '' $ac_executable_extensions; do
17010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17011 ac_cv_prog_liblockfile="yes"
17012 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17019 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
17022 liblockfile=$ac_cv_prog_liblockfile
17023 if test -n "$liblockfile"; then
17024 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
17025 $as_echo "$liblockfile" >&6; }
17027 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17028 $as_echo "no
" >&6; }
17032 if test $ac_cv_prog_liblockfile = yes; then
17033 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
17034 This probably means that movemail could lose mail.
17035 There may be a \`development' package to
install containing liblockfile.
" >&5
17036 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
17037 This probably means that movemail could lose mail.
17038 There may be a \`development' package to
install containing liblockfile.
" >&2;}
17039 { (exit 1); exit 1; }; }
17043 for ac_func in touchlock
17045 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17046 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17047 $as_echo_n "checking
for $ac_func...
" >&6; }
17048 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17049 $as_echo_n "(cached
) " >&6
17051 cat >conftest.$ac_ext <<_ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h. */
17057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17059 #define $ac_func innocuous_$ac_func
17061 /* System header to define __stub macros and hopefully few prototypes,
17062 which can conflict with char $ac_func (); below.
17063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17064 <limits.h> exists even on freestanding compilers. */
17067 # include <limits.h>
17069 # include <assert.h>
17074 /* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17081 /* The GNU C library defines this for functions which it implements
17082 to always fail with ENOSYS. Some functions are actually named
17083 something starting with __ and the normal name is an alias. */
17084 #if defined __stub_$ac_func || defined __stub___$ac_func
17091 return $ac_func ();
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (ac_try="$ac_link"
17098 case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17102 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17103 $as_echo "$ac_try_echo") >&5
17104 (eval "$ac_link") 2>conftest.er1
17106 grep -v '^ *+' conftest.er1 >conftest.err
17108 cat conftest.err >&5
17109 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17110 (exit $ac_status); } && {
17111 test -z "$ac_c_werror_flag" ||
17112 test ! -s conftest.err
17113 } && test -s conftest$ac_exeext && {
17114 test "$cross_compiling" = yes ||
17115 $as_test_x conftest$ac_exeext
17117 eval "$as_ac_var=yes"
17119 $as_echo "$as_me: failed program was
:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17122 eval "$as_ac_var=no
"
17125 rm -rf conftest.dSYM
17126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17127 conftest$ac_exeext conftest.$ac_ext
17129 ac_res=`eval 'as_val=${'$as_ac_var'}
17130 $as_echo "$as_val"'`
17131 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17132 $as_echo "$ac_res" >&6; }
17133 if test `eval 'as_val=${'$as_ac_var'}
17134 $as_echo "$as_val"'` = yes; then
17135 cat >>confdefs.h <<_ACEOF
17136 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17143 for ac_header in maillock.h
17145 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17146 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17147 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17148 $as_echo_n "checking
for $ac_header...
" >&6; }
17149 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17150 $as_echo_n "(cached
) " >&6
17152 ac_res=`eval 'as_val=${'$as_ac_Header'}
17153 $as_echo "$as_val"'`
17154 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17155 $as_echo "$ac_res" >&6; }
17157 # Is the header compilable?
17158 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17159 $as_echo_n "checking
$ac_header usability...
" >&6; }
17160 cat >conftest.$ac_ext <<_ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17166 $ac_includes_default
17167 #include <$ac_header>
17169 rm -f conftest.$ac_objext
17170 if { (ac_try="$ac_compile"
17171 case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17175 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17176 $as_echo "$ac_try_echo") >&5
17177 (eval "$ac_compile") 2>conftest.er1
17179 grep -v '^ *+' conftest.er1 >conftest.err
17181 cat conftest.err >&5
17182 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17183 (exit $ac_status); } && {
17184 test -z "$ac_c_werror_flag" ||
17185 test ! -s conftest.err
17186 } && test -s conftest.$ac_objext; then
17187 ac_header_compiler=yes
17189 $as_echo "$as_me: failed program was
:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17192 ac_header_compiler=no
17195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17196 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17197 $as_echo "$ac_header_compiler" >&6; }
17199 # Is the header present?
17200 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17201 $as_echo_n "checking
$ac_header presence...
" >&6; }
17202 cat >conftest.$ac_ext <<_ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 #include <$ac_header>
17210 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17211 case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17215 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17216 $as_echo "$ac_try_echo") >&5
17217 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17219 grep -v '^ *+' conftest.er1 >conftest.err
17221 cat conftest.err >&5
17222 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17223 (exit $ac_status); } >/dev/null && {
17224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17225 test ! -s conftest.err
17227 ac_header_preproc=yes
17229 $as_echo "$as_me: failed program was
:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17232 ac_header_preproc=no
17235 rm -f conftest.err conftest.$ac_ext
17236 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17237 $as_echo "$ac_header_preproc" >&6; }
17239 # So? What about this header?
17240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17242 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17243 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17244 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17245 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17246 ac_header_preproc=yes
17249 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17250 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17251 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17252 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17253 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17254 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17255 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17256 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17257 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17258 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17259 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17260 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17264 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17265 $as_echo_n "checking
for $ac_header...
" >&6; }
17266 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17267 $as_echo_n "(cached
) " >&6
17269 eval "$as_ac_Header=\
$ac_header_preproc"
17271 ac_res=`eval 'as_val=${'$as_ac_Header'}
17272 $as_echo "$as_val"'`
17273 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17274 $as_echo "$ac_res" >&6; }
17277 if test `eval 'as_val=${'$as_ac_Header'}
17278 $as_echo "$as_val"'` = yes; then
17279 cat >>confdefs.h <<_ACEOF
17280 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17360 for ac_func in gethostname getdomainname dup2 \
17361 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17362 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17363 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17364 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17365 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17366 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17367 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17368 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17369 cfmakeraw cfsetspeed
17371 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17372 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17373 $as_echo_n "checking
for $ac_func...
" >&6; }
17374 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17375 $as_echo_n "(cached
) " >&6
17377 cat >conftest.$ac_ext <<_ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17385 #define $ac_func innocuous_$ac_func
17387 /* System header to define __stub macros and hopefully few prototypes,
17388 which can conflict with char $ac_func (); below.
17389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17390 <limits.h> exists even on freestanding compilers. */
17393 # include <limits.h>
17395 # include <assert.h>
17400 /* Override any GCC internal prototype to avoid an error.
17401 Use char because int might match the return type of a GCC
17402 builtin and then its argument prototype would still apply. */
17407 /* The GNU C library defines this for functions which it implements
17408 to always fail with ENOSYS. Some functions are actually named
17409 something starting with __ and the normal name is an alias. */
17410 #if defined __stub_$ac_func || defined __stub___$ac_func
17417 return $ac_func ();
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17428 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17429 $as_echo "$ac_try_echo") >&5
17430 (eval "$ac_link") 2>conftest.er1
17432 grep -v '^ *+' conftest.er1 >conftest.err
17434 cat conftest.err >&5
17435 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17436 (exit $ac_status); } && {
17437 test -z "$ac_c_werror_flag" ||
17438 test ! -s conftest.err
17439 } && test -s conftest$ac_exeext && {
17440 test "$cross_compiling" = yes ||
17441 $as_test_x conftest$ac_exeext
17443 eval "$as_ac_var=yes"
17445 $as_echo "$as_me: failed program was
:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17448 eval "$as_ac_var=no
"
17451 rm -rf conftest.dSYM
17452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17453 conftest$ac_exeext conftest.$ac_ext
17455 ac_res=`eval 'as_val=${'$as_ac_var'}
17456 $as_echo "$as_val"'`
17457 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17458 $as_echo "$ac_res" >&6; }
17459 if test `eval 'as_val=${'$as_ac_var'}
17460 $as_echo "$as_val"'` = yes; then
17461 cat >>confdefs.h <<_ACEOF
17462 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17470 for ac_header in sys/un.h
17472 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17473 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17474 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17475 $as_echo_n "checking
for $ac_header...
" >&6; }
17476 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17477 $as_echo_n "(cached
) " >&6
17479 ac_res=`eval 'as_val=${'$as_ac_Header'}
17480 $as_echo "$as_val"'`
17481 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17482 $as_echo "$ac_res" >&6; }
17484 # Is the header compilable?
17485 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17486 $as_echo_n "checking
$ac_header usability...
" >&6; }
17487 cat >conftest.$ac_ext <<_ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h. */
17493 $ac_includes_default
17494 #include <$ac_header>
17496 rm -f conftest.$ac_objext
17497 if { (ac_try="$ac_compile"
17498 case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17502 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17503 $as_echo "$ac_try_echo") >&5
17504 (eval "$ac_compile") 2>conftest.er1
17506 grep -v '^ *+' conftest.er1 >conftest.err
17508 cat conftest.err >&5
17509 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17510 (exit $ac_status); } && {
17511 test -z "$ac_c_werror_flag" ||
17512 test ! -s conftest.err
17513 } && test -s conftest.$ac_objext; then
17514 ac_header_compiler=yes
17516 $as_echo "$as_me: failed program was
:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17519 ac_header_compiler=no
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17524 $as_echo "$ac_header_compiler" >&6; }
17526 # Is the header present?
17527 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17528 $as_echo_n "checking
$ac_header presence...
" >&6; }
17529 cat >conftest.$ac_ext <<_ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17535 #include <$ac_header>
17537 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17538 case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17542 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17543 $as_echo "$ac_try_echo") >&5
17544 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17546 grep -v '^ *+' conftest.er1 >conftest.err
17548 cat conftest.err >&5
17549 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17550 (exit $ac_status); } >/dev/null && {
17551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17552 test ! -s conftest.err
17554 ac_header_preproc=yes
17556 $as_echo "$as_me: failed program was
:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17559 ac_header_preproc=no
17562 rm -f conftest.err conftest.$ac_ext
17563 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17564 $as_echo "$ac_header_preproc" >&6; }
17566 # So? What about this header?
17567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17569 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17570 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17571 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17572 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17573 ac_header_preproc=yes
17576 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17577 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17578 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17579 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17580 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17581 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17582 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17583 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17584 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17585 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17586 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17587 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17591 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17592 $as_echo_n "checking
for $ac_header...
" >&6; }
17593 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17594 $as_echo_n "(cached
) " >&6
17596 eval "$as_ac_Header=\
$ac_header_preproc"
17598 ac_res=`eval 'as_val=${'$as_ac_Header'}
17599 $as_echo "$as_val"'`
17600 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17601 $as_echo "$ac_res" >&6; }
17604 if test `eval 'as_val=${'$as_ac_Header'}
17605 $as_echo "$as_val"'` = yes; then
17606 cat >>confdefs.h <<_ACEOF
17607 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17619 for ac_header in $ac_header_list
17621 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17622 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17623 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17624 $as_echo_n "checking
for $ac_header...
" >&6; }
17625 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17626 $as_echo_n "(cached
) " >&6
17628 ac_res=`eval 'as_val=${'$as_ac_Header'}
17629 $as_echo "$as_val"'`
17630 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17631 $as_echo "$ac_res" >&6; }
17633 # Is the header compilable?
17634 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17635 $as_echo_n "checking
$ac_header usability...
" >&6; }
17636 cat >conftest.$ac_ext <<_ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17642 $ac_includes_default
17643 #include <$ac_header>
17645 rm -f conftest.$ac_objext
17646 if { (ac_try="$ac_compile"
17647 case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17651 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17652 $as_echo "$ac_try_echo") >&5
17653 (eval "$ac_compile") 2>conftest.er1
17655 grep -v '^ *+' conftest.er1 >conftest.err
17657 cat conftest.err >&5
17658 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17659 (exit $ac_status); } && {
17660 test -z "$ac_c_werror_flag" ||
17661 test ! -s conftest.err
17662 } && test -s conftest.$ac_objext; then
17663 ac_header_compiler=yes
17665 $as_echo "$as_me: failed program was
:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17668 ac_header_compiler=no
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17673 $as_echo "$ac_header_compiler" >&6; }
17675 # Is the header present?
17676 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17677 $as_echo_n "checking
$ac_header presence...
" >&6; }
17678 cat >conftest.$ac_ext <<_ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 #include <$ac_header>
17686 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17687 case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17691 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17692 $as_echo "$ac_try_echo") >&5
17693 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17695 grep -v '^ *+' conftest.er1 >conftest.err
17697 cat conftest.err >&5
17698 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17699 (exit $ac_status); } >/dev/null && {
17700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17701 test ! -s conftest.err
17703 ac_header_preproc=yes
17705 $as_echo "$as_me: failed program was
:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17708 ac_header_preproc=no
17711 rm -f conftest.err conftest.$ac_ext
17712 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17713 $as_echo "$ac_header_preproc" >&6; }
17715 # So? What about this header?
17716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17718 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17719 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17720 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17721 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17722 ac_header_preproc=yes
17725 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17726 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17727 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17728 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17729 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17730 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17731 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17732 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17733 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17734 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17735 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17736 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17740 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17741 $as_echo_n "checking
for $ac_header...
" >&6; }
17742 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17743 $as_echo_n "(cached
) " >&6
17745 eval "$as_ac_Header=\
$ac_header_preproc"
17747 ac_res=`eval 'as_val=${'$as_ac_Header'}
17748 $as_echo "$as_val"'`
17749 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17750 $as_echo "$ac_res" >&6; }
17753 if test `eval 'as_val=${'$as_ac_Header'}
17754 $as_echo "$as_val"'` = yes; then
17755 cat >>confdefs.h <<_ACEOF
17756 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17771 for ac_func in $ac_func_list
17773 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17774 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17775 $as_echo_n "checking
for $ac_func...
" >&6; }
17776 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17777 $as_echo_n "(cached
) " >&6
17779 cat >conftest.$ac_ext <<_ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h. */
17785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17787 #define $ac_func innocuous_$ac_func
17789 /* System header to define __stub macros and hopefully few prototypes,
17790 which can conflict with char $ac_func (); below.
17791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17792 <limits.h> exists even on freestanding compilers. */
17795 # include <limits.h>
17797 # include <assert.h>
17802 /* Override any GCC internal prototype to avoid an error.
17803 Use char because int might match the return type of a GCC
17804 builtin and then its argument prototype would still apply. */
17809 /* The GNU C library defines this for functions which it implements
17810 to always fail with ENOSYS. Some functions are actually named
17811 something starting with __ and the normal name is an alias. */
17812 #if defined __stub_$ac_func || defined __stub___$ac_func
17819 return $ac_func ();
17824 rm -f conftest.$ac_objext conftest$ac_exeext
17825 if { (ac_try="$ac_link"
17826 case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17830 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17831 $as_echo "$ac_try_echo") >&5
17832 (eval "$ac_link") 2>conftest.er1
17834 grep -v '^ *+' conftest.er1 >conftest.err
17836 cat conftest.err >&5
17837 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17838 (exit $ac_status); } && {
17839 test -z "$ac_c_werror_flag" ||
17840 test ! -s conftest.err
17841 } && test -s conftest$ac_exeext && {
17842 test "$cross_compiling" = yes ||
17843 $as_test_x conftest$ac_exeext
17845 eval "$as_ac_var=yes"
17847 $as_echo "$as_me: failed program was
:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17850 eval "$as_ac_var=no
"
17853 rm -rf conftest.dSYM
17854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17855 conftest$ac_exeext conftest.$ac_ext
17857 ac_res=`eval 'as_val=${'$as_ac_var'}
17858 $as_echo "$as_val"'`
17859 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17860 $as_echo "$ac_res" >&6; }
17861 if test `eval 'as_val=${'$as_ac_var'}
17862 $as_echo "$as_val"'` = yes; then
17863 cat >>confdefs.h <<_ACEOF
17864 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17886 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
17887 $as_echo_n "checking
for working mktime...
" >&6; }
17888 if test "${ac_cv_func_working_mktime+set}" = set; then
17889 $as_echo_n "(cached
) " >&6
17891 if test "$cross_compiling" = yes; then
17892 ac_cv_func_working_mktime=no
17894 cat >conftest.$ac_ext <<_ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 /* Test program from Paul Eggert and Tony Leneis. */
17901 #ifdef TIME_WITH_SYS_TIME
17902 # include <sys/time.h>
17905 # ifdef HAVE_SYS_TIME_H
17906 # include <sys/time.h>
17912 #include <limits.h>
17913 #include <stdlib.h>
17915 #ifdef HAVE_UNISTD_H
17916 # include <unistd.h>
17920 # define alarm(X) /* empty */
17923 /* Work around redefinition to rpl_putenv by other config tests. */
17926 static time_t time_t_max;
17927 static time_t time_t_min;
17929 /* Values we'll use to set the TZ environment variable. */
17930 static char *tz_strings[] = {
17931 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
17932 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
17934 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17936 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17937 Based on a problem report from Andreas Jaeger. */
17939 spring_forward_gap ()
17941 /* glibc (up to about 1998-10-07) failed this test. */
17944 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17945 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17946 on systems that don't support the Olson extension, or don't have the
17947 full zoneinfo tables installed. */
17948 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17957 return mktime (&tm) != (time_t) -1;
17965 return ! (lt = localtime (&now)) || mktime (lt) == now;
17972 return (mktime_test1 (now)
17973 && mktime_test1 ((time_t) (time_t_max - now))
17974 && mktime_test1 ((time_t) (time_t_min + now)));
17980 /* Based on code from Ariel Faigon. */
17990 return tm.tm_mon == 2 && tm.tm_mday == 31;
17999 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18000 now = mktime (&tm);
18001 if (now != (time_t) -1)
18003 struct tm *lt = localtime (&now);
18005 && lt->tm_year == tm.tm_year
18006 && lt->tm_mon == tm.tm_mon
18007 && lt->tm_mday == tm.tm_mday
18008 && lt->tm_hour == tm.tm_hour
18009 && lt->tm_min == tm.tm_min
18010 && lt->tm_sec == tm.tm_sec
18011 && lt->tm_yday == tm.tm_yday
18012 && lt->tm_wday == tm.tm_wday
18013 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18014 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18023 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18024 ignoring leap seconds. */
18025 unsigned long int answer = 2527315200UL;
18029 tm.tm_year = 2050 - 1900;
18032 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18035 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18036 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18037 on systems that don't support the Olson extension, or don't have the
18038 full zoneinfo tables installed. */
18039 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18043 /* Check that the result is either a failure, or close enough
18044 to the correct answer that we can assume the discrepancy is
18045 due to leap seconds. */
18046 return (t == (time_t) -1
18047 || (0 < t && answer - 120 <= t && t <= answer + 120));
18056 /* This test makes some buggy mktime implementations loop.
18057 Give up after 60 seconds; a mktime slower than that
18058 isn't worth using anyway. */
18063 t = (time_t_max << 1) + 1;
18064 if (t <= time_t_max)
18068 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18070 delta = time_t_max / 997; /* a suitable prime number */
18071 for (i = 0; i < N_STRINGS; i++)
18074 putenv (tz_strings[i]);
18076 for (t = 0; t <= time_t_max - delta; t += delta)
18077 if (! mktime_test (t))
18079 if (! (mktime_test ((time_t) 1)
18080 && mktime_test ((time_t) (60 * 60))
18081 && mktime_test ((time_t) (60 * 60 * 24))))
18084 for (j = 1; ; j <<= 1)
18085 if (! bigtime_test (j))
18087 else if (INT_MAX / 2 < j)
18089 if (! bigtime_test (INT_MAX))
18092 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18095 rm -f conftest$ac_exeext
18096 if { (ac_try="$ac_link"
18097 case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18101 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18102 $as_echo "$ac_try_echo") >&5
18103 (eval "$ac_link") 2>&5
18105 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18107 { (case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18111 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18112 $as_echo "$ac_try_echo") >&5
18113 (eval "$ac_try") 2>&5
18115 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117 ac_cv_func_working_mktime=yes
18119 $as_echo "$as_me: program exited with status
$ac_status" >&5
18120 $as_echo "$as_me: failed program was
:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18123 ( exit $ac_status )
18124 ac_cv_func_working_mktime=no
18126 rm -rf conftest.dSYM
18127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18132 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
18133 $as_echo "$ac_cv_func_working_mktime" >&6; }
18134 if test $ac_cv_func_working_mktime = no; then
18135 case " $LIBOBJS " in
18136 *" mktime.
$ac_objext "* ) ;;
18137 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
18143 if test "$ac_cv_func_working_mktime" = no; then
18145 cat >>confdefs.h <<\_ACEOF
18146 #define BROKEN_MKTIME 1
18151 ac_have_func=no # yes means we've found a way to get the load average.
18153 # Make sure getloadavg.c is where it belongs, at configure-time.
18154 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18155 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18156 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18157 { (exit 1); exit 1; }; }
18161 # Check for getloadavg, but be sure not to touch the cache variable.
18162 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18163 $as_echo_n "checking
for getloadavg...
" >&6; }
18164 if test "${ac_cv_func_getloadavg+set}" = set; then
18165 $as_echo_n "(cached
) " >&6
18167 cat >conftest.$ac_ext <<_ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18173 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18175 #define getloadavg innocuous_getloadavg
18177 /* System header to define __stub macros and hopefully few prototypes,
18178 which can conflict with char getloadavg (); below.
18179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18180 <limits.h> exists even on freestanding compilers. */
18183 # include <limits.h>
18185 # include <assert.h>
18190 /* Override any GCC internal prototype to avoid an error.
18191 Use char because int might match the return type of a GCC
18192 builtin and then its argument prototype would still apply. */
18196 char getloadavg ();
18197 /* The GNU C library defines this for functions which it implements
18198 to always fail with ENOSYS. Some functions are actually named
18199 something starting with __ and the normal name is an alias. */
18200 #if defined __stub_getloadavg || defined __stub___getloadavg
18207 return getloadavg ();
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18218 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18219 $as_echo "$ac_try_echo") >&5
18220 (eval "$ac_link") 2>conftest.er1
18222 grep -v '^ *+' conftest.er1 >conftest.err
18224 cat conftest.err >&5
18225 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18226 (exit $ac_status); } && {
18227 test -z "$ac_c_werror_flag" ||
18228 test ! -s conftest.err
18229 } && test -s conftest$ac_exeext && {
18230 test "$cross_compiling" = yes ||
18231 $as_test_x conftest$ac_exeext
18233 ac_cv_func_getloadavg=yes
18235 $as_echo "$as_me: failed program was
:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18238 ac_cv_func_getloadavg=no
18241 rm -rf conftest.dSYM
18242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18243 conftest$ac_exeext conftest.$ac_ext
18245 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18246 $as_echo "$ac_cv_func_getloadavg" >&6; }
18247 if test $ac_cv_func_getloadavg = yes; then
18252 ) && ac_have_func=yes
18254 # On HPUX9, an unprivileged user can get load averages through this function.
18256 for ac_func in pstat_getdynamic
18258 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18259 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18260 $as_echo_n "checking
for $ac_func...
" >&6; }
18261 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18262 $as_echo_n "(cached
) " >&6
18264 cat >conftest.$ac_ext <<_ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18272 #define $ac_func innocuous_$ac_func
18274 /* System header to define __stub macros and hopefully few prototypes,
18275 which can conflict with char $ac_func (); below.
18276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18277 <limits.h> exists even on freestanding compilers. */
18280 # include <limits.h>
18282 # include <assert.h>
18287 /* Override any GCC internal prototype to avoid an error.
18288 Use char because int might match the return type of a GCC
18289 builtin and then its argument prototype would still apply. */
18294 /* The GNU C library defines this for functions which it implements
18295 to always fail with ENOSYS. Some functions are actually named
18296 something starting with __ and the normal name is an alias. */
18297 #if defined __stub_$ac_func || defined __stub___$ac_func
18304 return $ac_func ();
18309 rm -f conftest.$ac_objext conftest$ac_exeext
18310 if { (ac_try="$ac_link"
18311 case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18315 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18316 $as_echo "$ac_try_echo") >&5
18317 (eval "$ac_link") 2>conftest.er1
18319 grep -v '^ *+' conftest.er1 >conftest.err
18321 cat conftest.err >&5
18322 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18323 (exit $ac_status); } && {
18324 test -z "$ac_c_werror_flag" ||
18325 test ! -s conftest.err
18326 } && test -s conftest$ac_exeext && {
18327 test "$cross_compiling" = yes ||
18328 $as_test_x conftest$ac_exeext
18330 eval "$as_ac_var=yes"
18332 $as_echo "$as_me: failed program was
:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18335 eval "$as_ac_var=no
"
18338 rm -rf conftest.dSYM
18339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18340 conftest$ac_exeext conftest.$ac_ext
18342 ac_res=`eval 'as_val=${'$as_ac_var'}
18343 $as_echo "$as_val"'`
18344 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18345 $as_echo "$ac_res" >&6; }
18346 if test `eval 'as_val=${'$as_ac_var'}
18347 $as_echo "$as_val"'` = yes; then
18348 cat >>confdefs.h <<_ACEOF
18349 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18356 # Solaris has libkstat which does not require root.
18358 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18359 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18360 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18361 $as_echo_n "(cached
) " >&6
18363 ac_check_lib_save_LIBS=$LIBS
18364 LIBS="-lkstat $LIBS"
18365 cat >conftest.$ac_ext <<_ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18372 /* Override any GCC internal prototype to avoid an error.
18373 Use char because int might match the return type of a GCC
18374 builtin and then its argument prototype would still apply. */
18378 char kstat_open ();
18382 return kstat_open ();
18387 rm -f conftest.$ac_objext conftest$ac_exeext
18388 if { (ac_try="$ac_link"
18389 case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18393 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18394 $as_echo "$ac_try_echo") >&5
18395 (eval "$ac_link") 2>conftest.er1
18397 grep -v '^ *+' conftest.er1 >conftest.err
18399 cat conftest.err >&5
18400 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18401 (exit $ac_status); } && {
18402 test -z "$ac_c_werror_flag" ||
18403 test ! -s conftest.err
18404 } && test -s conftest$ac_exeext && {
18405 test "$cross_compiling" = yes ||
18406 $as_test_x conftest$ac_exeext
18408 ac_cv_lib_kstat_kstat_open=yes
18410 $as_echo "$as_me: failed program was
:" >&5
18411 sed 's/^/| /' conftest.$ac_ext >&5
18413 ac_cv_lib_kstat_kstat_open=no
18416 rm -rf conftest.dSYM
18417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18418 conftest$ac_exeext conftest.$ac_ext
18419 LIBS=$ac_check_lib_save_LIBS
18421 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18422 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18423 if test $ac_cv_lib_kstat_kstat_open = yes; then
18424 cat >>confdefs.h <<_ACEOF
18425 #define HAVE_LIBKSTAT 1
18428 LIBS="-lkstat $LIBS"
18432 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18434 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18435 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18436 # to get the right answer into the cache.
18437 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18438 if test $ac_have_func = no; then
18439 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18440 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18441 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18442 $as_echo_n "(cached
) " >&6
18444 ac_check_lib_save_LIBS=$LIBS
18446 cat >conftest.$ac_ext <<_ACEOF
18449 cat confdefs.h >>conftest.$ac_ext
18450 cat >>conftest.$ac_ext <<_ACEOF
18451 /* end confdefs.h. */
18453 /* Override any GCC internal prototype to avoid an error.
18454 Use char because int might match the return type of a GCC
18455 builtin and then its argument prototype would still apply. */
18463 return elf_begin ();
18468 rm -f conftest.$ac_objext conftest$ac_exeext
18469 if { (ac_try="$ac_link"
18470 case "(($ac_try" in
18471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472 *) ac_try_echo=$ac_try;;
18474 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18475 $as_echo "$ac_try_echo") >&5
18476 (eval "$ac_link") 2>conftest.er1
18478 grep -v '^ *+' conftest.er1 >conftest.err
18480 cat conftest.err >&5
18481 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18482 (exit $ac_status); } && {
18483 test -z "$ac_c_werror_flag" ||
18484 test ! -s conftest.err
18485 } && test -s conftest$ac_exeext && {
18486 test "$cross_compiling" = yes ||
18487 $as_test_x conftest$ac_exeext
18489 ac_cv_lib_elf_elf_begin=yes
18491 $as_echo "$as_me: failed program was
:" >&5
18492 sed 's/^/| /' conftest.$ac_ext >&5
18494 ac_cv_lib_elf_elf_begin=no
18497 rm -rf conftest.dSYM
18498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18499 conftest$ac_exeext conftest.$ac_ext
18500 LIBS=$ac_check_lib_save_LIBS
18502 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18503 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18504 if test $ac_cv_lib_elf_elf_begin = yes; then
18509 if test $ac_have_func = no; then
18510 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18511 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18512 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18513 $as_echo_n "(cached
) " >&6
18515 ac_check_lib_save_LIBS=$LIBS
18517 cat >conftest.$ac_ext <<_ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18524 /* Override any GCC internal prototype to avoid an error.
18525 Use char because int might match the return type of a GCC
18526 builtin and then its argument prototype would still apply. */
18534 return kvm_open ();
18539 rm -f conftest.$ac_objext conftest$ac_exeext
18540 if { (ac_try="$ac_link"
18541 case "(($ac_try" in
18542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543 *) ac_try_echo=$ac_try;;
18545 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18546 $as_echo "$ac_try_echo") >&5
18547 (eval "$ac_link") 2>conftest.er1
18549 grep -v '^ *+' conftest.er1 >conftest.err
18551 cat conftest.err >&5
18552 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18553 (exit $ac_status); } && {
18554 test -z "$ac_c_werror_flag" ||
18555 test ! -s conftest.err
18556 } && test -s conftest$ac_exeext && {
18557 test "$cross_compiling" = yes ||
18558 $as_test_x conftest$ac_exeext
18560 ac_cv_lib_kvm_kvm_open=yes
18562 $as_echo "$as_me: failed program was
:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18565 ac_cv_lib_kvm_kvm_open=no
18568 rm -rf conftest.dSYM
18569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18570 conftest$ac_exeext conftest.$ac_ext
18571 LIBS=$ac_check_lib_save_LIBS
18573 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18574 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18575 if test $ac_cv_lib_kvm_kvm_open = yes; then
18579 # Check for the 4.4BSD definition of getloadavg.
18580 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18581 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18582 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18583 $as_echo_n "(cached
) " >&6
18585 ac_check_lib_save_LIBS=$LIBS
18586 LIBS="-lutil $LIBS"
18587 cat >conftest.$ac_ext <<_ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */
18594 /* Override any GCC internal prototype to avoid an error.
18595 Use char because int might match the return type of a GCC
18596 builtin and then its argument prototype would still apply. */
18600 char getloadavg ();
18604 return getloadavg ();
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (ac_try="$ac_link"
18611 case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18615 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18616 $as_echo "$ac_try_echo") >&5
18617 (eval "$ac_link") 2>conftest.er1
18619 grep -v '^ *+' conftest.er1 >conftest.err
18621 cat conftest.err >&5
18622 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18623 (exit $ac_status); } && {
18624 test -z "$ac_c_werror_flag" ||
18625 test ! -s conftest.err
18626 } && test -s conftest$ac_exeext && {
18627 test "$cross_compiling" = yes ||
18628 $as_test_x conftest$ac_exeext
18630 ac_cv_lib_util_getloadavg=yes
18632 $as_echo "$as_me: failed program was
:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18635 ac_cv_lib_util_getloadavg=no
18638 rm -rf conftest.dSYM
18639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18640 conftest$ac_exeext conftest.$ac_ext
18641 LIBS=$ac_check_lib_save_LIBS
18643 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
18644 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18645 if test $ac_cv_lib_util_getloadavg = yes; then
18646 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18651 if test $ac_have_func = no; then
18652 # There is a commonly available library for RS/6000 AIX.
18653 # Since it is not a standard part of AIX, it might be installed locally.
18654 ac_getloadavg_LIBS=$LIBS
18655 LIBS="-L/usr
/local
/lib
$LIBS"
18656 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
18657 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
18658 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18659 $as_echo_n "(cached
) " >&6
18661 ac_check_lib_save_LIBS=$LIBS
18662 LIBS="-lgetloadavg $LIBS"
18663 cat >conftest.$ac_ext <<_ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h. */
18670 /* Override any GCC internal prototype to avoid an error.
18671 Use char because int might match the return type of a GCC
18672 builtin and then its argument prototype would still apply. */
18676 char getloadavg ();
18680 return getloadavg ();
18685 rm -f conftest.$ac_objext conftest$ac_exeext
18686 if { (ac_try="$ac_link"
18687 case "(($ac_try" in
18688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18689 *) ac_try_echo=$ac_try;;
18691 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18692 $as_echo "$ac_try_echo") >&5
18693 (eval "$ac_link") 2>conftest.er1
18695 grep -v '^ *+' conftest.er1 >conftest.err
18697 cat conftest.err >&5
18698 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18699 (exit $ac_status); } && {
18700 test -z "$ac_c_werror_flag" ||
18701 test ! -s conftest.err
18702 } && test -s conftest$ac_exeext && {
18703 test "$cross_compiling" = yes ||
18704 $as_test_x conftest$ac_exeext
18706 ac_cv_lib_getloadavg_getloadavg=yes
18708 $as_echo "$as_me: failed program was
:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18711 ac_cv_lib_getloadavg_getloadavg=no
18714 rm -rf conftest.dSYM
18715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18716 conftest$ac_exeext conftest.$ac_ext
18717 LIBS=$ac_check_lib_save_LIBS
18719 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
18720 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18721 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18722 LIBS="-lgetloadavg $LIBS"
18724 LIBS=$ac_getloadavg_LIBS
18729 # Make sure it is really in the library, if we think we found it,
18730 # otherwise set up the replacement function.
18732 for ac_func in getloadavg
18734 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18735 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18736 $as_echo_n "checking
for $ac_func...
" >&6; }
18737 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18738 $as_echo_n "(cached
) " >&6
18740 cat >conftest.$ac_ext <<_ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18748 #define $ac_func innocuous_$ac_func
18750 /* System header to define __stub macros and hopefully few prototypes,
18751 which can conflict with char $ac_func (); below.
18752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18753 <limits.h> exists even on freestanding compilers. */
18756 # include <limits.h>
18758 # include <assert.h>
18763 /* Override any GCC internal prototype to avoid an error.
18764 Use char because int might match the return type of a GCC
18765 builtin and then its argument prototype would still apply. */
18770 /* The GNU C library defines this for functions which it implements
18771 to always fail with ENOSYS. Some functions are actually named
18772 something starting with __ and the normal name is an alias. */
18773 #if defined __stub_$ac_func || defined __stub___$ac_func
18780 return $ac_func ();
18785 rm -f conftest.$ac_objext conftest$ac_exeext
18786 if { (ac_try="$ac_link"
18787 case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18791 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18792 $as_echo "$ac_try_echo") >&5
18793 (eval "$ac_link") 2>conftest.er1
18795 grep -v '^ *+' conftest.er1 >conftest.err
18797 cat conftest.err >&5
18798 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18799 (exit $ac_status); } && {
18800 test -z "$ac_c_werror_flag" ||
18801 test ! -s conftest.err
18802 } && test -s conftest$ac_exeext && {
18803 test "$cross_compiling" = yes ||
18804 $as_test_x conftest$ac_exeext
18806 eval "$as_ac_var=yes"
18808 $as_echo "$as_me: failed program was
:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18811 eval "$as_ac_var=no
"
18814 rm -rf conftest.dSYM
18815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18816 conftest$ac_exeext conftest.$ac_ext
18818 ac_res=`eval 'as_val=${'$as_ac_var'}
18819 $as_echo "$as_val"'`
18820 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18821 $as_echo "$ac_res" >&6; }
18822 if test `eval 'as_val=${'$as_ac_var'}
18823 $as_echo "$as_val"'` = yes; then
18824 cat >>confdefs.h <<_ACEOF
18825 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18829 case " $LIBOBJS " in
18830 *" getloadavg.
$ac_objext "* ) ;;
18831 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
18836 cat >>confdefs.h <<\_ACEOF
18837 #define C_GETLOADAVG 1
18840 # Figure out what our getloadavg.c needs.
18842 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18843 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18844 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18845 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18846 $as_echo_n "(cached
) " >&6
18848 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18849 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18851 # Is the header compilable?
18852 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
18853 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
18854 cat >conftest.$ac_ext <<_ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18860 $ac_includes_default
18861 #include <sys/dg_sys_info.h>
18863 rm -f conftest.$ac_objext
18864 if { (ac_try="$ac_compile"
18865 case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18869 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18870 $as_echo "$ac_try_echo") >&5
18871 (eval "$ac_compile") 2>conftest.er1
18873 grep -v '^ *+' conftest.er1 >conftest.err
18875 cat conftest.err >&5
18876 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18877 (exit $ac_status); } && {
18878 test -z "$ac_c_werror_flag" ||
18879 test ! -s conftest.err
18880 } && test -s conftest.$ac_objext; then
18881 ac_header_compiler=yes
18883 $as_echo "$as_me: failed program was
:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18886 ac_header_compiler=no
18889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18890 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18891 $as_echo "$ac_header_compiler" >&6; }
18893 # Is the header present?
18894 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
18895 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
18896 cat >conftest.$ac_ext <<_ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18902 #include <sys/dg_sys_info.h>
18904 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18905 case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18909 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18910 $as_echo "$ac_try_echo") >&5
18911 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18913 grep -v '^ *+' conftest.er1 >conftest.err
18915 cat conftest.err >&5
18916 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18917 (exit $ac_status); } >/dev/null && {
18918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18919 test ! -s conftest.err
18921 ac_header_preproc=yes
18923 $as_echo "$as_me: failed program was
:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18926 ac_header_preproc=no
18929 rm -f conftest.err conftest.$ac_ext
18930 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18931 $as_echo "$ac_header_preproc" >&6; }
18933 # So? What about this header?
18934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18936 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18937 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18938 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
18939 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
18940 ac_header_preproc=yes
18943 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
18944 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
18945 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
18946 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
18947 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
18948 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
18949 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18950 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18951 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
18952 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
18953 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
18954 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
18958 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
18959 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
18960 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18961 $as_echo_n "(cached
) " >&6
18963 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18965 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
18966 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18969 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18972 cat >>confdefs.h <<\_ACEOF
18977 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
18978 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
18979 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18980 $as_echo_n "(cached
) " >&6
18982 ac_check_lib_save_LIBS=$LIBS
18984 cat >conftest.$ac_ext <<_ACEOF
18987 cat confdefs.h >>conftest.$ac_ext
18988 cat >>conftest.$ac_ext <<_ACEOF
18989 /* end confdefs.h. */
18991 /* Override any GCC internal prototype to avoid an error.
18992 Use char because int might match the return type of a GCC
18993 builtin and then its argument prototype would still apply. */
18997 char dg_sys_info ();
19001 return dg_sys_info ();
19006 rm -f conftest.$ac_objext conftest$ac_exeext
19007 if { (ac_try="$ac_link"
19008 case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19012 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19013 $as_echo "$ac_try_echo") >&5
19014 (eval "$ac_link") 2>conftest.er1
19016 grep -v '^ *+' conftest.er1 >conftest.err
19018 cat conftest.err >&5
19019 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19020 (exit $ac_status); } && {
19021 test -z "$ac_c_werror_flag" ||
19022 test ! -s conftest.err
19023 } && test -s conftest$ac_exeext && {
19024 test "$cross_compiling" = yes ||
19025 $as_test_x conftest$ac_exeext
19027 ac_cv_lib_dgc_dg_sys_info=yes
19029 $as_echo "$as_me: failed program was
:" >&5
19030 sed 's/^/| /' conftest.$ac_ext >&5
19032 ac_cv_lib_dgc_dg_sys_info=no
19035 rm -rf conftest.dSYM
19036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19037 conftest$ac_exeext conftest.$ac_ext
19038 LIBS=$ac_check_lib_save_LIBS
19040 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
19041 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19042 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19043 cat >>confdefs.h <<_ACEOF
19044 #define HAVE_LIBDGC 1
19055 if test "${ac_cv_header_locale_h+set}" = set; then
19056 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19057 $as_echo_n "checking
for locale.h...
" >&6; }
19058 if test "${ac_cv_header_locale_h+set}" = set; then
19059 $as_echo_n "(cached
) " >&6
19061 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19062 $as_echo "$ac_cv_header_locale_h" >&6; }
19064 # Is the header compilable?
19065 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19066 $as_echo_n "checking locale.h usability...
" >&6; }
19067 cat >conftest.$ac_ext <<_ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19073 $ac_includes_default
19074 #include <locale.h>
19076 rm -f conftest.$ac_objext
19077 if { (ac_try="$ac_compile"
19078 case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19082 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19083 $as_echo "$ac_try_echo") >&5
19084 (eval "$ac_compile") 2>conftest.er1
19086 grep -v '^ *+' conftest.er1 >conftest.err
19088 cat conftest.err >&5
19089 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19090 (exit $ac_status); } && {
19091 test -z "$ac_c_werror_flag" ||
19092 test ! -s conftest.err
19093 } && test -s conftest.$ac_objext; then
19094 ac_header_compiler=yes
19096 $as_echo "$as_me: failed program was
:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19099 ac_header_compiler=no
19102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19103 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19104 $as_echo "$ac_header_compiler" >&6; }
19106 # Is the header present?
19107 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19108 $as_echo_n "checking locale.h presence...
" >&6; }
19109 cat >conftest.$ac_ext <<_ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19115 #include <locale.h>
19117 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19118 case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19122 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19123 $as_echo "$ac_try_echo") >&5
19124 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19126 grep -v '^ *+' conftest.er1 >conftest.err
19128 cat conftest.err >&5
19129 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19130 (exit $ac_status); } >/dev/null && {
19131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19132 test ! -s conftest.err
19134 ac_header_preproc=yes
19136 $as_echo "$as_me: failed program was
:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19139 ac_header_preproc=no
19142 rm -f conftest.err conftest.$ac_ext
19143 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19144 $as_echo "$ac_header_preproc" >&6; }
19146 # So? What about this header?
19147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19149 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19150 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19151 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19152 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19153 ac_header_preproc=yes
19156 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19157 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19158 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19159 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19160 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19161 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19162 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19163 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19164 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19165 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19166 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19167 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19171 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19172 $as_echo_n "checking
for locale.h...
" >&6; }
19173 if test "${ac_cv_header_locale_h+set}" = set; then
19174 $as_echo_n "(cached
) " >&6
19176 ac_cv_header_locale_h=$ac_header_preproc
19178 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19179 $as_echo "$ac_cv_header_locale_h" >&6; }
19185 for ac_func in setlocale
19187 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19188 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19189 $as_echo_n "checking
for $ac_func...
" >&6; }
19190 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19191 $as_echo_n "(cached
) " >&6
19193 cat >conftest.$ac_ext <<_ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19201 #define $ac_func innocuous_$ac_func
19203 /* System header to define __stub macros and hopefully few prototypes,
19204 which can conflict with char $ac_func (); below.
19205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19206 <limits.h> exists even on freestanding compilers. */
19209 # include <limits.h>
19211 # include <assert.h>
19216 /* Override any GCC internal prototype to avoid an error.
19217 Use char because int might match the return type of a GCC
19218 builtin and then its argument prototype would still apply. */
19223 /* The GNU C library defines this for functions which it implements
19224 to always fail with ENOSYS. Some functions are actually named
19225 something starting with __ and the normal name is an alias. */
19226 #if defined __stub_$ac_func || defined __stub___$ac_func
19233 return $ac_func ();
19238 rm -f conftest.$ac_objext conftest$ac_exeext
19239 if { (ac_try="$ac_link"
19240 case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19244 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19245 $as_echo "$ac_try_echo") >&5
19246 (eval "$ac_link") 2>conftest.er1
19248 grep -v '^ *+' conftest.er1 >conftest.err
19250 cat conftest.err >&5
19251 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19252 (exit $ac_status); } && {
19253 test -z "$ac_c_werror_flag" ||
19254 test ! -s conftest.err
19255 } && test -s conftest$ac_exeext && {
19256 test "$cross_compiling" = yes ||
19257 $as_test_x conftest$ac_exeext
19259 eval "$as_ac_var=yes"
19261 $as_echo "$as_me: failed program was
:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19264 eval "$as_ac_var=no
"
19267 rm -rf conftest.dSYM
19268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19269 conftest$ac_exeext conftest.$ac_ext
19271 ac_res=`eval 'as_val=${'$as_ac_var'}
19272 $as_echo "$as_val"'`
19273 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19274 $as_echo "$ac_res" >&6; }
19275 if test `eval 'as_val=${'$as_ac_var'}
19276 $as_echo "$as_val"'` = yes; then
19277 cat >>confdefs.h <<_ACEOF
19278 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19285 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19286 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19287 # Irix 4.0.5F has the header but not the library.
19288 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19291 cat >>confdefs.h <<\_ACEOF
19297 if test $ac_have_func = no; then
19298 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19299 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19300 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19301 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19302 $as_echo_n "(cached
) " >&6
19304 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19305 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19307 # Is the header compilable?
19308 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19309 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19310 cat >conftest.$ac_ext <<_ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h. */
19316 $ac_includes_default
19317 #include <inq_stats/cpustats.h>
19319 rm -f conftest.$ac_objext
19320 if { (ac_try="$ac_compile"
19321 case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19325 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19326 $as_echo "$ac_try_echo") >&5
19327 (eval "$ac_compile") 2>conftest.er1
19329 grep -v '^ *+' conftest.er1 >conftest.err
19331 cat conftest.err >&5
19332 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19333 (exit $ac_status); } && {
19334 test -z "$ac_c_werror_flag" ||
19335 test ! -s conftest.err
19336 } && test -s conftest.$ac_objext; then
19337 ac_header_compiler=yes
19339 $as_echo "$as_me: failed program was
:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19342 ac_header_compiler=no
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19346 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19347 $as_echo "$ac_header_compiler" >&6; }
19349 # Is the header present?
19350 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19351 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19352 cat >conftest.$ac_ext <<_ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19358 #include <inq_stats/cpustats.h>
19360 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19361 case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19365 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19366 $as_echo "$ac_try_echo") >&5
19367 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19369 grep -v '^ *+' conftest.er1 >conftest.err
19371 cat conftest.err >&5
19372 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19373 (exit $ac_status); } >/dev/null && {
19374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19375 test ! -s conftest.err
19377 ac_header_preproc=yes
19379 $as_echo "$as_me: failed program was
:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19382 ac_header_preproc=no
19385 rm -f conftest.err conftest.$ac_ext
19386 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19387 $as_echo "$ac_header_preproc" >&6; }
19389 # So? What about this header?
19390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19392 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19393 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19394 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19395 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19396 ac_header_preproc=yes
19399 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19400 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19401 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19402 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19403 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19404 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19405 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19406 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19407 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19408 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19409 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19410 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19414 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19415 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19416 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19417 $as_echo_n "(cached
) " >&6
19419 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19421 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19422 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19425 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19428 cat >>confdefs.h <<\_ACEOF
19433 cat >>confdefs.h <<\_ACEOF
19442 if test $ac_have_func = no; then
19443 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19444 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19445 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19446 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19447 $as_echo_n "(cached
) " >&6
19449 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19450 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19452 # Is the header compilable?
19453 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19454 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19455 cat >conftest.$ac_ext <<_ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19461 $ac_includes_default
19462 #include <sys/cpustats.h>
19464 rm -f conftest.$ac_objext
19465 if { (ac_try="$ac_compile"
19466 case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19470 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19471 $as_echo "$ac_try_echo") >&5
19472 (eval "$ac_compile") 2>conftest.er1
19474 grep -v '^ *+' conftest.er1 >conftest.err
19476 cat conftest.err >&5
19477 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19478 (exit $ac_status); } && {
19479 test -z "$ac_c_werror_flag" ||
19480 test ! -s conftest.err
19481 } && test -s conftest.$ac_objext; then
19482 ac_header_compiler=yes
19484 $as_echo "$as_me: failed program was
:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19487 ac_header_compiler=no
19490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19491 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19492 $as_echo "$ac_header_compiler" >&6; }
19494 # Is the header present?
19495 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19496 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19497 cat >conftest.$ac_ext <<_ACEOF
19500 cat confdefs.h >>conftest.$ac_ext
19501 cat >>conftest.$ac_ext <<_ACEOF
19502 /* end confdefs.h. */
19503 #include <sys/cpustats.h>
19505 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19506 case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19510 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19511 $as_echo "$ac_try_echo") >&5
19512 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19514 grep -v '^ *+' conftest.er1 >conftest.err
19516 cat conftest.err >&5
19517 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19518 (exit $ac_status); } >/dev/null && {
19519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19520 test ! -s conftest.err
19522 ac_header_preproc=yes
19524 $as_echo "$as_me: failed program was
:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19527 ac_header_preproc=no
19530 rm -f conftest.err conftest.$ac_ext
19531 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19532 $as_echo "$ac_header_preproc" >&6; }
19534 # So? What about this header?
19535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19537 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19538 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19539 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19540 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19541 ac_header_preproc=yes
19544 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19545 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19546 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19547 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19548 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19549 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19550 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19551 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19552 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19553 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19554 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19555 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19559 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19560 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19561 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19562 $as_echo_n "(cached
) " >&6
19564 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19566 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19567 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19570 if test $ac_cv_header_sys_cpustats_h = yes; then
19571 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19580 if test $ac_have_func = no; then
19582 for ac_header in mach/mach.h
19584 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19585 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19586 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19587 $as_echo_n "checking
for $ac_header...
" >&6; }
19588 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19589 $as_echo_n "(cached
) " >&6
19591 ac_res=`eval 'as_val=${'$as_ac_Header'}
19592 $as_echo "$as_val"'`
19593 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19594 $as_echo "$ac_res" >&6; }
19596 # Is the header compilable?
19597 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19598 $as_echo_n "checking
$ac_header usability...
" >&6; }
19599 cat >conftest.$ac_ext <<_ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19605 $ac_includes_default
19606 #include <$ac_header>
19608 rm -f conftest.$ac_objext
19609 if { (ac_try="$ac_compile"
19610 case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19614 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19615 $as_echo "$ac_try_echo") >&5
19616 (eval "$ac_compile") 2>conftest.er1
19618 grep -v '^ *+' conftest.er1 >conftest.err
19620 cat conftest.err >&5
19621 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19622 (exit $ac_status); } && {
19623 test -z "$ac_c_werror_flag" ||
19624 test ! -s conftest.err
19625 } && test -s conftest.$ac_objext; then
19626 ac_header_compiler=yes
19628 $as_echo "$as_me: failed program was
:" >&5
19629 sed 's/^/| /' conftest.$ac_ext >&5
19631 ac_header_compiler=no
19634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19635 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19636 $as_echo "$ac_header_compiler" >&6; }
19638 # Is the header present?
19639 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19640 $as_echo_n "checking
$ac_header presence...
" >&6; }
19641 cat >conftest.$ac_ext <<_ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h. */
19647 #include <$ac_header>
19649 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19650 case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19654 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19655 $as_echo "$ac_try_echo") >&5
19656 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19658 grep -v '^ *+' conftest.er1 >conftest.err
19660 cat conftest.err >&5
19661 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19662 (exit $ac_status); } >/dev/null && {
19663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19664 test ! -s conftest.err
19666 ac_header_preproc=yes
19668 $as_echo "$as_me: failed program was
:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19671 ac_header_preproc=no
19674 rm -f conftest.err conftest.$ac_ext
19675 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19676 $as_echo "$ac_header_preproc" >&6; }
19678 # So? What about this header?
19679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19681 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19682 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19683 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19684 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19685 ac_header_preproc=yes
19688 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19689 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19690 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19691 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19692 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19693 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19694 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19695 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19696 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19697 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19698 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19699 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19703 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19704 $as_echo_n "checking
for $ac_header...
" >&6; }
19705 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19706 $as_echo_n "(cached
) " >&6
19708 eval "$as_ac_Header=\
$ac_header_preproc"
19710 ac_res=`eval 'as_val=${'$as_ac_Header'}
19711 $as_echo "$as_val"'`
19712 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19713 $as_echo "$ac_res" >&6; }
19716 if test `eval 'as_val=${'$as_ac_Header'}
19717 $as_echo "$as_val"'` = yes; then
19718 cat >>confdefs.h <<_ACEOF
19719 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19729 for ac_header in nlist.h
19731 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19732 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19733 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19734 $as_echo_n "checking
for $ac_header...
" >&6; }
19735 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19736 $as_echo_n "(cached
) " >&6
19738 ac_res=`eval 'as_val=${'$as_ac_Header'}
19739 $as_echo "$as_val"'`
19740 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19741 $as_echo "$ac_res" >&6; }
19743 # Is the header compilable?
19744 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19745 $as_echo_n "checking
$ac_header usability...
" >&6; }
19746 cat >conftest.$ac_ext <<_ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h. */
19752 $ac_includes_default
19753 #include <$ac_header>
19755 rm -f conftest.$ac_objext
19756 if { (ac_try="$ac_compile"
19757 case "(($ac_try" in
19758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19759 *) ac_try_echo=$ac_try;;
19761 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19762 $as_echo "$ac_try_echo") >&5
19763 (eval "$ac_compile") 2>conftest.er1
19765 grep -v '^ *+' conftest.er1 >conftest.err
19767 cat conftest.err >&5
19768 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19769 (exit $ac_status); } && {
19770 test -z "$ac_c_werror_flag" ||
19771 test ! -s conftest.err
19772 } && test -s conftest.$ac_objext; then
19773 ac_header_compiler=yes
19775 $as_echo "$as_me: failed program was
:" >&5
19776 sed 's/^/| /' conftest.$ac_ext >&5
19778 ac_header_compiler=no
19781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19782 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19783 $as_echo "$ac_header_compiler" >&6; }
19785 # Is the header present?
19786 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19787 $as_echo_n "checking
$ac_header presence...
" >&6; }
19788 cat >conftest.$ac_ext <<_ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19794 #include <$ac_header>
19796 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19801 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19802 $as_echo "$ac_try_echo") >&5
19803 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19805 grep -v '^ *+' conftest.er1 >conftest.err
19807 cat conftest.err >&5
19808 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19809 (exit $ac_status); } >/dev/null && {
19810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19811 test ! -s conftest.err
19813 ac_header_preproc=yes
19815 $as_echo "$as_me: failed program was
:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19818 ac_header_preproc=no
19821 rm -f conftest.err conftest.$ac_ext
19822 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19823 $as_echo "$ac_header_preproc" >&6; }
19825 # So? What about this header?
19826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19828 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19829 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19830 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19831 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19832 ac_header_preproc=yes
19835 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19836 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19837 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19838 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19839 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19840 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19841 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19842 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19843 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19844 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19845 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19846 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19850 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19851 $as_echo_n "checking
for $ac_header...
" >&6; }
19852 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19853 $as_echo_n "(cached
) " >&6
19855 eval "$as_ac_Header=\
$ac_header_preproc"
19857 ac_res=`eval 'as_val=${'$as_ac_Header'}
19858 $as_echo "$as_val"'`
19859 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19860 $as_echo "$ac_res" >&6; }
19863 if test `eval 'as_val=${'$as_ac_Header'}
19864 $as_echo "$as_val"'` = yes; then
19865 cat >>confdefs.h <<_ACEOF
19866 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19868 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
19869 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
19870 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19871 $as_echo_n "(cached
) " >&6
19873 cat >conftest.$ac_ext <<_ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h. */
19884 static struct nlist ac_aggr;
19885 if (ac_aggr.n_un.n_name)
19891 rm -f conftest.$ac_objext
19892 if { (ac_try="$ac_compile"
19893 case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19897 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19898 $as_echo "$ac_try_echo") >&5
19899 (eval "$ac_compile") 2>conftest.er1
19901 grep -v '^ *+' conftest.er1 >conftest.err
19903 cat conftest.err >&5
19904 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19905 (exit $ac_status); } && {
19906 test -z "$ac_c_werror_flag" ||
19907 test ! -s conftest.err
19908 } && test -s conftest.$ac_objext; then
19909 ac_cv_member_struct_nlist_n_un_n_name=yes
19911 $as_echo "$as_me: failed program was
:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19914 cat >conftest.$ac_ext <<_ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h. */
19925 static struct nlist ac_aggr;
19926 if (sizeof ac_aggr.n_un.n_name)
19932 rm -f conftest.$ac_objext
19933 if { (ac_try="$ac_compile"
19934 case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19938 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19939 $as_echo "$ac_try_echo") >&5
19940 (eval "$ac_compile") 2>conftest.er1
19942 grep -v '^ *+' conftest.er1 >conftest.err
19944 cat conftest.err >&5
19945 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19946 (exit $ac_status); } && {
19947 test -z "$ac_c_werror_flag" ||
19948 test ! -s conftest.err
19949 } && test -s conftest.$ac_objext; then
19950 ac_cv_member_struct_nlist_n_un_n_name=yes
19952 $as_echo "$as_me: failed program was
:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19955 ac_cv_member_struct_nlist_n_un_n_name=no
19958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19963 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19964 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19965 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19967 cat >>confdefs.h <<_ACEOF
19968 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19972 cat >>confdefs.h <<\_ACEOF
19973 #define NLIST_NAME_UNION 1
19987 # Some definitions of getloadavg require that the program be installed setgid.
19988 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
19989 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
19990 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19991 $as_echo_n "(cached
) " >&6
19993 cat >conftest.$ac_ext <<_ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h. */
19999 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
20000 #ifdef LDAV_PRIVILEGED
20001 Yowza Am I SETGID yet
20004 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
20005 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
20006 ac_cv_func_getloadavg_setgid=yes
20008 ac_cv_func_getloadavg_setgid=no
20013 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
20014 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20015 if test $ac_cv_func_getloadavg_setgid = yes; then
20018 cat >>confdefs.h <<\_ACEOF
20019 #define GETLOADAVG_PRIVILEGED 1
20026 if test $ac_cv_func_getloadavg_setgid = yes; then
20027 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
20028 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
20029 if test "${ac_cv_group_kmem+set}" = set; then
20030 $as_echo_n "(cached
) " >&6
20032 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20033 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20034 # If we got an error (system does not support symlinks), try without -L.
20035 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20036 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20037 | sed -ne 's/[ ][ ]*/ /g;
20038 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20042 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
20043 $as_echo "$ac_cv_group_kmem" >&6; }
20044 KMEM_GROUP=$ac_cv_group_kmem
20046 if test "x
$ac_save_LIBS" = x; then
20047 GETLOADAVG_LIBS=$LIBS
20049 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
20055 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
20056 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
20057 if test "${ac_cv_sys_largefile_source+set}" = set; then
20058 $as_echo_n "(cached
) " >&6
20061 cat >conftest.$ac_ext <<_ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h. */
20067 #include <sys/types.h> /* for off_t */
20072 int (*fp) (FILE *, off_t, int) = fseeko;
20073 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (ac_try="$ac_link"
20080 case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20084 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20085 $as_echo "$ac_try_echo") >&5
20086 (eval "$ac_link") 2>conftest.er1
20088 grep -v '^ *+' conftest.er1 >conftest.err
20090 cat conftest.err >&5
20091 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20092 (exit $ac_status); } && {
20093 test -z "$ac_c_werror_flag" ||
20094 test ! -s conftest.err
20095 } && test -s conftest$ac_exeext && {
20096 test "$cross_compiling" = yes ||
20097 $as_test_x conftest$ac_exeext
20099 ac_cv_sys_largefile_source=no; break
20101 $as_echo "$as_me: failed program was
:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20107 rm -rf conftest.dSYM
20108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20109 conftest$ac_exeext conftest.$ac_ext
20110 cat >conftest.$ac_ext <<_ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h. */
20116 #define _LARGEFILE_SOURCE 1
20117 #include <sys/types.h> /* for off_t */
20122 int (*fp) (FILE *, off_t, int) = fseeko;
20123 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20128 rm -f conftest.$ac_objext conftest$ac_exeext
20129 if { (ac_try="$ac_link"
20130 case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20134 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20135 $as_echo "$ac_try_echo") >&5
20136 (eval "$ac_link") 2>conftest.er1
20138 grep -v '^ *+' conftest.er1 >conftest.err
20140 cat conftest.err >&5
20141 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20142 (exit $ac_status); } && {
20143 test -z "$ac_c_werror_flag" ||
20144 test ! -s conftest.err
20145 } && test -s conftest$ac_exeext && {
20146 test "$cross_compiling" = yes ||
20147 $as_test_x conftest$ac_exeext
20149 ac_cv_sys_largefile_source=1; break
20151 $as_echo "$as_me: failed program was
:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20157 rm -rf conftest.dSYM
20158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20159 conftest$ac_exeext conftest.$ac_ext
20160 ac_cv_sys_largefile_source=unknown
20164 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20165 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20166 case $ac_cv_sys_largefile_source in #(
20169 cat >>confdefs.h <<_ACEOF
20170 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20176 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20177 # in glibc 2.1.3, but that breaks too many other things.
20178 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20179 if test $ac_cv_sys_largefile_source != unknown; then
20181 cat >>confdefs.h <<\_ACEOF
20182 #define HAVE_FSEEKO 1
20188 # Configure getopt.
20189 # getopt.m4 serial 10
20191 # The getopt module assume you want GNU getopt, with getopt_long etc,
20192 # rather than vanilla POSIX getopt. This means your your code should
20193 # always include <getopt.h> for the getopt prototypes.
20205 # Prerequisites of lib/getopt*.
20212 for ac_header in getopt.h
20214 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20215 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20216 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20217 $as_echo_n "checking
for $ac_header...
" >&6; }
20218 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20219 $as_echo_n "(cached
) " >&6
20221 ac_res=`eval 'as_val=${'$as_ac_Header'}
20222 $as_echo "$as_val"'`
20223 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20224 $as_echo "$ac_res" >&6; }
20226 # Is the header compilable?
20227 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20228 $as_echo_n "checking
$ac_header usability...
" >&6; }
20229 cat >conftest.$ac_ext <<_ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235 $ac_includes_default
20236 #include <$ac_header>
20238 rm -f conftest.$ac_objext
20239 if { (ac_try="$ac_compile"
20240 case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20244 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20245 $as_echo "$ac_try_echo") >&5
20246 (eval "$ac_compile") 2>conftest.er1
20248 grep -v '^ *+' conftest.er1 >conftest.err
20250 cat conftest.err >&5
20251 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20252 (exit $ac_status); } && {
20253 test -z "$ac_c_werror_flag" ||
20254 test ! -s conftest.err
20255 } && test -s conftest.$ac_objext; then
20256 ac_header_compiler=yes
20258 $as_echo "$as_me: failed program was
:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20261 ac_header_compiler=no
20264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20265 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20266 $as_echo "$ac_header_compiler" >&6; }
20268 # Is the header present?
20269 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20270 $as_echo_n "checking
$ac_header presence...
" >&6; }
20271 cat >conftest.$ac_ext <<_ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h. */
20277 #include <$ac_header>
20279 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20280 case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20284 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20285 $as_echo "$ac_try_echo") >&5
20286 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20288 grep -v '^ *+' conftest.er1 >conftest.err
20290 cat conftest.err >&5
20291 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20292 (exit $ac_status); } >/dev/null && {
20293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20294 test ! -s conftest.err
20296 ac_header_preproc=yes
20298 $as_echo "$as_me: failed program was
:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20301 ac_header_preproc=no
20304 rm -f conftest.err conftest.$ac_ext
20305 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20306 $as_echo "$ac_header_preproc" >&6; }
20308 # So? What about this header?
20309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20311 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20312 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20313 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20314 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20315 ac_header_preproc=yes
20318 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20319 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20320 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20321 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20322 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20323 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20324 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20325 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20326 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20328 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20329 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20333 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20334 $as_echo_n "checking
for $ac_header...
" >&6; }
20335 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20336 $as_echo_n "(cached
) " >&6
20338 eval "$as_ac_Header=\
$ac_header_preproc"
20340 ac_res=`eval 'as_val=${'$as_ac_Header'}
20341 $as_echo "$as_val"'`
20342 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20343 $as_echo "$ac_res" >&6; }
20346 if test `eval 'as_val=${'$as_ac_Header'}
20347 $as_echo "$as_val"'` = yes; then
20348 cat >>confdefs.h <<_ACEOF
20349 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20358 if test -z "$GETOPT_H"; then
20360 for ac_func in getopt_long_only
20362 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20363 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20364 $as_echo_n "checking
for $ac_func...
" >&6; }
20365 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20366 $as_echo_n "(cached
) " >&6
20368 cat >conftest.$ac_ext <<_ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20376 #define $ac_func innocuous_$ac_func
20378 /* System header to define __stub macros and hopefully few prototypes,
20379 which can conflict with char $ac_func (); below.
20380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20381 <limits.h> exists even on freestanding compilers. */
20384 # include <limits.h>
20386 # include <assert.h>
20391 /* Override any GCC internal prototype to avoid an error.
20392 Use char because int might match the return type of a GCC
20393 builtin and then its argument prototype would still apply. */
20398 /* The GNU C library defines this for functions which it implements
20399 to always fail with ENOSYS. Some functions are actually named
20400 something starting with __ and the normal name is an alias. */
20401 #if defined __stub_$ac_func || defined __stub___$ac_func
20408 return $ac_func ();
20413 rm -f conftest.$ac_objext conftest$ac_exeext
20414 if { (ac_try="$ac_link"
20415 case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20419 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20420 $as_echo "$ac_try_echo") >&5
20421 (eval "$ac_link") 2>conftest.er1
20423 grep -v '^ *+' conftest.er1 >conftest.err
20425 cat conftest.err >&5
20426 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20427 (exit $ac_status); } && {
20428 test -z "$ac_c_werror_flag" ||
20429 test ! -s conftest.err
20430 } && test -s conftest$ac_exeext && {
20431 test "$cross_compiling" = yes ||
20432 $as_test_x conftest$ac_exeext
20434 eval "$as_ac_var=yes"
20436 $as_echo "$as_me: failed program was
:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 eval "$as_ac_var=no
"
20442 rm -rf conftest.dSYM
20443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20444 conftest$ac_exeext conftest.$ac_ext
20446 ac_res=`eval 'as_val=${'$as_ac_var'}
20447 $as_echo "$as_val"'`
20448 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20449 $as_echo "$ac_res" >&6; }
20450 if test `eval 'as_val=${'$as_ac_var'}
20451 $as_echo "$as_val"'` = yes; then
20452 cat >>confdefs.h <<_ACEOF
20453 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20463 if test -z "$GETOPT_H"; then
20464 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20465 $as_echo_n "checking whether optreset is declared...
" >&6; }
20466 if test "${ac_cv_have_decl_optreset+set}" = set; then
20467 $as_echo_n "(cached
) " >&6
20469 cat >conftest.$ac_ext <<_ACEOF
20472 cat confdefs.h >>conftest.$ac_ext
20473 cat >>conftest.$ac_ext <<_ACEOF
20474 /* end confdefs.h. */
20475 #include <getopt.h>
20488 rm -f conftest.$ac_objext
20489 if { (ac_try="$ac_compile"
20490 case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20494 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20495 $as_echo "$ac_try_echo") >&5
20496 (eval "$ac_compile") 2>conftest.er1
20498 grep -v '^ *+' conftest.er1 >conftest.err
20500 cat conftest.err >&5
20501 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20502 (exit $ac_status); } && {
20503 test -z "$ac_c_werror_flag" ||
20504 test ! -s conftest.err
20505 } && test -s conftest.$ac_objext; then
20506 ac_cv_have_decl_optreset=yes
20508 $as_echo "$as_me: failed program was
:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20511 ac_cv_have_decl_optreset=no
20514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20516 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20517 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20518 if test $ac_cv_have_decl_optreset = yes; then
20524 if test -z "$GETOPT_H"; then
20525 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20526 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20527 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20528 $as_echo_n "(cached
) " >&6
20530 if test "$cross_compiling" = yes; then
20531 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20532 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20533 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20534 $as_echo_n "(cached
) " >&6
20536 cat >conftest.$ac_ext <<_ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542 #include <getopt.h>
20547 #ifndef getopt_clip
20548 (void) getopt_clip;
20555 rm -f conftest.$ac_objext
20556 if { (ac_try="$ac_compile"
20557 case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20561 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20562 $as_echo "$ac_try_echo") >&5
20563 (eval "$ac_compile") 2>conftest.er1
20565 grep -v '^ *+' conftest.er1 >conftest.err
20567 cat conftest.err >&5
20568 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20569 (exit $ac_status); } && {
20570 test -z "$ac_c_werror_flag" ||
20571 test ! -s conftest.err
20572 } && test -s conftest.$ac_objext; then
20573 ac_cv_have_decl_getopt_clip=yes
20575 $as_echo "$as_me: failed program was
:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20578 ac_cv_have_decl_getopt_clip=no
20581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20583 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20584 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20585 if test $ac_cv_have_decl_getopt_clip = yes; then
20586 gl_cv_func_gnu_getopt=no
20588 gl_cv_func_gnu_getopt=yes
20592 cat >conftest.$ac_ext <<_ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */
20598 #include <getopt.h>
20604 myargv[0] = "conftest
";
20607 return getopt (2, myargv, "+a
") != '?';
20613 rm -f conftest$ac_exeext
20614 if { (ac_try="$ac_link"
20615 case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20619 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20620 $as_echo "$ac_try_echo") >&5
20621 (eval "$ac_link") 2>&5
20623 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20625 { (case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20629 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20630 $as_echo "$ac_try_echo") >&5
20631 (eval "$ac_try") 2>&5
20633 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 gl_cv_func_gnu_getopt=yes
20637 $as_echo "$as_me: program exited with status
$ac_status" >&5
20638 $as_echo "$as_me: failed program was
:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20641 ( exit $ac_status )
20642 gl_cv_func_gnu_getopt=no
20644 rm -rf conftest.dSYM
20645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20650 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
20651 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20652 if test "$gl_cv_func_gnu_getopt" = "no
"; then
20659 if test -n "$GETOPT_H"; then
20664 cat >>confdefs.h <<\_ACEOF
20665 #define __GETOPT_PREFIX rpl_
20671 GETOPTOBJS='getopt.o getopt1.o'
20678 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
20679 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
20680 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20681 $as_echo_n "(cached
) " >&6
20683 # Use it with a single arg.
20684 cat >conftest.$ac_ext <<_ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690 $ac_includes_default
20699 rm -f conftest.$ac_objext
20700 if { (ac_try="$ac_compile"
20701 case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20705 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20706 $as_echo "$ac_try_echo") >&5
20707 (eval "$ac_compile") 2>conftest.er1
20709 grep -v '^ *+' conftest.er1 >conftest.err
20711 cat conftest.err >&5
20712 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20713 (exit $ac_status); } && {
20714 test -z "$ac_c_werror_flag" ||
20715 test ! -s conftest.err
20716 } && test -s conftest.$ac_objext; then
20717 ac_cv_func_getpgrp_void=no
20719 $as_echo "$as_me: failed program was
:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20722 ac_cv_func_getpgrp_void=yes
20725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20728 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
20729 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20730 if test $ac_cv_func_getpgrp_void = yes; then
20732 cat >>confdefs.h <<\_ACEOF
20733 #define GETPGRP_VOID 1
20740 for ac_func in strftime
20742 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20743 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20744 $as_echo_n "checking
for $ac_func...
" >&6; }
20745 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20746 $as_echo_n "(cached
) " >&6
20748 cat >conftest.$ac_ext <<_ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20756 #define $ac_func innocuous_$ac_func
20758 /* System header to define __stub macros and hopefully few prototypes,
20759 which can conflict with char $ac_func (); below.
20760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20761 <limits.h> exists even on freestanding compilers. */
20764 # include <limits.h>
20766 # include <assert.h>
20771 /* Override any GCC internal prototype to avoid an error.
20772 Use char because int might match the return type of a GCC
20773 builtin and then its argument prototype would still apply. */
20778 /* The GNU C library defines this for functions which it implements
20779 to always fail with ENOSYS. Some functions are actually named
20780 something starting with __ and the normal name is an alias. */
20781 #if defined __stub_$ac_func || defined __stub___$ac_func
20788 return $ac_func ();
20793 rm -f conftest.$ac_objext conftest$ac_exeext
20794 if { (ac_try="$ac_link"
20795 case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20799 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20800 $as_echo "$ac_try_echo") >&5
20801 (eval "$ac_link") 2>conftest.er1
20803 grep -v '^ *+' conftest.er1 >conftest.err
20805 cat conftest.err >&5
20806 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20807 (exit $ac_status); } && {
20808 test -z "$ac_c_werror_flag" ||
20809 test ! -s conftest.err
20810 } && test -s conftest$ac_exeext && {
20811 test "$cross_compiling" = yes ||
20812 $as_test_x conftest$ac_exeext
20814 eval "$as_ac_var=yes"
20816 $as_echo "$as_me: failed program was
:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20819 eval "$as_ac_var=no
"
20822 rm -rf conftest.dSYM
20823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20824 conftest$ac_exeext conftest.$ac_ext
20826 ac_res=`eval 'as_val=${'$as_ac_var'}
20827 $as_echo "$as_val"'`
20828 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20829 $as_echo "$ac_res" >&6; }
20830 if test `eval 'as_val=${'$as_ac_var'}
20831 $as_echo "$as_val"'` = yes; then
20832 cat >>confdefs.h <<_ACEOF
20833 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20837 # strftime is in -lintl on SCO UNIX.
20838 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
20839 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
20840 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20841 $as_echo_n "(cached
) " >&6
20843 ac_check_lib_save_LIBS=$LIBS
20844 LIBS="-lintl $LIBS"
20845 cat >conftest.$ac_ext <<_ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20852 /* Override any GCC internal prototype to avoid an error.
20853 Use char because int might match the return type of a GCC
20854 builtin and then its argument prototype would still apply. */
20862 return strftime ();
20867 rm -f conftest.$ac_objext conftest$ac_exeext
20868 if { (ac_try="$ac_link"
20869 case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20873 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20874 $as_echo "$ac_try_echo") >&5
20875 (eval "$ac_link") 2>conftest.er1
20877 grep -v '^ *+' conftest.er1 >conftest.err
20879 cat conftest.err >&5
20880 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20881 (exit $ac_status); } && {
20882 test -z "$ac_c_werror_flag" ||
20883 test ! -s conftest.err
20884 } && test -s conftest$ac_exeext && {
20885 test "$cross_compiling" = yes ||
20886 $as_test_x conftest$ac_exeext
20888 ac_cv_lib_intl_strftime=yes
20890 $as_echo "$as_me: failed program was
:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20893 ac_cv_lib_intl_strftime=no
20896 rm -rf conftest.dSYM
20897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20898 conftest$ac_exeext conftest.$ac_ext
20899 LIBS=$ac_check_lib_save_LIBS
20901 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
20902 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20903 if test $ac_cv_lib_intl_strftime = yes; then
20904 cat >>confdefs.h <<\_ACEOF
20905 #define HAVE_STRFTIME 1
20908 LIBS="-lintl $LIBS"
20917 for ac_func in grantpt
20919 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20920 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20921 $as_echo_n "checking
for $ac_func...
" >&6; }
20922 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20923 $as_echo_n "(cached
) " >&6
20925 cat >conftest.$ac_ext <<_ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20933 #define $ac_func innocuous_$ac_func
20935 /* System header to define __stub macros and hopefully few prototypes,
20936 which can conflict with char $ac_func (); below.
20937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20938 <limits.h> exists even on freestanding compilers. */
20941 # include <limits.h>
20943 # include <assert.h>
20948 /* Override any GCC internal prototype to avoid an error.
20949 Use char because int might match the return type of a GCC
20950 builtin and then its argument prototype would still apply. */
20955 /* The GNU C library defines this for functions which it implements
20956 to always fail with ENOSYS. Some functions are actually named
20957 something starting with __ and the normal name is an alias. */
20958 #if defined __stub_$ac_func || defined __stub___$ac_func
20965 return $ac_func ();
20970 rm -f conftest.$ac_objext conftest$ac_exeext
20971 if { (ac_try="$ac_link"
20972 case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20976 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20977 $as_echo "$ac_try_echo") >&5
20978 (eval "$ac_link") 2>conftest.er1
20980 grep -v '^ *+' conftest.er1 >conftest.err
20982 cat conftest.err >&5
20983 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20984 (exit $ac_status); } && {
20985 test -z "$ac_c_werror_flag" ||
20986 test ! -s conftest.err
20987 } && test -s conftest$ac_exeext && {
20988 test "$cross_compiling" = yes ||
20989 $as_test_x conftest$ac_exeext
20991 eval "$as_ac_var=yes"
20993 $as_echo "$as_me: failed program was
:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20996 eval "$as_ac_var=no
"
20999 rm -rf conftest.dSYM
21000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21001 conftest$ac_exeext conftest.$ac_ext
21003 ac_res=`eval 'as_val=${'$as_ac_var'}
21004 $as_echo "$as_val"'`
21005 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21006 $as_echo "$ac_res" >&6; }
21007 if test `eval 'as_val=${'$as_ac_var'}
21008 $as_echo "$as_val"'` = yes; then
21009 cat >>confdefs.h <<_ACEOF
21010 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21017 # PTY-related GNU extensions.
21019 for ac_func in getpt
21021 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21022 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21023 $as_echo_n "checking
for $ac_func...
" >&6; }
21024 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21025 $as_echo_n "(cached
) " >&6
21027 cat >conftest.$ac_ext <<_ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21035 #define $ac_func innocuous_$ac_func
21037 /* System header to define __stub macros and hopefully few prototypes,
21038 which can conflict with char $ac_func (); below.
21039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21040 <limits.h> exists even on freestanding compilers. */
21043 # include <limits.h>
21045 # include <assert.h>
21050 /* Override any GCC internal prototype to avoid an error.
21051 Use char because int might match the return type of a GCC
21052 builtin and then its argument prototype would still apply. */
21057 /* The GNU C library defines this for functions which it implements
21058 to always fail with ENOSYS. Some functions are actually named
21059 something starting with __ and the normal name is an alias. */
21060 #if defined __stub_$ac_func || defined __stub___$ac_func
21067 return $ac_func ();
21072 rm -f conftest.$ac_objext conftest$ac_exeext
21073 if { (ac_try="$ac_link"
21074 case "(($ac_try" in
21075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076 *) ac_try_echo=$ac_try;;
21078 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21079 $as_echo "$ac_try_echo") >&5
21080 (eval "$ac_link") 2>conftest.er1
21082 grep -v '^ *+' conftest.er1 >conftest.err
21084 cat conftest.err >&5
21085 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21086 (exit $ac_status); } && {
21087 test -z "$ac_c_werror_flag" ||
21088 test ! -s conftest.err
21089 } && test -s conftest$ac_exeext && {
21090 test "$cross_compiling" = yes ||
21091 $as_test_x conftest$ac_exeext
21093 eval "$as_ac_var=yes"
21095 $as_echo "$as_me: failed program was
:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21098 eval "$as_ac_var=no
"
21101 rm -rf conftest.dSYM
21102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21103 conftest$ac_exeext conftest.$ac_ext
21105 ac_res=`eval 'as_val=${'$as_ac_var'}
21106 $as_echo "$as_val"'`
21107 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21108 $as_echo "$ac_res" >&6; }
21109 if test `eval 'as_val=${'$as_ac_var'}
21110 $as_echo "$as_val"'` = yes; then
21111 cat >>confdefs.h <<_ACEOF
21112 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21119 # Check this now, so that we will NOT find the above functions in ncurses.
21120 # That is because we have not set up to link ncurses in lib-src.
21121 # It's better to believe a function is not available
21122 # than to expect to find it in ncurses.
21123 # Also we need tputs and frieds to be able to build at all.
21124 have_tputs_et_al=true
21125 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21126 $as_echo_n "checking
for library containing tputs...
" >&6; }
21127 if test "${ac_cv_search_tputs+set}" = set; then
21128 $as_echo_n "(cached
) " >&6
21130 ac_func_search_save_LIBS=$LIBS
21131 cat >conftest.$ac_ext <<_ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21138 /* Override any GCC internal prototype to avoid an error.
21139 Use char because int might match the return type of a GCC
21140 builtin and then its argument prototype would still apply. */
21153 for ac_lib in '' ncurses terminfo termcap; do
21154 if test -z "$ac_lib"; then
21155 ac_res="none required
"
21158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21160 rm -f conftest.$ac_objext conftest$ac_exeext
21161 if { (ac_try="$ac_link"
21162 case "(($ac_try" in
21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21166 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21167 $as_echo "$ac_try_echo") >&5
21168 (eval "$ac_link") 2>conftest.er1
21170 grep -v '^ *+' conftest.er1 >conftest.err
21172 cat conftest.err >&5
21173 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21174 (exit $ac_status); } && {
21175 test -z "$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 } && test -s conftest$ac_exeext && {
21178 test "$cross_compiling" = yes ||
21179 $as_test_x conftest$ac_exeext
21181 ac_cv_search_tputs=$ac_res
21183 $as_echo "$as_me: failed program was
:" >&5
21184 sed 's/^/| /' conftest.$ac_ext >&5
21189 rm -rf conftest.dSYM
21190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21192 if test "${ac_cv_search_tputs+set}" = set; then
21196 if test "${ac_cv_search_tputs+set}" = set; then
21199 ac_cv_search_tputs=no
21201 rm conftest.$ac_ext
21202 LIBS=$ac_func_search_save_LIBS
21204 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21205 $as_echo "$ac_cv_search_tputs" >&6; }
21206 ac_res=$ac_cv_search_tputs
21207 if test "$ac_res" != no; then
21208 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21211 have_tputs_et_al=false
21214 if test "$have_tputs_et_al" != true; then
21215 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21216 Maybe some development libraries/packages are missing? Try installing
21217 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21218 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21219 Maybe some development libraries
/packages are missing? Try installing
21220 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21221 { (exit 1); exit 1; }; }
21223 # Must define this when any termcap library is found.
21225 cat >>confdefs.h <<\_ACEOF
21226 #define HAVE_LIBNCURSES 1
21230 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21233 cat >conftest.$ac_ext <<_ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h. */
21239 #include <netinet/in.h>
21240 #include <arpa/nameser.h>
21241 #include <resolv.h>
21250 rm -f conftest.$ac_objext conftest$ac_exeext
21251 if { (ac_try="$ac_link"
21252 case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21256 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21257 $as_echo "$ac_try_echo") >&5
21258 (eval "$ac_link") 2>conftest.er1
21260 grep -v '^ *+' conftest.er1 >conftest.err
21262 cat conftest.err >&5
21263 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21264 (exit $ac_status); } && {
21265 test -z "$ac_c_werror_flag" ||
21266 test ! -s conftest.err
21267 } && test -s conftest$ac_exeext && {
21268 test "$cross_compiling" = yes ||
21269 $as_test_x conftest$ac_exeext
21273 $as_echo "$as_me: failed program was
:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21279 rm -rf conftest.dSYM
21280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21281 conftest$ac_exeext conftest.$ac_ext
21282 if test "$have_res_init" = no; then
21284 LIBS="$LIBS -lresolv"
21285 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21286 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21287 cat >conftest.$ac_ext <<_ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21293 #include <netinet/in.h>
21294 #include <arpa/nameser.h>
21295 #include <resolv.h>
21304 rm -f conftest.$ac_objext conftest$ac_exeext
21305 if { (ac_try="$ac_link"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21310 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21311 $as_echo "$ac_try_echo") >&5
21312 (eval "$ac_link") 2>conftest.er1
21314 grep -v '^ *+' conftest.er1 >conftest.err
21316 cat conftest.err >&5
21317 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21318 (exit $ac_status); } && {
21319 test -z "$ac_c_werror_flag" ||
21320 test ! -s conftest.err
21321 } && test -s conftest$ac_exeext && {
21322 test "$cross_compiling" = yes ||
21323 $as_test_x conftest$ac_exeext
21327 $as_echo "$as_me: failed program was
:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21333 rm -rf conftest.dSYM
21334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21335 conftest$ac_exeext conftest.$ac_ext
21336 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21337 $as_echo "$have_res_init" >&6; }
21338 if test "$have_res_init" = yes ; then
21344 if test "$have_res_init" = yes; then
21346 cat >>confdefs.h <<\_ACEOF
21347 #define HAVE_RES_INIT 1
21352 # Do we need the Hesiod library to provide the support routines?
21354 if test "$with_hesiod" != no ; then
21355 # Don't set $LIBS here -- see comments above. FIXME which comments?
21356 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21357 $as_echo_n "checking
for res_send...
" >&6; }
21358 if test "${ac_cv_func_res_send+set}" = set; then
21359 $as_echo_n "(cached
) " >&6
21361 cat >conftest.$ac_ext <<_ACEOF
21364 cat confdefs.h >>conftest.$ac_ext
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h. */
21367 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21369 #define res_send innocuous_res_send
21371 /* System header to define __stub macros and hopefully few prototypes,
21372 which can conflict with char res_send (); below.
21373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21374 <limits.h> exists even on freestanding compilers. */
21377 # include <limits.h>
21379 # include <assert.h>
21384 /* Override any GCC internal prototype to avoid an error.
21385 Use char because int might match the return type of a GCC
21386 builtin and then its argument prototype would still apply. */
21391 /* The GNU C library defines this for functions which it implements
21392 to always fail with ENOSYS. Some functions are actually named
21393 something starting with __ and the normal name is an alias. */
21394 #if defined __stub_res_send || defined __stub___res_send
21401 return res_send ();
21406 rm -f conftest.$ac_objext conftest$ac_exeext
21407 if { (ac_try="$ac_link"
21408 case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21412 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21413 $as_echo "$ac_try_echo") >&5
21414 (eval "$ac_link") 2>conftest.er1
21416 grep -v '^ *+' conftest.er1 >conftest.err
21418 cat conftest.err >&5
21419 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21420 (exit $ac_status); } && {
21421 test -z "$ac_c_werror_flag" ||
21422 test ! -s conftest.err
21423 } && test -s conftest$ac_exeext && {
21424 test "$cross_compiling" = yes ||
21425 $as_test_x conftest$ac_exeext
21427 ac_cv_func_res_send=yes
21429 $as_echo "$as_me: failed program was
:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21432 ac_cv_func_res_send=no
21435 rm -rf conftest.dSYM
21436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21437 conftest$ac_exeext conftest.$ac_ext
21439 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21440 $as_echo "$ac_cv_func_res_send" >&6; }
21441 if test $ac_cv_func_res_send = yes; then
21444 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21445 $as_echo_n "checking
for __res_send...
" >&6; }
21446 if test "${ac_cv_func___res_send+set}" = set; then
21447 $as_echo_n "(cached
) " >&6
21449 cat >conftest.$ac_ext <<_ACEOF
21452 cat confdefs.h >>conftest.$ac_ext
21453 cat >>conftest.$ac_ext <<_ACEOF
21454 /* end confdefs.h. */
21455 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21457 #define __res_send innocuous___res_send
21459 /* System header to define __stub macros and hopefully few prototypes,
21460 which can conflict with char __res_send (); below.
21461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21462 <limits.h> exists even on freestanding compilers. */
21465 # include <limits.h>
21467 # include <assert.h>
21472 /* Override any GCC internal prototype to avoid an error.
21473 Use char because int might match the return type of a GCC
21474 builtin and then its argument prototype would still apply. */
21478 char __res_send ();
21479 /* The GNU C library defines this for functions which it implements
21480 to always fail with ENOSYS. Some functions are actually named
21481 something starting with __ and the normal name is an alias. */
21482 #if defined __stub___res_send || defined __stub_____res_send
21489 return __res_send ();
21494 rm -f conftest.$ac_objext conftest$ac_exeext
21495 if { (ac_try="$ac_link"
21496 case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21500 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21501 $as_echo "$ac_try_echo") >&5
21502 (eval "$ac_link") 2>conftest.er1
21504 grep -v '^ *+' conftest.er1 >conftest.err
21506 cat conftest.err >&5
21507 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21508 (exit $ac_status); } && {
21509 test -z "$ac_c_werror_flag" ||
21510 test ! -s conftest.err
21511 } && test -s conftest$ac_exeext && {
21512 test "$cross_compiling" = yes ||
21513 $as_test_x conftest$ac_exeext
21515 ac_cv_func___res_send=yes
21517 $as_echo "$as_me: failed program was
:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 ac_cv_func___res_send=no
21523 rm -rf conftest.dSYM
21524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21525 conftest$ac_exeext conftest.$ac_ext
21527 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
21528 $as_echo "$ac_cv_func___res_send" >&6; }
21529 if test $ac_cv_func___res_send = yes; then
21532 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
21533 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
21534 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21535 $as_echo_n "(cached
) " >&6
21537 ac_check_lib_save_LIBS=$LIBS
21538 LIBS="-lresolv $LIBS"
21539 cat >conftest.$ac_ext <<_ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h. */
21546 /* Override any GCC internal prototype to avoid an error.
21547 Use char because int might match the return type of a GCC
21548 builtin and then its argument prototype would still apply. */
21556 return res_send ();
21561 rm -f conftest.$ac_objext conftest$ac_exeext
21562 if { (ac_try="$ac_link"
21563 case "(($ac_try" in
21564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21565 *) ac_try_echo=$ac_try;;
21567 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21568 $as_echo "$ac_try_echo") >&5
21569 (eval "$ac_link") 2>conftest.er1
21571 grep -v '^ *+' conftest.er1 >conftest.err
21573 cat conftest.err >&5
21574 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21575 (exit $ac_status); } && {
21576 test -z "$ac_c_werror_flag" ||
21577 test ! -s conftest.err
21578 } && test -s conftest$ac_exeext && {
21579 test "$cross_compiling" = yes ||
21580 $as_test_x conftest$ac_exeext
21582 ac_cv_lib_resolv_res_send=yes
21584 $as_echo "$as_me: failed program was
:" >&5
21585 sed 's/^/| /' conftest.$ac_ext >&5
21587 ac_cv_lib_resolv_res_send=no
21590 rm -rf conftest.dSYM
21591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21592 conftest$ac_exeext conftest.$ac_ext
21593 LIBS=$ac_check_lib_save_LIBS
21595 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
21596 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21597 if test $ac_cv_lib_resolv_res_send = yes; then
21600 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
21601 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
21602 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21603 $as_echo_n "(cached
) " >&6
21605 ac_check_lib_save_LIBS=$LIBS
21606 LIBS="-lresolv $LIBS"
21607 cat >conftest.$ac_ext <<_ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21614 /* Override any GCC internal prototype to avoid an error.
21615 Use char because int might match the return type of a GCC
21616 builtin and then its argument prototype would still apply. */
21620 char __res_send ();
21624 return __res_send ();
21629 rm -f conftest.$ac_objext conftest$ac_exeext
21630 if { (ac_try="$ac_link"
21631 case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21635 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21636 $as_echo "$ac_try_echo") >&5
21637 (eval "$ac_link") 2>conftest.er1
21639 grep -v '^ *+' conftest.er1 >conftest.err
21641 cat conftest.err >&5
21642 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21643 (exit $ac_status); } && {
21644 test -z "$ac_c_werror_flag" ||
21645 test ! -s conftest.err
21646 } && test -s conftest$ac_exeext && {
21647 test "$cross_compiling" = yes ||
21648 $as_test_x conftest$ac_exeext
21650 ac_cv_lib_resolv___res_send=yes
21652 $as_echo "$as_me: failed program was
:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21655 ac_cv_lib_resolv___res_send=no
21658 rm -rf conftest.dSYM
21659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21660 conftest$ac_exeext conftest.$ac_ext
21661 LIBS=$ac_check_lib_save_LIBS
21663 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
21664 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21665 if test $ac_cv_lib_resolv___res_send = yes; then
21675 if test "$resolv" = yes ; then
21680 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
21681 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
21682 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21683 $as_echo_n "(cached
) " >&6
21685 cat >conftest.$ac_ext <<_ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21691 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21693 #define hes_getmailhost innocuous_hes_getmailhost
21695 /* System header to define __stub macros and hopefully few prototypes,
21696 which can conflict with char hes_getmailhost (); below.
21697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21698 <limits.h> exists even on freestanding compilers. */
21701 # include <limits.h>
21703 # include <assert.h>
21706 #undef hes_getmailhost
21708 /* Override any GCC internal prototype to avoid an error.
21709 Use char because int might match the return type of a GCC
21710 builtin and then its argument prototype would still apply. */
21714 char hes_getmailhost ();
21715 /* The GNU C library defines this for functions which it implements
21716 to always fail with ENOSYS. Some functions are actually named
21717 something starting with __ and the normal name is an alias. */
21718 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21725 return hes_getmailhost ();
21730 rm -f conftest.$ac_objext conftest$ac_exeext
21731 if { (ac_try="$ac_link"
21732 case "(($ac_try" in
21733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734 *) ac_try_echo=$ac_try;;
21736 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21737 $as_echo "$ac_try_echo") >&5
21738 (eval "$ac_link") 2>conftest.er1
21740 grep -v '^ *+' conftest.er1 >conftest.err
21742 cat conftest.err >&5
21743 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21744 (exit $ac_status); } && {
21745 test -z "$ac_c_werror_flag" ||
21746 test ! -s conftest.err
21747 } && test -s conftest$ac_exeext && {
21748 test "$cross_compiling" = yes ||
21749 $as_test_x conftest$ac_exeext
21751 ac_cv_func_hes_getmailhost=yes
21753 $as_echo "$as_me: failed program was
:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21756 ac_cv_func_hes_getmailhost=no
21759 rm -rf conftest.dSYM
21760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21761 conftest$ac_exeext conftest.$ac_ext
21763 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
21764 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21765 if test $ac_cv_func_hes_getmailhost = yes; then
21768 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
21769 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
21770 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21771 $as_echo_n "(cached
) " >&6
21773 ac_check_lib_save_LIBS=$LIBS
21774 LIBS="-lhesiod $RESOLVLIB $LIBS"
21775 cat >conftest.$ac_ext <<_ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h. */
21782 /* Override any GCC internal prototype to avoid an error.
21783 Use char because int might match the return type of a GCC
21784 builtin and then its argument prototype would still apply. */
21788 char hes_getmailhost ();
21792 return hes_getmailhost ();
21797 rm -f conftest.$ac_objext conftest$ac_exeext
21798 if { (ac_try="$ac_link"
21799 case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21803 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21804 $as_echo "$ac_try_echo") >&5
21805 (eval "$ac_link") 2>conftest.er1
21807 grep -v '^ *+' conftest.er1 >conftest.err
21809 cat conftest.err >&5
21810 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21811 (exit $ac_status); } && {
21812 test -z "$ac_c_werror_flag" ||
21813 test ! -s conftest.err
21814 } && test -s conftest$ac_exeext && {
21815 test "$cross_compiling" = yes ||
21816 $as_test_x conftest$ac_exeext
21818 ac_cv_lib_hesiod_hes_getmailhost=yes
21820 $as_echo "$as_me: failed program was
:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21823 ac_cv_lib_hesiod_hes_getmailhost=no
21826 rm -rf conftest.dSYM
21827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21828 conftest$ac_exeext conftest.$ac_ext
21829 LIBS=$ac_check_lib_save_LIBS
21831 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21832 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21833 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21842 if test x"$hesiod" = xyes; then
21844 cat >>confdefs.h <<\_ACEOF
21845 #define HAVE_LIBHESIOD 1
21853 # Do we need libresolv (due to res_init or Hesiod)?
21854 if test "$resolv" = yes ; then
21856 cat >>confdefs.h <<\_ACEOF
21857 #define HAVE_LIBRESOLV 1
21866 # These tell us which Kerberos-related libraries to use.
21873 if test "${with_kerberos}" != no; then
21874 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
21875 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
21876 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21877 $as_echo_n "(cached
) " >&6
21879 ac_check_lib_save_LIBS=$LIBS
21880 LIBS="-lcom_err $LIBS"
21881 cat >conftest.$ac_ext <<_ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21888 /* Override any GCC internal prototype to avoid an error.
21889 Use char because int might match the return type of a GCC
21890 builtin and then its argument prototype would still apply. */
21903 rm -f conftest.$ac_objext conftest$ac_exeext
21904 if { (ac_try="$ac_link"
21905 case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21909 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21910 $as_echo "$ac_try_echo") >&5
21911 (eval "$ac_link") 2>conftest.er1
21913 grep -v '^ *+' conftest.er1 >conftest.err
21915 cat conftest.err >&5
21916 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21917 (exit $ac_status); } && {
21918 test -z "$ac_c_werror_flag" ||
21919 test ! -s conftest.err
21920 } && test -s conftest$ac_exeext && {
21921 test "$cross_compiling" = yes ||
21922 $as_test_x conftest$ac_exeext
21924 ac_cv_lib_com_err_com_err=yes
21926 $as_echo "$as_me: failed program was
:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21929 ac_cv_lib_com_err_com_err=no
21932 rm -rf conftest.dSYM
21933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21934 conftest$ac_exeext conftest.$ac_ext
21935 LIBS=$ac_check_lib_save_LIBS
21937 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
21938 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21939 if test $ac_cv_lib_com_err_com_err = yes; then
21945 if test $have_com_err = yes; then
21946 COM_ERRLIB=-lcom_err
21947 LIBS="$COM_ERRLIB $LIBS"
21949 cat >>confdefs.h <<\_ACEOF
21950 #define HAVE_LIBCOM_ERR 1
21954 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
21955 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
21956 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21957 $as_echo_n "(cached
) " >&6
21959 ac_check_lib_save_LIBS=$LIBS
21960 LIBS="-lcrypto $LIBS"
21961 cat >conftest.$ac_ext <<_ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */
21968 /* Override any GCC internal prototype to avoid an error.
21969 Use char because int might match the return type of a GCC
21970 builtin and then its argument prototype would still apply. */
21974 char mit_des_cbc_encrypt ();
21978 return mit_des_cbc_encrypt ();
21983 rm -f conftest.$ac_objext conftest$ac_exeext
21984 if { (ac_try="$ac_link"
21985 case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21989 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21990 $as_echo "$ac_try_echo") >&5
21991 (eval "$ac_link") 2>conftest.er1
21993 grep -v '^ *+' conftest.er1 >conftest.err
21995 cat conftest.err >&5
21996 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21997 (exit $ac_status); } && {
21998 test -z "$ac_c_werror_flag" ||
21999 test ! -s conftest.err
22000 } && test -s conftest$ac_exeext && {
22001 test "$cross_compiling" = yes ||
22002 $as_test_x conftest$ac_exeext
22004 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22006 $as_echo "$as_me: failed program was
:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22009 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22012 rm -rf conftest.dSYM
22013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22014 conftest$ac_exeext conftest.$ac_ext
22015 LIBS=$ac_check_lib_save_LIBS
22017 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22018 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22019 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22025 if test $have_crypto = yes; then
22027 LIBS="$CRYPTOLIB $LIBS"
22029 cat >>confdefs.h <<\_ACEOF
22030 #define HAVE_LIBCRYPTO 1
22034 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
22035 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
22036 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22037 $as_echo_n "(cached
) " >&6
22039 ac_check_lib_save_LIBS=$LIBS
22040 LIBS="-lk5crypto $LIBS"
22041 cat >conftest.$ac_ext <<_ACEOF
22044 cat confdefs.h >>conftest.$ac_ext
22045 cat >>conftest.$ac_ext <<_ACEOF
22046 /* end confdefs.h. */
22048 /* Override any GCC internal prototype to avoid an error.
22049 Use char because int might match the return type of a GCC
22050 builtin and then its argument prototype would still apply. */
22054 char mit_des_cbc_encrypt ();
22058 return mit_des_cbc_encrypt ();
22063 rm -f conftest.$ac_objext conftest$ac_exeext
22064 if { (ac_try="$ac_link"
22065 case "(($ac_try" in
22066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067 *) ac_try_echo=$ac_try;;
22069 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22070 $as_echo "$ac_try_echo") >&5
22071 (eval "$ac_link") 2>conftest.er1
22073 grep -v '^ *+' conftest.er1 >conftest.err
22075 cat conftest.err >&5
22076 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22077 (exit $ac_status); } && {
22078 test -z "$ac_c_werror_flag" ||
22079 test ! -s conftest.err
22080 } && test -s conftest$ac_exeext && {
22081 test "$cross_compiling" = yes ||
22082 $as_test_x conftest$ac_exeext
22084 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22086 $as_echo "$as_me: failed program was
:" >&5
22087 sed 's/^/| /' conftest.$ac_ext >&5
22089 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22092 rm -rf conftest.dSYM
22093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22094 conftest$ac_exeext conftest.$ac_ext
22095 LIBS=$ac_check_lib_save_LIBS
22097 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22098 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22099 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22105 if test $have_k5crypto = yes; then
22106 CRYPTOLIB=-lk5crypto
22107 LIBS="$CRYPTOLIB $LIBS"
22109 cat >>confdefs.h <<\_ACEOF
22110 #define HAVE_LIBK5CRYPTO 1
22114 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22115 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22116 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22117 $as_echo_n "(cached
) " >&6
22119 ac_check_lib_save_LIBS=$LIBS
22120 LIBS="-lkrb5 $LIBS"
22121 cat >conftest.$ac_ext <<_ACEOF
22124 cat confdefs.h >>conftest.$ac_ext
22125 cat >>conftest.$ac_ext <<_ACEOF
22126 /* end confdefs.h. */
22128 /* Override any GCC internal prototype to avoid an error.
22129 Use char because int might match the return type of a GCC
22130 builtin and then its argument prototype would still apply. */
22134 char krb5_init_context ();
22138 return krb5_init_context ();
22143 rm -f conftest.$ac_objext conftest$ac_exeext
22144 if { (ac_try="$ac_link"
22145 case "(($ac_try" in
22146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147 *) ac_try_echo=$ac_try;;
22149 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22150 $as_echo "$ac_try_echo") >&5
22151 (eval "$ac_link") 2>conftest.er1
22153 grep -v '^ *+' conftest.er1 >conftest.err
22155 cat conftest.err >&5
22156 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22157 (exit $ac_status); } && {
22158 test -z "$ac_c_werror_flag" ||
22159 test ! -s conftest.err
22160 } && test -s conftest$ac_exeext && {
22161 test "$cross_compiling" = yes ||
22162 $as_test_x conftest$ac_exeext
22164 ac_cv_lib_krb5_krb5_init_context=yes
22166 $as_echo "$as_me: failed program was
:" >&5
22167 sed 's/^/| /' conftest.$ac_ext >&5
22169 ac_cv_lib_krb5_krb5_init_context=no
22172 rm -rf conftest.dSYM
22173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22174 conftest$ac_exeext conftest.$ac_ext
22175 LIBS=$ac_check_lib_save_LIBS
22177 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22178 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22179 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22185 if test $have_krb5=yes; then
22187 LIBS="$KRB5LIB $LIBS"
22189 cat >>confdefs.h <<\_ACEOF
22190 #define HAVE_LIBKRB5 1
22194 if test "${with_kerberos5}" = no; then
22195 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22196 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22197 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22198 $as_echo_n "(cached
) " >&6
22200 ac_check_lib_save_LIBS=$LIBS
22201 LIBS="-ldes425 $LIBS"
22202 cat >conftest.$ac_ext <<_ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h. */
22209 /* Override any GCC internal prototype to avoid an error.
22210 Use char because int might match the return type of a GCC
22211 builtin and then its argument prototype would still apply. */
22215 char des_cbc_encrypt ();
22219 return des_cbc_encrypt ();
22224 rm -f conftest.$ac_objext conftest$ac_exeext
22225 if { (ac_try="$ac_link"
22226 case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22230 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22231 $as_echo "$ac_try_echo") >&5
22232 (eval "$ac_link") 2>conftest.er1
22234 grep -v '^ *+' conftest.er1 >conftest.err
22236 cat conftest.err >&5
22237 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest$ac_exeext && {
22242 test "$cross_compiling" = yes ||
22243 $as_test_x conftest$ac_exeext
22245 ac_cv_lib_des425_des_cbc_encrypt=yes
22247 $as_echo "$as_me: failed program was
:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22250 ac_cv_lib_des425_des_cbc_encrypt=no
22253 rm -rf conftest.dSYM
22254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22255 conftest$ac_exeext conftest.$ac_ext
22256 LIBS=$ac_check_lib_save_LIBS
22258 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22259 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22260 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22266 if test $have_des425 = yes; then
22268 LIBS="$DESLIB $LIBS"
22270 cat >>confdefs.h <<\_ACEOF
22271 #define HAVE_LIBDES425 1
22275 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22276 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22277 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22278 $as_echo_n "(cached
) " >&6
22280 ac_check_lib_save_LIBS=$LIBS
22282 cat >conftest.$ac_ext <<_ACEOF
22285 cat confdefs.h >>conftest.$ac_ext
22286 cat >>conftest.$ac_ext <<_ACEOF
22287 /* end confdefs.h. */
22289 /* Override any GCC internal prototype to avoid an error.
22290 Use char because int might match the return type of a GCC
22291 builtin and then its argument prototype would still apply. */
22295 char des_cbc_encrypt ();
22299 return des_cbc_encrypt ();
22304 rm -f conftest.$ac_objext conftest$ac_exeext
22305 if { (ac_try="$ac_link"
22306 case "(($ac_try" in
22307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308 *) ac_try_echo=$ac_try;;
22310 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22311 $as_echo "$ac_try_echo") >&5
22312 (eval "$ac_link") 2>conftest.er1
22314 grep -v '^ *+' conftest.er1 >conftest.err
22316 cat conftest.err >&5
22317 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22318 (exit $ac_status); } && {
22319 test -z "$ac_c_werror_flag" ||
22320 test ! -s conftest.err
22321 } && test -s conftest$ac_exeext && {
22322 test "$cross_compiling" = yes ||
22323 $as_test_x conftest$ac_exeext
22325 ac_cv_lib_des_des_cbc_encrypt=yes
22327 $as_echo "$as_me: failed program was
:" >&5
22328 sed 's/^/| /' conftest.$ac_ext >&5
22330 ac_cv_lib_des_des_cbc_encrypt=no
22333 rm -rf conftest.dSYM
22334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22335 conftest$ac_exeext conftest.$ac_ext
22336 LIBS=$ac_check_lib_save_LIBS
22338 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22339 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22340 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22346 if test $have_des = yes; then
22348 LIBS="$DESLIB $LIBS"
22350 cat >>confdefs.h <<\_ACEOF
22351 #define HAVE_LIBDES 1
22356 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22357 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22358 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22359 $as_echo_n "(cached
) " >&6
22361 ac_check_lib_save_LIBS=$LIBS
22362 LIBS="-lkrb4 $LIBS"
22363 cat >conftest.$ac_ext <<_ACEOF
22366 cat confdefs.h >>conftest.$ac_ext
22367 cat >>conftest.$ac_ext <<_ACEOF
22368 /* end confdefs.h. */
22370 /* Override any GCC internal prototype to avoid an error.
22371 Use char because int might match the return type of a GCC
22372 builtin and then its argument prototype would still apply. */
22376 char krb_get_cred ();
22380 return krb_get_cred ();
22385 rm -f conftest.$ac_objext conftest$ac_exeext
22386 if { (ac_try="$ac_link"
22387 case "(($ac_try" in
22388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22389 *) ac_try_echo=$ac_try;;
22391 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22392 $as_echo "$ac_try_echo") >&5
22393 (eval "$ac_link") 2>conftest.er1
22395 grep -v '^ *+' conftest.er1 >conftest.err
22397 cat conftest.err >&5
22398 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22399 (exit $ac_status); } && {
22400 test -z "$ac_c_werror_flag" ||
22401 test ! -s conftest.err
22402 } && test -s conftest$ac_exeext && {
22403 test "$cross_compiling" = yes ||
22404 $as_test_x conftest$ac_exeext
22406 ac_cv_lib_krb4_krb_get_cred=yes
22408 $as_echo "$as_me: failed program was
:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22411 ac_cv_lib_krb4_krb_get_cred=no
22414 rm -rf conftest.dSYM
22415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22416 conftest$ac_exeext conftest.$ac_ext
22417 LIBS=$ac_check_lib_save_LIBS
22419 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22420 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22421 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22427 if test $have_krb4 = yes; then
22429 LIBS="$KRB4LIB $LIBS"
22431 cat >>confdefs.h <<\_ACEOF
22432 #define HAVE_LIBKRB4 1
22436 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22437 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22438 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22439 $as_echo_n "(cached
) " >&6
22441 ac_check_lib_save_LIBS=$LIBS
22443 cat >conftest.$ac_ext <<_ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h. */
22450 /* Override any GCC internal prototype to avoid an error.
22451 Use char because int might match the return type of a GCC
22452 builtin and then its argument prototype would still apply. */
22456 char krb_get_cred ();
22460 return krb_get_cred ();
22465 rm -f conftest.$ac_objext conftest$ac_exeext
22466 if { (ac_try="$ac_link"
22467 case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22471 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22472 $as_echo "$ac_try_echo") >&5
22473 (eval "$ac_link") 2>conftest.er1
22475 grep -v '^ *+' conftest.er1 >conftest.err
22477 cat conftest.err >&5
22478 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22479 (exit $ac_status); } && {
22480 test -z "$ac_c_werror_flag" ||
22481 test ! -s conftest.err
22482 } && test -s conftest$ac_exeext && {
22483 test "$cross_compiling" = yes ||
22484 $as_test_x conftest$ac_exeext
22486 ac_cv_lib_krb_krb_get_cred=yes
22488 $as_echo "$as_me: failed program was
:" >&5
22489 sed 's/^/| /' conftest.$ac_ext >&5
22491 ac_cv_lib_krb_krb_get_cred=no
22494 rm -rf conftest.dSYM
22495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22496 conftest$ac_exeext conftest.$ac_ext
22497 LIBS=$ac_check_lib_save_LIBS
22499 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22500 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22501 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22507 if test $have_krb = yes; then
22509 LIBS="$KRB4LIB $LIBS"
22511 cat >>confdefs.h <<\_ACEOF
22512 #define HAVE_LIBKRB 1
22519 if test "${with_kerberos5}" != no; then
22521 for ac_header in krb5.h
22523 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22524 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22525 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22526 $as_echo_n "checking
for $ac_header...
" >&6; }
22527 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22528 $as_echo_n "(cached
) " >&6
22530 ac_res=`eval 'as_val=${'$as_ac_Header'}
22531 $as_echo "$as_val"'`
22532 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22533 $as_echo "$ac_res" >&6; }
22535 # Is the header compilable?
22536 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22537 $as_echo_n "checking
$ac_header usability...
" >&6; }
22538 cat >conftest.$ac_ext <<_ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22544 $ac_includes_default
22545 #include <$ac_header>
22547 rm -f conftest.$ac_objext
22548 if { (ac_try="$ac_compile"
22549 case "(($ac_try" in
22550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551 *) ac_try_echo=$ac_try;;
22553 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22554 $as_echo "$ac_try_echo") >&5
22555 (eval "$ac_compile") 2>conftest.er1
22557 grep -v '^ *+' conftest.er1 >conftest.err
22559 cat conftest.err >&5
22560 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22561 (exit $ac_status); } && {
22562 test -z "$ac_c_werror_flag" ||
22563 test ! -s conftest.err
22564 } && test -s conftest.$ac_objext; then
22565 ac_header_compiler=yes
22567 $as_echo "$as_me: failed program was
:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22570 ac_header_compiler=no
22573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22574 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22575 $as_echo "$ac_header_compiler" >&6; }
22577 # Is the header present?
22578 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22579 $as_echo_n "checking
$ac_header presence...
" >&6; }
22580 cat >conftest.$ac_ext <<_ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22586 #include <$ac_header>
22588 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22589 case "(($ac_try" in
22590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22591 *) ac_try_echo=$ac_try;;
22593 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22594 $as_echo "$ac_try_echo") >&5
22595 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22597 grep -v '^ *+' conftest.er1 >conftest.err
22599 cat conftest.err >&5
22600 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22601 (exit $ac_status); } >/dev/null && {
22602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22603 test ! -s conftest.err
22605 ac_header_preproc=yes
22607 $as_echo "$as_me: failed program was
:" >&5
22608 sed 's/^/| /' conftest.$ac_ext >&5
22610 ac_header_preproc=no
22613 rm -f conftest.err conftest.$ac_ext
22614 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22615 $as_echo "$ac_header_preproc" >&6; }
22617 # So? What about this header?
22618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22620 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22621 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22622 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22624 ac_header_preproc=yes
22627 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22628 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22629 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22630 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22631 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22632 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22633 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22634 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22635 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22636 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22637 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22638 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22642 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22643 $as_echo_n "checking
for $ac_header...
" >&6; }
22644 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22645 $as_echo_n "(cached
) " >&6
22647 eval "$as_ac_Header=\
$ac_header_preproc"
22649 ac_res=`eval 'as_val=${'$as_ac_Header'}
22650 $as_echo "$as_val"'`
22651 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22652 $as_echo "$ac_res" >&6; }
22655 if test `eval 'as_val=${'$as_ac_Header'}
22656 $as_echo "$as_val"'` = yes; then
22657 cat >>confdefs.h <<_ACEOF
22658 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22660 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
22661 $as_echo_n "checking
for krb5_error.text...
" >&6; }
22662 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22663 $as_echo_n "(cached
) " >&6
22665 cat >conftest.$ac_ext <<_ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h. */
22676 static krb5_error ac_aggr;
22683 rm -f conftest.$ac_objext
22684 if { (ac_try="$ac_compile"
22685 case "(($ac_try" in
22686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22687 *) ac_try_echo=$ac_try;;
22689 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22690 $as_echo "$ac_try_echo") >&5
22691 (eval "$ac_compile") 2>conftest.er1
22693 grep -v '^ *+' conftest.er1 >conftest.err
22695 cat conftest.err >&5
22696 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22697 (exit $ac_status); } && {
22698 test -z "$ac_c_werror_flag" ||
22699 test ! -s conftest.err
22700 } && test -s conftest.$ac_objext; then
22701 ac_cv_member_krb5_error_text=yes
22703 $as_echo "$as_me: failed program was
:" >&5
22704 sed 's/^/| /' conftest.$ac_ext >&5
22706 cat >conftest.$ac_ext <<_ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h. */
22717 static krb5_error ac_aggr;
22718 if (sizeof ac_aggr.text)
22724 rm -f conftest.$ac_objext
22725 if { (ac_try="$ac_compile"
22726 case "(($ac_try" in
22727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22730 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22731 $as_echo "$ac_try_echo") >&5
22732 (eval "$ac_compile") 2>conftest.er1
22734 grep -v '^ *+' conftest.er1 >conftest.err
22736 cat conftest.err >&5
22737 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22738 (exit $ac_status); } && {
22739 test -z "$ac_c_werror_flag" ||
22740 test ! -s conftest.err
22741 } && test -s conftest.$ac_objext; then
22742 ac_cv_member_krb5_error_text=yes
22744 $as_echo "$as_me: failed program was
:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22747 ac_cv_member_krb5_error_text=no
22750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22755 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
22756 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22757 if test $ac_cv_member_krb5_error_text = yes; then
22759 cat >>confdefs.h <<_ACEOF
22760 #define HAVE_KRB5_ERROR_TEXT 1
22765 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
22766 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
22767 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22768 $as_echo_n "(cached
) " >&6
22770 cat >conftest.$ac_ext <<_ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h. */
22781 static krb5_error ac_aggr;
22782 if (ac_aggr.e_text)
22788 rm -f conftest.$ac_objext
22789 if { (ac_try="$ac_compile"
22790 case "(($ac_try" in
22791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792 *) ac_try_echo=$ac_try;;
22794 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22795 $as_echo "$ac_try_echo") >&5
22796 (eval "$ac_compile") 2>conftest.er1
22798 grep -v '^ *+' conftest.er1 >conftest.err
22800 cat conftest.err >&5
22801 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22802 (exit $ac_status); } && {
22803 test -z "$ac_c_werror_flag" ||
22804 test ! -s conftest.err
22805 } && test -s conftest.$ac_objext; then
22806 ac_cv_member_krb5_error_e_text=yes
22808 $as_echo "$as_me: failed program was
:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22811 cat >conftest.$ac_ext <<_ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22822 static krb5_error ac_aggr;
22823 if (sizeof ac_aggr.e_text)
22829 rm -f conftest.$ac_objext
22830 if { (ac_try="$ac_compile"
22831 case "(($ac_try" in
22832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22833 *) ac_try_echo=$ac_try;;
22835 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22836 $as_echo "$ac_try_echo") >&5
22837 (eval "$ac_compile") 2>conftest.er1
22839 grep -v '^ *+' conftest.er1 >conftest.err
22841 cat conftest.err >&5
22842 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22843 (exit $ac_status); } && {
22844 test -z "$ac_c_werror_flag" ||
22845 test ! -s conftest.err
22846 } && test -s conftest.$ac_objext; then
22847 ac_cv_member_krb5_error_e_text=yes
22849 $as_echo "$as_me: failed program was
:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22852 ac_cv_member_krb5_error_e_text=no
22855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22860 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
22861 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22862 if test $ac_cv_member_krb5_error_e_text = yes; then
22864 cat >>confdefs.h <<_ACEOF
22865 #define HAVE_KRB5_ERROR_E_TEXT 1
22877 for ac_header in des.h
22879 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22880 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22881 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22882 $as_echo_n "checking
for $ac_header...
" >&6; }
22883 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22884 $as_echo_n "(cached
) " >&6
22886 ac_res=`eval 'as_val=${'$as_ac_Header'}
22887 $as_echo "$as_val"'`
22888 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22889 $as_echo "$ac_res" >&6; }
22891 # Is the header compilable?
22892 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22893 $as_echo_n "checking
$ac_header usability...
" >&6; }
22894 cat >conftest.$ac_ext <<_ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h. */
22900 $ac_includes_default
22901 #include <$ac_header>
22903 rm -f conftest.$ac_objext
22904 if { (ac_try="$ac_compile"
22905 case "(($ac_try" in
22906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907 *) ac_try_echo=$ac_try;;
22909 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22910 $as_echo "$ac_try_echo") >&5
22911 (eval "$ac_compile") 2>conftest.er1
22913 grep -v '^ *+' conftest.er1 >conftest.err
22915 cat conftest.err >&5
22916 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22917 (exit $ac_status); } && {
22918 test -z "$ac_c_werror_flag" ||
22919 test ! -s conftest.err
22920 } && test -s conftest.$ac_objext; then
22921 ac_header_compiler=yes
22923 $as_echo "$as_me: failed program was
:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22926 ac_header_compiler=no
22929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22930 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22931 $as_echo "$ac_header_compiler" >&6; }
22933 # Is the header present?
22934 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22935 $as_echo_n "checking
$ac_header presence...
" >&6; }
22936 cat >conftest.$ac_ext <<_ACEOF
22939 cat confdefs.h >>conftest.$ac_ext
22940 cat >>conftest.$ac_ext <<_ACEOF
22941 /* end confdefs.h. */
22942 #include <$ac_header>
22944 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22945 case "(($ac_try" in
22946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947 *) ac_try_echo=$ac_try;;
22949 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22950 $as_echo "$ac_try_echo") >&5
22951 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22953 grep -v '^ *+' conftest.er1 >conftest.err
22955 cat conftest.err >&5
22956 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22957 (exit $ac_status); } >/dev/null && {
22958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22959 test ! -s conftest.err
22961 ac_header_preproc=yes
22963 $as_echo "$as_me: failed program was
:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22966 ac_header_preproc=no
22969 rm -f conftest.err conftest.$ac_ext
22970 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22971 $as_echo "$ac_header_preproc" >&6; }
22973 # So? What about this header?
22974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22976 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22977 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22978 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22979 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22980 ac_header_preproc=yes
22983 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22984 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22985 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22986 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22987 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22988 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22989 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22990 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22991 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22992 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22993 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22994 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22998 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
22999 $as_echo_n "checking
for $ac_header...
" >&6; }
23000 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23001 $as_echo_n "(cached
) " >&6
23003 eval "$as_ac_Header=\
$ac_header_preproc"
23005 ac_res=`eval 'as_val=${'$as_ac_Header'}
23006 $as_echo "$as_val"'`
23007 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23008 $as_echo "$ac_res" >&6; }
23011 if test `eval 'as_val=${'$as_ac_Header'}
23012 $as_echo "$as_val"'` = yes; then
23013 cat >>confdefs.h <<_ACEOF
23014 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23019 for ac_header in kerberosIV/des.h
23021 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23022 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23023 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23024 $as_echo_n "checking
for $ac_header...
" >&6; }
23025 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23026 $as_echo_n "(cached
) " >&6
23028 ac_res=`eval 'as_val=${'$as_ac_Header'}
23029 $as_echo "$as_val"'`
23030 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23031 $as_echo "$ac_res" >&6; }
23033 # Is the header compilable?
23034 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23035 $as_echo_n "checking
$ac_header usability...
" >&6; }
23036 cat >conftest.$ac_ext <<_ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23042 $ac_includes_default
23043 #include <$ac_header>
23045 rm -f conftest.$ac_objext
23046 if { (ac_try="$ac_compile"
23047 case "(($ac_try" in
23048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049 *) ac_try_echo=$ac_try;;
23051 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23052 $as_echo "$ac_try_echo") >&5
23053 (eval "$ac_compile") 2>conftest.er1
23055 grep -v '^ *+' conftest.er1 >conftest.err
23057 cat conftest.err >&5
23058 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23059 (exit $ac_status); } && {
23060 test -z "$ac_c_werror_flag" ||
23061 test ! -s conftest.err
23062 } && test -s conftest.$ac_objext; then
23063 ac_header_compiler=yes
23065 $as_echo "$as_me: failed program was
:" >&5
23066 sed 's/^/| /' conftest.$ac_ext >&5
23068 ac_header_compiler=no
23071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23073 $as_echo "$ac_header_compiler" >&6; }
23075 # Is the header present?
23076 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23077 $as_echo_n "checking
$ac_header presence...
" >&6; }
23078 cat >conftest.$ac_ext <<_ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23084 #include <$ac_header>
23086 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23087 case "(($ac_try" in
23088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089 *) ac_try_echo=$ac_try;;
23091 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23092 $as_echo "$ac_try_echo") >&5
23093 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23095 grep -v '^ *+' conftest.er1 >conftest.err
23097 cat conftest.err >&5
23098 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23099 (exit $ac_status); } >/dev/null && {
23100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23101 test ! -s conftest.err
23103 ac_header_preproc=yes
23105 $as_echo "$as_me: failed program was
:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23108 ac_header_preproc=no
23111 rm -f conftest.err conftest.$ac_ext
23112 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23113 $as_echo "$ac_header_preproc" >&6; }
23115 # So? What about this header?
23116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23118 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23119 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23120 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23121 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23122 ac_header_preproc=yes
23125 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23126 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23127 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23128 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23129 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23130 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23131 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23132 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23133 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23134 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23135 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23136 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23140 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23141 $as_echo_n "checking
for $ac_header...
" >&6; }
23142 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23143 $as_echo_n "(cached
) " >&6
23145 eval "$as_ac_Header=\
$ac_header_preproc"
23147 ac_res=`eval 'as_val=${'$as_ac_Header'}
23148 $as_echo "$as_val"'`
23149 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23150 $as_echo "$ac_res" >&6; }
23153 if test `eval 'as_val=${'$as_ac_Header'}
23154 $as_echo "$as_val"'` = yes; then
23155 cat >>confdefs.h <<_ACEOF
23156 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23161 for ac_header in kerberos/des.h
23163 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23164 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23165 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23166 $as_echo_n "checking
for $ac_header...
" >&6; }
23167 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23168 $as_echo_n "(cached
) " >&6
23170 ac_res=`eval 'as_val=${'$as_ac_Header'}
23171 $as_echo "$as_val"'`
23172 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23173 $as_echo "$ac_res" >&6; }
23175 # Is the header compilable?
23176 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23177 $as_echo_n "checking
$ac_header usability...
" >&6; }
23178 cat >conftest.$ac_ext <<_ACEOF
23181 cat confdefs.h >>conftest.$ac_ext
23182 cat >>conftest.$ac_ext <<_ACEOF
23183 /* end confdefs.h. */
23184 $ac_includes_default
23185 #include <$ac_header>
23187 rm -f conftest.$ac_objext
23188 if { (ac_try="$ac_compile"
23189 case "(($ac_try" in
23190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191 *) ac_try_echo=$ac_try;;
23193 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23194 $as_echo "$ac_try_echo") >&5
23195 (eval "$ac_compile") 2>conftest.er1
23197 grep -v '^ *+' conftest.er1 >conftest.err
23199 cat conftest.err >&5
23200 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23201 (exit $ac_status); } && {
23202 test -z "$ac_c_werror_flag" ||
23203 test ! -s conftest.err
23204 } && test -s conftest.$ac_objext; then
23205 ac_header_compiler=yes
23207 $as_echo "$as_me: failed program was
:" >&5
23208 sed 's/^/| /' conftest.$ac_ext >&5
23210 ac_header_compiler=no
23213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23214 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23215 $as_echo "$ac_header_compiler" >&6; }
23217 # Is the header present?
23218 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23219 $as_echo_n "checking
$ac_header presence...
" >&6; }
23220 cat >conftest.$ac_ext <<_ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h. */
23226 #include <$ac_header>
23228 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23229 case "(($ac_try" in
23230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231 *) ac_try_echo=$ac_try;;
23233 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23234 $as_echo "$ac_try_echo") >&5
23235 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23237 grep -v '^ *+' conftest.er1 >conftest.err
23239 cat conftest.err >&5
23240 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23241 (exit $ac_status); } >/dev/null && {
23242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23243 test ! -s conftest.err
23245 ac_header_preproc=yes
23247 $as_echo "$as_me: failed program was
:" >&5
23248 sed 's/^/| /' conftest.$ac_ext >&5
23250 ac_header_preproc=no
23253 rm -f conftest.err conftest.$ac_ext
23254 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23255 $as_echo "$ac_header_preproc" >&6; }
23257 # So? What about this header?
23258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23260 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23261 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23262 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23263 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23264 ac_header_preproc=yes
23267 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23268 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23269 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23270 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23271 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23272 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23273 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23274 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23275 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23276 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23277 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23278 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23282 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23283 $as_echo_n "checking
for $ac_header...
" >&6; }
23284 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23285 $as_echo_n "(cached
) " >&6
23287 eval "$as_ac_Header=\
$ac_header_preproc"
23289 ac_res=`eval 'as_val=${'$as_ac_Header'}
23290 $as_echo "$as_val"'`
23291 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23292 $as_echo "$ac_res" >&6; }
23295 if test `eval 'as_val=${'$as_ac_Header'}
23296 $as_echo "$as_val"'` = yes; then
23297 cat >>confdefs.h <<_ACEOF
23298 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23314 for ac_header in krb.h
23316 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23317 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23318 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23319 $as_echo_n "checking
for $ac_header...
" >&6; }
23320 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23321 $as_echo_n "(cached
) " >&6
23323 ac_res=`eval 'as_val=${'$as_ac_Header'}
23324 $as_echo "$as_val"'`
23325 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23326 $as_echo "$ac_res" >&6; }
23328 # Is the header compilable?
23329 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23330 $as_echo_n "checking
$ac_header usability...
" >&6; }
23331 cat >conftest.$ac_ext <<_ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23337 $ac_includes_default
23338 #include <$ac_header>
23340 rm -f conftest.$ac_objext
23341 if { (ac_try="$ac_compile"
23342 case "(($ac_try" in
23343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23344 *) ac_try_echo=$ac_try;;
23346 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23347 $as_echo "$ac_try_echo") >&5
23348 (eval "$ac_compile") 2>conftest.er1
23350 grep -v '^ *+' conftest.er1 >conftest.err
23352 cat conftest.err >&5
23353 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23354 (exit $ac_status); } && {
23355 test -z "$ac_c_werror_flag" ||
23356 test ! -s conftest.err
23357 } && test -s conftest.$ac_objext; then
23358 ac_header_compiler=yes
23360 $as_echo "$as_me: failed program was
:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23363 ac_header_compiler=no
23366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23367 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23368 $as_echo "$ac_header_compiler" >&6; }
23370 # Is the header present?
23371 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23372 $as_echo_n "checking
$ac_header presence...
" >&6; }
23373 cat >conftest.$ac_ext <<_ACEOF
23376 cat confdefs.h >>conftest.$ac_ext
23377 cat >>conftest.$ac_ext <<_ACEOF
23378 /* end confdefs.h. */
23379 #include <$ac_header>
23381 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23382 case "(($ac_try" in
23383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23384 *) ac_try_echo=$ac_try;;
23386 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23387 $as_echo "$ac_try_echo") >&5
23388 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23390 grep -v '^ *+' conftest.er1 >conftest.err
23392 cat conftest.err >&5
23393 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23394 (exit $ac_status); } >/dev/null && {
23395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23396 test ! -s conftest.err
23398 ac_header_preproc=yes
23400 $as_echo "$as_me: failed program was
:" >&5
23401 sed 's/^/| /' conftest.$ac_ext >&5
23403 ac_header_preproc=no
23406 rm -f conftest.err conftest.$ac_ext
23407 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23408 $as_echo "$ac_header_preproc" >&6; }
23410 # So? What about this header?
23411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23413 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23414 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23415 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23416 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23417 ac_header_preproc=yes
23420 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23421 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23422 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23423 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23424 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23425 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23426 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23427 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23428 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23429 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23430 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23431 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23435 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23436 $as_echo_n "checking
for $ac_header...
" >&6; }
23437 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23438 $as_echo_n "(cached
) " >&6
23440 eval "$as_ac_Header=\
$ac_header_preproc"
23442 ac_res=`eval 'as_val=${'$as_ac_Header'}
23443 $as_echo "$as_val"'`
23444 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23445 $as_echo "$ac_res" >&6; }
23448 if test `eval 'as_val=${'$as_ac_Header'}
23449 $as_echo "$as_val"'` = yes; then
23450 cat >>confdefs.h <<_ACEOF
23451 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23456 for ac_header in kerberosIV/krb.h
23458 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23459 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23460 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23461 $as_echo_n "checking
for $ac_header...
" >&6; }
23462 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23463 $as_echo_n "(cached
) " >&6
23465 ac_res=`eval 'as_val=${'$as_ac_Header'}
23466 $as_echo "$as_val"'`
23467 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23468 $as_echo "$ac_res" >&6; }
23470 # Is the header compilable?
23471 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23472 $as_echo_n "checking
$ac_header usability...
" >&6; }
23473 cat >conftest.$ac_ext <<_ACEOF
23476 cat confdefs.h >>conftest.$ac_ext
23477 cat >>conftest.$ac_ext <<_ACEOF
23478 /* end confdefs.h. */
23479 $ac_includes_default
23480 #include <$ac_header>
23482 rm -f conftest.$ac_objext
23483 if { (ac_try="$ac_compile"
23484 case "(($ac_try" in
23485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23486 *) ac_try_echo=$ac_try;;
23488 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23489 $as_echo "$ac_try_echo") >&5
23490 (eval "$ac_compile") 2>conftest.er1
23492 grep -v '^ *+' conftest.er1 >conftest.err
23494 cat conftest.err >&5
23495 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23496 (exit $ac_status); } && {
23497 test -z "$ac_c_werror_flag" ||
23498 test ! -s conftest.err
23499 } && test -s conftest.$ac_objext; then
23500 ac_header_compiler=yes
23502 $as_echo "$as_me: failed program was
:" >&5
23503 sed 's/^/| /' conftest.$ac_ext >&5
23505 ac_header_compiler=no
23508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23509 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23510 $as_echo "$ac_header_compiler" >&6; }
23512 # Is the header present?
23513 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23514 $as_echo_n "checking
$ac_header presence...
" >&6; }
23515 cat >conftest.$ac_ext <<_ACEOF
23518 cat confdefs.h >>conftest.$ac_ext
23519 cat >>conftest.$ac_ext <<_ACEOF
23520 /* end confdefs.h. */
23521 #include <$ac_header>
23523 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23524 case "(($ac_try" in
23525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23526 *) ac_try_echo=$ac_try;;
23528 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23529 $as_echo "$ac_try_echo") >&5
23530 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23532 grep -v '^ *+' conftest.er1 >conftest.err
23534 cat conftest.err >&5
23535 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23536 (exit $ac_status); } >/dev/null && {
23537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23538 test ! -s conftest.err
23540 ac_header_preproc=yes
23542 $as_echo "$as_me: failed program was
:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23545 ac_header_preproc=no
23548 rm -f conftest.err conftest.$ac_ext
23549 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23550 $as_echo "$ac_header_preproc" >&6; }
23552 # So? What about this header?
23553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23555 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23556 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23557 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23559 ac_header_preproc=yes
23562 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23563 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23564 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23565 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23566 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23567 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23568 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23569 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23570 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23571 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23572 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23573 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23577 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23578 $as_echo_n "checking
for $ac_header...
" >&6; }
23579 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23580 $as_echo_n "(cached
) " >&6
23582 eval "$as_ac_Header=\
$ac_header_preproc"
23584 ac_res=`eval 'as_val=${'$as_ac_Header'}
23585 $as_echo "$as_val"'`
23586 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23587 $as_echo "$ac_res" >&6; }
23590 if test `eval 'as_val=${'$as_ac_Header'}
23591 $as_echo "$as_val"'` = yes; then
23592 cat >>confdefs.h <<_ACEOF
23593 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23598 for ac_header in kerberos/krb.h
23600 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23601 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23602 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23603 $as_echo_n "checking
for $ac_header...
" >&6; }
23604 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23605 $as_echo_n "(cached
) " >&6
23607 ac_res=`eval 'as_val=${'$as_ac_Header'}
23608 $as_echo "$as_val"'`
23609 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23610 $as_echo "$ac_res" >&6; }
23612 # Is the header compilable?
23613 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23614 $as_echo_n "checking
$ac_header usability...
" >&6; }
23615 cat >conftest.$ac_ext <<_ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>conftest.$ac_ext <<_ACEOF
23620 /* end confdefs.h. */
23621 $ac_includes_default
23622 #include <$ac_header>
23624 rm -f conftest.$ac_objext
23625 if { (ac_try="$ac_compile"
23626 case "(($ac_try" in
23627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628 *) ac_try_echo=$ac_try;;
23630 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23631 $as_echo "$ac_try_echo") >&5
23632 (eval "$ac_compile") 2>conftest.er1
23634 grep -v '^ *+' conftest.er1 >conftest.err
23636 cat conftest.err >&5
23637 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23638 (exit $ac_status); } && {
23639 test -z "$ac_c_werror_flag" ||
23640 test ! -s conftest.err
23641 } && test -s conftest.$ac_objext; then
23642 ac_header_compiler=yes
23644 $as_echo "$as_me: failed program was
:" >&5
23645 sed 's/^/| /' conftest.$ac_ext >&5
23647 ac_header_compiler=no
23650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23651 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23652 $as_echo "$ac_header_compiler" >&6; }
23654 # Is the header present?
23655 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23656 $as_echo_n "checking
$ac_header presence...
" >&6; }
23657 cat >conftest.$ac_ext <<_ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h. */
23663 #include <$ac_header>
23665 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23666 case "(($ac_try" in
23667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668 *) ac_try_echo=$ac_try;;
23670 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23671 $as_echo "$ac_try_echo") >&5
23672 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23674 grep -v '^ *+' conftest.er1 >conftest.err
23676 cat conftest.err >&5
23677 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23678 (exit $ac_status); } >/dev/null && {
23679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23680 test ! -s conftest.err
23682 ac_header_preproc=yes
23684 $as_echo "$as_me: failed program was
:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23687 ac_header_preproc=no
23690 rm -f conftest.err conftest.$ac_ext
23691 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23692 $as_echo "$ac_header_preproc" >&6; }
23694 # So? What about this header?
23695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23697 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23698 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23699 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23700 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23701 ac_header_preproc=yes
23704 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23705 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23706 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23707 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23708 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23709 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23710 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23711 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23712 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23713 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23714 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23715 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23719 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23720 $as_echo_n "checking
for $ac_header...
" >&6; }
23721 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23722 $as_echo_n "(cached
) " >&6
23724 eval "$as_ac_Header=\
$ac_header_preproc"
23726 ac_res=`eval 'as_val=${'$as_ac_Header'}
23727 $as_echo "$as_val"'`
23728 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23729 $as_echo "$ac_res" >&6; }
23732 if test `eval 'as_val=${'$as_ac_Header'}
23733 $as_echo "$as_val"'` = yes; then
23734 cat >>confdefs.h <<_ACEOF
23735 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23752 for ac_header in com_err.h
23754 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23755 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23756 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23757 $as_echo_n "checking
for $ac_header...
" >&6; }
23758 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23759 $as_echo_n "(cached
) " >&6
23761 ac_res=`eval 'as_val=${'$as_ac_Header'}
23762 $as_echo "$as_val"'`
23763 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23764 $as_echo "$ac_res" >&6; }
23766 # Is the header compilable?
23767 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23768 $as_echo_n "checking
$ac_header usability...
" >&6; }
23769 cat >conftest.$ac_ext <<_ACEOF
23772 cat confdefs.h >>conftest.$ac_ext
23773 cat >>conftest.$ac_ext <<_ACEOF
23774 /* end confdefs.h. */
23775 $ac_includes_default
23776 #include <$ac_header>
23778 rm -f conftest.$ac_objext
23779 if { (ac_try="$ac_compile"
23780 case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23784 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23785 $as_echo "$ac_try_echo") >&5
23786 (eval "$ac_compile") 2>conftest.er1
23788 grep -v '^ *+' conftest.er1 >conftest.err
23790 cat conftest.err >&5
23791 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23792 (exit $ac_status); } && {
23793 test -z "$ac_c_werror_flag" ||
23794 test ! -s conftest.err
23795 } && test -s conftest.$ac_objext; then
23796 ac_header_compiler=yes
23798 $as_echo "$as_me: failed program was
:" >&5
23799 sed 's/^/| /' conftest.$ac_ext >&5
23801 ac_header_compiler=no
23804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23806 $as_echo "$ac_header_compiler" >&6; }
23808 # Is the header present?
23809 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23810 $as_echo_n "checking
$ac_header presence...
" >&6; }
23811 cat >conftest.$ac_ext <<_ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h. */
23817 #include <$ac_header>
23819 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23820 case "(($ac_try" in
23821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822 *) ac_try_echo=$ac_try;;
23824 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23825 $as_echo "$ac_try_echo") >&5
23826 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23828 grep -v '^ *+' conftest.er1 >conftest.err
23830 cat conftest.err >&5
23831 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23832 (exit $ac_status); } >/dev/null && {
23833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23834 test ! -s conftest.err
23836 ac_header_preproc=yes
23838 $as_echo "$as_me: failed program was
:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23841 ac_header_preproc=no
23844 rm -f conftest.err conftest.$ac_ext
23845 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23846 $as_echo "$ac_header_preproc" >&6; }
23848 # So? What about this header?
23849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23851 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23852 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23853 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23854 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23855 ac_header_preproc=yes
23858 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23859 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23860 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23861 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23862 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23863 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23864 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23865 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23866 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23867 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23868 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23869 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23873 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23874 $as_echo_n "checking
for $ac_header...
" >&6; }
23875 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23876 $as_echo_n "(cached
) " >&6
23878 eval "$as_ac_Header=\
$ac_header_preproc"
23880 ac_res=`eval 'as_val=${'$as_ac_Header'}
23881 $as_echo "$as_val"'`
23882 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23883 $as_echo "$ac_res" >&6; }
23886 if test `eval 'as_val=${'$as_ac_Header'}
23887 $as_echo "$as_val"'` = yes; then
23888 cat >>confdefs.h <<_ACEOF
23889 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23904 # Solaris requires -lintl if you want strerror (which calls dgettext)
23905 # to return localized messages.
23907 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
23908 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
23909 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23910 $as_echo_n "(cached
) " >&6
23912 ac_check_lib_save_LIBS=$LIBS
23913 LIBS="-lintl $LIBS"
23914 cat >conftest.$ac_ext <<_ACEOF
23917 cat confdefs.h >>conftest.$ac_ext
23918 cat >>conftest.$ac_ext <<_ACEOF
23919 /* end confdefs.h. */
23921 /* Override any GCC internal prototype to avoid an error.
23922 Use char because int might match the return type of a GCC
23923 builtin and then its argument prototype would still apply. */
23931 return dgettext ();
23936 rm -f conftest.$ac_objext conftest$ac_exeext
23937 if { (ac_try="$ac_link"
23938 case "(($ac_try" in
23939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940 *) ac_try_echo=$ac_try;;
23942 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23943 $as_echo "$ac_try_echo") >&5
23944 (eval "$ac_link") 2>conftest.er1
23946 grep -v '^ *+' conftest.er1 >conftest.err
23948 cat conftest.err >&5
23949 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23950 (exit $ac_status); } && {
23951 test -z "$ac_c_werror_flag" ||
23952 test ! -s conftest.err
23953 } && test -s conftest$ac_exeext && {
23954 test "$cross_compiling" = yes ||
23955 $as_test_x conftest$ac_exeext
23957 ac_cv_lib_intl_dgettext=yes
23959 $as_echo "$as_me: failed program was
:" >&5
23960 sed 's/^/| /' conftest.$ac_ext >&5
23962 ac_cv_lib_intl_dgettext=no
23965 rm -rf conftest.dSYM
23966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23967 conftest$ac_exeext conftest.$ac_ext
23968 LIBS=$ac_check_lib_save_LIBS
23970 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
23971 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23972 if test $ac_cv_lib_intl_dgettext = yes; then
23973 cat >>confdefs.h <<_ACEOF
23974 #define HAVE_LIBINTL 1
23977 LIBS="-lintl $LIBS"
23982 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
23983 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
23984 if test "${emacs_cv_localtime_cache+set}" = set; then
23985 $as_echo_n "(cached
) " >&6
23987 if test x$ac_cv_func_tzset = xyes; then
23988 if test "$cross_compiling" = yes; then
23989 # If we have tzset, assume the worst when cross-compiling.
23990 emacs_cv_localtime_cache=yes
23992 cat >conftest.$ac_ext <<_ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h. */
23999 extern char **environ;
24003 for (to = from = environ; (*to = *from); from++)
24004 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24007 char TZ_GMT0[] = "TZ
=GMT0
";
24008 char TZ_PST8[] = "TZ
=PST8
";
24011 time_t now = time ((time_t *) 0);
24012 int hour_GMT0, hour_unset;
24013 if (putenv (TZ_GMT0) != 0)
24015 hour_GMT0 = localtime (&now)->tm_hour;
24017 hour_unset = localtime (&now)->tm_hour;
24018 if (putenv (TZ_PST8) != 0)
24020 if (localtime (&now)->tm_hour == hour_GMT0)
24023 if (localtime (&now)->tm_hour != hour_unset)
24028 rm -f conftest$ac_exeext
24029 if { (ac_try="$ac_link"
24030 case "(($ac_try" in
24031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24032 *) ac_try_echo=$ac_try;;
24034 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24035 $as_echo "$ac_try_echo") >&5
24036 (eval "$ac_link") 2>&5
24038 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24040 { (case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24044 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24045 $as_echo "$ac_try_echo") >&5
24046 (eval "$ac_try") 2>&5
24048 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24049 (exit $ac_status); }; }; then
24050 emacs_cv_localtime_cache=no
24052 $as_echo "$as_me: program exited with status
$ac_status" >&5
24053 $as_echo "$as_me: failed program was
:" >&5
24054 sed 's/^/| /' conftest.$ac_ext >&5
24056 ( exit $ac_status )
24057 emacs_cv_localtime_cache=yes
24059 rm -rf conftest.dSYM
24060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24065 # If we lack tzset, report that localtime does not cache TZ,
24066 # since we can't invalidate the cache if we don't have tzset.
24067 emacs_cv_localtime_cache=no
24070 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24071 $as_echo "$emacs_cv_localtime_cache" >&6; }
24072 if test $emacs_cv_localtime_cache = yes; then
24074 cat >>confdefs.h <<\_ACEOF
24075 #define LOCALTIME_CACHE 1
24080 if test "x
$HAVE_TIMEVAL" = xyes; then
24082 for ac_func in gettimeofday
24084 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24085 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24086 $as_echo_n "checking
for $ac_func...
" >&6; }
24087 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24088 $as_echo_n "(cached
) " >&6
24090 cat >conftest.$ac_ext <<_ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h. */
24096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24098 #define $ac_func innocuous_$ac_func
24100 /* System header to define __stub macros and hopefully few prototypes,
24101 which can conflict with char $ac_func (); below.
24102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24103 <limits.h> exists even on freestanding compilers. */
24106 # include <limits.h>
24108 # include <assert.h>
24113 /* Override any GCC internal prototype to avoid an error.
24114 Use char because int might match the return type of a GCC
24115 builtin and then its argument prototype would still apply. */
24120 /* The GNU C library defines this for functions which it implements
24121 to always fail with ENOSYS. Some functions are actually named
24122 something starting with __ and the normal name is an alias. */
24123 #if defined __stub_$ac_func || defined __stub___$ac_func
24130 return $ac_func ();
24135 rm -f conftest.$ac_objext conftest$ac_exeext
24136 if { (ac_try="$ac_link"
24137 case "(($ac_try" in
24138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24139 *) ac_try_echo=$ac_try;;
24141 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24142 $as_echo "$ac_try_echo") >&5
24143 (eval "$ac_link") 2>conftest.er1
24145 grep -v '^ *+' conftest.er1 >conftest.err
24147 cat conftest.err >&5
24148 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24149 (exit $ac_status); } && {
24150 test -z "$ac_c_werror_flag" ||
24151 test ! -s conftest.err
24152 } && test -s conftest$ac_exeext && {
24153 test "$cross_compiling" = yes ||
24154 $as_test_x conftest$ac_exeext
24156 eval "$as_ac_var=yes"
24158 $as_echo "$as_me: failed program was
:" >&5
24159 sed 's/^/| /' conftest.$ac_ext >&5
24161 eval "$as_ac_var=no
"
24164 rm -rf conftest.dSYM
24165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24166 conftest$ac_exeext conftest.$ac_ext
24168 ac_res=`eval 'as_val=${'$as_ac_var'}
24169 $as_echo "$as_val"'`
24170 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24171 $as_echo "$ac_res" >&6; }
24172 if test `eval 'as_val=${'$as_ac_var'}
24173 $as_echo "$as_val"'` = yes; then
24174 cat >>confdefs.h <<_ACEOF
24175 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24181 if test $ac_cv_func_gettimeofday = yes; then
24182 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24183 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24184 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24185 $as_echo_n "(cached
) " >&6
24187 cat >conftest.$ac_ext <<_ACEOF
24190 cat confdefs.h >>conftest.$ac_ext
24191 cat >>conftest.$ac_ext <<_ACEOF
24192 /* end confdefs.h. */
24194 #ifdef TIME_WITH_SYS_TIME
24195 #include <sys/time.h>
24198 #ifdef HAVE_SYS_TIME_H
24199 #include <sys/time.h>
24207 struct timeval time;
24208 gettimeofday (&time, 0);
24213 rm -f conftest.$ac_objext
24214 if { (ac_try="$ac_compile"
24215 case "(($ac_try" in
24216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217 *) ac_try_echo=$ac_try;;
24219 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24220 $as_echo "$ac_try_echo") >&5
24221 (eval "$ac_compile") 2>conftest.er1
24223 grep -v '^ *+' conftest.er1 >conftest.err
24225 cat conftest.err >&5
24226 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24227 (exit $ac_status); } && {
24228 test -z "$ac_c_werror_flag" ||
24229 test ! -s conftest.err
24230 } && test -s conftest.$ac_objext; then
24231 emacs_cv_gettimeofday_two_arguments=yes
24233 $as_echo "$as_me: failed program was
:" >&5
24234 sed 's/^/| /' conftest.$ac_ext >&5
24236 emacs_cv_gettimeofday_two_arguments=no
24239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24241 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24242 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24243 if test $emacs_cv_gettimeofday_two_arguments = no; then
24245 cat >>confdefs.h <<\_ACEOF
24246 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24254 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24255 $as_echo_n "checking
for socket...
" >&6; }
24256 if test "${ac_cv_func_socket+set}" = set; then
24257 $as_echo_n "(cached
) " >&6
24259 cat >conftest.$ac_ext <<_ACEOF
24262 cat confdefs.h >>conftest.$ac_ext
24263 cat >>conftest.$ac_ext <<_ACEOF
24264 /* end confdefs.h. */
24265 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24267 #define socket innocuous_socket
24269 /* System header to define __stub macros and hopefully few prototypes,
24270 which can conflict with char socket (); below.
24271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24272 <limits.h> exists even on freestanding compilers. */
24275 # include <limits.h>
24277 # include <assert.h>
24282 /* Override any GCC internal prototype to avoid an error.
24283 Use char because int might match the return type of a GCC
24284 builtin and then its argument prototype would still apply. */
24289 /* The GNU C library defines this for functions which it implements
24290 to always fail with ENOSYS. Some functions are actually named
24291 something starting with __ and the normal name is an alias. */
24292 #if defined __stub_socket || defined __stub___socket
24304 rm -f conftest.$ac_objext conftest$ac_exeext
24305 if { (ac_try="$ac_link"
24306 case "(($ac_try" in
24307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24308 *) ac_try_echo=$ac_try;;
24310 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24311 $as_echo "$ac_try_echo") >&5
24312 (eval "$ac_link") 2>conftest.er1
24314 grep -v '^ *+' conftest.er1 >conftest.err
24316 cat conftest.err >&5
24317 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24318 (exit $ac_status); } && {
24319 test -z "$ac_c_werror_flag" ||
24320 test ! -s conftest.err
24321 } && test -s conftest$ac_exeext && {
24322 test "$cross_compiling" = yes ||
24323 $as_test_x conftest$ac_exeext
24325 ac_cv_func_socket=yes
24327 $as_echo "$as_me: failed program was
:" >&5
24328 sed 's/^/| /' conftest.$ac_ext >&5
24330 ac_cv_func_socket=no
24333 rm -rf conftest.dSYM
24334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24335 conftest$ac_exeext conftest.$ac_ext
24337 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24338 $as_echo "$ac_cv_func_socket" >&6; }
24339 if test $ac_cv_func_socket = yes; then
24345 if test $ok_so_far = yes; then
24346 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24347 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24348 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24349 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24350 $as_echo_n "(cached
) " >&6
24352 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24353 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24355 # Is the header compilable?
24356 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24357 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24358 cat >conftest.$ac_ext <<_ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h. */
24364 $ac_includes_default
24365 #include <netinet/in.h>
24367 rm -f conftest.$ac_objext
24368 if { (ac_try="$ac_compile"
24369 case "(($ac_try" in
24370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24371 *) ac_try_echo=$ac_try;;
24373 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24374 $as_echo "$ac_try_echo") >&5
24375 (eval "$ac_compile") 2>conftest.er1
24377 grep -v '^ *+' conftest.er1 >conftest.err
24379 cat conftest.err >&5
24380 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24381 (exit $ac_status); } && {
24382 test -z "$ac_c_werror_flag" ||
24383 test ! -s conftest.err
24384 } && test -s conftest.$ac_objext; then
24385 ac_header_compiler=yes
24387 $as_echo "$as_me: failed program was
:" >&5
24388 sed 's/^/| /' conftest.$ac_ext >&5
24390 ac_header_compiler=no
24393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24394 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24395 $as_echo "$ac_header_compiler" >&6; }
24397 # Is the header present?
24398 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24399 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24400 cat >conftest.$ac_ext <<_ACEOF
24403 cat confdefs.h >>conftest.$ac_ext
24404 cat >>conftest.$ac_ext <<_ACEOF
24405 /* end confdefs.h. */
24406 #include <netinet/in.h>
24408 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24409 case "(($ac_try" in
24410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24411 *) ac_try_echo=$ac_try;;
24413 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24414 $as_echo "$ac_try_echo") >&5
24415 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24417 grep -v '^ *+' conftest.er1 >conftest.err
24419 cat conftest.err >&5
24420 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24421 (exit $ac_status); } >/dev/null && {
24422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24423 test ! -s conftest.err
24425 ac_header_preproc=yes
24427 $as_echo "$as_me: failed program was
:" >&5
24428 sed 's/^/| /' conftest.$ac_ext >&5
24430 ac_header_preproc=no
24433 rm -f conftest.err conftest.$ac_ext
24434 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24435 $as_echo "$ac_header_preproc" >&6; }
24437 # So? What about this header?
24438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24440 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24441 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24442 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24443 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24444 ac_header_preproc=yes
24447 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24448 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24449 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24450 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24451 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24452 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24453 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24454 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24455 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24456 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24457 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24458 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24462 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24463 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24464 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24465 $as_echo_n "(cached
) " >&6
24467 ac_cv_header_netinet_in_h=$ac_header_preproc
24469 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24470 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24473 if test $ac_cv_header_netinet_in_h = yes; then
24481 if test $ok_so_far = yes; then
24482 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24483 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24484 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24485 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24486 $as_echo_n "(cached
) " >&6
24488 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24489 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24491 # Is the header compilable?
24492 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24493 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
24494 cat >conftest.$ac_ext <<_ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 $ac_includes_default
24501 #include <arpa/inet.h>
24503 rm -f conftest.$ac_objext
24504 if { (ac_try="$ac_compile"
24505 case "(($ac_try" in
24506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24509 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24510 $as_echo "$ac_try_echo") >&5
24511 (eval "$ac_compile") 2>conftest.er1
24513 grep -v '^ *+' conftest.er1 >conftest.err
24515 cat conftest.err >&5
24516 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24517 (exit $ac_status); } && {
24518 test -z "$ac_c_werror_flag" ||
24519 test ! -s conftest.err
24520 } && test -s conftest.$ac_objext; then
24521 ac_header_compiler=yes
24523 $as_echo "$as_me: failed program was
:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24526 ac_header_compiler=no
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24531 $as_echo "$ac_header_compiler" >&6; }
24533 # Is the header present?
24534 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
24535 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
24536 cat >conftest.$ac_ext <<_ACEOF
24539 cat confdefs.h >>conftest.$ac_ext
24540 cat >>conftest.$ac_ext <<_ACEOF
24541 /* end confdefs.h. */
24542 #include <arpa/inet.h>
24544 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24545 case "(($ac_try" in
24546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547 *) ac_try_echo=$ac_try;;
24549 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24550 $as_echo "$ac_try_echo") >&5
24551 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24553 grep -v '^ *+' conftest.er1 >conftest.err
24555 cat conftest.err >&5
24556 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24557 (exit $ac_status); } >/dev/null && {
24558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24559 test ! -s conftest.err
24561 ac_header_preproc=yes
24563 $as_echo "$as_me: failed program was
:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24566 ac_header_preproc=no
24569 rm -f conftest.err conftest.$ac_ext
24570 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24571 $as_echo "$ac_header_preproc" >&6; }
24573 # So? What about this header?
24574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24576 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24577 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24578 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
24579 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
24580 ac_header_preproc=yes
24583 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
24584 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
24585 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
24586 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
24587 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
24588 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
24589 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24590 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24591 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
24592 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
24593 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
24594 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
24598 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24599 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24600 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24601 $as_echo_n "(cached
) " >&6
24603 ac_cv_header_arpa_inet_h=$ac_header_preproc
24605 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24606 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24609 if test $ac_cv_header_arpa_inet_h = yes; then
24617 if test $ok_so_far = yes; then
24619 cat >>confdefs.h <<\_ACEOF
24620 #define HAVE_INET_SOCKETS 1
24626 for ac_header in sys/ioctl.h
24628 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24629 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24630 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24631 $as_echo_n "checking
for $ac_header...
" >&6; }
24632 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24633 $as_echo_n "(cached
) " >&6
24635 ac_res=`eval 'as_val=${'$as_ac_Header'}
24636 $as_echo "$as_val"'`
24637 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24638 $as_echo "$ac_res" >&6; }
24640 # Is the header compilable?
24641 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24642 $as_echo_n "checking
$ac_header usability...
" >&6; }
24643 cat >conftest.$ac_ext <<_ACEOF
24646 cat confdefs.h >>conftest.$ac_ext
24647 cat >>conftest.$ac_ext <<_ACEOF
24648 /* end confdefs.h. */
24649 $ac_includes_default
24650 #include <$ac_header>
24652 rm -f conftest.$ac_objext
24653 if { (ac_try="$ac_compile"
24654 case "(($ac_try" in
24655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24658 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24659 $as_echo "$ac_try_echo") >&5
24660 (eval "$ac_compile") 2>conftest.er1
24662 grep -v '^ *+' conftest.er1 >conftest.err
24664 cat conftest.err >&5
24665 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24666 (exit $ac_status); } && {
24667 test -z "$ac_c_werror_flag" ||
24668 test ! -s conftest.err
24669 } && test -s conftest.$ac_objext; then
24670 ac_header_compiler=yes
24672 $as_echo "$as_me: failed program was
:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24675 ac_header_compiler=no
24678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24679 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24680 $as_echo "$ac_header_compiler" >&6; }
24682 # Is the header present?
24683 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24684 $as_echo_n "checking
$ac_header presence...
" >&6; }
24685 cat >conftest.$ac_ext <<_ACEOF
24688 cat confdefs.h >>conftest.$ac_ext
24689 cat >>conftest.$ac_ext <<_ACEOF
24690 /* end confdefs.h. */
24691 #include <$ac_header>
24693 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24694 case "(($ac_try" in
24695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24696 *) ac_try_echo=$ac_try;;
24698 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24699 $as_echo "$ac_try_echo") >&5
24700 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24702 grep -v '^ *+' conftest.er1 >conftest.err
24704 cat conftest.err >&5
24705 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24706 (exit $ac_status); } >/dev/null && {
24707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24708 test ! -s conftest.err
24710 ac_header_preproc=yes
24712 $as_echo "$as_me: failed program was
:" >&5
24713 sed 's/^/| /' conftest.$ac_ext >&5
24715 ac_header_preproc=no
24718 rm -f conftest.err conftest.$ac_ext
24719 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24720 $as_echo "$ac_header_preproc" >&6; }
24722 # So? What about this header?
24723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24725 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24726 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24727 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24728 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24729 ac_header_preproc=yes
24732 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24733 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24734 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24735 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24736 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24737 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24738 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24739 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24740 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24741 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24742 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24743 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24747 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24748 $as_echo_n "checking
for $ac_header...
" >&6; }
24749 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24750 $as_echo_n "(cached
) " >&6
24752 eval "$as_ac_Header=\
$ac_header_preproc"
24754 ac_res=`eval 'as_val=${'$as_ac_Header'}
24755 $as_echo "$as_val"'`
24756 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24757 $as_echo "$ac_res" >&6; }
24760 if test `eval 'as_val=${'$as_ac_Header'}
24761 $as_echo "$as_val"'` = yes; then
24762 cat >>confdefs.h <<_ACEOF
24763 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24771 if test -f /usr/lpp/X11/bin/smt.exp; then
24773 cat >>confdefs.h <<\_ACEOF
24774 #define HAVE_AIX_SMT_EXP 1
24779 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
24780 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
24781 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24782 { $as_echo "$as_me:$LINENO: result
: yes" >&5
24783 $as_echo "yes" >&6; }
24785 cat >>confdefs.h <<\_ACEOF
24786 #define HAVE_DEV_PTMX 1
24790 { $as_echo "$as_me:$LINENO: result
: no
" >&5
24791 $as_echo "no
" >&6; }
24794 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
24795 $as_echo_n "checking
for pid_t...
" >&6; }
24796 if test "${ac_cv_type_pid_t+set}" = set; then
24797 $as_echo_n "(cached
) " >&6
24799 ac_cv_type_pid_t=no
24800 cat >conftest.$ac_ext <<_ACEOF
24803 cat confdefs.h >>conftest.$ac_ext
24804 cat >>conftest.$ac_ext <<_ACEOF
24805 /* end confdefs.h. */
24806 $ac_includes_default
24810 if (sizeof (pid_t))
24816 rm -f conftest.$ac_objext
24817 if { (ac_try="$ac_compile"
24818 case "(($ac_try" in
24819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24820 *) ac_try_echo=$ac_try;;
24822 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24823 $as_echo "$ac_try_echo") >&5
24824 (eval "$ac_compile") 2>conftest.er1
24826 grep -v '^ *+' conftest.er1 >conftest.err
24828 cat conftest.err >&5
24829 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24830 (exit $ac_status); } && {
24831 test -z "$ac_c_werror_flag" ||
24832 test ! -s conftest.err
24833 } && test -s conftest.$ac_objext; then
24834 cat >conftest.$ac_ext <<_ACEOF
24837 cat confdefs.h >>conftest.$ac_ext
24838 cat >>conftest.$ac_ext <<_ACEOF
24839 /* end confdefs.h. */
24840 $ac_includes_default
24844 if (sizeof ((pid_t)))
24850 rm -f conftest.$ac_objext
24851 if { (ac_try="$ac_compile"
24852 case "(($ac_try" in
24853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24854 *) ac_try_echo=$ac_try;;
24856 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24857 $as_echo "$ac_try_echo") >&5
24858 (eval "$ac_compile") 2>conftest.er1
24860 grep -v '^ *+' conftest.er1 >conftest.err
24862 cat conftest.err >&5
24863 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24864 (exit $ac_status); } && {
24865 test -z "$ac_c_werror_flag" ||
24866 test ! -s conftest.err
24867 } && test -s conftest.$ac_objext; then
24870 $as_echo "$as_me: failed program was
:" >&5
24871 sed 's/^/| /' conftest.$ac_ext >&5
24873 ac_cv_type_pid_t=yes
24876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24878 $as_echo "$as_me: failed program was
:" >&5
24879 sed 's/^/| /' conftest.$ac_ext >&5
24884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24886 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
24887 $as_echo "$ac_cv_type_pid_t" >&6; }
24888 if test $ac_cv_type_pid_t = yes; then
24892 cat >>confdefs.h <<_ACEOF
24899 for ac_header in vfork.h
24901 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24902 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24903 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24904 $as_echo_n "checking
for $ac_header...
" >&6; }
24905 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24906 $as_echo_n "(cached
) " >&6
24908 ac_res=`eval 'as_val=${'$as_ac_Header'}
24909 $as_echo "$as_val"'`
24910 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24911 $as_echo "$ac_res" >&6; }
24913 # Is the header compilable?
24914 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24915 $as_echo_n "checking
$ac_header usability...
" >&6; }
24916 cat >conftest.$ac_ext <<_ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h. */
24922 $ac_includes_default
24923 #include <$ac_header>
24925 rm -f conftest.$ac_objext
24926 if { (ac_try="$ac_compile"
24927 case "(($ac_try" in
24928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24929 *) ac_try_echo=$ac_try;;
24931 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24932 $as_echo "$ac_try_echo") >&5
24933 (eval "$ac_compile") 2>conftest.er1
24935 grep -v '^ *+' conftest.er1 >conftest.err
24937 cat conftest.err >&5
24938 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24939 (exit $ac_status); } && {
24940 test -z "$ac_c_werror_flag" ||
24941 test ! -s conftest.err
24942 } && test -s conftest.$ac_objext; then
24943 ac_header_compiler=yes
24945 $as_echo "$as_me: failed program was
:" >&5
24946 sed 's/^/| /' conftest.$ac_ext >&5
24948 ac_header_compiler=no
24951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24952 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24953 $as_echo "$ac_header_compiler" >&6; }
24955 # Is the header present?
24956 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24957 $as_echo_n "checking
$ac_header presence...
" >&6; }
24958 cat >conftest.$ac_ext <<_ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h. */
24964 #include <$ac_header>
24966 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24967 case "(($ac_try" in
24968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24969 *) ac_try_echo=$ac_try;;
24971 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24972 $as_echo "$ac_try_echo") >&5
24973 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24975 grep -v '^ *+' conftest.er1 >conftest.err
24977 cat conftest.err >&5
24978 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24979 (exit $ac_status); } >/dev/null && {
24980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24981 test ! -s conftest.err
24983 ac_header_preproc=yes
24985 $as_echo "$as_me: failed program was
:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24988 ac_header_preproc=no
24991 rm -f conftest.err conftest.$ac_ext
24992 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24993 $as_echo "$ac_header_preproc" >&6; }
24995 # So? What about this header?
24996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24998 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24999 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25000 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25001 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25002 ac_header_preproc=yes
25005 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25006 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25007 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25008 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25009 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25010 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25011 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25012 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25013 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25014 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25015 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25016 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25020 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25021 $as_echo_n "checking
for $ac_header...
" >&6; }
25022 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25023 $as_echo_n "(cached
) " >&6
25025 eval "$as_ac_Header=\
$ac_header_preproc"
25027 ac_res=`eval 'as_val=${'$as_ac_Header'}
25028 $as_echo "$as_val"'`
25029 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25030 $as_echo "$ac_res" >&6; }
25033 if test `eval 'as_val=${'$as_ac_Header'}
25034 $as_echo "$as_val"'` = yes; then
25035 cat >>confdefs.h <<_ACEOF
25036 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25045 for ac_func in fork vfork
25047 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25048 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
25049 $as_echo_n "checking
for $ac_func...
" >&6; }
25050 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25051 $as_echo_n "(cached
) " >&6
25053 cat >conftest.$ac_ext <<_ACEOF
25056 cat confdefs.h >>conftest.$ac_ext
25057 cat >>conftest.$ac_ext <<_ACEOF
25058 /* end confdefs.h. */
25059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25061 #define $ac_func innocuous_$ac_func
25063 /* System header to define __stub macros and hopefully few prototypes,
25064 which can conflict with char $ac_func (); below.
25065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25066 <limits.h> exists even on freestanding compilers. */
25069 # include <limits.h>
25071 # include <assert.h>
25076 /* Override any GCC internal prototype to avoid an error.
25077 Use char because int might match the return type of a GCC
25078 builtin and then its argument prototype would still apply. */
25083 /* The GNU C library defines this for functions which it implements
25084 to always fail with ENOSYS. Some functions are actually named
25085 something starting with __ and the normal name is an alias. */
25086 #if defined __stub_$ac_func || defined __stub___$ac_func
25093 return $ac_func ();
25098 rm -f conftest.$ac_objext conftest$ac_exeext
25099 if { (ac_try="$ac_link"
25100 case "(($ac_try" in
25101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102 *) ac_try_echo=$ac_try;;
25104 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25105 $as_echo "$ac_try_echo") >&5
25106 (eval "$ac_link") 2>conftest.er1
25108 grep -v '^ *+' conftest.er1 >conftest.err
25110 cat conftest.err >&5
25111 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25112 (exit $ac_status); } && {
25113 test -z "$ac_c_werror_flag" ||
25114 test ! -s conftest.err
25115 } && test -s conftest$ac_exeext && {
25116 test "$cross_compiling" = yes ||
25117 $as_test_x conftest$ac_exeext
25119 eval "$as_ac_var=yes"
25121 $as_echo "$as_me: failed program was
:" >&5
25122 sed 's/^/| /' conftest.$ac_ext >&5
25124 eval "$as_ac_var=no
"
25127 rm -rf conftest.dSYM
25128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25129 conftest$ac_exeext conftest.$ac_ext
25131 ac_res=`eval 'as_val=${'$as_ac_var'}
25132 $as_echo "$as_val"'`
25133 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25134 $as_echo "$ac_res" >&6; }
25135 if test `eval 'as_val=${'$as_ac_var'}
25136 $as_echo "$as_val"'` = yes; then
25137 cat >>confdefs.h <<_ACEOF
25138 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25144 if test "x
$ac_cv_func_fork" = xyes; then
25145 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25146 $as_echo_n "checking
for working fork...
" >&6; }
25147 if test "${ac_cv_func_fork_works+set}" = set; then
25148 $as_echo_n "(cached
) " >&6
25150 if test "$cross_compiling" = yes; then
25151 ac_cv_func_fork_works=cross
25153 cat >conftest.$ac_ext <<_ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h. */
25159 $ac_includes_default
25164 /* By Ruediger Kuhlmann. */
25165 return fork () < 0;
25171 rm -f conftest$ac_exeext
25172 if { (ac_try="$ac_link"
25173 case "(($ac_try" in
25174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175 *) ac_try_echo=$ac_try;;
25177 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25178 $as_echo "$ac_try_echo") >&5
25179 (eval "$ac_link") 2>&5
25181 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25183 { (case "(($ac_try" in
25184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25185 *) ac_try_echo=$ac_try;;
25187 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25188 $as_echo "$ac_try_echo") >&5
25189 (eval "$ac_try") 2>&5
25191 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25192 (exit $ac_status); }; }; then
25193 ac_cv_func_fork_works=yes
25195 $as_echo "$as_me: program exited with status
$ac_status" >&5
25196 $as_echo "$as_me: failed program was
:" >&5
25197 sed 's/^/| /' conftest.$ac_ext >&5
25199 ( exit $ac_status )
25200 ac_cv_func_fork_works=no
25202 rm -rf conftest.dSYM
25203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25208 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25209 $as_echo "$ac_cv_func_fork_works" >&6; }
25212 ac_cv_func_fork_works=$ac_cv_func_fork
25214 if test "x
$ac_cv_func_fork_works" = xcross; then
25216 *-*-amigaos* | *-*-msdosdjgpp*)
25217 # Override, as these systems have only a dummy fork() stub
25218 ac_cv_func_fork_works=no
25221 ac_cv_func_fork_works=yes
25224 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25225 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25227 ac_cv_func_vfork_works=$ac_cv_func_vfork
25228 if test "x
$ac_cv_func_vfork" = xyes; then
25229 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25230 $as_echo_n "checking
for working vfork...
" >&6; }
25231 if test "${ac_cv_func_vfork_works+set}" = set; then
25232 $as_echo_n "(cached
) " >&6
25234 if test "$cross_compiling" = yes; then
25235 ac_cv_func_vfork_works=cross
25237 cat >conftest.$ac_ext <<_ACEOF
25240 cat confdefs.h >>conftest.$ac_ext
25241 cat >>conftest.$ac_ext <<_ACEOF
25242 /* end confdefs.h. */
25243 /* Thanks to Paul Eggert for this test. */
25244 $ac_includes_default
25245 #include <sys/wait.h>
25246 #ifdef HAVE_VFORK_H
25247 # include <vfork.h>
25249 /* On some sparc systems, changes by the child to local and incoming
25250 argument registers are propagated back to the parent. The compiler
25251 is told about this with #include <vfork.h>, but some compilers
25252 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25253 static variable whose address is put into a register that is
25254 clobbered by the vfork. */
25257 sparc_address_test (int arg)
25259 sparc_address_test (arg) int arg;
25262 static pid_t child;
25280 pid_t parent = getpid ();
25283 sparc_address_test (0);
25288 /* Here is another test for sparc vfork register problems. This
25289 test uses lots of local variables, at least as many local
25290 variables as main has allocated so far including compiler
25291 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25292 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25293 reuse the register of parent for one of the local variables,
25294 since it will think that parent can't possibly be used any more
25295 in this routine. Assigning to the local variable will thus
25296 munge parent in the parent process. */
25298 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25299 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25300 /* Convince the compiler that p..p7 are live; otherwise, it might
25301 use the same hardware register for all 8 local variables. */
25302 if (p != p1 || p != p2 || p != p3 || p != p4
25303 || p != p5 || p != p6 || p != p7)
25306 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25307 from child file descriptors. If the child closes a descriptor
25308 before it execs or exits, this munges the parent's descriptor
25309 as well. Test for this by closing stdout in the child. */
25310 _exit(close(fileno(stdout)) != 0);
25315 while (wait(&status) != child)
25318 /* Was there some problem with vforking? */
25321 /* Did the child fail? (This shouldn't happen.) */
25324 /* Did the vfork/compiler bug occur? */
25325 || parent != getpid()
25327 /* Did the file descriptor bug occur? */
25328 || fstat(fileno(stdout), &st) != 0
25333 rm -f conftest$ac_exeext
25334 if { (ac_try="$ac_link"
25335 case "(($ac_try" in
25336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25337 *) ac_try_echo=$ac_try;;
25339 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25340 $as_echo "$ac_try_echo") >&5
25341 (eval "$ac_link") 2>&5
25343 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25345 { (case "(($ac_try" in
25346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25347 *) ac_try_echo=$ac_try;;
25349 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25350 $as_echo "$ac_try_echo") >&5
25351 (eval "$ac_try") 2>&5
25353 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25354 (exit $ac_status); }; }; then
25355 ac_cv_func_vfork_works=yes
25357 $as_echo "$as_me: program exited with status
$ac_status" >&5
25358 $as_echo "$as_me: failed program was
:" >&5
25359 sed 's/^/| /' conftest.$ac_ext >&5
25361 ( exit $ac_status )
25362 ac_cv_func_vfork_works=no
25364 rm -rf conftest.dSYM
25365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25370 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25371 $as_echo "$ac_cv_func_vfork_works" >&6; }
25374 if test "x
$ac_cv_func_fork_works" = xcross; then
25375 ac_cv_func_vfork_works=$ac_cv_func_vfork
25376 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25377 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25380 if test "x
$ac_cv_func_vfork_works" = xyes; then
25382 cat >>confdefs.h <<\_ACEOF
25383 #define HAVE_WORKING_VFORK 1
25388 cat >>confdefs.h <<\_ACEOF
25393 if test "x
$ac_cv_func_fork_works" = xyes; then
25395 cat >>confdefs.h <<\_ACEOF
25396 #define HAVE_WORKING_FORK 1
25402 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25403 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25404 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25405 $as_echo_n "(cached
) " >&6
25407 cat >conftest.$ac_ext <<_ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h. */
25413 #include <langinfo.h>
25417 char* cs = nl_langinfo(CODESET);
25422 rm -f conftest.$ac_objext conftest$ac_exeext
25423 if { (ac_try="$ac_link"
25424 case "(($ac_try" in
25425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25426 *) ac_try_echo=$ac_try;;
25428 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25429 $as_echo "$ac_try_echo") >&5
25430 (eval "$ac_link") 2>conftest.er1
25432 grep -v '^ *+' conftest.er1 >conftest.err
25434 cat conftest.err >&5
25435 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25436 (exit $ac_status); } && {
25437 test -z "$ac_c_werror_flag" ||
25438 test ! -s conftest.err
25439 } && test -s conftest$ac_exeext && {
25440 test "$cross_compiling" = yes ||
25441 $as_test_x conftest$ac_exeext
25443 emacs_cv_langinfo_codeset=yes
25445 $as_echo "$as_me: failed program was
:" >&5
25446 sed 's/^/| /' conftest.$ac_ext >&5
25448 emacs_cv_langinfo_codeset=no
25451 rm -rf conftest.dSYM
25452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25453 conftest$ac_exeext conftest.$ac_ext
25456 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25457 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25458 if test $emacs_cv_langinfo_codeset = yes; then
25460 cat >>confdefs.h <<\_ACEOF
25461 #define HAVE_LANGINFO_CODESET 1
25466 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25467 $as_echo_n "checking
for size_t...
" >&6; }
25468 if test "${ac_cv_type_size_t+set}" = set; then
25469 $as_echo_n "(cached
) " >&6
25471 ac_cv_type_size_t=no
25472 cat >conftest.$ac_ext <<_ACEOF
25475 cat confdefs.h >>conftest.$ac_ext
25476 cat >>conftest.$ac_ext <<_ACEOF
25477 /* end confdefs.h. */
25478 $ac_includes_default
25482 if (sizeof (size_t))
25488 rm -f conftest.$ac_objext
25489 if { (ac_try="$ac_compile"
25490 case "(($ac_try" in
25491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492 *) ac_try_echo=$ac_try;;
25494 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25495 $as_echo "$ac_try_echo") >&5
25496 (eval "$ac_compile") 2>conftest.er1
25498 grep -v '^ *+' conftest.er1 >conftest.err
25500 cat conftest.err >&5
25501 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25502 (exit $ac_status); } && {
25503 test -z "$ac_c_werror_flag" ||
25504 test ! -s conftest.err
25505 } && test -s conftest.$ac_objext; then
25506 cat >conftest.$ac_ext <<_ACEOF
25509 cat confdefs.h >>conftest.$ac_ext
25510 cat >>conftest.$ac_ext <<_ACEOF
25511 /* end confdefs.h. */
25512 $ac_includes_default
25516 if (sizeof ((size_t)))
25522 rm -f conftest.$ac_objext
25523 if { (ac_try="$ac_compile"
25524 case "(($ac_try" in
25525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526 *) ac_try_echo=$ac_try;;
25528 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25529 $as_echo "$ac_try_echo") >&5
25530 (eval "$ac_compile") 2>conftest.er1
25532 grep -v '^ *+' conftest.er1 >conftest.err
25534 cat conftest.err >&5
25535 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25536 (exit $ac_status); } && {
25537 test -z "$ac_c_werror_flag" ||
25538 test ! -s conftest.err
25539 } && test -s conftest.$ac_objext; then
25542 $as_echo "$as_me: failed program was
:" >&5
25543 sed 's/^/| /' conftest.$ac_ext >&5
25545 ac_cv_type_size_t=yes
25548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25550 $as_echo "$as_me: failed program was
:" >&5
25551 sed 's/^/| /' conftest.$ac_ext >&5
25556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25558 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
25559 $as_echo "$ac_cv_type_size_t" >&6; }
25560 if test $ac_cv_type_size_t = yes; then
25562 cat >>confdefs.h <<_ACEOF
25563 #define HAVE_SIZE_T 1
25570 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
25571 $as_echo_n "checking
for mbstate_t...
" >&6; }
25572 if test "${ac_cv_type_mbstate_t+set}" = set; then
25573 $as_echo_n "(cached
) " >&6
25575 cat >conftest.$ac_ext <<_ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h. */
25581 $ac_includes_default
25582 # include <wchar.h>
25586 mbstate_t x; return sizeof x;
25591 rm -f conftest.$ac_objext
25592 if { (ac_try="$ac_compile"
25593 case "(($ac_try" in
25594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595 *) ac_try_echo=$ac_try;;
25597 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25598 $as_echo "$ac_try_echo") >&5
25599 (eval "$ac_compile") 2>conftest.er1
25601 grep -v '^ *+' conftest.er1 >conftest.err
25603 cat conftest.err >&5
25604 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25605 (exit $ac_status); } && {
25606 test -z "$ac_c_werror_flag" ||
25607 test ! -s conftest.err
25608 } && test -s conftest.$ac_objext; then
25609 ac_cv_type_mbstate_t=yes
25611 $as_echo "$as_me: failed program was
:" >&5
25612 sed 's/^/| /' conftest.$ac_ext >&5
25614 ac_cv_type_mbstate_t=no
25617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25619 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
25620 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25621 if test $ac_cv_type_mbstate_t = yes; then
25623 cat >>confdefs.h <<\_ACEOF
25624 #define HAVE_MBSTATE_T 1
25629 cat >>confdefs.h <<\_ACEOF
25630 #define mbstate_t int
25635 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
25636 $as_echo_n "checking
for C restrict keyword...
" >&6; }
25637 if test "${emacs_cv_c_restrict+set}" = set; then
25638 $as_echo_n "(cached
) " >&6
25640 cat >conftest.$ac_ext <<_ACEOF
25643 cat confdefs.h >>conftest.$ac_ext
25644 cat >>conftest.$ac_ext <<_ACEOF
25645 /* end confdefs.h. */
25646 void fred (int *restrict x);
25655 rm -f conftest.$ac_objext
25656 if { (ac_try="$ac_compile"
25657 case "(($ac_try" in
25658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25659 *) ac_try_echo=$ac_try;;
25661 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25662 $as_echo "$ac_try_echo") >&5
25663 (eval "$ac_compile") 2>conftest.er1
25665 grep -v '^ *+' conftest.er1 >conftest.err
25667 cat conftest.err >&5
25668 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25669 (exit $ac_status); } && {
25670 test -z "$ac_c_werror_flag" ||
25671 test ! -s conftest.err
25672 } && test -s conftest.$ac_objext; then
25673 emacs_cv_c_restrict=yes
25675 $as_echo "$as_me: failed program was
:" >&5
25676 sed 's/^/| /' conftest.$ac_ext >&5
25678 cat >conftest.$ac_ext <<_ACEOF
25681 cat confdefs.h >>conftest.$ac_ext
25682 cat >>conftest.$ac_ext <<_ACEOF
25683 /* end confdefs.h. */
25684 void fred (int *__restrict x);
25693 rm -f conftest.$ac_objext
25694 if { (ac_try="$ac_compile"
25695 case "(($ac_try" in
25696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697 *) ac_try_echo=$ac_try;;
25699 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25700 $as_echo "$ac_try_echo") >&5
25701 (eval "$ac_compile") 2>conftest.er1
25703 grep -v '^ *+' conftest.er1 >conftest.err
25705 cat conftest.err >&5
25706 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25707 (exit $ac_status); } && {
25708 test -z "$ac_c_werror_flag" ||
25709 test ! -s conftest.err
25710 } && test -s conftest.$ac_objext; then
25711 emacs_cv_c_restrict=__restrict
25713 $as_echo "$as_me: failed program was
:" >&5
25714 sed 's/^/| /' conftest.$ac_ext >&5
25716 emacs_cv_c_restrict=no
25719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25724 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
25725 $as_echo "$emacs_cv_c_restrict" >&6; }
25726 case "$emacs_cv_c_restrict" in
25727 yes) emacs_restrict=restrict;;
25728 no) emacs_restrict="";;
25729 *) emacs_restrict="$emacs_cv_c_restrict";;
25731 if test "$emacs_restrict" != __restrict; then
25733 cat >>confdefs.h <<_ACEOF
25734 #define __restrict $emacs_restrict
25739 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
25740 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
25741 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25742 $as_echo_n "(cached
) " >&6
25744 cat >conftest.$ac_ext <<_ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h. */
25750 void fred (int x[__restrict]);
25759 rm -f conftest.$ac_objext
25760 if { (ac_try="$ac_compile"
25761 case "(($ac_try" in
25762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25763 *) ac_try_echo=$ac_try;;
25765 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25766 $as_echo "$ac_try_echo") >&5
25767 (eval "$ac_compile") 2>conftest.er1
25769 grep -v '^ *+' conftest.er1 >conftest.err
25771 cat conftest.err >&5
25772 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25773 (exit $ac_status); } && {
25774 test -z "$ac_c_werror_flag" ||
25775 test ! -s conftest.err
25776 } && test -s conftest.$ac_objext; then
25777 emacs_cv_c_restrict_arr=yes
25779 $as_echo "$as_me: failed program was
:" >&5
25780 sed 's/^/| /' conftest.$ac_ext >&5
25782 emacs_cv_c_restrict_arr=no
25785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25787 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
25788 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25789 if test "$emacs_cv_c_restrict_arr" = yes; then
25791 cat >>confdefs.h <<\_ACEOF
25792 #define __restrict_arr __restrict
25799 # Set up the CFLAGS for real compilation, so we can substitute it.
25800 CFLAGS="$REAL_CFLAGS"
25801 CPPFLAGS="$REAL_CPPFLAGS"
25803 #### Find out which version of Emacs this is.
25804 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25805 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
25806 if test x"${version}" = x; then
25807 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
25808 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
25809 { (exit 1); exit 1; }; }
25811 if test x"${version}" != x"$PACKAGE_VERSION"; then
25812 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
25813 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25816 ### Specify what sort of things we'll be editing into Makefile and config.h.
25817 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25862 cat >>confdefs.h
<<_ACEOF
25863 #define EMACS_CONFIGURATION "${canonical}"
25867 cat >>confdefs.h
<<_ACEOF
25868 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25872 cat >>confdefs.h
<<_ACEOF
25873 #define config_machfile "${machfile}"
25877 cat >>confdefs.h
<<_ACEOF
25878 #define config_opsysfile "${opsysfile}"
25882 cat >>confdefs.h
<<_ACEOF
25883 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25887 cat >>confdefs.h
<<_ACEOF
25888 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25892 cat >>confdefs.h
<<_ACEOF
25893 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25897 cat >>confdefs.h
<<_ACEOF
25898 #define UNEXEC_SRC ${UNEXEC_SRC}
25904 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25906 cat >>confdefs.h
<<\_ACEOF
25907 #define HAVE_X_WINDOWS 1
25911 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
25916 if test "${USE_X_TOOLKIT}" != "none" ; then
25918 cat >>confdefs.h
<<\_ACEOF
25919 #define USE_X_TOOLKIT 1
25922 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25924 cat >>confdefs.h
<<\_ACEOF
25925 #define USE_LUCID 1
25928 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25930 cat >>confdefs.h
<<\_ACEOF
25931 #define USE_MOTIF 1
25936 if test "${HAVE_X11}" = "yes" ; then
25938 cat >>confdefs.h
<<\_ACEOF
25943 if test "${HAVE_MENUS}" = "yes" ; then
25945 cat >>confdefs.h
<<\_ACEOF
25946 #define HAVE_MENUS 1
25950 if test "${GNU_MALLOC}" = "yes" ; then
25952 cat >>confdefs.h
<<\_ACEOF
25953 #define GNU_MALLOC 1
25957 if test "${REL_ALLOC}" = "yes" ; then
25959 cat >>confdefs.h
<<\_ACEOF
25960 #define REL_ALLOC 1
25970 #### Report on what we decided to do.
25971 #### Report GTK as a toolkit, even if it doesn't use Xt.
25972 #### It makes printing result more understandable as using GTK sets
25973 #### toolkit_scroll_bars to yes by default.
25974 if test "${HAVE_GTK}" = "yes"; then
25979 Configured for \`${canonical}'.
25981 Where should the build process find the source code? ${srcdir}
25982 What operating system and machine description files should Emacs use?
25983 \`${opsysfile}' and \`${machfile}'
25984 What compiler should emacs be built with? ${CC} ${CFLAGS}
25985 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25986 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25987 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25988 What window system should Emacs use? ${window_system}
25989 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25991 if test -n "${x_includes}"; then
25992 echo " Where do we find X Windows header files? ${x_includes}"
25994 echo " Where do we find X Windows header files? Standard dirs"
25996 if test -n "${x_libraries}"; then
25997 echo " Where do we find X Windows libraries? ${x_libraries}"
25999 echo " Where do we find X Windows libraries? Standard dirs"
26002 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26003 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26004 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26005 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26006 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26007 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26008 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26009 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26010 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26011 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26012 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26014 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26015 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26016 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26017 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26019 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26022 if test $USE_XASSERTS = yes; then
26023 echo " Compiling with asserts turned on."
26024 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
26029 if test "$HAVE_NS" = "yes"; then
26031 echo "You must run \"make install\" in order to test the built application.
26032 The installed application will go to nextstep/Emacs.app and can be
26033 run or moved from there."
26034 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26035 echo "The application will be fully self-contained."
26037 echo "The lisp resources for the application will be installed under ${prefix}.
26038 You may need to run \"make install\" with sudo. The application will fail
26039 to run if these resources are not installed."
26044 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26045 echo "D-Bus integration has been tested for GNU/Linux only."
26050 # Remove any trailing slashes in these variables.
26051 test "${prefix}" != NONE
&&
26052 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26053 test "${exec_prefix}" != NONE
&&
26054 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26056 # Now get this: Some word that is part of the ${srcdir} directory name
26057 # or the ${configuration} value might, just might, happen to be an
26058 # identifier like `sun4' or `i386' or something, and be predefined by
26059 # the C preprocessor to some helpful value like 1, or maybe the empty
26060 # string. Needless to say consequent macro substitutions are less
26061 # than conducive to the makefile finding the correct directory.
26062 cpp_undefs
="`echo $srcdir $configuration $canonical |
26063 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26064 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26066 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26067 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26068 ## from Makefile.c can correctly provide the arg `-traditional' to the
26071 cat >conftest.
$ac_ext <<_ACEOF
26074 cat confdefs.h
>>conftest.
$ac_ext
26075 cat >>conftest.
$ac_ext <<_ACEOF
26076 /* end confdefs.h. */
26079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26080 $EGREP "yes..yes" >/dev
/null
2>&1; then
26081 CPP_NEED_TRADITIONAL
=no
26083 CPP_NEED_TRADITIONAL
=yes
26088 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"
26090 ac_config_commands
="$ac_config_commands default"
26092 cat >confcache
<<\_ACEOF
26093 # This file is a shell script that caches the results of configure
26094 # tests run on this system so they can be shared between configure
26095 # scripts and configure runs, see configure's option --config-cache.
26096 # It is not useful on other systems. If it contains results you don't
26097 # want to keep, you may remove or edit it.
26099 # config.status only pays attention to the cache file if you give it
26100 # the --recheck option to rerun configure.
26102 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26103 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26104 # following values.
26108 # The following way of writing the cache mishandles newlines in values,
26109 # but we know of no workaround that is simple, portable, and efficient.
26110 # So, we kill variables containing newlines.
26111 # Ultrix sh set writes to stderr and can't be redirected directly,
26112 # and sets the high bit in the cache file unless we assign to the vars.
26114 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26115 eval ac_val
=\$
$ac_var
26119 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26120 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26123 _ | IFS | as_nl
) ;; #(
26124 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26125 *) $as_unset $ac_var ;;
26131 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26132 *${as_nl}ac_space
=\
*)
26133 # `set' does not quote correctly, so add quotes (double-quote
26134 # substitution turns \\\\ into \\, and sed turns \\ into \).
26137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26140 # `set' quotes correctly as required by POSIX, so do not add quotes.
26141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26150 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26152 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26154 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26155 if test -w "$cache_file"; then
26156 test "x$cache_file" != "x/dev/null" &&
26157 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26158 $as_echo "$as_me: updating cache $cache_file" >&6;}
26159 cat confcache
>$cache_file
26161 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26162 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26167 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26168 # Let make expand exec_prefix.
26169 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26171 DEFS
=-DHAVE_CONFIG_H
26175 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26176 # 1. Remove the extension, and $U if already installed.
26177 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26178 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26179 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26180 # will be set to the directory where LIBOBJS objects are built.
26181 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26182 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26184 LIBOBJS
=$ac_libobjs
26186 LTLIBOBJS
=$ac_ltlibobjs
26190 : ${CONFIG_STATUS=./config.status}
26192 ac_clean_files_save
=$ac_clean_files
26193 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26194 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26195 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26196 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26198 # Generated by $as_me.
26199 # Run this file to recreate the current configuration.
26200 # Compiler output produced by configure, useful for debugging
26201 # configure, is in config.log if it exists.
26204 ac_cs_recheck=false
26206 SHELL=\${CONFIG_SHELL-$SHELL}
26209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26210 ## --------------------- ##
26211 ## M4sh Initialization. ##
26212 ## --------------------- ##
26214 # Be more Bourne compatible
26215 DUALCASE
=1; export DUALCASE
# for MKS sh
26216 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26219 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26220 # is contrary to our usage. Disable this feature.
26221 alias -g '${1+"$@"}'='"$@"'
26222 setopt NO_GLOB_SUBST
26224 case `(set -o) 2>/dev/null` in
26225 *posix
*) set -o posix
;;
26234 # Avoid depending upon Character Ranges.
26235 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26236 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26237 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26238 as_cr_digits
='0123456789'
26239 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26244 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26245 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26246 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26247 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26248 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26249 as_echo='printf %s
\n'
26250 as_echo_n='printf %s
'
26252 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26253 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26254 as_echo_n='/usr
/ucb
/echo -n'
26256 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26257 as_echo_n_body='eval
26261 expr "X$arg" : "X\\(.*\\)$as_nl";
26262 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26264 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26266 export as_echo_n_body
26267 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26269 export as_echo_body
26270 as_echo='sh
-c $as_echo_body as_echo
'
26273 # The user is always right.
26274 if test "${PATH_SEPARATOR+set}" != set; then
26276 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26277 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26282 # Support unset when possible.
26283 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26291 # We need space, tab and new line, in precisely that order. Quoting is
26292 # there to prevent editors from complaining about space-tab.
26293 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26294 # splitting by setting IFS to empty value.)
26297 # Find who we are. Look in the path if we contain no directory separator.
26299 *[\\/]* ) as_myself=$0 ;;
26300 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26301 for as_dir in $PATH
26304 test -z "$as_dir" && as_dir=.
26305 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26311 # We did not find ourselves, most probably we were run as `sh COMMAND'
26312 # in which case we are not to be found in the path.
26313 if test "x$as_myself" = x
; then
26316 if test ! -f "$as_myself"; then
26317 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26318 { (exit 1); exit 1; }
26321 # Work around bugs in pre-3.0 UWIN ksh.
26322 for as_var
in ENV MAIL MAILPATH
26323 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26335 # Required to use basename.
26336 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26337 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26343 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26344 as_basename
=basename
26350 # Name of the executable.
26351 as_me
=`$as_basename -- "$0" ||
26352 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26353 X"$0" : 'X\(//\)$' \| \
26354 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26356 sed '/^.*\/\([^/][^/]*\)\/*$/{
26375 as_lineno_1
=$LINENO
26376 as_lineno_2
=$LINENO
26377 test "x$as_lineno_1" != "x$as_lineno_2" &&
26378 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26380 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26381 # uniformly replaced by the line number. The first 'sed' inserts a
26382 # line-number line after each line using $LINENO; the second 'sed'
26383 # does the real work. The second script uses 'N' to pair each
26384 # line-number line with the line containing $LINENO, and appends
26385 # trailing '-' during substitution so that $LINENO is not a special
26386 # case at line end.
26387 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26388 # scripts with optimization help from Paolo Bonzini. Blame Lee
26389 # E. McMahon (1931-1989) for sed's syntax. :-)
26401 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26404 ' >$as_me.lineno
&&
26405 chmod +x
"$as_me.lineno" ||
26406 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26407 { (exit 1); exit 1; }; }
26409 # Don't try to exec as it changes $[0], causing all sort of problems
26410 # (the dirname of $[0] is not the place where we might find the
26411 # original and so on. Autoconf is especially sensitive to this).
26412 .
"./$as_me.lineno"
26413 # Exit status is that of the last command.
26418 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26424 ECHO_C
= ECHO_N
= ECHO_T
=
26425 case `echo -n x` in
26427 case `echo 'x\c'` in
26428 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26434 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26435 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26441 rm -f conf$$ conf$$.exe conf$$.
file
26442 if test -d conf$$.dir
; then
26443 rm -f conf$$.dir
/conf$$.
file
26446 mkdir conf$$.dir
2>/dev
/null
26448 if (echo >conf$$.
file) 2>/dev
/null
; then
26449 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26451 # ... but there are two gotchas:
26452 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26453 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26454 # In both cases, we have to default to `cp -p'.
26455 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26457 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26465 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26466 rmdir conf$$.dir
2>/dev
/null
26468 if mkdir
-p .
2>/dev
/null
; then
26471 test -d .
/-p && rmdir .
/-p
26475 if test -x / >/dev
/null
2>&1; then
26476 as_test_x
='test -x'
26478 if ls -dL / >/dev
/null
2>&1; then
26485 if test -d "$1"; then
26491 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26492 ???[sx]*):;;*)false;;esac;fi
26496 as_executable_p
=$as_test_x
26498 # Sed expression to map a string onto a valid CPP name.
26499 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26501 # Sed expression to map a string onto a valid variable name.
26502 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26507 # Save the log message, to keep $[0] and so on meaningful, and to
26508 # report actual input values of CONFIG_FILES etc. instead of their
26509 # values after options handling.
26511 This file was extended by emacs $as_me 24.0.50, which was
26512 generated by GNU Autoconf 2.62. Invocation command line was
26514 CONFIG_FILES = $CONFIG_FILES
26515 CONFIG_HEADERS = $CONFIG_HEADERS
26516 CONFIG_LINKS = $CONFIG_LINKS
26517 CONFIG_COMMANDS = $CONFIG_COMMANDS
26520 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26526 # Files that config.status was made for.
26527 config_files="$ac_config_files"
26528 config_headers="$ac_config_headers"
26529 config_commands="$ac_config_commands"
26533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26535 \`$as_me' instantiates files from templates according to the
26536 current configuration.
26538 Usage: $0 [OPTIONS] [FILE]...
26540 -h, --help print this help, then exit
26541 -V, --version print version number and configuration settings, then exit
26542 -q, --quiet do not print progress messages
26543 -d, --debug don't remove temporary files
26544 --recheck update $as_me by reconfiguring in the same conditions
26545 --file=FILE[:TEMPLATE]
26546 instantiate the configuration file FILE
26547 --header=FILE[:TEMPLATE]
26548 instantiate the configuration header FILE
26550 Configuration files:
26553 Configuration headers:
26556 Configuration commands:
26559 Report bugs to <bug-autoconf@gnu.org>."
26562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26564 emacs config.status 24.0.50
26565 configured by $0, generated by GNU Autoconf 2.62,
26566 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26568 Copyright (C) 2008 Free Software Foundation, Inc.
26569 This config.status script is free software; the Free Software Foundation
26570 gives unlimited permission to copy, distribute and modify it."
26575 test -n "\$AWK" || AWK=awk
26578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26579 # The default lists apply if the user does not specify any file.
26585 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26586 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26597 # Handling of the options.
26598 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26600 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26601 $as_echo "$ac_cs_version"; exit ;;
26602 --debug |
--debu |
--deb |
--de |
--d |
-d )
26604 --file |
--fil |
--fi |
--f )
26607 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26609 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
26610 ac_need_defaults
=false
;;
26611 --header |
--heade |
--head |
--hea )
26614 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26616 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
26617 ac_need_defaults
=false
;;
26619 # Conflict between --help and --header
26620 { $as_echo "$as_me: error: ambiguous option: $1
26621 Try \`$0 --help' for more information." >&2
26622 { (exit 1); exit 1; }; };;
26623 --help |
--hel |
-h )
26624 $as_echo "$ac_cs_usage"; exit ;;
26625 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26626 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26629 # This is an error.
26630 -*) { $as_echo "$as_me: error: unrecognized option: $1
26631 Try \`$0 --help' for more information." >&2
26632 { (exit 1); exit 1; }; } ;;
26634 *) ac_config_targets
="$ac_config_targets $1"
26635 ac_need_defaults
=false
;;
26641 ac_configure_extra_args
=
26643 if $ac_cs_silent; then
26645 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26650 if \$ac_cs_recheck; then
26651 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26653 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26654 CONFIG_SHELL='$SHELL'
26655 export CONFIG_SHELL
26660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26664 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26665 ## Running $as_me. ##
26671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26675 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26681 # Handling of arguments.
26682 for ac_config_target
in $ac_config_targets
26684 case $ac_config_target in
26685 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26686 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26687 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26688 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
26689 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
26690 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
26691 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
26692 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
26693 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26694 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
26695 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
26696 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
26697 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26699 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26700 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26701 { (exit 1); exit 1; }; };;
26706 # If the user did not use the arguments to specify the items to instantiate,
26707 # then the envvar interface is used. Set only those that are not.
26708 # We use the long form for the default assignment because of an extremely
26709 # bizarre bug on SunOS 4.1.3.
26710 if $ac_need_defaults; then
26711 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26712 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26713 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26716 # Have a temporary directory for convenience. Make it in the build tree
26717 # simply because there is no reason against having it here, and in addition,
26718 # creating and moving files from /tmp can sometimes cause problems.
26719 # Hook for its removal unless debugging.
26720 # Note that there is a small window in which the directory will not be cleaned:
26721 # after its creation but before its name has been assigned to `$tmp'.
26725 trap 'exit_status=$?
26726 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26728 trap '{ (exit 1); exit 1; }' 1 2 13 15
26730 # Create a (secure) tmp directory for tmp files.
26733 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26734 test -n "$tmp" && test -d "$tmp"
26737 tmp
=.
/conf$$
-$RANDOM
26738 (umask 077 && mkdir
"$tmp")
26741 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26742 { (exit 1); exit 1; }
26745 # Set up the scripts for CONFIG_FILES section.
26746 # No need to generate them if there are no CONFIG_FILES.
26747 # This happens for instance with `./config.status config.h'.
26748 if test -n "$CONFIG_FILES"; then
26752 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26753 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26756 ac_cs_awk_cr
=$ac_cr
26759 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26764 echo "cat >conf$$subs.awk <<_ACEOF" &&
26765 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26767 } >conf$$subs.sh ||
26768 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26769 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26770 { (exit 1); exit 1; }; }
26771 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26773 for ac_last_try in false false false false false :; do
26774 . ./conf$$subs.sh ||
26775 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26776 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26777 { (exit 1); exit 1; }; }
26779 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26781 elif $ac_last_try; then
26782 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26783 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26784 { (exit 1); exit 1; }; }
26786 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26789 rm -f conf$$subs.sh
26791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26792 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26796 s/^/S["/; s
/!.
*/"]=/
26806 s/\(.\{148\}\).*/\1/
26808 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26813 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26820 s/\(.\{148\}\).*/\1/
26822 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26826 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26831 ' <conf$$subs.awk | sed '
26836 ' >>$CONFIG_STATUS || ac_write_fail=1
26837 rm -f conf$$subs.awk
26838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26840 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26841 for (key in S) S_is_set[key] = 1
26847 nfields = split(line, field, "@
")
26849 len = length(field[1])
26850 for (i = 2; i < nfields; i++) {
26852 keylen = length(key)
26853 if (S_is_set[key]) {
26855 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26856 len += length(value) + length(field[++i])
26867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26868 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26869 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26872 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26873 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
26874 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
26875 { (exit 1); exit 1; }; }
26878 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26879 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26880 # trailing colons and then remove the whole line if VPATH becomes empty
26881 # (actually we leave an empty line to preserve line numbers).
26882 if test "x
$srcdir" = x.; then
26883 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26884 s/:*\$(srcdir):*/:/
26885 s/:*\${srcdir}:*/:/
26887 s/^\([^=]*=[ ]*\):*/\1/
26893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26894 fi # test -n "$CONFIG_FILES"
26896 # Set up the scripts for CONFIG_HEADERS section.
26897 # No need to generate them if there are no CONFIG_HEADERS.
26898 # This happens for instance with `./config.status Makefile'.
26899 if test -n "$CONFIG_HEADERS"; then
26900 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26904 # Transform confdefs.h into an awk script `defines.awk', embedded as
26905 # here-document in config.status, that substitutes the proper values into
26906 # config.h.in to produce config.h.
26908 # Create a delimiter string that does not exist in confdefs.h, to ease
26909 # handling of long lines.
26911 for ac_last_try in false false :; do
26912 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26913 if test -z "$ac_t"; then
26915 elif $ac_last_try; then
26916 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
26917 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
26918 { (exit 1); exit 1; }; }
26920 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26924 # For the awk script, D is an array of macro values keyed by name,
26925 # likewise P contains macro parameters if any. Preserve backslash
26926 # newline sequences.
26928 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26930 s/.\{148\}/&'"$ac_delim"'/g
26933 s/^[ ]*#[ ]*define[ ][ ]*/ /
26940 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26942 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26946 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26947 D["\
1"]=" \
3\\\\\\n
"\\/p
26949 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26954 s/.\{148\}/&'"$ac_delim"'/g
26959 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26962 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26964 ' <confdefs.h | sed '
26965 s/'"$ac_delim"'/"\\\
26966 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26969 for (key in D) D_is_set[key] = 1
26972 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26974 split(line, arg, " ")
26975 if (arg[1] == "#") {
26979 defundef
= substr
(arg
[1], 2)
26982 split(mac1
, mac2
, "(") #)
26984 if (D_is_set
[macro
]) {
26985 # Preserve the white space surrounding the "#".
26986 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26987 print prefix
"define", macro P
[macro
] D
[macro
]
26990 # Replace #undef with comments. This is necessary, for example,
26991 # in the case of _POSIX_SOURCE, which is predefined and required
26992 # on some systems where configure will not decide to define it.
26993 if (defundef
== "undef") {
26994 print
"/*", line
, "*/"
27002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27003 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27004 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27005 { (exit 1); exit 1; }; }
27006 fi # test -n "$CONFIG_HEADERS"
27009 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27014 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27016 case $ac_mode$ac_tag in
27018 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27019 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27020 { (exit 1); exit 1; }; };;
27021 :[FH
]-) ac_tag
=-:-;;
27022 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27039 -) ac_f
="$tmp/stdin";;
27040 *) # Look for the file first in the build tree, then in the source tree
27041 # (if the path is not absolute). The absolute path cannot be DOS-style,
27042 # because $ac_f cannot contain `:'.
27046 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27048 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27049 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27050 { (exit 1); exit 1; }; };;
27052 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27053 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27056 # Let's still pretend it is `configure' which instantiates (i.e., don't
27057 # use $as_me), people would be surprised to read:
27058 # /* config.h. Generated by config.status. */
27059 configure_input
='Generated from '`
27060 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27062 if test x
"$ac_file" != x-
; then
27063 configure_input
="$ac_file. $configure_input"
27064 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27065 $as_echo "$as_me: creating $ac_file" >&6;}
27067 # Neutralize special characters interpreted by sed in replacement strings.
27068 case $configure_input in #(
27069 *\
&* |
*\|
* |
*\\* )
27070 ac_sed_conf_input
=`$as_echo "$configure_input" |
27071 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27072 *) ac_sed_conf_input
=$configure_input;;
27076 *:-:* |
*:-) cat >"$tmp/stdin" \
27077 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27078 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27079 { (exit 1); exit 1; }; } ;;
27084 ac_dir
=`$as_dirname -- "$ac_file" ||
27085 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27086 X"$ac_file" : 'X\(//\)[^/]' \| \
27087 X"$ac_file" : 'X\(//\)$' \| \
27088 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27089 $as_echo X"$ac_file" |
27090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27094 /^X\(\/\/\)[^/].*/{
27109 -*) as_dir
=.
/$as_dir;;
27111 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27115 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27116 *) as_qdir
=$as_dir;;
27118 as_dirs
="'$as_qdir' $as_dirs"
27119 as_dir
=`$as_dirname -- "$as_dir" ||
27120 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27121 X"$as_dir" : 'X\(//\)[^/]' \| \
27122 X"$as_dir" : 'X\(//\)$' \| \
27123 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27124 $as_echo X"$as_dir" |
27125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27129 /^X\(\/\/\)[^/].*/{
27142 test -d "$as_dir" && break
27144 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27145 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27146 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27147 { (exit 1); exit 1; }; }; }
27151 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27153 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27154 # A ".." for each directory in $ac_dir_suffix.
27155 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27156 case $ac_top_builddir_sub in
27157 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27158 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27161 ac_abs_top_builddir
=$ac_pwd
27162 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27163 # for backward compatibility:
27164 ac_top_builddir
=$ac_top_build_prefix
27167 .
) # We are building in place.
27169 ac_top_srcdir
=$ac_top_builddir_sub
27170 ac_abs_top_srcdir
=$ac_pwd ;;
27171 [\\/]* | ?
:[\\/]* ) # Absolute name.
27172 ac_srcdir
=$srcdir$ac_dir_suffix;
27173 ac_top_srcdir
=$srcdir
27174 ac_abs_top_srcdir
=$srcdir ;;
27175 *) # Relative name.
27176 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27177 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27178 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27180 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27190 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27191 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27196 # If the template does not know about datarootdir, expand it.
27197 # FIXME: This hack should be removed a few years after 2.60.
27198 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27211 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27212 *datarootdir
*) ac_datarootdir_seen
=yes;;
27213 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27214 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27215 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27218 ac_datarootdir_hack='
27219 s&@datadir@&$datadir&g
27220 s&@docdir@&$docdir&g
27221 s&@infodir@&$infodir&g
27222 s&@localedir@&$localedir&g
27223 s&@mandir@&$mandir&g
27224 s&\\\${datarootdir}&$datarootdir&g' ;;
27228 # Neutralize VPATH when `$srcdir' = `.'.
27229 # Shell code in configure.ac might set extrasub.
27230 # FIXME: do we really want to maintain this feature?
27231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27232 ac_sed_extra="$ac_vpsub
27235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27237 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27238 s|@configure_input@|
$ac_sed_conf_input|
;t t
27239 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27240 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27241 s
&@srcdir@
&$ac_srcdir&;t t
27242 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27243 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27244 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27245 s
&@builddir@
&$ac_builddir&;t t
27246 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27247 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27248 s
&@INSTALL@
&$ac_INSTALL&;t t
27249 $ac_datarootdir_hack
27251 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27252 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27253 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27254 { (exit 1); exit 1; }; }
27256 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27257 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27258 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27259 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27260 which seems to be undefined. Please make sure it is defined." >&5
27261 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27262 which seems to be undefined. Please make sure it is defined." >&2;}
27266 -) cat "$tmp/out" && rm -f "$tmp/out";;
27267 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27269 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27270 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27271 { (exit 1); exit 1; }; }
27277 if test x"$ac_file" != x-; then
27279 $as_echo "/* $configure_input */" \
27280 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27281 } >"$tmp/config.h" \
27282 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27283 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27284 { (exit 1); exit 1; }; }
27285 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27286 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27287 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27290 mv "$tmp/config.h" "$ac_file" \
27291 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27292 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27293 { (exit 1); exit 1; }; }
27296 $as_echo "/* $configure_input */" \
27297 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27298 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27299 $as_echo "$as_me: error: could not create -" >&2;}
27300 { (exit 1); exit 1; }; }
27304 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27305 $as_echo "$as_me: executing $ac_file commands" >&6;}
27310 case $ac_file$ac_mode in
27313 ### Make the necessary directories, if they don't exist.
27314 for dir
in etc lisp
; do
27315 test -d ${dir} || mkdir
${dir}
27318 # Build src/Makefile from ${srcdir}/src/Makefile.c
27319 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27320 # This must be done after src/config.h is built, since we rely on that file.
27322 echo creating src
/epaths.h
27323 ${MAKE-make} epaths-force
27325 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27326 # `..' to `. .' unless invoked with -traditional
27328 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27329 CPPFLAGS
="$CPPFLAGS -traditional"
27332 echo creating lib-src
/Makefile
27334 rm -f junk.c junk1.c junk2.c
27335 sed -e '/start of cpp stuff/q' \
27336 < Makefile.c
> junk1.c
27337 sed -e '1,/start of cpp stuff/d'\
27338 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27339 < Makefile.c
> junk.c
27340 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27341 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27342 cat junk1.c junk2.c
> Makefile.new
27343 rm -f junk.c junk1.c junk2.c
27344 chmod 444 Makefile.new
27345 mv -f Makefile.new Makefile
27348 echo creating src
/Makefile
27350 rm -f junk.c junk1.c junk2.c
27351 sed -e '/start of cpp stuff/q' \
27352 < Makefile.c
> junk1.c
27353 sed -e '1,/start of cpp stuff/d'\
27354 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27355 < Makefile.c
> junk.c
27356 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27357 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27358 cat junk1.c junk2.c
> Makefile.new
27359 rm -f junk.c junk1.c junk2.c
27360 chmod 444 Makefile.new
27361 mv -f Makefile.new Makefile
27364 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27365 echo creating src
/.gdbinit
27366 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27375 { (exit 0); exit 0; }
27377 chmod +x
$CONFIG_STATUS
27378 ac_clean_files
=$ac_clean_files_save
27380 test $ac_write_fail = 0 ||
27381 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27382 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27383 { (exit 1); exit 1; }; }
27386 # configure is writing to config.log, and then calls config.status.
27387 # config.status does its own redirection, appending to config.log.
27388 # Unfortunately, on DOS this fails, as config.log is still kept open
27389 # by configure, so config.status won't be able to write to it; its
27390 # output is simply discarded. So we exec the FD to /dev/null,
27391 # effectively closing config.log, so it can be properly (re)opened and
27392 # appended to by config.status. When coming back to configure, we
27393 # need to make the FD available again.
27394 if test "$no_create" != yes; then
27396 ac_config_status_args
=
27397 test "$silent" = yes &&
27398 ac_config_status_args
="$ac_config_status_args --quiet"
27400 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27402 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27403 # would make configure fail if this is the last instruction.
27404 $ac_cs_success ||
{ (exit 1); exit 1; }
27406 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27407 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27408 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}