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
721 LD_SWITCH_X_SITE_AUX_RPATH
723 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
787 x_default_search_path
821 LD_SWITCH_SYSTEM_TEMACS
822 LD_SWITCH_SYSTEM_EXTRA
830 ac_subst_files
='deps_frag'
832 enable_option_checking
852 with_toolkit_scroll_bars
864 enable_ns_self_contained
866 enable_maintainer_mode
874 ac_precious_vars
='build_alias
886 # Initialize some variables set by options.
888 ac_init_version
=false
889 ac_unrecognized_opts
=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
900 program_transform_name
=s
,x
,x
,
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir
='${exec_prefix}/bin'
915 sbindir
='${exec_prefix}/sbin'
916 libexecdir
='${exec_prefix}/libexec'
917 datarootdir
='${prefix}/share'
918 datadir
='${datarootdir}'
919 sysconfdir
='${prefix}/etc'
920 sharedstatedir
='${prefix}/com'
921 localstatedir
='${prefix}/var'
922 includedir
='${prefix}/include'
923 oldincludedir
='/usr/include'
924 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
925 infodir
='${datarootdir}/info'
930 libdir
='${exec_prefix}/lib'
931 localedir
='${datarootdir}/locale'
932 mandir
='${datarootdir}/man'
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
940 eval $ac_prev=\
$ac_option
946 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 # Accept the important Cygnus configure options, so we can diagnose typos.
952 case $ac_dashdash$ac_option in
956 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
958 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
961 -build |
--build |
--buil |
--bui |
--bu)
962 ac_prev
=build_alias
;;
963 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
964 build_alias
=$ac_optarg ;;
966 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
967 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
968 ac_prev
=cache_file
;;
969 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
970 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
971 cache_file
=$ac_optarg ;;
974 cache_file
=config.cache
;;
976 -datadir |
--datadir |
--datadi |
--datad)
978 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
979 datadir
=$ac_optarg ;;
981 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
982 |
--dataroo |
--dataro |
--datar)
983 ac_prev
=datarootdir
;;
984 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
985 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
986 datarootdir
=$ac_optarg ;;
988 -disable-* |
--disable-*)
989 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
992 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
993 { (exit 1); exit 1; }; }
994 ac_useropt_orig
=$ac_useropt
995 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep
=', ';;
1003 eval enable_
$ac_useropt=no
;;
1005 -docdir |
--docdir |
--docdi |
--doc |
--do)
1007 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1008 docdir
=$ac_optarg ;;
1010 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1012 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1013 dvidir
=$ac_optarg ;;
1015 -enable-* |
--enable-*)
1016 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1019 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1020 { (exit 1); exit 1; }; }
1021 ac_useropt_orig
=$ac_useropt
1022 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1025 "enable_
$ac_useropt"
1027 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep
=', ';;
1030 eval enable_
$ac_useropt=\
$ac_optarg ;;
1032 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1033 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1034 |
--exec |
--exe |
--ex)
1035 ac_prev
=exec_prefix
;;
1036 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1037 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1038 |
--exec=* |
--exe=* |
--ex=*)
1039 exec_prefix
=$ac_optarg ;;
1041 -gas |
--gas |
--ga |
--g)
1042 # Obsolete; use --with-gas.
1045 -help |
--help |
--hel |
--he |
-h)
1046 ac_init_help
=long
;;
1047 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1048 ac_init_help
=recursive
;;
1049 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1050 ac_init_help
=short
;;
1052 -host |
--host |
--hos |
--ho)
1053 ac_prev
=host_alias
;;
1054 -host=* |
--host=* |
--hos=* |
--ho=*)
1055 host_alias
=$ac_optarg ;;
1057 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1059 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1061 htmldir
=$ac_optarg ;;
1063 -includedir |
--includedir |
--includedi |
--included |
--include \
1064 |
--includ |
--inclu |
--incl |
--inc)
1065 ac_prev
=includedir
;;
1066 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1067 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1068 includedir
=$ac_optarg ;;
1070 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1072 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1073 infodir
=$ac_optarg ;;
1075 -libdir |
--libdir |
--libdi |
--libd)
1077 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1078 libdir
=$ac_optarg ;;
1080 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1081 |
--libexe |
--libex |
--libe)
1082 ac_prev
=libexecdir
;;
1083 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1084 |
--libexe=* |
--libex=* |
--libe=*)
1085 libexecdir
=$ac_optarg ;;
1087 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1088 ac_prev
=localedir
;;
1089 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1090 localedir
=$ac_optarg ;;
1092 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1093 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1094 ac_prev
=localstatedir
;;
1095 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1096 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1097 localstatedir
=$ac_optarg ;;
1099 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1101 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1102 mandir
=$ac_optarg ;;
1104 -nfp |
--nfp |
--nf)
1105 # Obsolete; use --without-fp.
1108 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1109 |
--no-cr |
--no-c |
-n)
1112 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1113 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1116 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1117 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1118 |
--oldin |
--oldi |
--old |
--ol |
--o)
1119 ac_prev
=oldincludedir
;;
1120 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1121 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1122 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1123 oldincludedir
=$ac_optarg ;;
1125 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1127 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1128 prefix
=$ac_optarg ;;
1130 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1131 |
--program-pre |
--program-pr |
--program-p)
1132 ac_prev
=program_prefix
;;
1133 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1134 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1135 program_prefix
=$ac_optarg ;;
1137 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1138 |
--program-suf |
--program-su |
--program-s)
1139 ac_prev
=program_suffix
;;
1140 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1141 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1142 program_suffix
=$ac_optarg ;;
1144 -program-transform-name |
--program-transform-name \
1145 |
--program-transform-nam |
--program-transform-na \
1146 |
--program-transform-n |
--program-transform- \
1147 |
--program-transform |
--program-transfor \
1148 |
--program-transfo |
--program-transf \
1149 |
--program-trans |
--program-tran \
1150 |
--progr-tra |
--program-tr |
--program-t)
1151 ac_prev
=program_transform_name
;;
1152 -program-transform-name=* |
--program-transform-name=* \
1153 |
--program-transform-nam=* |
--program-transform-na=* \
1154 |
--program-transform-n=* |
--program-transform-=* \
1155 |
--program-transform=* |
--program-transfor=* \
1156 |
--program-transfo=* |
--program-transf=* \
1157 |
--program-trans=* |
--program-tran=* \
1158 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1159 program_transform_name
=$ac_optarg ;;
1161 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1163 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1164 pdfdir
=$ac_optarg ;;
1166 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1168 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1171 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1172 |
-silent |
--silent |
--silen |
--sile |
--sil)
1175 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1177 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1179 sbindir
=$ac_optarg ;;
1181 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1182 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1183 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1185 ac_prev
=sharedstatedir
;;
1186 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1187 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1188 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1190 sharedstatedir
=$ac_optarg ;;
1192 -site |
--site |
--sit)
1194 -site=* |
--site=* |
--sit=*)
1197 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1199 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1200 srcdir
=$ac_optarg ;;
1202 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1203 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1204 ac_prev
=sysconfdir
;;
1205 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1206 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1207 sysconfdir
=$ac_optarg ;;
1209 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1210 ac_prev
=target_alias
;;
1211 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1212 target_alias
=$ac_optarg ;;
1214 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1217 -version |
--version |
--versio |
--versi |
--vers |
-V)
1218 ac_init_version
=: ;;
1221 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1224 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_useropt_orig
=$ac_useropt
1227 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1232 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233 ac_unrecognized_sep
=', ';;
1235 eval with_
$ac_useropt=\
$ac_optarg ;;
1237 -without-* |
--without-*)
1238 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1241 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1242 { (exit 1); exit 1; }; }
1243 ac_useropt_orig
=$ac_useropt
1244 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1249 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep
=', ';;
1252 eval with_
$ac_useropt=no
;;
1255 # Obsolete; use --with-x.
1258 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1259 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1260 ac_prev
=x_includes
;;
1261 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1262 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1263 x_includes
=$ac_optarg ;;
1265 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1266 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1267 ac_prev
=x_libraries
;;
1268 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1269 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1270 x_libraries
=$ac_optarg ;;
1272 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1273 Try \`$0 --help' for more information." >&2
1274 { (exit 1); exit 1; }; }
1278 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1281 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1282 { (exit 1); exit 1; }; }
1283 eval $ac_envvar=\
$ac_optarg
1284 export $ac_envvar ;;
1287 # FIXME: should be removed in autoconf 3.0.
1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1297 if test -n "$ac_prev"; then
1298 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1299 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1300 { (exit 1); exit 1; }; }
1303 if test -n "$ac_unrecognized_opts"; then
1304 case $enable_option_checking in
1306 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1307 { (exit 1); exit 1; }; } ;;
1308 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1312 # Check all directory arguments for consistency.
1313 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1318 eval ac_val
=\$
$ac_var
1319 # Remove trailing slashes.
1322 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\
$ac_val;;
1325 # Be sure to have absolute directory names.
1327 [\\/$
]* | ?
:[\\/]* ) continue;;
1328 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1330 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1331 { (exit 1); exit 1; }; }
1334 # There might be people who depend on the old broken behavior: `$host'
1335 # used to hold the argument of --host etc.
1336 # FIXME: To remove some day.
1339 target
=$target_alias
1341 # FIXME: To remove some day.
1342 if test "x$host_alias" != x
; then
1343 if test "x$build_alias" = x
; then
1344 cross_compiling
=maybe
1345 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1346 If a cross compiler is detected then cross compile mode will be used." >&2
1347 elif test "x$build_alias" != "x$host_alias"; then
1353 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1355 test "$silent" = yes && exec 6>/dev
/null
1358 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1359 ac_ls_di
=`ls -di .` &&
1360 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1361 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1362 { (exit 1); exit 1; }; }
1363 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1365 { (exit 1); exit 1; }; }
1368 # Find the source files, if location was not specified.
1369 if test -z "$srcdir"; then
1370 ac_srcdir_defaulted
=yes
1371 # Try the directory containing this script, then the parent directory.
1372 ac_confdir
=`$as_dirname -- "$as_myself" ||
1373 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374 X"$as_myself" : 'X\(//\)[^/]' \| \
1375 X"$as_myself" : 'X\(//\)$' \| \
1376 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1377 $as_echo X"$as_myself" |
1378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1400 ac_srcdir_defaulted
=no
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1403 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1404 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1405 { (exit 1); exit 1; }; }
1407 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1410 { (exit 1); exit 1; }; }
1412 # When building in place, set srcdir=.
1413 if test "$ac_abs_confdir" = "$ac_pwd"; then
1416 # Remove unnecessary trailing slashes from srcdir.
1417 # Double slashes in file names in object file debugging info
1418 # mess up M-x gdb in Emacs.
1420 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 for ac_var
in $ac_precious_vars; do
1423 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1424 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1425 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1426 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1430 # Report the --help message.
1432 if test "$ac_init_help" = "long"; then
1433 # Omit some internal or obsolete options to make the list less imposing.
1434 # This message is too long to be a string in the A/UX 3.1 sh.
1436 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1438 Usage: $0 [OPTION]... [VAR=VALUE]...
1440 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1441 VAR=VALUE. See below for descriptions of some of the useful variables.
1443 Defaults for the options are specified in brackets.
1446 -h, --help display this help and exit
1447 --help=short display options specific to this package
1448 --help=recursive display the short help of all the included packages
1449 -V, --version display version information and exit
1450 -q, --quiet, --silent do not print \`checking...' messages
1451 --cache-file=FILE cache test results in FILE [disabled]
1452 -C, --config-cache alias for \`--cache-file=config.cache'
1453 -n, --no-create do not create output files
1454 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456 Installation directories:
1457 --prefix=PREFIX install architecture-independent files in PREFIX
1458 [$ac_default_prefix]
1459 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1462 By default, \`make install' will install all the files in
1463 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1464 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1465 for instance \`--prefix=\$HOME'.
1467 For better control, use the options below.
1469 Fine tuning of the installation directories:
1470 --bindir=DIR user executables [EPREFIX/bin]
1471 --sbindir=DIR system admin executables [EPREFIX/sbin]
1472 --libexecdir=DIR program executables [EPREFIX/libexec]
1473 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1474 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1475 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1485 --htmldir=DIR html documentation [DOCDIR]
1486 --dvidir=DIR dvi documentation [DOCDIR]
1487 --pdfdir=DIR pdf documentation [DOCDIR]
1488 --psdir=DIR ps documentation [DOCDIR]
1494 --program-prefix=PREFIX prepend PREFIX to installed program names
1495 --program-suffix=SUFFIX append SUFFIX to installed program names
1496 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1499 --x-includes=DIR X include files are
in DIR
1500 --x-libraries=DIR X library files are
in DIR
1503 --build=BUILD configure
for building on BUILD
[guessed
]
1504 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1508 if test -n "$ac_init_help"; then
1509 case $ac_init_help in
1510 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1515 --disable-option-checking ignore unrecognized
--enable/--with options
1516 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1517 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1518 --disable-ns-self-contained
1519 disable self contained build under NeXTstep
1520 --enable-asserts compile code with asserts enabled
1521 --enable-maintainer-mode
1522 enable make rules and dependencies not useful
(and
1523 sometimes confusing
) to the casual installer
1524 --enable-locallisppath=PATH
1525 directories Emacs should search
for lisp files
1526 specific to this site
1527 --enable-checking[=LIST
]
1528 enable expensive run-time checks. With LIST
, enable
1529 only specific categories of checks. Categories are
:
1530 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1531 stringfreelist
, xmallocoverrun
, conslist
1532 --enable-profiling build emacs with profiling support. This might not
1533 work on all platforms
1534 --enable-autodepend automatically generate dependencies to .h-files.
1535 Requires GNU Make and Gcc. Enabled
if GNU Make and
1537 --disable-largefile omit support
for large files
1540 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1541 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1542 --without-pop don
't support POP mail retrieval with movemail
1543 --with-kerberos support Kerberos-authenticated POP
1544 --with-kerberos5 support Kerberos version 5 authenticated POP
1545 --with-hesiod support Hesiod to get the POP server host
1546 --with-mmdf support MMDF mailboxes
1547 --with-mail-unlink unlink, rather than empty, mail spool after reading
1548 --with-mailhost=HOSTNAME
1549 string giving default POP mail host
1550 --without-sound don't compile with sound support
1551 --without-sync-input process async input synchronously
1552 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1554 --without-xpm don
't compile with XPM image support
1555 --without-jpeg don't compile with JPEG image support
1556 --without-tiff don
't compile with TIFF image support
1557 --without-gif don't compile with GIF image support
1558 --without-png don
't compile with PNG image support
1559 --without-rsvg don't compile with SVG image support
1560 --without-xft don
't use XFT for anti aliased fonts
1561 --without-libotf don't use libotf
for OpenType font support
1562 --without-m17n-flt don
't use m17n-flt for text shaping
1563 --without-toolkit-scroll-bars
1564 don't use Motif or Xaw3d scroll bars
1565 --without-xaw3d don
't use Xaw3d
1566 --without-xim don't use X11 XIM
1567 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1568 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1570 --without-dbus don't compile with D-Bus support
1571 --without-gconf don
't compile with GConf support
1572 --without-selinux don't compile with SELinux support
1573 --without-makeinfo don
't require makeinfo for building manuals
1574 --with-pkg-config-prog=PATH
1575 path to pkg-config for finding GTK and librsvg
1576 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1577 /usr/lib, or /usr/lib64 on some platforms.
1578 --with-gnustep-conf=PATH
1579 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1580 or /etc/GNUstep/GNUstep.conf
1581 --with-x use the X Window System
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1592 XMKMF Path to xmkmf, Makefile generator for X Window System
1594 Use these variables to override the choices made by `configure' or to
help
1595 it to
find libraries and programs with nonstandard names
/locations.
1601 if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
1603 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1604 test -d "$ac_dir" ||
1605 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1610 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1612 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1617 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1620 ac_abs_top_builddir
=$ac_pwd
1621 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir
=$ac_top_build_prefix
1626 .
) # We are building in place.
1628 ac_top_srcdir
=$ac_top_builddir_sub
1629 ac_abs_top_srcdir
=$ac_pwd ;;
1630 [\\/]* | ?
:[\\/]* ) # Absolute name.
1631 ac_srcdir
=$srcdir$ac_dir_suffix;
1632 ac_top_srcdir
=$srcdir
1633 ac_abs_top_srcdir
=$srcdir ;;
1635 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1639 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1641 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1648 $SHELL "$ac_srcdir/configure" --help=recursive
1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1652 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1659 emacs configure
24.0.50
1660 generated by GNU Autoconf
2.62
1662 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1663 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1664 This configure
script is free software
; the Free Software Foundation
1665 gives unlimited permission to copy
, distribute and modify it.
1669 cat >config.log
<<_ACEOF
1670 This file contains any messages produced by compilers while
1671 running configure, to aid debugging if configure makes a mistake.
1673 It was created by emacs $as_me 24.0.50, which was
1674 generated by GNU Autoconf 2.62. Invocation command line was
1686 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1687 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1688 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1689 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1690 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1692 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1693 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1695 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1696 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1697 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1698 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1699 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1700 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1701 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir
=.
1710 $as_echo "PATH: $as_dir"
1726 # Keep a trace of the command line.
1727 # Strip out --no-create and --no-recursion so they do not pile up.
1728 # Strip out --silent because we don't want to record it for future runs.
1729 # Also quote any args containing shell meta-characters.
1730 # Make two passes to allow for proper duplicate-argument suppression.
1734 ac_must_keep_next
=false
1740 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1741 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1742 |
-silent |
--silent |
--silen |
--sile |
--sil)
1745 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1750 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1751 if test $ac_must_keep_next = true
; then
1752 ac_must_keep_next
=false
# Got value, back to normal.
1755 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1756 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1757 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1758 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1759 case "$ac_configure_args0 " in
1760 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1763 -* ) ac_must_keep_next
=true
;;
1766 ac_configure_args
="$ac_configure_args '$ac_arg'"
1771 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1772 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1774 # When interrupted or exit'd, cleanup temporary files, and complete
1775 # config.log. We remove comments because anyway the quotes in there
1776 # would cause problems or look ugly.
1777 # WARNING: Use '\'' to represent an apostrophe within the trap.
1778 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1779 trap 'exit_status=$?
1780 # Save into config.log some information that might help in debugging.
1785 ## ---------------- ##
1786 ## Cache variables. ##
1787 ## ---------------- ##
1790 # The following way of writing the cache mishandles newlines in values,
1792 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1793 eval ac_val=\$$ac_var
1797 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1798 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1801 _ | IFS | as_nl) ;; #(
1802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1803 *) $as_unset $ac_var ;;
1808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809 *${as_nl}ac_space=\ *)
1811 "s/'\''/'\''\\\\'\'''\''/g;
1812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1823 ## ----------------- ##
1824 ## Output variables. ##
1825 ## ----------------- ##
1828 for ac_var in $ac_subst_vars
1830 eval ac_val=\$$ac_var
1832 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834 $as_echo "$ac_var='\''$ac_val'\''"
1838 if test -n "$ac_subst_files"; then
1840 ## ------------------- ##
1841 ## File substitutions. ##
1842 ## ------------------- ##
1845 for ac_var
in $ac_subst_files
1847 eval ac_val
=\$
$ac_var
1849 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1851 $as_echo "$ac_var='\''$ac_val'\''"
1856 if test -s confdefs.h; then
1866 test "$ac_signal" != 0 &&
1867 $as_echo "$as_me: caught signal $ac_signal"
1868 $as_echo "$as_me: exit $exit_status"
1870 rm -f core *.core core.conftest.* &&
1871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1874 for ac_signal
in 1 2 13 15; do
1875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1880 rm -f -r conftest
* confdefs.h
1882 # Predefined preprocessor variables.
1884 cat >>confdefs.h
<<_ACEOF
1885 #define PACKAGE_NAME "$PACKAGE_NAME"
1889 cat >>confdefs.h
<<_ACEOF
1890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1894 cat >>confdefs.h
<<_ACEOF
1895 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1899 cat >>confdefs.h
<<_ACEOF
1900 #define PACKAGE_STRING "$PACKAGE_STRING"
1904 cat >>confdefs.h
<<_ACEOF
1905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1909 # Let the site file select an alternate cache file if it wants to.
1910 # Prefer an explicitly selected file to automatically selected ones.
1913 if test -n "$CONFIG_SITE"; then
1914 ac_site_file1
=$CONFIG_SITE
1915 elif test "x$prefix" != xNONE
; then
1916 ac_site_file1
=$prefix/share
/config.site
1917 ac_site_file2
=$prefix/etc
/config.site
1919 ac_site_file1
=$ac_default_prefix/share
/config.site
1920 ac_site_file2
=$ac_default_prefix/etc
/config.site
1922 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1924 test "x$ac_site_file" = xNONE
&& continue
1925 if test -r "$ac_site_file"; then
1926 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1927 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1928 sed 's/^/| /' "$ac_site_file" >&5
1933 if test -r "$cache_file"; then
1934 # Some versions of bash will fail to source /dev/null (special
1935 # files actually), so we avoid doing that.
1936 if test -f "$cache_file"; then
1937 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1938 $as_echo "$as_me: loading cache $cache_file" >&6;}
1940 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1941 *) .
"./$cache_file";;
1945 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1946 $as_echo "$as_me: creating cache $cache_file" >&6;}
1950 ac_header_list
="$ac_header_list sys/time.h"
1951 ac_header_list
="$ac_header_list unistd.h"
1952 ac_func_list
="$ac_func_list alarm"
1953 # Check that the precious variables saved in the cache have kept the same
1955 ac_cache_corrupted
=false
1956 for ac_var
in $ac_precious_vars; do
1957 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1958 eval ac_new_set
=\
$ac_env_${ac_var}_set
1959 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1960 eval ac_new_val
=\
$ac_env_${ac_var}_value
1961 case $ac_old_set,$ac_new_set in
1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965 ac_cache_corrupted
=: ;;
1967 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969 ac_cache_corrupted
=: ;;
1972 if test "x$ac_old_val" != "x$ac_new_val"; then
1973 # differences in whitespace do not lead to failure.
1974 ac_old_val_w
=`echo x $ac_old_val`
1975 ac_new_val_w
=`echo x $ac_new_val`
1976 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1977 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1978 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1979 ac_cache_corrupted
=:
1981 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1982 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1983 eval $ac_var=\
$ac_old_val
1985 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1986 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1987 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1988 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1991 # Pass precious variables to config.status.
1992 if test "$ac_new_set" = set; then
1994 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1995 *) ac_arg
=$ac_var=$ac_new_val ;;
1997 case " $ac_configure_args " in
1998 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1999 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2003 if $ac_cache_corrupted; then
2004 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2005 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2006 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2007 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2008 { (exit 1); exit 1; }; }
2036 ac_cpp
='$CPP $CPPFLAGS'
2037 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2042 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2046 test "$program_prefix" != NONE
&&
2047 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2048 # Use a double $ so make ignores it.
2049 test "$program_suffix" != NONE
&&
2050 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2051 # Double any \ or $.
2052 # By default was `s,x,x', remove it if useless.
2053 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2054 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2057 lispdir
='${datadir}/emacs/${version}/lisp'
2058 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2059 '${datadir}/emacs/site-lisp'
2060 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2061 etcdir
='${datadir}/emacs/${version}/etc'
2062 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2063 docdir
='${datadir}/emacs/${version}/etc'
2064 gamedir
='${localstatedir}/games/emacs'
2071 # Check whether --with-pop was given.
2072 if test "${with_pop+set}" = set; then
2078 if test "$with_pop" = yes; then
2079 cat >>confdefs.h
<<\_ACEOF
2080 #define MAIL_USE_POP 1
2087 # Check whether --with-kerberos was given.
2088 if test "${with_kerberos+set}" = set; then
2089 withval
=$with_kerberos;
2094 if test "$with_kerberos" != no
; then
2095 cat >>confdefs.h
<<\_ACEOF
2103 # Check whether --with-kerberos5 was given.
2104 if test "${with_kerberos5+set}" = set; then
2105 withval
=$with_kerberos5;
2110 if test "${with_kerberos5}" != no
; then
2111 if test "${with_kerberos}" = no
; then
2113 cat >>confdefs.h
<<\_ACEOF
2119 cat >>confdefs.h
<<\_ACEOF
2126 # Check whether --with-hesiod was given.
2127 if test "${with_hesiod+set}" = set; then
2128 withval
=$with_hesiod;
2133 if test "$with_hesiod" != no
; then
2135 cat >>confdefs.h
<<\_ACEOF
2142 # Check whether --with-mmdf was given.
2143 if test "${with_mmdf+set}" = set; then
2149 if test "$with_mmdf" != no
; then
2151 cat >>confdefs.h
<<\_ACEOF
2152 #define MAIL_USE_MMDF 1
2158 # Check whether --with-mail-unlink was given.
2159 if test "${with_mail_unlink+set}" = set; then
2160 withval
=$with_mail_unlink;
2165 if test "$with_mail_unlink" != no
; then
2167 cat >>confdefs.h
<<\_ACEOF
2168 #define MAIL_UNLINK_SPOOL 1
2174 # Check whether --with-mailhost was given.
2175 if test "${with_mailhost+set}" = set; then
2176 withval
=$with_mailhost;
2177 cat >>confdefs.h
<<_ACEOF
2178 #define MAILHOST "$withval"
2185 # Check whether --with-sound was given.
2186 if test "${with_sound+set}" = set; then
2187 withval
=$with_sound;
2194 # Check whether --with-sync-input was given.
2195 if test "${with_sync_input+set}" = set; then
2196 withval
=$with_sync_input;
2201 if test "$with_sync_input" = yes; then
2203 cat >>confdefs.h
<<\_ACEOF
2204 #define SYNC_INPUT 1
2210 # Check whether --with-x-toolkit was given.
2211 if test "${with_x_toolkit+set}" = set; then
2212 withval
=$with_x_toolkit; case "${withval}" in
2213 y | ye |
yes ) val
=gtk
;;
2215 l | lu | luc | luci | lucid
) val
=lucid
;;
2216 a |
at | ath | athe | athen | athena
) val
=athena
;;
2217 m | mo | mot | moti | motif
) val
=motif
;;
2218 g | gt | gtk
) val
=gtk
;;
2220 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2221 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2222 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2223 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2224 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2225 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2226 { (exit 1); exit 1; }; }
2235 # Check whether --with-xpm was given.
2236 if test "${with_xpm+set}" = set; then
2243 # Check whether --with-jpeg was given.
2244 if test "${with_jpeg+set}" = set; then
2251 # Check whether --with-tiff was given.
2252 if test "${with_tiff+set}" = set; then
2259 # Check whether --with-gif was given.
2260 if test "${with_gif+set}" = set; then
2267 # Check whether --with-png was given.
2268 if test "${with_png+set}" = set; then
2275 # Check whether --with-rsvg was given.
2276 if test "${with_rsvg+set}" = set; then
2284 # Check whether --with-xft was given.
2285 if test "${with_xft+set}" = set; then
2292 # Check whether --with-libotf was given.
2293 if test "${with_libotf+set}" = set; then
2294 withval
=$with_libotf;
2300 # Check whether --with-m17n-flt was given.
2301 if test "${with_m17n_flt+set}" = set; then
2302 withval
=$with_m17n_flt;
2309 # Check whether --with-toolkit-scroll-bars was given.
2310 if test "${with_toolkit_scroll_bars+set}" = set; then
2311 withval
=$with_toolkit_scroll_bars;
2313 with_toolkit_scroll_bars
=yes
2317 # Check whether --with-xaw3d was given.
2318 if test "${with_xaw3d+set}" = set; then
2319 withval
=$with_xaw3d;
2325 # Check whether --with-xim was given.
2326 if test "${with_xim+set}" = set; then
2333 # Check whether --with-ns was given.
2334 if test "${with_ns+set}" = set; then
2342 # Check whether --with-gpm was given.
2343 if test "${with_gpm+set}" = set; then
2350 # Check whether --with-dbus was given.
2351 if test "${with_dbus+set}" = set; then
2358 # Check whether --with-gconf was given.
2359 if test "${with_gconf+set}" = set; then
2360 withval
=$with_gconf;
2366 # Check whether --with-selinux was given.
2367 if test "${with_selinux+set}" = set; then
2368 withval
=$with_selinux;
2374 ## For the times when you want to build Emacs but don't have
2375 ## a suitable makeinfo, and can live without the manuals.
2377 # Check whether --with-makeinfo was given.
2378 if test "${with_makeinfo+set}" = set; then
2379 withval
=$with_makeinfo;
2386 # Check whether --with-pkg-config-prog was given.
2387 if test "${with_pkg_config_prog+set}" = set; then
2388 withval
=$with_pkg_config_prog;
2391 if test "X${with_pkg_config_prog}" != X
; then
2392 if test "${with_pkg_config_prog}" != yes; then
2393 PKG_CONFIG
="${with_pkg_config_prog}"
2399 # Check whether --with-crt-dir was given.
2400 if test "${with_crt_dir+set}" = set; then
2401 withval
=$with_crt_dir;
2404 CRT_DIR
="${with_crt_dir}"
2407 # Check whether --with-gnustep-conf was given.
2408 if test "${with_gnustep_conf+set}" = set; then
2409 withval
=$with_gnustep_conf;
2412 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2413 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2414 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2415 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2417 # Check whether --enable-ns-self-contained was given.
2418 if test "${enable_ns_self_contained+set}" = set; then
2419 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2421 EN_NS_SELF_CONTAINED
=yes
2425 # Check whether --enable-asserts was given.
2426 if test "${enable_asserts+set}" = set; then
2427 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2433 # Check whether --enable-maintainer-mode was given.
2434 if test "${enable_maintainer_mode+set}" = set; then
2435 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2437 USE_MAINTAINER_MODE
=no
2440 if test $USE_MAINTAINER_MODE = yes; then
2447 # Check whether --enable-locallisppath was given.
2448 if test "${enable_locallisppath+set}" = set; then
2449 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2451 elif test "${enableval}" != "yes"; then
2452 locallisppath
=${enableval}
2457 # Check whether --enable-checking was given.
2458 if test "${enable_checking+set}" = set; then
2459 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2462 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2463 for check
in $ac_checking_flags
2466 # these set all the flags to specific states
2467 yes) ac_enable_checking
=1 ;;
2468 no
) ac_enable_checking
= ;
2469 ac_gc_check_stringbytes
= ;
2470 ac_gc_check_string_overrun
= ;
2471 ac_gc_check_string_free_list
= ;
2472 ac_xmalloc_overrun
= ;
2473 ac_gc_check_cons_list
= ;;
2474 all
) ac_enable_checking
=1 ;
2475 ac_gc_check_stringbytes
=1 ;
2476 ac_gc_check_string_overrun
=1 ;
2477 ac_gc_check_string_free_list
=1 ;
2478 ac_xmalloc_overrun
=1 ;
2479 ac_gc_check_cons_list
=1 ;;
2480 # these enable particular checks
2481 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2482 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2483 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2484 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2485 conslist
) ac_gc_check_cons_list
=1 ;;
2486 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2487 $as_echo "$as_me: error: unknown check category $check" >&2;}
2488 { (exit 1); exit 1; }; } ;;
2493 if test x
$ac_enable_checking != x
; then
2495 cat >>confdefs.h
<<\_ACEOF
2496 #define ENABLE_CHECKING 1
2500 if test x
$ac_gc_check_stringbytes != x
; then
2502 cat >>confdefs.h
<<\_ACEOF
2503 #define GC_CHECK_STRING_BYTES 1
2507 if test x
$ac_gc_check_stringoverrun != x
; then
2509 cat >>confdefs.h
<<\_ACEOF
2510 #define GC_CHECK_STRING_OVERRUN 1
2514 if test x
$ac_gc_check_string_free_list != x
; then
2516 cat >>confdefs.h
<<\_ACEOF
2517 #define GC_CHECK_STRING_FREE_LIST 1
2521 if test x
$ac_xmalloc_overrun != x
; then
2523 cat >>confdefs.h
<<\_ACEOF
2524 #define XMALLOC_OVERRUN_CHECK 1
2528 if test x
$ac_gc_check_cons_list != x
; then
2530 cat >>confdefs.h
<<\_ACEOF
2531 #define GC_CHECK_CONS_LIST 1
2536 # Check whether --enable-profiling was given.
2537 if test "${enable_profiling+set}" = set; then
2538 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2541 if test x
$ac_enable_profiling != x
; then
2542 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2543 PROFILING_LDFLAGS
="-pg"
2549 # Check whether --enable-autodepend was given.
2550 if test "${enable_autodepend+set}" = set; then
2551 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2553 ac_enable_autodepend
=yes
2557 #### Make srcdir absolute, if it isn't already. It's important to
2558 #### avoid running the path through pwd unnecessarily, since pwd can
2559 #### give you automounter prefixes, which can go away. We do all this
2560 #### so Emacs can find its files when run uninstalled.
2561 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2566 ## We may be able to use the $PWD environment variable to make this
2567 ## absolute. But sometimes PWD is inaccurate.
2568 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2569 ## but that tested only for a well-formed and valid PWD,
2570 ## it did not object when PWD was well-formed and valid but just wrong.
2571 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2575 srcdir
="`(cd ${srcdir}; pwd)`"
2578 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2581 #### Check if the source directory already has a configured system in it.
2582 if test `pwd` != `(cd ${srcdir} && pwd)` \
2583 && test -f "${srcdir}/src/config.h" ; then
2584 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2585 as a build directory right now; it has been configured in its own
2586 right. To configure in another directory as well, you MUST
2587 use GNU make. If you do not have GNU make, then you must
2588 now do \`make distclean' in ${srcdir},
2589 and then run $0 again." >&5
2590 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2591 as a build directory right now; it has been configured in its own
2592 right. To configure in another directory as well, you MUST
2593 use GNU make. If you do not have GNU make, then you must
2594 now do \`make distclean' in ${srcdir},
2595 and then run $0 again." >&2;}
2598 #### Given the configuration name, set machfile and opsysfile to the
2599 #### names of the m/*.h and s/*.h files we should use.
2601 ### Canonicalize the configuration name.
2604 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2605 if test -f "$ac_dir/install-sh"; then
2607 ac_install_sh
="$ac_aux_dir/install-sh -c"
2609 elif test -f "$ac_dir/install.sh"; then
2611 ac_install_sh
="$ac_aux_dir/install.sh -c"
2613 elif test -f "$ac_dir/shtool"; then
2615 ac_install_sh
="$ac_aux_dir/shtool install -c"
2619 if test -z "$ac_aux_dir"; then
2620 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2621 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2622 { (exit 1); exit 1; }; }
2625 # These three variables are undocumented and unsupported,
2626 # and are intended to be withdrawn in a future Autoconf release.
2627 # They can cause serious problems if a builder's source tree is in a directory
2628 # whose full name contains unusual characters.
2629 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2630 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2631 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2634 # Make sure we can run config.sub.
2635 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2636 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2637 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2638 { (exit 1); exit 1; }; }
2640 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2641 $as_echo_n "checking build system type... " >&6; }
2642 if test "${ac_cv_build+set}" = set; then
2643 $as_echo_n "(cached) " >&6
2645 ac_build_alias
=$build_alias
2646 test "x$ac_build_alias" = x
&&
2647 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2648 test "x$ac_build_alias" = x
&&
2649 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2650 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2651 { (exit 1); exit 1; }; }
2652 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2653 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2654 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2655 { (exit 1); exit 1; }; }
2658 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2659 $as_echo "$ac_cv_build" >&6; }
2660 case $ac_cv_build in
2662 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2663 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2664 { (exit 1); exit 1; }; };;
2667 ac_save_IFS
=$IFS; IFS
='-'
2673 # Remember, the first character of IFS is used to create $*,
2674 # except with old shells:
2677 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2680 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2681 $as_echo_n "checking host system type... " >&6; }
2682 if test "${ac_cv_host+set}" = set; then
2683 $as_echo_n "(cached) " >&6
2685 if test "x$host_alias" = x
; then
2686 ac_cv_host
=$ac_cv_build
2688 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2689 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2690 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2691 { (exit 1); exit 1; }; }
2695 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2696 $as_echo "$ac_cv_host" >&6; }
2699 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2700 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2701 { (exit 1); exit 1; }; };;
2704 ac_save_IFS
=$IFS; IFS
='-'
2710 # Remember, the first character of IFS is used to create $*,
2711 # except with old shells:
2714 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2718 configuration
=${host_alias-${build_alias-$host}}
2722 ### If you add support for a new configuration, add code to this
2723 ### switch statement to recognize your configuration name and select
2724 ### the appropriate operating system and machine description files.
2726 ### You would hope that you could choose an m/*.h file pretty much
2727 ### based on the machine portion of the configuration name, and an s-
2728 ### file based on the operating system portion. However, it turns out
2729 ### that each m/*.h file is pretty manufacturer-specific - for
2730 ### example mips.h is MIPS
2731 ### So we basically have to have a special case for each
2732 ### configuration name.
2734 ### As far as handling version numbers on operating systems is
2735 ### concerned, make sure things will fail in a fixable way. If
2736 ### /etc/MACHINES doesn't say anything about version numbers, be
2737 ### prepared to handle anything reasonably. If version numbers
2738 ### matter, be sure /etc/MACHINES says something about it.
2740 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2741 ### "System V Release 4"; he writes, "The old convention encouraged
2742 ### confusion between `system' and `release' levels'."
2744 machine
='' opsys
='' unported
=no
2745 case "${canonical}" in
2750 case "${canonical}" in
2751 alpha
*-*-freebsd*) machine
=alpha
;;
2752 arm
*-*-freebsd*) machine
=arm
;;
2753 ia64-
*-freebsd*) machine
=ia64
;;
2754 sparc-
*-freebsd*) machine
=sparc
;;
2755 sparc64-
*-freebsd*) machine
=sparc
;;
2756 powerpc-
*-freebsd*) machine
=macppc
;;
2757 i
[3456]86-*-freebsd*) machine
=intel386
;;
2758 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2762 ## FreeBSD kernel + glibc based userland
2765 case "${canonical}" in
2766 alpha
*-*-kfreebsd*) machine
=alpha
;;
2767 ia64-
*-kfreebsd*) machine
=ia64
;;
2768 sparc-
*-kfreebsd*) machine
=sparc
;;
2769 sparc64-
*-kfreebsd*) machine
=sparc
;;
2770 powerpc-
*-kfreebsd*) machine
=macppc
;;
2771 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2772 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2779 case "${canonical}" in
2780 alpha
*-*-netbsd*) machine
=alpha
;;
2781 i
[3456]86-*-netbsd*) machine
=intel386
;;
2782 mips-
*-netbsd*) machine
=mips
;;
2783 mipsel-
*-netbsd*) machine
=mips
;;
2784 mipseb-
*-netbsd*) machine
=mips
;;
2785 powerpc-
*-netbsd*) machine
=macppc
;;
2786 sparc
*-*-netbsd*) machine
=sparc
;;
2787 vax-
*-netbsd*) machine
=vax
;;
2788 arm-
*-netbsd*) machine
=arm
;;
2789 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2790 hppa-
*-netbsd*) machine
=hp800
;;
2791 m68k-
*-netbsd*) machine
=m68k
;;
2798 case "${canonical}" in
2799 alpha
*-*-openbsd*) machine
=alpha
;;
2800 arm-
*-openbsd*) machine
=arm
;;
2801 i386-
*-openbsd*) machine
=intel386
;;
2802 powerpc-
*-openbsd*) machine
=macppc
;;
2803 sparc
*-*-openbsd*) machine
=sparc
;;
2804 vax-
*-openbsd*) machine
=vax
;;
2805 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2806 hppa-
*-openbsd*) machine
=hp800
;;
2810 alpha
*-*-linux-gnu* )
2811 machine
=alpha opsys
=gnu-linux
2815 machine
=arm opsys
=gnu-linux
2818 ## Apple Darwin / Mac OS X
2820 case "${canonical}" in
2821 i
[3456]86-* ) machine
=intel386
;;
2822 powerpc-
* ) machine
=macppc
;;
2823 x86_64-
* ) machine
=amdx86-64
;;
2827 # Define CPP as follows to make autoconf work correctly.
2828 CPP
="${CC-cc} -E -no-cpp-precomp"
2829 # Use fink packages if available.
2830 if test -d /sw
/include
&& test -d /sw
/lib
; then
2831 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2832 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2833 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2837 ## HP 9000 series 700 and 800, running HP/UX
2838 hppa
*-hp-hpux10.2
* )
2839 machine
=hp800 opsys
=hpux10-20
2841 hppa
*-hp-hpux1[1-9]* )
2842 machine
=hp800 opsys
=hpux11
2843 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2846 hppa
*-*-linux-gnu* )
2847 machine
=hp800 opsys
=gnu-linux
2852 machine
=ibms390 opsys
=gnu-linux
2854 s390x-
*-linux-gnu* )
2855 machine
=ibms390x opsys
=gnu-linux
2857 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2858 machine
=ibmrs6000 opsys
=aix4-2
2860 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2861 machine
=ibmrs6000 opsys
=aix4-2
2863 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2864 machine
=ibmrs6000 opsys
=aix4-2
2866 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2867 machine
=ibmrs6000 opsys
=aix4-2
2870 ## Macintosh PowerPC
2871 powerpc
*-*-linux-gnu* )
2872 machine
=macppc opsys
=gnu-linux
2875 ## Silicon Graphics machines
2878 machine
=iris4d opsys
=irix6-5
2879 # Without defining _LANGUAGE_C, things get masked out in the headers
2880 # so that, for instance, grepping for `free' in stdlib.h fails and
2881 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2882 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2883 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2887 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2888 machine
=sparc opsys
=gnu-linux
2892 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2893 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2894 case "${canonical}" in
2895 i
[3456]86-*-* ) machine
=intel386
;;
2896 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2897 sparc
* ) machine
=sparc
;;
2900 case "${canonical}" in
2901 *-sunos5.6
* |
*-solaris2.6
* )
2903 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2906 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2908 emacs_check_sunpro_c
=yes
2909 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2911 *-sunos5* |
*-solaris* )
2913 emacs_check_sunpro_c
=yes
2914 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2917 ## Watch out for a compiler that we know will not work.
2918 case "${canonical}" in
2919 *-solaris* |
*-sunos5* )
2920 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2921 ## /usr/ucb/cc doesn't work;
2922 ## we should find some other compiler that does work.
2932 machine
=ia64 opsys
=gnu-linux
2935 ## Intel 386 machines where we don't care about the manufacturer
2938 case "${canonical}" in
2939 *-cygwin ) opsys
=cygwin
;;
2940 *-darwin* ) opsys
=darwin
2941 CPP
="${CC-cc} -E -no-cpp-precomp"
2943 *-linux-gnu* ) opsys
=gnu-linux
;;
2944 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2945 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2946 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2947 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2951 ## m68k Linux-based GNU system
2953 machine
=m68k opsys
=gnu-linux
2956 ## Mips Linux-based GNU system
2957 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2958 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2959 machine
=mips opsys
=gnu-linux
2962 ## AMD x86-64 Linux-based GNU system
2963 x86_64-
*-linux-gnu* )
2964 machine
=amdx86-64 opsys
=gnu-linux
2967 ## Tensilica Xtensa Linux-based GNU system
2968 xtensa
*-*-linux-gnu* )
2969 machine
=xtensa opsys
=gnu-linux
2972 ## SuperH Linux-based GNU system
2973 sh
[34]*-*-linux-gnu* )
2974 machine
=sh3 opsys
=gnu-linux
2982 ### If the code above didn't choose an operating system, just choose
2983 ### an operating system based on the configuration name. You really
2984 ### only want to use this when you have no idea what the right
2985 ### operating system is; if you know what operating systems a machine
2986 ### runs, it's cleaner to make it explicit in the case statement
2988 if test x
"${opsys}" = x
; then
2989 case "${canonical}" in
2990 *-gnu* ) opsys
=gnu
;;
2999 if test $unported = yes; then
3000 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3001 Check \`etc/MACHINES' for recognized configuration names." >&5
3002 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3003 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3004 { (exit 1); exit 1; }; }
3007 machfile
="m/${machine}.h"
3008 opsysfile
="s/${opsys}.h"
3011 #### Choose a compiler.
3012 test -n "$CC" && cc_specified
=yes
3014 # Save the value of CFLAGS that the user specified.
3015 SPECIFIED_CFLAGS
="$CFLAGS"
3018 ac_cpp
='$CPP $CPPFLAGS'
3019 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3022 if test -n "$ac_tool_prefix"; then
3023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3024 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3025 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if test "${ac_cv_prog_CC+set}" = set; then
3028 $as_echo_n "(cached) " >&6
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC
="$CC" # Let the user override the test.
3033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3037 test -z "$as_dir" && as_dir
=.
3038 for ac_exec_ext
in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3041 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 if test -n "$CC"; then
3052 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3053 $as_echo "$CC" >&6; }
3055 { $as_echo "$as_me:$LINENO: result: no" >&5
3056 $as_echo "no" >&6; }
3061 if test -z "$ac_cv_prog_CC"; then
3063 # Extract the first word of "gcc", so it can be a program name with args.
3064 set dummy gcc
; ac_word
=$2
3065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3068 $as_echo_n "(cached) " >&6
3070 if test -n "$ac_ct_CC"; then
3071 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir
=.
3078 for ac_exec_ext
in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_ac_ct_CC
="gcc"
3081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3091 if test -n "$ac_ct_CC"; then
3092 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3093 $as_echo "$ac_ct_CC" >&6; }
3095 { $as_echo "$as_me:$LINENO: result: no" >&5
3096 $as_echo "no" >&6; }
3099 if test "x$ac_ct_CC" = x
; then
3102 case $cross_compiling:$ac_tool_warned in
3104 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3105 whose name does not start with the host triplet. If you think this
3106 configuration is useful to you, please write to autoconf@gnu.org." >&5
3107 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3108 whose name does not start with the host triplet. If you think this
3109 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3110 ac_tool_warned
=yes ;;
3118 if test -z "$CC"; then
3119 if test -n "$ac_tool_prefix"; then
3120 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3121 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if test "${ac_cv_prog_CC+set}" = set; then
3125 $as_echo_n "(cached) " >&6
3127 if test -n "$CC"; then
3128 ac_cv_prog_CC
="$CC" # Let the user override the test.
3130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir
=.
3135 for ac_exec_ext
in '' $ac_executable_extensions; do
3136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3152 { $as_echo "$as_me:$LINENO: result: no" >&5
3153 $as_echo "no" >&6; }
3159 if test -z "$CC"; then
3160 # Extract the first word of "cc", so it can be a program name with args.
3161 set dummy cc
; ac_word
=$2
3162 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if test "${ac_cv_prog_CC+set}" = set; then
3165 $as_echo_n "(cached) " >&6
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC
="$CC" # Let the user override the test.
3171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir
=.
3176 for ac_exec_ext
in '' $ac_executable_extensions; do
3177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3178 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3179 ac_prog_rejected
=yes
3183 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 if test $ac_prog_rejected = yes; then
3191 # We found a bogon in the path, so make sure we never use it.
3192 set dummy
$ac_cv_prog_CC
3194 if test $# != 0; then
3195 # We chose a different compiler from the bogus one.
3196 # However, it has the same basename, so the bogon will be chosen
3197 # first if we set CC to just the basename; use the full file name.
3199 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3205 if test -n "$CC"; then
3206 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3207 $as_echo "$CC" >&6; }
3209 { $as_echo "$as_me:$LINENO: result: no" >&5
3210 $as_echo "no" >&6; }
3215 if test -z "$CC"; then
3216 if test -n "$ac_tool_prefix"; then
3217 for ac_prog
in cl.exe
3219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3220 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3221 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if test "${ac_cv_prog_CC+set}" = set; then
3224 $as_echo_n "(cached) " >&6
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC
="$CC" # Let the user override the test.
3229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3233 test -z "$as_dir" && as_dir
=.
3234 for ac_exec_ext
in '' $ac_executable_extensions; do
3235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3236 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3237 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 if test -n "$CC"; then
3248 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3249 $as_echo "$CC" >&6; }
3251 { $as_echo "$as_me:$LINENO: result: no" >&5
3252 $as_echo "no" >&6; }
3256 test -n "$CC" && break
3259 if test -z "$CC"; then
3261 for ac_prog
in cl.exe
3263 # Extract the first word of "$ac_prog", so it can be a program name with args.
3264 set dummy
$ac_prog; ac_word
=$2
3265 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3268 $as_echo_n "(cached) " >&6
3270 if test -n "$ac_ct_CC"; then
3271 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir
=.
3278 for ac_exec_ext
in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_ac_ct_CC
="$ac_prog"
3281 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3291 if test -n "$ac_ct_CC"; then
3292 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3293 $as_echo "$ac_ct_CC" >&6; }
3295 { $as_echo "$as_me:$LINENO: result: no" >&5
3296 $as_echo "no" >&6; }
3300 test -n "$ac_ct_CC" && break
3303 if test "x$ac_ct_CC" = x
; then
3306 case $cross_compiling:$ac_tool_warned in
3308 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3309 whose name does not start with the host triplet. If you think this
3310 configuration is useful to you, please write to autoconf@gnu.org." >&5
3311 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3312 whose name does not start with the host triplet. If you think this
3313 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3314 ac_tool_warned
=yes ;;
3323 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3324 See \`config.log' for more details." >&5
3325 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3326 See \`config.log' for more details." >&2;}
3327 { (exit 1); exit 1; }; }
3329 # Provide some information about the compiler.
3330 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3333 { (ac_try
="$ac_compiler --version >&5"
3335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3339 $as_echo "$ac_try_echo") >&5
3340 (eval "$ac_compiler --version >&5") 2>&5
3342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }
3344 { (ac_try="$ac_compiler -v >&5"
3346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3347 *) ac_try_echo
=$ac_try;;
3349 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3350 $as_echo "$ac_try_echo") >&5
3351 (eval "$ac_compiler -v >&5") 2>&5
3353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }
3355 { (ac_try
="$ac_compiler -V >&5"
3357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3361 $as_echo "$ac_try_echo") >&5
3362 (eval "$ac_compiler -V >&5") 2>&5
3364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }
3367 cat >conftest.$ac_ext <<_ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3382 ac_clean_files_save=$ac_clean_files
3383 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3384 # Try to create an executable without -o first, disregard a.out.
3385 # It will help us diagnose broken compilers, and finding out an intuition
3387 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3388 $as_echo_n "checking for C compiler default output file name... " >&6; }
3389 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3391 # The possible output files:
3392 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3395 for ac_file in $ac_files
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3404 if { (ac_try="$ac_link_default"
3406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3407 *) ac_try_echo
=$ac_try;;
3409 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3410 $as_echo "$ac_try_echo") >&5
3411 (eval "$ac_link_default") 2>&5
3413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; then
3415 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3416 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3417 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3418 # so that the user can short-circuit this test for compilers unknown to
3420 for ac_file
in $ac_files ''
3422 test -f "$ac_file" ||
continue
3424 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3427 # We found the default executable, but exeext='' is most
3431 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3433 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3435 # We set ac_cv_exeext here because the later test for it is not
3436 # safe: cross compilers may not add the suffix if given an `-o'
3437 # argument, so we may need to know it at that point already.
3438 # Even if this section looks crufty: it has the advantage of
3445 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3451 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3452 $as_echo "$ac_file" >&6; }
3453 if test -z "$ac_file"; then
3454 $as_echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.
$ac_ext >&5
3457 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3458 See \`config.log' for more details." >&5
3459 $as_echo "$as_me: error: C compiler cannot create executables
3460 See \`config.log' for more details." >&2;}
3461 { (exit 77); exit 77; }; }
3464 ac_exeext
=$ac_cv_exeext
3466 # Check that the compiler produces executables we can run. If not, either
3467 # the compiler is broken, or we cross compile.
3468 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3469 $as_echo_n "checking whether the C compiler works... " >&6; }
3470 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3471 # If not cross compiling, check that we can run a simple program.
3472 if test "$cross_compiling" != yes; then
3473 if { ac_try
='./$ac_file'
3474 { (case "(($ac_try" in
3475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3479 $as_echo "$ac_try_echo") >&5
3480 (eval "$ac_try") 2>&5
3482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3486 if test "$cross_compiling" = maybe; then
3489 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3490 If you meant to cross compile, use \`--host'.
3491 See \`config.log' for more details.
" >&5
3492 $as_echo "$as_me: error
: cannot run C compiled programs.
3493 If you meant to cross compile
, use \
`--host'.
3494 See \`config.log
' for more details." >&2;}
3495 { (exit 1); exit 1; }; }
3499 { $as_echo "$as_me:$LINENO: result: yes" >&5
3500 $as_echo "yes" >&6; }
3502 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3503 ac_clean_files=$ac_clean_files_save
3504 # Check that the compiler produces executables we can run. If not, either
3505 # the compiler is broken, or we cross compile.
3506 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3507 $as_echo_n "checking whether we are cross compiling... " >&6; }
3508 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3509 $as_echo "$cross_compiling" >&6; }
3511 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3512 $as_echo_n "checking for suffix of executables... " >&6; }
3513 if { (ac_try="$ac_link"
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3519 $as_echo "$ac_try_echo") >&5
3520 (eval "$ac_link") 2>&5
3522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; then
3524 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3525 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3526 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3528 for ac_file
in conftest.exe conftest conftest.
*; do
3529 test -f "$ac_file" ||
continue
3531 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3532 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3538 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3539 See \`config.log' for more details." >&5
3540 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3541 See \`config.log' for more details." >&2;}
3542 { (exit 1); exit 1; }; }
3545 rm -f conftest
$ac_cv_exeext
3546 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3547 $as_echo "$ac_cv_exeext" >&6; }
3549 rm -f conftest.
$ac_ext
3550 EXEEXT
=$ac_cv_exeext
3552 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3553 $as_echo_n "checking for suffix of object files... " >&6; }
3554 if test "${ac_cv_objext+set}" = set; then
3555 $as_echo_n "(cached) " >&6
3557 cat >conftest.
$ac_ext <<_ACEOF
3560 cat confdefs.h
>>conftest.
$ac_ext
3561 cat >>conftest.
$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3572 rm -f conftest.o conftest.obj
3573 if { (ac_try
="$ac_compile"
3575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3579 $as_echo "$ac_try_echo") >&5
3580 (eval "$ac_compile") 2>&5
3582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; then
3584 for ac_file in conftest.o conftest.obj conftest.*; do
3585 test -f "$ac_file" || continue;
3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3588 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3593 $as_echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3596 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3597 See \`config.log
' for more details." >&5
3598 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3599 See \`config.log' for more details.
" >&2;}
3600 { (exit 1); exit 1; }; }
3603 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3605 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3606 $as_echo "$ac_cv_objext" >&6; }
3607 OBJEXT=$ac_cv_objext
3609 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3610 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3611 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3612 $as_echo_n "(cached
) " >&6
3614 cat >conftest.$ac_ext <<_ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3632 rm -f conftest.$ac_objext
3633 if { (ac_try="$ac_compile"
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3638 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3639 $as_echo "$ac_try_echo") >&5
3640 (eval "$ac_compile") 2>conftest.er1
3642 grep -v '^ *+' conftest.er1 >conftest.err
3644 cat conftest.err >&5
3645 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3646 (exit $ac_status); } && {
3647 test -z "$ac_c_werror_flag" ||
3648 test ! -s conftest.err
3649 } && test -s conftest.$ac_objext; then
3652 $as_echo "$as_me: failed program was
:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3662 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3663 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3664 if test $ac_compiler_gnu = yes; then
3669 ac_test_CFLAGS=${CFLAGS+set}
3670 ac_save_CFLAGS=$CFLAGS
3671 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3672 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3673 if test "${ac_cv_prog_cc_g+set}" = set; then
3674 $as_echo_n "(cached
) " >&6
3676 ac_save_c_werror_flag=$ac_c_werror_flag
3677 ac_c_werror_flag=yes
3680 cat >conftest.$ac_ext <<_ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3695 rm -f conftest.$ac_objext
3696 if { (ac_try="$ac_compile"
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3702 $as_echo "$ac_try_echo") >&5
3703 (eval "$ac_compile") 2>conftest.er1
3705 grep -v '^ *+' conftest.er1 >conftest.err
3707 cat conftest.err >&5
3708 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3709 (exit $ac_status); } && {
3710 test -z "$ac_c_werror_flag" ||
3711 test ! -s conftest.err
3712 } && test -s conftest.$ac_objext; then
3715 $as_echo "$as_me: failed program was
:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3719 cat >conftest.$ac_ext <<_ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h. */
3734 rm -f conftest.$ac_objext
3735 if { (ac_try="$ac_compile"
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3740 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3741 $as_echo "$ac_try_echo") >&5
3742 (eval "$ac_compile") 2>conftest.er1
3744 grep -v '^ *+' conftest.er1 >conftest.err
3746 cat conftest.err >&5
3747 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3748 (exit $ac_status); } && {
3749 test -z "$ac_c_werror_flag" ||
3750 test ! -s conftest.err
3751 } && test -s conftest.$ac_objext; then
3754 $as_echo "$as_me: failed program was
:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 ac_c_werror_flag=$ac_save_c_werror_flag
3759 cat >conftest.$ac_ext <<_ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3774 rm -f conftest.$ac_objext
3775 if { (ac_try="$ac_compile"
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3780 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3781 $as_echo "$ac_try_echo") >&5
3782 (eval "$ac_compile") 2>conftest.er1
3784 grep -v '^ *+' conftest.er1 >conftest.err
3786 cat conftest.err >&5
3787 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3788 (exit $ac_status); } && {
3789 test -z "$ac_c_werror_flag" ||
3790 test ! -s conftest.err
3791 } && test -s conftest.$ac_objext; then
3794 $as_echo "$as_me: failed program was
:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 ac_c_werror_flag=$ac_save_c_werror_flag
3809 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3810 $as_echo "$ac_cv_prog_cc_g" >&6; }
3811 if test "$ac_test_CFLAGS" = set; then
3812 CFLAGS=$ac_save_CFLAGS
3813 elif test $ac_cv_prog_cc_g = yes; then
3814 if test "$GCC" = yes; then
3820 if test "$GCC" = yes; then
3826 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3827 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3828 if test "${ac_cv_prog_cc_c89+set}" = set; then
3829 $as_echo_n "(cached
) " >&6
3831 ac_cv_prog_cc_c89=no
3833 cat >conftest.$ac_ext <<_ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3841 #include <sys/types.h>
3842 #include <sys/stat.h>
3843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3844 struct buf { int x; };
3845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3846 static char *e (p, i)
3852 static char *f (char * (*g) (char **, int), char **p, ...)
3857 s = g (p, va_arg (v,int));
3862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3863 function prototypes and stuff, but not '\xHH' hex character constants.
3864 These don't provoke an error unfortunately, instead are silently treated
3865 as 'x'. The following induces an error, until -std is added to get
3866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3867 array size at least. It's necessary to write '\x00'==0 to get something
3868 that's true only with -std. */
3869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3872 inside strings and character constants. */
3874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3876 int test (int i, double x);
3877 struct s1 {int (*f) (int a);};
3878 struct s2 {int (*f) (double a);};
3879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3885 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3893 CC="$ac_save_CC $ac_arg"
3894 rm -f conftest.$ac_objext
3895 if { (ac_try="$ac_compile"
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3900 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3901 $as_echo "$ac_try_echo") >&5
3902 (eval "$ac_compile") 2>conftest.er1
3904 grep -v '^ *+' conftest.er1 >conftest.err
3906 cat conftest.err >&5
3907 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3908 (exit $ac_status); } && {
3909 test -z "$ac_c_werror_flag" ||
3910 test ! -s conftest.err
3911 } && test -s conftest.$ac_objext; then
3912 ac_cv_prog_cc_c89=$ac_arg
3914 $as_echo "$as_me: failed program was
:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3920 rm -f core conftest.err conftest.$ac_objext
3921 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3923 rm -f conftest.$ac_ext
3928 case "x
$ac_cv_prog_cc_c89" in
3930 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3931 $as_echo "none needed
" >&6; } ;;
3933 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3934 $as_echo "unsupported
" >&6; } ;;
3936 CC="$CC $ac_cv_prog_cc_c89"
3937 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3938 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3943 ac_cpp='$CPP $CPPFLAGS'
3944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949 # On Suns, sometimes $CPP names a directory.
3950 if test -n "$CPP" && test -d "$CPP"; then
3954 ## If not using gcc, and on Solaris, and no CPP specified, see if
3955 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3956 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3957 test x"$CPP" = x; then
3958 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3959 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3961 if test "${emacs_cv_sunpro_c+set}" = set; then
3962 $as_echo_n "(cached
) " >&6
3964 cat >conftest.$ac_ext <<_ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3982 rm -f conftest.$ac_objext conftest$ac_exeext
3983 if { (ac_try="$ac_link"
3985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986 *) ac_try_echo=$ac_try;;
3988 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3989 $as_echo "$ac_try_echo") >&5
3990 (eval "$ac_link") 2>conftest.er1
3992 grep -v '^ *+' conftest.er1 >conftest.err
3994 cat conftest.err >&5
3995 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3996 (exit $ac_status); } && {
3997 test -z "$ac_c_werror_flag" ||
3998 test ! -s conftest.err
3999 } && test -s conftest$ac_exeext && {
4000 test "$cross_compiling" = yes ||
4001 $as_test_x conftest$ac_exeext
4003 emacs_cv_sunpro_c=yes
4005 $as_echo "$as_me: failed program was
:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4008 emacs_cv_sunpro_c=no
4011 rm -rf conftest.dSYM
4012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4013 conftest$ac_exeext conftest.$ac_ext
4016 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4017 $as_echo "$emacs_cv_sunpro_c" >&6; }
4019 if test x"$emacs_cv_sunpro_c" = xyes; then
4020 NON_GNU_CPP="$CC -E -Xs"
4024 #### Some systems specify a CPP to use unless we are using GCC.
4025 #### Now that we know whether we are using GCC, we can decide whether
4026 #### to use that one.
4027 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4032 #### Some systems specify a CC to use unless we are using GCC.
4033 #### Now that we know whether we are using GCC, we can decide whether
4034 #### to use that one.
4035 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4036 test x$cc_specified != xyes
4041 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4043 CC="$CC $GCC_TEST_OPTIONS"
4046 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4048 CC="$CC $NON_GCC_TEST_OPTIONS"
4052 ac_cpp='$CPP $CPPFLAGS'
4053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4057 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4058 # On Suns, sometimes $CPP names a directory.
4059 if test -n "$CPP" && test -d "$CPP"; then
4062 if test -z "$CPP"; then
4063 if test "${ac_cv_prog_CPP+set}" = set; then
4064 $as_echo_n "(cached
) " >&6
4066 # Double quotes because CPP needs to be expanded
4067 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4070 for ac_c_preproc_warn_flag in '' yes
4072 # Use a header file that comes with gcc, so configuring glibc
4073 # with a fresh cross-compiler works.
4074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4075 # <limits.h> exists even on freestanding compilers.
4076 # On the NeXT, cc -E runs the code through the compiler's parser,
4077 # not just through cpp. "Syntax error
" is here to catch this case.
4078 cat >conftest.$ac_ext <<_ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4085 # include <limits.h>
4087 # include <assert.h>
4091 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4097 $as_echo "$ac_try_echo") >&5
4098 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4100 grep -v '^ *+' conftest.er1 >conftest.err
4102 cat conftest.err >&5
4103 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4104 (exit $ac_status); } >/dev/null && {
4105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4106 test ! -s conftest.err
4110 $as_echo "$as_me: failed program was
:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 # Broken: fails on valid input.
4117 rm -f conftest.err conftest.$ac_ext
4119 # OK, works on sane cases. Now check whether nonexistent headers
4120 # can be detected and how.
4121 cat >conftest.$ac_ext <<_ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127 #include <ac_nonexistent.h>
4129 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4134 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4135 $as_echo "$ac_try_echo") >&5
4136 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4138 grep -v '^ *+' conftest.er1 >conftest.err
4140 cat conftest.err >&5
4141 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4142 (exit $ac_status); } >/dev/null && {
4143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4144 test ! -s conftest.err
4146 # Broken: success on invalid input.
4149 $as_echo "$as_me: failed program was
:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4152 # Passes both tests.
4157 rm -f conftest.err conftest.$ac_ext
4160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4161 rm -f conftest.err conftest.$ac_ext
4162 if $ac_preproc_ok; then
4174 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4175 $as_echo "$CPP" >&6; }
4177 for ac_c_preproc_warn_flag in '' yes
4179 # Use a header file that comes with gcc, so configuring glibc
4180 # with a fresh cross-compiler works.
4181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4182 # <limits.h> exists even on freestanding compilers.
4183 # On the NeXT, cc -E runs the code through the compiler's parser,
4184 # not just through cpp. "Syntax error
" is here to catch this case.
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4192 # include <limits.h>
4194 # include <assert.h>
4198 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4204 $as_echo "$ac_try_echo") >&5
4205 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4207 grep -v '^ *+' conftest.er1 >conftest.err
4209 cat conftest.err >&5
4210 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4211 (exit $ac_status); } >/dev/null && {
4212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4213 test ! -s conftest.err
4217 $as_echo "$as_me: failed program was
:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4220 # Broken: fails on valid input.
4224 rm -f conftest.err conftest.$ac_ext
4226 # OK, works on sane cases. Now check whether nonexistent headers
4227 # can be detected and how.
4228 cat >conftest.$ac_ext <<_ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4234 #include <ac_nonexistent.h>
4236 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4241 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4242 $as_echo "$ac_try_echo") >&5
4243 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4245 grep -v '^ *+' conftest.er1 >conftest.err
4247 cat conftest.err >&5
4248 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4249 (exit $ac_status); } >/dev/null && {
4250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4251 test ! -s conftest.err
4253 # Broken: success on invalid input.
4256 $as_echo "$as_me: failed program was
:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4259 # Passes both tests.
4264 rm -f conftest.err conftest.$ac_ext
4267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4268 rm -f conftest.err conftest.$ac_ext
4269 if $ac_preproc_ok; then
4272 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4273 See \
`config.log' for more details." >&5
4274 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4275 See \`config.log
' for more details." >&2;}
4276 { (exit 1); exit 1; }; }
4280 ac_cpp='$CPP $CPPFLAGS'
4281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4282 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4286 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4287 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4288 if test "${ac_cv_path_GREP+set}" = set; then
4289 $as_echo_n "(cached) " >&6
4291 if test -z "$GREP"; then
4292 ac_path_GREP_found=false
4293 # Loop through the user's path and
test for each of PROGNAME-LIST
4294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4295 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4298 test -z "$as_dir" && as_dir
=.
4299 for ac_prog
in grep ggrep
; do
4300 for ac_exec_ext
in '' $ac_executable_extensions; do
4301 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4302 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4303 # Check for GNU ac_path_GREP and select it if it is found.
4304 # Check for GNU $ac_path_GREP
4305 case `"$ac_path_GREP" --version 2>&1` in
4307 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4310 $as_echo_n 0123456789 >"conftest.in"
4313 cat "conftest.in" "conftest.in" >"conftest.tmp"
4314 mv "conftest.tmp" "conftest.in"
4315 cp "conftest.in" "conftest.nl"
4316 $as_echo 'GREP' >> "conftest.nl"
4317 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4318 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4319 ac_count
=`expr $ac_count + 1`
4320 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4321 # Best one so far, save it but keep looking for a better one
4322 ac_cv_path_GREP
="$ac_path_GREP"
4323 ac_path_GREP_max
=$ac_count
4325 # 10*(2^10) chars as input seems more than enough
4326 test $ac_count -gt 10 && break
4328 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4331 $ac_path_GREP_found && break 3
4336 if test -z "$ac_cv_path_GREP"; then
4337 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4338 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4339 { (exit 1); exit 1; }; }
4342 ac_cv_path_GREP
=$GREP
4346 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4347 $as_echo "$ac_cv_path_GREP" >&6; }
4348 GREP
="$ac_cv_path_GREP"
4351 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4352 $as_echo_n "checking for egrep... " >&6; }
4353 if test "${ac_cv_path_EGREP+set}" = set; then
4354 $as_echo_n "(cached) " >&6
4356 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4357 then ac_cv_path_EGREP
="$GREP -E"
4359 if test -z "$EGREP"; then
4360 ac_path_EGREP_found
=false
4361 # Loop through the user's path and test for each of PROGNAME-LIST
4362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4363 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4366 test -z "$as_dir" && as_dir
=.
4367 for ac_prog
in egrep; do
4368 for ac_exec_ext
in '' $ac_executable_extensions; do
4369 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4370 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4371 # Check for GNU ac_path_EGREP and select it if it is found.
4372 # Check for GNU $ac_path_EGREP
4373 case `"$ac_path_EGREP" --version 2>&1` in
4375 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4378 $as_echo_n 0123456789 >"conftest.in"
4381 cat "conftest.in" "conftest.in" >"conftest.tmp"
4382 mv "conftest.tmp" "conftest.in"
4383 cp "conftest.in" "conftest.nl"
4384 $as_echo 'EGREP' >> "conftest.nl"
4385 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4386 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4387 ac_count
=`expr $ac_count + 1`
4388 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4389 # Best one so far, save it but keep looking for a better one
4390 ac_cv_path_EGREP
="$ac_path_EGREP"
4391 ac_path_EGREP_max
=$ac_count
4393 # 10*(2^10) chars as input seems more than enough
4394 test $ac_count -gt 10 && break
4396 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4399 $ac_path_EGREP_found && break 3
4404 if test -z "$ac_cv_path_EGREP"; then
4405 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4406 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4407 { (exit 1); exit 1; }; }
4410 ac_cv_path_EGREP
=$EGREP
4415 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4416 $as_echo "$ac_cv_path_EGREP" >&6; }
4417 EGREP
="$ac_cv_path_EGREP"
4420 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4421 $as_echo_n "checking for ANSI C header files... " >&6; }
4422 if test "${ac_cv_header_stdc+set}" = set; then
4423 $as_echo_n "(cached) " >&6
4425 cat >conftest.
$ac_ext <<_ACEOF
4428 cat confdefs.h
>>conftest.
$ac_ext
4429 cat >>conftest.
$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4444 rm -f conftest.
$ac_objext
4445 if { (ac_try
="$ac_compile"
4447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4451 $as_echo "$ac_try_echo") >&5
4452 (eval "$ac_compile") 2>conftest.er1
4454 grep -v '^ *+' conftest.er1 >conftest.err
4456 cat conftest.err >&5
4457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } && {
4459 test -z "$ac_c_werror_flag" ||
4460 test ! -s conftest.err
4461 } && test -s conftest.$ac_objext; then
4462 ac_cv_header_stdc=yes
4464 $as_echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ac_cv_header_stdc=no
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 if test $ac_cv_header_stdc = yes; then
4473 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4474 cat >conftest.$ac_ext <<_ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4484 $EGREP "memchr" >/dev/null 2>&1; then
4487 ac_cv_header_stdc=no
4493 if test $ac_cv_header_stdc = yes; then
4494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4495 cat >conftest.$ac_ext <<_ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4505 $EGREP "free" >/dev/null 2>&1; then
4508 ac_cv_header_stdc=no
4514 if test $ac_cv_header_stdc = yes; then
4515 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4516 if test "$cross_compiling" = yes; then
4519 cat >conftest.$ac_ext <<_ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4527 #if ((' ' & 0x0FF) == 0x020)
4528 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4529 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4531 # define ISLOWER(c) \
4532 (('a' <= (c) && (c) <= 'i') \
4533 || ('j' <= (c) && (c) <= 'r') \
4534 || ('s' <= (c) && (c) <= 'z'))
4535 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4538 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4543 for (i = 0; i < 256; i++)
4544 if (XOR (islower (i), ISLOWER (i))
4545 || toupper (i) != TOUPPER (i))
4550 rm -f conftest$ac_exeext
4551 if { (ac_try="$ac_link"
4553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4554 *) ac_try_echo
=$ac_try;;
4556 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4557 $as_echo "$ac_try_echo") >&5
4558 (eval "$ac_link") 2>&5
4560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4562 { (case "(($ac_try" in
4563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4567 $as_echo "$ac_try_echo") >&5
4568 (eval "$ac_try") 2>&5
4570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; }; then
4574 $as_echo "$as_me: program exited with status $ac_status" >&5
4575 $as_echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4579 ac_cv_header_stdc=no
4581 rm -rf conftest.dSYM
4582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4588 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4589 $as_echo "$ac_cv_header_stdc" >&6; }
4590 if test $ac_cv_header_stdc = yes; then
4592 cat >>confdefs.h <<\_ACEOF
4593 #define STDC_HEADERS 1
4598 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4608 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4609 inttypes.h stdint.h unistd.h
4611 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4612 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4613 $as_echo_n "checking for $ac_header... " >&6; }
4614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4615 $as_echo_n "(cached) " >&6
4617 cat >conftest.$ac_ext <<_ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623 $ac_includes_default
4625 #include <$ac_header>
4627 rm -f conftest.$ac_objext
4628 if { (ac_try="$ac_compile"
4630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4631 *) ac_try_echo
=$ac_try;;
4633 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4634 $as_echo "$ac_try_echo") >&5
4635 (eval "$ac_compile") 2>conftest.er1
4637 grep -v '^ *+' conftest.er1
>conftest.err
4639 cat conftest.err
>&5
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && {
4642 test -z "$ac_c_werror_flag" ||
4643 test ! -s conftest.err
4644 } && test -s conftest.
$ac_objext; then
4645 eval "$as_ac_Header=yes"
4647 $as_echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.
$ac_ext >&5
4650 eval "$as_ac_Header=no"
4653 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4655 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4656 $as_echo "$as_val"'`
4657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4658 $as_echo "$ac_res" >&6; }
4659 if test `eval 'as_val=${'$as_ac_Header'}
4660 $as_echo "$as_val"'` = yes; then
4661 cat >>confdefs.h
<<_ACEOF
4662 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4671 if test "${ac_cv_header_minix_config_h+set}" = set; then
4672 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4673 $as_echo_n "checking for minix/config.h... " >&6; }
4674 if test "${ac_cv_header_minix_config_h+set}" = set; then
4675 $as_echo_n "(cached) " >&6
4677 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4678 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4680 # Is the header compilable?
4681 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4682 $as_echo_n "checking minix/config.h usability... " >&6; }
4683 cat >conftest.
$ac_ext <<_ACEOF
4686 cat confdefs.h
>>conftest.
$ac_ext
4687 cat >>conftest.
$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4689 $ac_includes_default
4690 #include <minix/config.h>
4692 rm -f conftest.
$ac_objext
4693 if { (ac_try
="$ac_compile"
4695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4699 $as_echo "$ac_try_echo") >&5
4700 (eval "$ac_compile") 2>conftest.er1
4702 grep -v '^ *+' conftest.er1 >conftest.err
4704 cat conftest.err >&5
4705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } && {
4707 test -z "$ac_c_werror_flag" ||
4708 test ! -s conftest.err
4709 } && test -s conftest.$ac_objext; then
4710 ac_header_compiler=yes
4712 $as_echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4715 ac_header_compiler=no
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4720 $as_echo "$ac_header_compiler" >&6; }
4722 # Is the header present?
4723 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4724 $as_echo_n "checking minix/config.h presence... " >&6; }
4725 cat >conftest.$ac_ext <<_ACEOF
4728 cat confdefs.h >>conftest.$ac_ext
4729 cat >>conftest.$ac_ext <<_ACEOF
4730 /* end confdefs.h. */
4731 #include <minix/config.h>
4733 if { (ac_try="$ac_cpp conftest.$ac_ext"
4735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4736 *) ac_try_echo
=$ac_try;;
4738 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4739 $as_echo "$ac_try_echo") >&5
4740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4742 grep -v '^ *+' conftest.er1
>conftest.err
4744 cat conftest.err
>&5
4745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } >/dev
/null
&& {
4747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4748 test ! -s conftest.err
4750 ac_header_preproc
=yes
4752 $as_echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.
$ac_ext >&5
4755 ac_header_preproc
=no
4758 rm -f conftest.err conftest.
$ac_ext
4759 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4760 $as_echo "$ac_header_preproc" >&6; }
4762 # So? What about this header?
4763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4765 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4766 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4767 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4768 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4769 ac_header_preproc
=yes
4772 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4773 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4774 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4775 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4776 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4777 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4778 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4779 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4780 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4781 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4782 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4783 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4787 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4788 $as_echo_n "checking for minix/config.h... " >&6; }
4789 if test "${ac_cv_header_minix_config_h+set}" = set; then
4790 $as_echo_n "(cached) " >&6
4792 ac_cv_header_minix_config_h
=$ac_header_preproc
4794 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4795 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4798 if test $ac_cv_header_minix_config_h = yes; then
4805 if test "$MINIX" = yes; then
4807 cat >>confdefs.h
<<\_ACEOF
4808 #define _POSIX_SOURCE 1
4812 cat >>confdefs.h
<<\_ACEOF
4813 #define _POSIX_1_SOURCE 2
4817 cat >>confdefs.h
<<\_ACEOF
4825 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4826 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4827 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4828 $as_echo_n "(cached) " >&6
4830 cat >conftest.
$ac_ext <<_ACEOF
4833 cat confdefs.h
>>conftest.
$ac_ext
4834 cat >>conftest.
$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4837 # define __EXTENSIONS__ 1
4838 $ac_includes_default
4847 rm -f conftest.
$ac_objext
4848 if { (ac_try
="$ac_compile"
4850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4854 $as_echo "$ac_try_echo") >&5
4855 (eval "$ac_compile") 2>conftest.er1
4857 grep -v '^ *+' conftest.er1 >conftest.err
4859 cat conftest.err >&5
4860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } && {
4862 test -z "$ac_c_werror_flag" ||
4863 test ! -s conftest.err
4864 } && test -s conftest.$ac_objext; then
4865 ac_cv_safe_to_define___extensions__=yes
4867 $as_echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4870 ac_cv_safe_to_define___extensions__=no
4873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4876 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4877 test $ac_cv_safe_to_define___extensions__ = yes &&
4878 cat >>confdefs.h <<\_ACEOF
4879 #define __EXTENSIONS__ 1
4882 cat >>confdefs.h <<\_ACEOF
4883 #define _ALL_SOURCE 1
4886 cat >>confdefs.h <<\_ACEOF
4887 #define _GNU_SOURCE 1
4890 cat >>confdefs.h <<\_ACEOF
4891 #define _POSIX_PTHREAD_SEMANTICS 1
4894 cat >>confdefs.h <<\_ACEOF
4895 #define _TANDEM_SOURCE 1
4900 ### Use -Wno-pointer-sign if the compiler supports it
4901 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4902 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4903 SAVE_CFLAGS="$CFLAGS"
4904 CFLAGS="$CFLAGS -Wno-pointer-sign"
4905 cat >conftest.$ac_ext <<_ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4920 rm -f conftest.$ac_objext
4921 if { (ac_try="$ac_compile"
4923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4924 *) ac_try_echo
=$ac_try;;
4926 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4927 $as_echo "$ac_try_echo") >&5
4928 (eval "$ac_compile") 2>conftest.er1
4930 grep -v '^ *+' conftest.er1
>conftest.err
4932 cat conftest.err
>&5
4933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } && {
4935 test -z "$ac_c_werror_flag" ||
4936 test ! -s conftest.err
4937 } && test -s conftest.
$ac_objext; then
4940 $as_echo "$as_me: failed program was:" >&5
4941 sed 's/^/| /' conftest.
$ac_ext >&5
4946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4947 if test $has_option = yes; then
4948 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4950 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4951 $as_echo "$has_option" >&6; }
4952 CFLAGS
="$SAVE_CFLAGS"
4956 ### Use -Wdeclaration-after-statement if the compiler supports it
4957 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4958 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4959 SAVE_CFLAGS
="$CFLAGS"
4960 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4961 cat >conftest.
$ac_ext <<_ACEOF
4964 cat confdefs.h
>>conftest.
$ac_ext
4965 cat >>conftest.
$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4976 rm -f conftest.
$ac_objext
4977 if { (ac_try
="$ac_compile"
4979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4983 $as_echo "$ac_try_echo") >&5
4984 (eval "$ac_compile") 2>conftest.er1
4986 grep -v '^ *+' conftest.er1 >conftest.err
4988 cat conftest.err >&5
4989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } && {
4991 test -z "$ac_c_werror_flag" ||
4992 test ! -s conftest.err
4993 } && test -s conftest.$ac_objext; then
4996 $as_echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 if test $has_option = yes; then
5004 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5006 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5007 $as_echo "$has_option" >&6; }
5008 CFLAGS="$SAVE_CFLAGS"
5012 #### Some other nice autoconf tests.
5015 ac_cpp='$CPP $CPPFLAGS'
5016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5019 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5020 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5021 # On Suns, sometimes $CPP names a directory.
5022 if test -n "$CPP" && test -d "$CPP"; then
5025 if test -z "$CPP"; then
5026 if test "${ac_cv_prog_CPP+set}" = set; then
5027 $as_echo_n "(cached) " >&6
5029 # Double quotes because CPP needs to be expanded
5030 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5033 for ac_c_preproc_warn_flag in '' yes
5035 # Use a header file that comes with gcc, so configuring glibc
5036 # with a fresh cross-compiler works.
5037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5038 # <limits.h> exists even on freestanding compilers.
5039 # On the NeXT, cc -E runs the code through the compiler's parser,
5040 # not just through cpp. "Syntax error" is here to catch this case.
5041 cat >conftest.$ac_ext <<_ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5048 # include <limits.h>
5050 # include <assert.h>
5054 if { (ac_try="$ac_cpp conftest.$ac_ext"
5056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5057 *) ac_try_echo
=$ac_try;;
5059 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5060 $as_echo "$ac_try_echo") >&5
5061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5063 grep -v '^ *+' conftest.er1
>conftest.err
5065 cat conftest.err
>&5
5066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } >/dev
/null
&& {
5068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5069 test ! -s conftest.err
5073 $as_echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.
$ac_ext >&5
5076 # Broken: fails on valid input.
5080 rm -f conftest.err conftest.
$ac_ext
5082 # OK, works on sane cases. Now check whether nonexistent headers
5083 # can be detected and how.
5084 cat >conftest.
$ac_ext <<_ACEOF
5087 cat confdefs.h
>>conftest.
$ac_ext
5088 cat >>conftest.
$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 #include <ac_nonexistent.h>
5092 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5098 $as_echo "$ac_try_echo") >&5
5099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5101 grep -v '^ *+' conftest.er1 >conftest.err
5103 cat conftest.err >&5
5104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } >/dev/null && {
5106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5109 # Broken: success on invalid input.
5112 $as_echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5115 # Passes both tests.
5120 rm -f conftest.err conftest.$ac_ext
5123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5124 rm -f conftest.err conftest.
$ac_ext
5125 if $ac_preproc_ok; then
5137 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5138 $as_echo "$CPP" >&6; }
5140 for ac_c_preproc_warn_flag
in '' yes
5142 # Use a header file that comes with gcc, so configuring glibc
5143 # with a fresh cross-compiler works.
5144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5145 # <limits.h> exists even on freestanding compilers.
5146 # On the NeXT, cc -E runs the code through the compiler's parser,
5147 # not just through cpp. "Syntax error" is here to catch this case.
5148 cat >conftest.
$ac_ext <<_ACEOF
5151 cat confdefs.h
>>conftest.
$ac_ext
5152 cat >>conftest.
$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5155 # include <limits.h>
5157 # include <assert.h>
5161 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5167 $as_echo "$ac_try_echo") >&5
5168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5170 grep -v '^ *+' conftest.er1 >conftest.err
5172 cat conftest.err >&5
5173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } >/dev/null && {
5175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5176 test ! -s conftest.err
5180 $as_echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5183 # Broken: fails on valid input.
5187 rm -f conftest.err conftest.$ac_ext
5189 # OK, works on sane cases. Now check whether nonexistent headers
5190 # can be detected and how.
5191 cat >conftest.$ac_ext <<_ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h. */
5197 #include <ac_nonexistent.h>
5199 if { (ac_try="$ac_cpp conftest.$ac_ext"
5201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5202 *) ac_try_echo
=$ac_try;;
5204 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5205 $as_echo "$ac_try_echo") >&5
5206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5208 grep -v '^ *+' conftest.er1
>conftest.err
5210 cat conftest.err
>&5
5211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } >/dev
/null
&& {
5213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5214 test ! -s conftest.err
5216 # Broken: success on invalid input.
5219 $as_echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.
$ac_ext >&5
5222 # Passes both tests.
5227 rm -f conftest.err conftest.
$ac_ext
5230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5231 rm -f conftest.err conftest.
$ac_ext
5232 if $ac_preproc_ok; then
5235 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5236 See \`config.log' for more details." >&5
5237 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5238 See \`config.log' for more details." >&2;}
5239 { (exit 1); exit 1; }; }
5243 ac_cpp
='$CPP $CPPFLAGS'
5244 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5248 # Find a good install program. We prefer a C program (faster),
5249 # so one script is as good as another. But avoid the broken or
5250 # incompatible versions:
5251 # SysV /etc/install, /usr/sbin/install
5252 # SunOS /usr/etc/install
5253 # IRIX /sbin/install
5255 # AmigaOS /C/install, which installs bootblocks on floppy discs
5256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5259 # OS/2's system install, which has a completely different semantic
5260 # ./install, which can be erroneously created by make from ./install.sh.
5261 # Reject install programs that cannot install multiple files.
5262 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5263 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5264 if test -z "$INSTALL"; then
5265 if test "${ac_cv_path_install+set}" = set; then
5266 $as_echo_n "(cached) " >&6
5268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5272 test -z "$as_dir" && as_dir
=.
5273 # Account for people who put trailing slashes in PATH elements.
5275 .
/ | .
// |
/cC
/* | \
5276 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5277 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5280 # OSF1 and SCO ODT 3.0 have their own names for install.
5281 # Don't use installbsd from OSF since it installs stuff as root
5283 for ac_prog
in ginstall scoinst
install; do
5284 for ac_exec_ext
in '' $ac_executable_extensions; do
5285 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5286 if test $ac_prog = install &&
5287 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5288 # AIX install. It has an incompatible calling convention.
5290 elif test $ac_prog = install &&
5291 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5292 # program-specific install script used by HP pwplus--don't use.
5295 rm -rf conftest.one conftest.two conftest.dir
5296 echo one
> conftest.one
5297 echo two
> conftest.two
5299 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5300 test -s conftest.one
&& test -s conftest.two
&&
5301 test -s conftest.dir
/conftest.one
&&
5302 test -s conftest.dir
/conftest.two
5304 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5317 rm -rf conftest.one conftest.two conftest.dir
5320 if test "${ac_cv_path_install+set}" = set; then
5321 INSTALL
=$ac_cv_path_install
5323 # As a last resort, use the slow shell script. Don't cache a
5324 # value for INSTALL within a source directory, because that will
5325 # break other packages using the cache if that directory is
5326 # removed, or if the value is a relative name.
5327 INSTALL
=$ac_install_sh
5330 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5331 $as_echo "$INSTALL" >&6; }
5333 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5334 # It thinks the first close brace ends the variable substitution.
5335 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5337 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5339 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5341 if test "x$RANLIB" = x
; then
5342 if test -n "$ac_tool_prefix"; then
5343 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5344 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if test "${ac_cv_prog_RANLIB+set}" = set; then
5348 $as_echo_n "(cached) " >&6
5350 if test -n "$RANLIB"; then
5351 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5357 test -z "$as_dir" && as_dir
=.
5358 for ac_exec_ext
in '' $ac_executable_extensions; do
5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 RANLIB
=$ac_cv_prog_RANLIB
5371 if test -n "$RANLIB"; then
5372 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5373 $as_echo "$RANLIB" >&6; }
5375 { $as_echo "$as_me:$LINENO: result: no" >&5
5376 $as_echo "no" >&6; }
5381 if test -z "$ac_cv_prog_RANLIB"; then
5382 ac_ct_RANLIB
=$RANLIB
5383 # Extract the first word of "ranlib", so it can be a program name with args.
5384 set dummy ranlib
; ac_word
=$2
5385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5388 $as_echo_n "(cached) " >&6
5390 if test -n "$ac_ct_RANLIB"; then
5391 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5397 test -z "$as_dir" && as_dir
=.
5398 for ac_exec_ext
in '' $ac_executable_extensions; do
5399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5411 if test -n "$ac_ct_RANLIB"; then
5412 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5413 $as_echo "$ac_ct_RANLIB" >&6; }
5415 { $as_echo "$as_me:$LINENO: result: no" >&5
5416 $as_echo "no" >&6; }
5419 if test "x$ac_ct_RANLIB" = x
; then
5422 case $cross_compiling:$ac_tool_warned in
5424 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5425 whose name does not start with the host triplet. If you think this
5426 configuration is useful to you, please write to autoconf@gnu.org." >&5
5427 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5428 whose name does not start with the host triplet. If you think this
5429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5430 ac_tool_warned
=yes ;;
5432 RANLIB
=$ac_ct_RANLIB
5435 RANLIB
="$ac_cv_prog_RANLIB"
5440 ## Although we're running on an amd64 kernel, we're actually compiling for
5441 ## the x86 architecture. The user should probably have provided an
5442 ## explicit --build to `configure', but if everything else than the kernel
5443 ## is running in i386 mode, we can help them out.
5444 if test "$machine" = "amdx86-64"; then
5445 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5446 $as_echo_n "checking whether i386 is declared... " >&6; }
5447 if test "${ac_cv_have_decl_i386+set}" = set; then
5448 $as_echo_n "(cached) " >&6
5450 cat >conftest.
$ac_ext <<_ACEOF
5453 cat confdefs.h
>>conftest.
$ac_ext
5454 cat >>conftest.
$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5456 $ac_includes_default
5468 rm -f conftest.
$ac_objext
5469 if { (ac_try
="$ac_compile"
5471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5475 $as_echo "$ac_try_echo") >&5
5476 (eval "$ac_compile") 2>conftest.er1
5478 grep -v '^ *+' conftest.er1 >conftest.err
5480 cat conftest.err >&5
5481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } && {
5483 test -z "$ac_c_werror_flag" ||
5484 test ! -s conftest.err
5485 } && test -s conftest.$ac_objext; then
5486 ac_cv_have_decl_i386=yes
5488 $as_echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5491 ac_cv_have_decl_i386=no
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5497 $as_echo "$ac_cv_have_decl_i386" >&6; }
5499 if test "$ac_cv_have_decl_i386" = "yes"; then
5500 canonical=`echo "$canonical" |
sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5502 machfile="m/${machine}.h"
5506 # Extract the first word of "install-info", so it can be a program name with args.
5507 set dummy install-info; ac_word=$2
5508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5511 $as_echo_n "(cached) " >&6
5513 case $INSTALL_INFO in
5515 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 test -z "$as_dir" && as_dir=.
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5525 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5537 if test -n "$INSTALL_INFO"; then
5538 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5539 $as_echo "$INSTALL_INFO" >&6; }
5541 { $as_echo "$as_me:$LINENO: result: no" >&5
5542 $as_echo "no" >&6; }
5546 # Extract the first word of "install-info", so it can be a program name with args.
5547 set dummy install-info; ac_word=$2
5548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5551 $as_echo_n "(cached) " >&6
5553 case $INSTALL_INFO in
5555 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in /usr/sbin
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5565 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5566 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5577 if test -n "$INSTALL_INFO"; then
5578 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5579 $as_echo "$INSTALL_INFO" >&6; }
5581 { $as_echo "$as_me:$LINENO: result: no" >&5
5582 $as_echo "no" >&6; }
5586 # Extract the first word of "install-info", so it can be a program name with args.
5587 set dummy install-info; ac_word=$2
5588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5591 $as_echo_n "(cached) " >&6
5593 case $INSTALL_INFO in
5595 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5605 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5617 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5618 if test -n "$INSTALL_INFO"; then
5619 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5620 $as_echo "$INSTALL_INFO" >&6; }
5622 { $as_echo "$as_me:$LINENO: result: no" >&5
5623 $as_echo "no" >&6; }
5627 # Extract the first word of "gzip", so it can be a program name with args.
5628 set dummy gzip; ac_word=$2
5629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5630 $as_echo_n "checking for $ac_word... " >&6; }
5631 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5632 $as_echo_n "(cached) " >&6
5636 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 GZIP_PROG=$ac_cv_path_GZIP_PROG
5658 if test -n "$GZIP_PROG"; then
5659 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5660 $as_echo "$GZIP_PROG" >&6; }
5662 { $as_echo "$as_me:$LINENO: result: no" >&5
5663 $as_echo "no" >&6; }
5669 ## Need makeinfo >= 4.6 (?) to build the manuals.
5670 # Extract the first word of "makeinfo", so it can be a program name with args.
5671 set dummy makeinfo; ac_word=$2
5672 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5675 $as_echo_n "(cached) " >&6
5679 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5689 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5690 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5701 MAKEINFO=$ac_cv_path_MAKEINFO
5702 if test -n "$MAKEINFO"; then
5703 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5704 $as_echo "$MAKEINFO" >&6; }
5706 { $as_echo "$as_me:$LINENO: result: no" >&5
5707 $as_echo "no" >&6; }
5711 if test "$MAKEINFO" != "no" && \
5712 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
5716 ## Makeinfo is unusual. For a released Emacs, the manuals are
5717 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5718 ## therefore in the category of "special tools" not normally required, which
5719 ## configure does not have to check for (eg autoconf itself).
5720 ## In a Bazaar checkout on the other hand, the manuals are not included.
5721 ## So makeinfo is a requirement to build from Bazaar, and configure
5722 ## should test for it as it does for any other build requirement.
5723 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5724 ## with pre-built manuals, from a Bazaar checkout.
5725 if test "$MAKEINFO" = "no"; then
5726 if test "x${with_makeinfo}" = "xno"; then
5728 elif test ! -e $srcdir/info/emacs; then
5729 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5730 source tree does not seem to have pre-built manuals in the \`info
' directory.
5731 Either install a suitable version of makeinfo, or re-run configure
5732 with the \`--without-makeinfo' option to build without the manuals.
" >&5
5733 $as_echo "$as_me: error
: You
do not seem to have makeinfo
>= 4.6, and your
5734 source tree does not seem to have pre-built manuals
in the \
`info' directory.
5735 Either install a suitable version of makeinfo, or re-run configure
5736 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5737 { (exit 1); exit 1; }; }
5742 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5744 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5747 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5749 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5753 late_LDFLAGS=$LDFLAGS
5754 if test "$GCC" = yes; then
5755 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5757 LDFLAGS="$LDFLAGS -znocombreloc"
5760 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5761 $as_echo_n "checking for -znocombreloc... " >&6; }
5762 cat >conftest.$ac_ext <<_ACEOF
5765 rm -f conftest.$ac_objext conftest$ac_exeext
5766 if { (ac_try="$ac_link"
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769 *) ac_try_echo=$ac_try;;
5771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5772 $as_echo "$ac_try_echo") >&5
5773 (eval "$ac_link") 2>conftest.er1
5775 grep -v '^
*+' conftest.er1 >conftest.err
5777 cat conftest.err >&5
5778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } && {
5780 test -z "$ac_c_werror_flag" ||
5781 test ! -s conftest.err
5782 } && test -s conftest$ac_exeext && {
5783 test "$cross_compiling" = yes ||
5784 $as_test_x conftest$ac_exeext
5786 { $as_echo "$as_me:$LINENO: result: yes" >&5
5787 $as_echo "yes" >&6; }
5789 $as_echo "$as_me: failed program was:" >&5
5790 sed 's
/^
/|
/' conftest.$ac_ext >&5
5792 LDFLAGS=$late_LDFLAGS
5793 { $as_echo "$as_me:$LINENO: result: no" >&5
5794 $as_echo "no" >&6; }
5797 rm -rf conftest.dSYM
5798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5799 conftest$ac_exeext conftest.$ac_ext
5801 #### Extract some information from the operating system and machine files.
5803 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5804 - which libraries the lib-src programs will want, and
5805 - whether the GNU malloc routines are usable..." >&5
5806 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5807 - which libraries the lib-src programs will want, and
5808 - whether the GNU malloc routines are usable..." >&6;}
5810 ### First figure out CFLAGS (which we use for running the compiler here)
5811 ### and REAL_CFLAGS (which we use for real compilation).
5812 ### The two are the same except on a few systems, where they are made
5813 ### different to work around various lossages. For example,
5814 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5815 ### as implying static linking.
5817 ### If the CFLAGS env var is specified, we use that value
5818 ### instead of the default.
5820 ### It's not important that this name contain the PID
; you can
't run
5821 ### two configures in the same directory and have anything work
5823 tempcname="conftest.c"
5826 #include "'${srcdir}'/src/'${opsysfile}'"
5827 #include "'${srcdir}'/src/'${machfile}'"
5829 configure___ LIBX
=-lX11
5831 configure___ unexec
=UNEXEC
5833 #ifdef SYSTEM_MALLOC
5834 configure___ system_malloc
=yes
5836 configure___ system_malloc
=no
5839 #ifdef USE_MMAP_FOR_BUFFERS
5840 configure___ use_mmap_for_buffers
=yes
5842 configure___ use_mmap_for_buffers
=no
5845 #ifndef C_OPTIMIZE_SWITCH
5847 #define C_OPTIMIZE_SWITCH -O2
5849 #define C_OPTIMIZE_SWITCH -O
5853 #ifndef C_WARNINGS_SWITCH
5854 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5857 #ifdef THIS_IS_CONFIGURE
5859 /* Get the CFLAGS
for tests
in configure.
*/
5861 configure___ CFLAGS
=-g C_OPTIMIZE_SWITCH
'${SPECIFIED_CFLAGS}'
5863 configure___ CFLAGS
='${SPECIFIED_CFLAGS}'
5866 #else /* not THIS_IS_CONFIGURE */
5868 /* Get the CFLAGS
for real compilation.
*/
5870 configure___ REAL_CFLAGS
=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH
${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5872 configure___ REAL_CFLAGS
='${SPECIFIED_CFLAGS}'
5875 #endif /* not THIS_IS_CONFIGURE */
5878 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5880 # The value of CPP is a quoted variable reference, so we need to do this
5881 # to get its actual value...
5882 CPP=`eval "echo $CPP"`
5883 eval `${CPP} -Isrc ${tempcname} \
5884 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5885 if test "x$SPECIFIED_CFLAGS" = x; then
5886 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5887 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5889 REAL_CFLAGS="$CFLAGS"
5897 ## Let `ld' find image libs and similar things
in /usr
/local
/lib.
5898 ## The system compiler, GCC, has apparently been modified to not
5899 ## look there, contrary to what a stock GCC would do.
5900 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5904 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5905 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5909 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5913 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5914 ## otherwise Emacs dumps core on elf systems.
5915 LD_SWITCH_SYSTEM
="-Z"
5920 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5922 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5923 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5924 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5925 ## values in configure and the Makefiles. How helpful.
5926 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5929 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5930 LD_SWITCH_SYSTEM
="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5933 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5934 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5939 if test "$machine" = "alpha"; then
5940 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5941 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5942 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5943 $as_echo_n "(cached) " >&6
5945 cat >conftest.
$ac_ext <<_ACEOF
5948 cat confdefs.h
>>conftest.
$ac_ext
5949 cat >>conftest.
$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 $ac_includes_default
5963 rm -f conftest.
$ac_objext
5964 if { (ac_try
="$ac_compile"
5966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5970 $as_echo "$ac_try_echo") >&5
5971 (eval "$ac_compile") 2>conftest.er1
5973 grep -v '^ *+' conftest.er1 >conftest.err
5975 cat conftest.err >&5
5976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } && {
5978 test -z "$ac_c_werror_flag" ||
5979 test ! -s conftest.err
5980 } && test -s conftest.$ac_objext; then
5981 ac_cv_have_decl___ELF__=yes
5983 $as_echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5986 ac_cv_have_decl___ELF__=no
5989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
5992 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
5994 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5995 ## With ELF, make sure that all common symbols get allocated to in the
5996 ## data section. Otherwise, the dump of temacs may miss variables in
5997 ## the shared library that have been initialized. For example, with
5998 ## GNU libc, __malloc_initialized would normally be resolved to the
5999 ## shared library's .bss section, which is fatal.
6000 if test "x$GCC" = "xyes"; then
6001 C_SWITCH_MACHINE="-fno-common"
6003 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6004 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6005 { (exit 1); exit 1; }; }
6013 ## Some programs in src produce warnings saying certain subprograms
6014 ## are too complex and need a MAXMEM value greater than 2000 for
6015 ## additional optimization. --nils@exp-math.uni-essen.de
6016 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6017 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6018 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6019 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6025 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6026 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6028 freebsd) LIBS_SYSTEM="-lutil" ;;
6030 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6032 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6034 ## Motif needs -lgen.
6035 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6040 ### Make sure subsequent tests use flags consistent with the build flags.
6042 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6043 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6045 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6050 # Check whether --enable-largefile was given.
6051 if test "${enable_largefile+set}" = set; then
6052 enableval=$enable_largefile;
6055 if test "$enable_largefile" != no; then
6057 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6058 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6059 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6060 $as_echo_n "(cached) " >&6
6062 ac_cv_sys_largefile_CC=no
6063 if test "$GCC" != yes; then
6066 # IRIX 6.2 and later do not support large files by default,
6067 # so use the C compiler's -n32 option if that helps.
6068 cat >conftest.$ac_ext <<_ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6074 #include <sys/types.h>
6075 /* Check that off_t can represent 2**63 - 1 correctly.
6076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6077 since some C++ compilers masquerading as C compilers
6078 incorrectly reject 9223372036854775807. */
6079 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6081 && LARGE_OFF_T % 2147483647 == 1)
6091 rm -f conftest.$ac_objext
6092 if { (ac_try="$ac_compile"
6094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6095 *) ac_try_echo
=$ac_try;;
6097 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6098 $as_echo "$ac_try_echo") >&5
6099 (eval "$ac_compile") 2>conftest.er1
6101 grep -v '^ *+' conftest.er1
>conftest.err
6103 cat conftest.err
>&5
6104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } && {
6106 test -z "$ac_c_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest.
$ac_objext; then
6111 $as_echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.
$ac_ext >&5
6117 rm -f core conftest.err conftest.
$ac_objext
6119 rm -f conftest.
$ac_objext
6120 if { (ac_try
="$ac_compile"
6122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6126 $as_echo "$ac_try_echo") >&5
6127 (eval "$ac_compile") 2>conftest.er1
6129 grep -v '^ *+' conftest.er1 >conftest.err
6131 cat conftest.err >&5
6132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } && {
6134 test -z "$ac_c_werror_flag" ||
6135 test ! -s conftest.err
6136 } && test -s conftest.$ac_objext; then
6137 ac_cv_sys_largefile_CC=' -n32'; break
6139 $as_echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6145 rm -f core conftest.err conftest.$ac_objext
6149 rm -f conftest.$ac_ext
6152 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6153 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6154 if test "$ac_cv_sys_largefile_CC" != no; then
6155 CC=$CC$ac_cv_sys_largefile_CC
6158 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6159 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6160 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6161 $as_echo_n "(cached) " >&6
6164 cat >conftest.$ac_ext <<_ACEOF
6167 cat confdefs.h >>conftest.$ac_ext
6168 cat >>conftest.$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 #include <sys/types.h>
6171 /* Check that off_t can represent 2**63 - 1 correctly.
6172 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6173 since some C++ compilers masquerading as C compilers
6174 incorrectly reject 9223372036854775807. */
6175 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6177 && LARGE_OFF_T % 2147483647 == 1)
6187 rm -f conftest.$ac_objext
6188 if { (ac_try="$ac_compile"
6190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6191 *) ac_try_echo
=$ac_try;;
6193 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6194 $as_echo "$ac_try_echo") >&5
6195 (eval "$ac_compile") 2>conftest.er1
6197 grep -v '^ *+' conftest.er1
>conftest.err
6199 cat conftest.err
>&5
6200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } && {
6202 test -z "$ac_c_werror_flag" ||
6203 test ! -s conftest.err
6204 } && test -s conftest.
$ac_objext; then
6205 ac_cv_sys_file_offset_bits
=no
; break
6207 $as_echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.
$ac_ext >&5
6213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6214 cat >conftest.
$ac_ext <<_ACEOF
6217 cat confdefs.h
>>conftest.
$ac_ext
6218 cat >>conftest.
$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6220 #define _FILE_OFFSET_BITS 64
6221 #include <sys/types.h>
6222 /* Check that off_t can represent 2**63 - 1 correctly.
6223 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6224 since some C++ compilers masquerading as C compilers
6225 incorrectly reject 9223372036854775807. */
6226 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6228 && LARGE_OFF_T % 2147483647 == 1)
6238 rm -f conftest.
$ac_objext
6239 if { (ac_try
="$ac_compile"
6241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6245 $as_echo "$ac_try_echo") >&5
6246 (eval "$ac_compile") 2>conftest.er1
6248 grep -v '^ *+' conftest.er1 >conftest.err
6250 cat conftest.err >&5
6251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } && {
6253 test -z "$ac_c_werror_flag" ||
6254 test ! -s conftest.err
6255 } && test -s conftest.$ac_objext; then
6256 ac_cv_sys_file_offset_bits=64; break
6258 $as_echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 ac_cv_sys_file_offset_bits=unknown
6269 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6270 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6271 case $ac_cv_sys_file_offset_bits in #(
6274 cat >>confdefs.h <<_ACEOF
6275 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6280 if test $ac_cv_sys_file_offset_bits = unknown; then
6281 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6282 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6283 if test "${ac_cv_sys_large_files+set}" = set; then
6284 $as_echo_n "(cached) " >&6
6287 cat >conftest.$ac_ext <<_ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6293 #include <sys/types.h>
6294 /* Check that off_t can represent 2**63 - 1 correctly.
6295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6296 since some C++ compilers masquerading as C compilers
6297 incorrectly reject 9223372036854775807. */
6298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6300 && LARGE_OFF_T % 2147483647 == 1)
6310 rm -f conftest.$ac_objext
6311 if { (ac_try="$ac_compile"
6313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6314 *) ac_try_echo
=$ac_try;;
6316 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6317 $as_echo "$ac_try_echo") >&5
6318 (eval "$ac_compile") 2>conftest.er1
6320 grep -v '^ *+' conftest.er1
>conftest.err
6322 cat conftest.err
>&5
6323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
6327 } && test -s conftest.
$ac_objext; then
6328 ac_cv_sys_large_files
=no
; break
6330 $as_echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.
$ac_ext >&5
6336 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6337 cat >conftest.
$ac_ext <<_ACEOF
6340 cat confdefs.h
>>conftest.
$ac_ext
6341 cat >>conftest.
$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6343 #define _LARGE_FILES 1
6344 #include <sys/types.h>
6345 /* Check that off_t can represent 2**63 - 1 correctly.
6346 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6347 since some C++ compilers masquerading as C compilers
6348 incorrectly reject 9223372036854775807. */
6349 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6350 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6351 && LARGE_OFF_T % 2147483647 == 1)
6361 rm -f conftest.
$ac_objext
6362 if { (ac_try
="$ac_compile"
6364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6365 *) ac_try_echo=$ac_try;;
6367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6368 $as_echo "$ac_try_echo") >&5
6369 (eval "$ac_compile") 2>conftest.er1
6371 grep -v '^ *+' conftest.er1 >conftest.err
6373 cat conftest.err >&5
6374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } && {
6376 test -z "$ac_c_werror_flag" ||
6377 test ! -s conftest.err
6378 } && test -s conftest.$ac_objext; then
6379 ac_cv_sys_large_files=1; break
6381 $as_echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388 ac_cv_sys_large_files=unknown
6392 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6393 $as_echo "$ac_cv_sys_large_files" >&6; }
6394 case $ac_cv_sys_large_files in #(
6397 cat >>confdefs.h <<_ACEOF
6398 #define _LARGE_FILES $ac_cv_sys_large_files
6408 ## If user specified a crt-dir, use that unconditionally.
6409 if test "X$CRT_DIR" = "X"; then
6411 case "$canonical" in
6412 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6413 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6414 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6415 ## For anything else (eg /usr/lib32), it is up the user to specify
6416 ## the location (bug#5655).
6417 ## Test for crtn.o, not just the directory, because sometimes the
6418 ## directory exists but does not have the relevant files (bug#1287).
6419 ## FIXME better to test for binary compatibility somehow.
6420 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6423 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6427 hpux10-20) CRT_DIR=/lib ;;
6430 ## Default is /usr/lib.
6431 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6435 ## Some platforms don't use any of these files, so it is not
6436 ## appropriate to put this test outside the if block.
6437 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6438 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6439 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6440 { (exit 1); exit 1; }; }
6453 START_FILES='ecrt0.o'
6456 ## Adding -lm confuses the dynamic linker, so omit it.
6458 START_FILES='pre-crt0.o'
6461 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6462 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6464 gnu-linux | gnu-kfreebsd )
6465 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6466 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6468 hpux10-20 | hpux11 )
6470 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6473 if test -f $CRT_DIR/crti.o; then
6474 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6475 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6477 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6478 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6489 if test "${with_sound}" != "no"; then
6490 # Sound support for GNU/Linux and the free BSDs.
6494 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6498 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6499 $as_echo_n "checking for $ac_header... " >&6; }
6500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6501 $as_echo_n "(cached) " >&6
6503 ac_res=`eval 'as_val=${'$as_ac_Header'}
6504 $as_echo "$as_val"'`
6505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6506 $as_echo "$ac_res" >&6; }
6508 # Is the header compilable?
6509 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6510 $as_echo_n "checking $ac_header usability... " >&6; }
6511 cat >conftest.$ac_ext <<_ACEOF
6514 cat confdefs.h >>conftest.$ac_ext
6515 cat >>conftest.$ac_ext <<_ACEOF
6516 /* end confdefs.h. */
6517 $ac_includes_default
6518 #include <$ac_header>
6520 rm -f conftest.$ac_objext
6521 if { (ac_try="$ac_compile"
6523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6524 *) ac_try_echo
=$ac_try;;
6526 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6527 $as_echo "$ac_try_echo") >&5
6528 (eval "$ac_compile") 2>conftest.er1
6530 grep -v '^ *+' conftest.er1
>conftest.err
6532 cat conftest.err
>&5
6533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } && {
6535 test -z "$ac_c_werror_flag" ||
6536 test ! -s conftest.err
6537 } && test -s conftest.
$ac_objext; then
6538 ac_header_compiler
=yes
6540 $as_echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.
$ac_ext >&5
6543 ac_header_compiler
=no
6546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6548 $as_echo "$ac_header_compiler" >&6; }
6550 # Is the header present?
6551 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6552 $as_echo_n "checking $ac_header presence... " >&6; }
6553 cat >conftest.
$ac_ext <<_ACEOF
6556 cat confdefs.h
>>conftest.
$ac_ext
6557 cat >>conftest.
$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6559 #include <$ac_header>
6561 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6567 $as_echo "$ac_try_echo") >&5
6568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6570 grep -v '^ *+' conftest.er1 >conftest.err
6572 cat conftest.err >&5
6573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } >/dev/null && {
6575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6578 ac_header_preproc=yes
6580 $as_echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 ac_header_preproc=no
6586 rm -f conftest.err conftest.$ac_ext
6587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6588 $as_echo "$ac_header_preproc" >&6; }
6590 # So? What about this header?
6591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6594 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6596 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6597 ac_header_preproc=yes
6600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6601 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6603 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6605 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6607 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6611 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6615 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6616 $as_echo_n "checking for $ac_header... " >&6; }
6617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6618 $as_echo_n "(cached) " >&6
6620 eval "$as_ac_Header=\$ac_header_preproc"
6622 ac_res=`eval 'as_val=${'$as_ac_Header'}
6623 $as_echo "$as_val"'`
6624 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6625 $as_echo "$ac_res" >&6; }
6628 if test `eval 'as_val=${'$as_ac_Header'}
6629 $as_echo "$as_val"'` = yes; then
6630 cat >>confdefs.h <<_ACEOF
6631 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6638 # Emulation library used on NetBSD.
6639 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6640 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6641 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6642 $as_echo_n "(cached) " >&6
6644 ac_check_lib_save_LIBS=$LIBS
6645 LIBS="-lossaudio $LIBS"
6646 cat >conftest.$ac_ext <<_ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h. */
6653 /* Override any GCC internal prototype to avoid an error.
6654 Use char because int might match the return type of a GCC
6655 builtin and then its argument prototype would still apply. */
6663 return _oss_ioctl ();
6668 rm -f conftest.$ac_objext conftest$ac_exeext
6669 if { (ac_try="$ac_link"
6671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6672 *) ac_try_echo
=$ac_try;;
6674 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6675 $as_echo "$ac_try_echo") >&5
6676 (eval "$ac_link") 2>conftest.er1
6678 grep -v '^ *+' conftest.er1
>conftest.err
6680 cat conftest.err
>&5
6681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); } && {
6683 test -z "$ac_c_werror_flag" ||
6684 test ! -s conftest.err
6685 } && test -s conftest
$ac_exeext && {
6686 test "$cross_compiling" = yes ||
6687 $as_test_x conftest
$ac_exeext
6689 ac_cv_lib_ossaudio__oss_ioctl
=yes
6691 $as_echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.
$ac_ext >&5
6694 ac_cv_lib_ossaudio__oss_ioctl
=no
6697 rm -rf conftest.dSYM
6698 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6699 conftest
$ac_exeext conftest.
$ac_ext
6700 LIBS
=$ac_check_lib_save_LIBS
6702 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6703 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6704 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6713 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6717 # Extract the first word of "pkg-config", so it can be a program name with args.
6718 set dummy pkg-config
; ac_word
=$2
6719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6722 $as_echo_n "(cached) " >&6
6726 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6733 test -z "$as_dir" && as_dir
=.
6734 for ac_exec_ext
in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6737 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6748 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6749 if test -n "$PKG_CONFIG"; then
6750 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6751 $as_echo "$PKG_CONFIG" >&6; }
6753 { $as_echo "$as_me:$LINENO: result: no" >&5
6754 $as_echo "no" >&6; }
6759 if test "$PKG_CONFIG" = "no" ; then
6762 PKG_CONFIG_MIN_VERSION
=0.9.0
6763 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6764 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6765 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6767 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6768 { $as_echo "$as_me:$LINENO: result: yes" >&5
6769 $as_echo "yes" >&6; }
6772 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6773 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6774 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6775 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6776 $as_echo "$ALSA_CFLAGS" >&6; }
6778 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6779 $as_echo_n "checking ALSA_LIBS... " >&6; }
6780 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6781 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6782 $as_echo "$ALSA_LIBS" >&6; }
6784 { $as_echo "$as_me:$LINENO: result: no" >&5
6785 $as_echo "no" >&6; }
6788 ## If we have a custom action on failure, don't print errors, but
6789 ## do set a variable so people can do so.
6790 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6797 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6798 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6802 if test $succeeded = yes; then
6808 if test $HAVE_ALSA = yes; then
6809 SAVE_CFLAGS
="$CFLAGS"
6810 SAVE_LDFLAGS
="$LDFLAGS"
6811 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6812 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6813 cat >conftest.
$ac_ext <<_ACEOF
6816 cat confdefs.h
>>conftest.
$ac_ext
6817 cat >>conftest.
$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6819 #include <asoundlib.h>
6823 snd_lib_error_set_handler (0);
6828 rm -f conftest.
$ac_objext
6829 if { (ac_try
="$ac_compile"
6831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6832 *) ac_try_echo=$ac_try;;
6834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6835 $as_echo "$ac_try_echo") >&5
6836 (eval "$ac_compile") 2>conftest.er1
6838 grep -v '^ *+' conftest.er1 >conftest.err
6840 cat conftest.err >&5
6841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && {
6843 test -z "$ac_c_werror_flag" ||
6844 test ! -s conftest.err
6845 } && test -s conftest.$ac_objext; then
6846 emacs_alsa_normal=yes
6848 $as_echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6851 emacs_alsa_normal=no
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 if test "$emacs_alsa_normal" != yes; then
6856 cat >conftest.$ac_ext <<_ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6862 #include <alsa/asoundlib.h>
6866 snd_lib_error_set_handler (0);
6871 rm -f conftest.$ac_objext
6872 if { (ac_try="$ac_compile"
6874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6875 *) ac_try_echo
=$ac_try;;
6877 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6878 $as_echo "$ac_try_echo") >&5
6879 (eval "$ac_compile") 2>conftest.er1
6881 grep -v '^ *+' conftest.er1
>conftest.err
6883 cat conftest.err
>&5
6884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest.
$ac_objext; then
6889 emacs_alsa_subdir
=yes
6891 $as_echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.
$ac_ext >&5
6894 emacs_alsa_subdir
=no
6897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6898 if test "$emacs_alsa_subdir" != yes; then
6899 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6900 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6901 { (exit 1); exit 1; }; }
6903 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6906 CFLAGS
="$SAVE_CFLAGS"
6907 LDFLAGS
="$SAVE_LDFLAGS"
6908 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6909 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6911 cat >>confdefs.h
<<\_ACEOF
6944 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6945 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6946 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6947 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6948 sys
/utsname.h
pwd.h utmp.h
6950 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6951 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6952 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6953 $as_echo_n "checking for $ac_header... " >&6; }
6954 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6955 $as_echo_n "(cached) " >&6
6957 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6958 $as_echo "$as_val"'`
6959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6960 $as_echo "$ac_res" >&6; }
6962 # Is the header compilable?
6963 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6964 $as_echo_n "checking $ac_header usability... " >&6; }
6965 cat >conftest.
$ac_ext <<_ACEOF
6968 cat confdefs.h
>>conftest.
$ac_ext
6969 cat >>conftest.
$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971 $ac_includes_default
6972 #include <$ac_header>
6974 rm -f conftest.
$ac_objext
6975 if { (ac_try
="$ac_compile"
6977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6981 $as_echo "$ac_try_echo") >&5
6982 (eval "$ac_compile") 2>conftest.er1
6984 grep -v '^ *+' conftest.er1 >conftest.err
6986 cat conftest.err >&5
6987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); } && {
6989 test -z "$ac_c_werror_flag" ||
6990 test ! -s conftest.err
6991 } && test -s conftest.$ac_objext; then
6992 ac_header_compiler=yes
6994 $as_echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6997 ac_header_compiler=no
7000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7002 $as_echo "$ac_header_compiler" >&6; }
7004 # Is the header present?
7005 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7006 $as_echo_n "checking $ac_header presence... " >&6; }
7007 cat >conftest.$ac_ext <<_ACEOF
7010 cat confdefs.h >>conftest.$ac_ext
7011 cat >>conftest.$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7013 #include <$ac_header>
7015 if { (ac_try="$ac_cpp conftest.$ac_ext"
7017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7018 *) ac_try_echo
=$ac_try;;
7020 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7021 $as_echo "$ac_try_echo") >&5
7022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7024 grep -v '^ *+' conftest.er1
>conftest.err
7026 cat conftest.err
>&5
7027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } >/dev
/null
&& {
7029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7030 test ! -s conftest.err
7032 ac_header_preproc
=yes
7034 $as_echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.
$ac_ext >&5
7037 ac_header_preproc
=no
7040 rm -f conftest.err conftest.
$ac_ext
7041 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7042 $as_echo "$ac_header_preproc" >&6; }
7044 # So? What about this header?
7045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7048 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7050 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7051 ac_header_preproc
=yes
7054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7055 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7057 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7059 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7061 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7062 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7063 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7065 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7069 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7070 $as_echo_n "checking for $ac_header... " >&6; }
7071 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7072 $as_echo_n "(cached) " >&6
7074 eval "$as_ac_Header=\$ac_header_preproc"
7076 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7077 $as_echo "$as_val"'`
7078 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7079 $as_echo "$ac_res" >&6; }
7082 if test `eval 'as_val=${'$as_ac_Header'}
7083 $as_echo "$as_val"'` = yes; then
7084 cat >>confdefs.h
<<_ACEOF
7085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7093 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7094 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7095 cat >conftest.
$ac_ext <<_ACEOF
7098 cat confdefs.h
>>conftest.
$ac_ext
7099 cat >>conftest.
$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 #include <sys/personality.h>
7105 personality (PER_LINUX32)
7110 rm -f conftest.
$ac_objext
7111 if { (ac_try
="$ac_compile"
7113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7114 *) ac_try_echo=$ac_try;;
7116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7117 $as_echo "$ac_try_echo") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7120 grep -v '^ *+' conftest.er1 >conftest.err
7122 cat conftest.err >&5
7123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest.$ac_objext; then
7128 emacs_cv_personality_linux32=yes
7130 $as_echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7133 emacs_cv_personality_linux32=no
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7138 $as_echo "$emacs_cv_personality_linux32" >&6; }
7140 if test $emacs_cv_personality_linux32 = yes; then
7142 cat >>confdefs.h <<\_ACEOF
7143 #define HAVE_PERSONALITY_LINUX32 1
7149 for ac_header in term.h
7151 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7152 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7153 $as_echo_n "checking for $ac_header... " >&6; }
7154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7155 $as_echo_n "(cached) " >&6
7157 cat >conftest.$ac_ext <<_ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7163 #include <$ac_header>
7165 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev
/null
&& {
7179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7182 eval "$as_ac_Header=yes"
7184 $as_echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.
$ac_ext >&5
7187 eval "$as_ac_Header=no"
7190 rm -f conftest.err conftest.
$ac_ext
7192 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7193 $as_echo "$as_val"'`
7194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7195 $as_echo "$ac_res" >&6; }
7196 if test `eval 'as_val=${'$as_ac_Header'}
7197 $as_echo "$as_val"'` = yes; then
7198 cat >>confdefs.h
<<_ACEOF
7199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7206 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7207 $as_echo_n "checking for ANSI C header files... " >&6; }
7208 if test "${ac_cv_header_stdc+set}" = set; then
7209 $as_echo_n "(cached) " >&6
7211 cat >conftest.
$ac_ext <<_ACEOF
7214 cat confdefs.h
>>conftest.
$ac_ext
7215 cat >>conftest.
$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7230 rm -f conftest.
$ac_objext
7231 if { (ac_try
="$ac_compile"
7233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7234 *) ac_try_echo=$ac_try;;
7236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7237 $as_echo "$ac_try_echo") >&5
7238 (eval "$ac_compile") 2>conftest.er1
7240 grep -v '^ *+' conftest.er1 >conftest.err
7242 cat conftest.err >&5
7243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } && {
7245 test -z "$ac_c_werror_flag" ||
7246 test ! -s conftest.err
7247 } && test -s conftest.$ac_objext; then
7248 ac_cv_header_stdc=yes
7250 $as_echo "$as_me: failed program was:" >&5
7251 sed 's/^/| /' conftest.$ac_ext >&5
7253 ac_cv_header_stdc=no
7256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7258 if test $ac_cv_header_stdc = yes; then
7259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7260 cat >conftest.$ac_ext <<_ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7270 $EGREP "memchr" >/dev/null 2>&1; then
7273 ac_cv_header_stdc=no
7279 if test $ac_cv_header_stdc = yes; then
7280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7281 cat >conftest.$ac_ext <<_ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7291 $EGREP "free" >/dev/null 2>&1; then
7294 ac_cv_header_stdc=no
7300 if test $ac_cv_header_stdc = yes; then
7301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7302 if test "$cross_compiling" = yes; then
7305 cat >conftest.$ac_ext <<_ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7313 #if ((' ' & 0x0FF) == 0x020)
7314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7317 # define ISLOWER(c) \
7318 (('a' <= (c) && (c) <= 'i') \
7319 || ('j' <= (c) && (c) <= 'r') \
7320 || ('s' <= (c) && (c) <= 'z'))
7321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7329 for (i = 0; i < 256; i++)
7330 if (XOR (islower (i), ISLOWER (i))
7331 || toupper (i) != TOUPPER (i))
7336 rm -f conftest$ac_exeext
7337 if { (ac_try="$ac_link"
7339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7340 *) ac_try_echo
=$ac_try;;
7342 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7343 $as_echo "$ac_try_echo") >&5
7344 (eval "$ac_link") 2>&5
7346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7348 { (case "(($ac_try" in
7349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7353 $as_echo "$ac_try_echo") >&5
7354 (eval "$ac_try") 2>&5
7356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; }; then
7360 $as_echo "$as_me: program exited with status $ac_status" >&5
7361 $as_echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7365 ac_cv_header_stdc=no
7367 rm -rf conftest.dSYM
7368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7374 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7375 $as_echo "$ac_cv_header_stdc" >&6; }
7376 if test $ac_cv_header_stdc = yes; then
7378 cat >>confdefs.h <<\_ACEOF
7379 #define STDC_HEADERS 1
7384 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7385 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7386 if test "${ac_cv_header_time+set}" = set; then
7387 $as_echo_n "(cached) " >&6
7389 cat >conftest.$ac_ext <<_ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7395 #include <sys/types.h>
7396 #include <sys/time.h>
7402 if ((struct tm *) 0)
7408 rm -f conftest.$ac_objext
7409 if { (ac_try="$ac_compile"
7411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7412 *) ac_try_echo
=$ac_try;;
7414 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7415 $as_echo "$ac_try_echo") >&5
7416 (eval "$ac_compile") 2>conftest.er1
7418 grep -v '^ *+' conftest.er1
>conftest.err
7420 cat conftest.err
>&5
7421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest.
$ac_objext; then
7426 ac_cv_header_time
=yes
7428 $as_echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.
$ac_ext >&5
7431 ac_cv_header_time
=no
7434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7436 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7437 $as_echo "$ac_cv_header_time" >&6; }
7438 if test $ac_cv_header_time = yes; then
7440 cat >>confdefs.h
<<\_ACEOF
7441 #define TIME_WITH_SYS_TIME 1
7446 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7447 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7448 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7449 $as_echo_n "(cached) " >&6
7451 cat >conftest.
$ac_ext <<_ACEOF
7454 cat confdefs.h
>>conftest.
$ac_ext
7455 cat >>conftest.
$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 $ac_includes_default
7469 rm -f conftest.
$ac_objext
7470 if { (ac_try
="$ac_compile"
7472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7473 *) ac_try_echo=$ac_try;;
7475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7476 $as_echo "$ac_try_echo") >&5
7477 (eval "$ac_compile") 2>conftest.er1
7479 grep -v '^ *+' conftest.er1 >conftest.err
7481 cat conftest.err >&5
7482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } && {
7484 test -z "$ac_c_werror_flag" ||
7485 test ! -s conftest.err
7486 } && test -s conftest.$ac_objext; then
7487 ac_cv_have_decl_sys_siglist=yes
7489 $as_echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7492 ac_cv_have_decl_sys_siglist=no
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7497 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7498 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7499 if test $ac_cv_have_decl_sys_siglist = yes; then
7501 cat >>confdefs.h <<_ACEOF
7502 #define HAVE_DECL_SYS_SIGLIST 1
7507 cat >>confdefs.h <<_ACEOF
7508 #define HAVE_DECL_SYS_SIGLIST 0
7515 if test $ac_cv_have_decl_sys_siglist != yes; then
7516 # For Tru64, at least:
7517 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7518 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7519 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7520 $as_echo_n "(cached) " >&6
7522 cat >conftest.$ac_ext <<_ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7528 $ac_includes_default
7532 #ifndef __sys_siglist
7533 (void) __sys_siglist;
7540 rm -f conftest.$ac_objext
7541 if { (ac_try="$ac_compile"
7543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7544 *) ac_try_echo
=$ac_try;;
7546 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7547 $as_echo "$ac_try_echo") >&5
7548 (eval "$ac_compile") 2>conftest.er1
7550 grep -v '^ *+' conftest.er1
>conftest.err
7552 cat conftest.err
>&5
7553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } && {
7555 test -z "$ac_c_werror_flag" ||
7556 test ! -s conftest.err
7557 } && test -s conftest.
$ac_objext; then
7558 ac_cv_have_decl___sys_siglist
=yes
7560 $as_echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.
$ac_ext >&5
7563 ac_cv_have_decl___sys_siglist
=no
7566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7568 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7569 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7570 if test $ac_cv_have_decl___sys_siglist = yes; then
7572 cat >>confdefs.h
<<_ACEOF
7573 #define HAVE_DECL___SYS_SIGLIST 1
7578 cat >>confdefs.h
<<_ACEOF
7579 #define HAVE_DECL___SYS_SIGLIST 0
7586 if test $ac_cv_have_decl___sys_siglist = yes; then
7588 cat >>confdefs.h
<<\_ACEOF
7589 #define sys_siglist __sys_siglist
7594 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7595 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7596 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7597 $as_echo_n "(cached) " >&6
7599 cat >conftest.
$ac_ext <<_ACEOF
7602 cat confdefs.h
>>conftest.
$ac_ext
7603 cat >>conftest.
$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 #include <sys/types.h>
7606 #include <sys/wait.h>
7608 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7611 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7619 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7624 rm -f conftest.
$ac_objext
7625 if { (ac_try
="$ac_compile"
7627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7628 *) ac_try_echo=$ac_try;;
7630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7631 $as_echo "$ac_try_echo") >&5
7632 (eval "$ac_compile") 2>conftest.er1
7634 grep -v '^ *+' conftest.er1 >conftest.err
7636 cat conftest.err >&5
7637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } && {
7639 test -z "$ac_c_werror_flag" ||
7640 test ! -s conftest.err
7641 } && test -s conftest.$ac_objext; then
7642 ac_cv_header_sys_wait_h=yes
7644 $as_echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7647 ac_cv_header_sys_wait_h=no
7650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7653 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7654 if test $ac_cv_header_sys_wait_h = yes; then
7656 cat >>confdefs.h <<\_ACEOF
7657 #define HAVE_SYS_WAIT_H 1
7663 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7664 $as_echo_n "checking for struct utimbuf... " >&6; }
7665 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7666 $as_echo_n "(cached) " >&6
7668 cat >conftest.$ac_ext <<_ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 #ifdef TIME_WITH_SYS_TIME
7675 #include <sys/time.h>
7678 #ifdef HAVE_SYS_TIME_H
7679 #include <sys/time.h>
7690 static struct utimbuf x; x.actime = x.modtime;
7695 rm -f conftest.$ac_objext
7696 if { (ac_try="$ac_compile"
7698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7699 *) ac_try_echo
=$ac_try;;
7701 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7702 $as_echo "$ac_try_echo") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7705 grep -v '^ *+' conftest.er1
>conftest.err
7707 cat conftest.err
>&5
7708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && {
7710 test -z "$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 } && test -s conftest.
$ac_objext; then
7713 emacs_cv_struct_utimbuf
=yes
7715 $as_echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.
$ac_ext >&5
7718 emacs_cv_struct_utimbuf
=no
7721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7723 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7724 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7725 if test $emacs_cv_struct_utimbuf = yes; then
7727 cat >>confdefs.h
<<\_ACEOF
7728 #define HAVE_STRUCT_UTIMBUF 1
7733 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7734 $as_echo_n "checking return type of signal handlers... " >&6; }
7735 if test "${ac_cv_type_signal+set}" = set; then
7736 $as_echo_n "(cached) " >&6
7738 cat >conftest.
$ac_ext <<_ACEOF
7741 cat confdefs.h
>>conftest.
$ac_ext
7742 cat >>conftest.
$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 #include <sys/types.h>
7750 return *(signal (0, 0)) (0) == 1;
7755 rm -f conftest.
$ac_objext
7756 if { (ac_try
="$ac_compile"
7758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7762 $as_echo "$ac_try_echo") >&5
7763 (eval "$ac_compile") 2>conftest.er1
7765 grep -v '^ *+' conftest.er1 >conftest.err
7767 cat conftest.err >&5
7768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } && {
7770 test -z "$ac_c_werror_flag" ||
7771 test ! -s conftest.err
7772 } && test -s conftest.$ac_objext; then
7773 ac_cv_type_signal=int
7775 $as_echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 ac_cv_type_signal=void
7781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7784 $as_echo "$ac_cv_type_signal" >&6; }
7786 cat >>confdefs.h <<_ACEOF
7787 #define RETSIGTYPE $ac_cv_type_signal
7792 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7793 $as_echo_n "checking for speed_t... " >&6; }
7794 if test "${emacs_cv_speed_t+set}" = set; then
7795 $as_echo_n "(cached) " >&6
7797 cat >conftest.$ac_ext <<_ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7803 #include <termios.h>
7812 rm -f conftest.$ac_objext
7813 if { (ac_try="$ac_compile"
7815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7816 *) ac_try_echo
=$ac_try;;
7818 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7819 $as_echo "$ac_try_echo") >&5
7820 (eval "$ac_compile") 2>conftest.er1
7822 grep -v '^ *+' conftest.er1
>conftest.err
7824 cat conftest.err
>&5
7825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } && {
7827 test -z "$ac_c_werror_flag" ||
7828 test ! -s conftest.err
7829 } && test -s conftest.
$ac_objext; then
7830 emacs_cv_speed_t
=yes
7832 $as_echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.
$ac_ext >&5
7838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7840 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7841 $as_echo "$emacs_cv_speed_t" >&6; }
7842 if test $emacs_cv_speed_t = yes; then
7844 cat >>confdefs.h
<<\_ACEOF
7845 #define HAVE_SPEED_T 1
7850 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7851 $as_echo_n "checking for struct timeval... " >&6; }
7852 if test "${emacs_cv_struct_timeval+set}" = set; then
7853 $as_echo_n "(cached) " >&6
7855 cat >conftest.
$ac_ext <<_ACEOF
7858 cat confdefs.h
>>conftest.
$ac_ext
7859 cat >>conftest.
$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 #ifdef TIME_WITH_SYS_TIME
7862 #include <sys/time.h>
7865 #ifdef HAVE_SYS_TIME_H
7866 #include <sys/time.h>
7874 static struct timeval x; x.tv_sec = x.tv_usec;
7879 rm -f conftest.
$ac_objext
7880 if { (ac_try
="$ac_compile"
7882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7883 *) ac_try_echo=$ac_try;;
7885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7886 $as_echo "$ac_try_echo") >&5
7887 (eval "$ac_compile") 2>conftest.er1
7889 grep -v '^ *+' conftest.er1 >conftest.err
7891 cat conftest.err >&5
7892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } && {
7894 test -z "$ac_c_werror_flag" ||
7895 test ! -s conftest.err
7896 } && test -s conftest.$ac_objext; then
7897 emacs_cv_struct_timeval=yes
7899 $as_echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 emacs_cv_struct_timeval=no
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7908 $as_echo "$emacs_cv_struct_timeval" >&6; }
7909 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7910 if test $emacs_cv_struct_timeval = yes; then
7912 cat >>confdefs.h <<\_ACEOF
7913 #define HAVE_TIMEVAL 1
7918 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7919 $as_echo_n "checking for struct exception... " >&6; }
7920 if test "${emacs_cv_struct_exception+set}" = set; then
7921 $as_echo_n "(cached) " >&6
7923 cat >conftest.$ac_ext <<_ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7933 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7938 rm -f conftest.$ac_objext
7939 if { (ac_try="$ac_compile"
7941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7942 *) ac_try_echo
=$ac_try;;
7944 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7945 $as_echo "$ac_try_echo") >&5
7946 (eval "$ac_compile") 2>conftest.er1
7948 grep -v '^ *+' conftest.er1
>conftest.err
7950 cat conftest.err
>&5
7951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } && {
7953 test -z "$ac_c_werror_flag" ||
7954 test ! -s conftest.err
7955 } && test -s conftest.
$ac_objext; then
7956 emacs_cv_struct_exception
=yes
7958 $as_echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.
$ac_ext >&5
7961 emacs_cv_struct_exception
=no
7964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7966 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7967 $as_echo "$emacs_cv_struct_exception" >&6; }
7968 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7969 if test $emacs_cv_struct_exception != yes; then
7971 cat >>confdefs.h
<<\_ACEOF
7972 #define NO_MATHERR 1
7978 for ac_header
in sys
/socket.h
7980 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7981 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7982 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7983 $as_echo_n "checking for $ac_header... " >&6; }
7984 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7985 $as_echo_n "(cached) " >&6
7987 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7988 $as_echo "$as_val"'`
7989 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7990 $as_echo "$ac_res" >&6; }
7992 # Is the header compilable?
7993 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7994 $as_echo_n "checking $ac_header usability... " >&6; }
7995 cat >conftest.
$ac_ext <<_ACEOF
7998 cat confdefs.h
>>conftest.
$ac_ext
7999 cat >>conftest.
$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8001 $ac_includes_default
8002 #include <$ac_header>
8004 rm -f conftest.
$ac_objext
8005 if { (ac_try
="$ac_compile"
8007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8011 $as_echo "$ac_try_echo") >&5
8012 (eval "$ac_compile") 2>conftest.er1
8014 grep -v '^ *+' conftest.er1 >conftest.err
8016 cat conftest.err >&5
8017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } && {
8019 test -z "$ac_c_werror_flag" ||
8020 test ! -s conftest.err
8021 } && test -s conftest.$ac_objext; then
8022 ac_header_compiler=yes
8024 $as_echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8027 ac_header_compiler=no
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8032 $as_echo "$ac_header_compiler" >&6; }
8034 # Is the header present?
8035 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8036 $as_echo_n "checking $ac_header presence... " >&6; }
8037 cat >conftest.$ac_ext <<_ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8043 #include <$ac_header>
8045 if { (ac_try="$ac_cpp conftest.$ac_ext"
8047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8048 *) ac_try_echo
=$ac_try;;
8050 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8051 $as_echo "$ac_try_echo") >&5
8052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8054 grep -v '^ *+' conftest.er1
>conftest.err
8056 cat conftest.err
>&5
8057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } >/dev
/null
&& {
8059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8060 test ! -s conftest.err
8062 ac_header_preproc
=yes
8064 $as_echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.
$ac_ext >&5
8067 ac_header_preproc
=no
8070 rm -f conftest.err conftest.
$ac_ext
8071 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8072 $as_echo "$ac_header_preproc" >&6; }
8074 # So? What about this header?
8075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8078 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8080 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8081 ac_header_preproc
=yes
8084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8085 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8087 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8089 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8091 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8093 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8095 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8099 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8100 $as_echo_n "checking for $ac_header... " >&6; }
8101 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8102 $as_echo_n "(cached) " >&6
8104 eval "$as_ac_Header=\$ac_header_preproc"
8106 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8107 $as_echo "$as_val"'`
8108 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8109 $as_echo "$ac_res" >&6; }
8112 if test `eval 'as_val=${'$as_ac_Header'}
8113 $as_echo "$as_val"'` = yes; then
8114 cat >>confdefs.h
<<_ACEOF
8115 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8123 for ac_header
in net
/if.h
8125 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8126 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8127 $as_echo_n "checking for $ac_header... " >&6; }
8128 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8129 $as_echo_n "(cached) " >&6
8131 cat >conftest.
$ac_ext <<_ACEOF
8134 cat confdefs.h
>>conftest.
$ac_ext
8135 cat >>conftest.
$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137 $ac_includes_default
8138 #if HAVE_SYS_SOCKET_H
8139 #include <sys/socket.h>
8142 #include <$ac_header>
8144 rm -f conftest.
$ac_objext
8145 if { (ac_try
="$ac_compile"
8147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8151 $as_echo "$ac_try_echo") >&5
8152 (eval "$ac_compile") 2>conftest.er1
8154 grep -v '^ *+' conftest.er1 >conftest.err
8156 cat conftest.err >&5
8157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } && {
8159 test -z "$ac_c_werror_flag" ||
8160 test ! -s conftest.err
8161 } && test -s conftest.$ac_objext; then
8162 eval "$as_ac_Header=yes"
8164 $as_echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8167 eval "$as_ac_Header=no"
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 ac_res=`eval 'as_val=${'$as_ac_Header'}
8173 $as_echo "$as_val"'`
8174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8175 $as_echo "$ac_res" >&6; }
8176 if test `eval 'as_val=${'$as_ac_Header'}
8177 $as_echo "$as_val"'` = yes; then
8178 cat >>confdefs.h <<_ACEOF
8179 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8187 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8188 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8189 if test "${ac_cv_struct_tm+set}" = set; then
8190 $as_echo_n "(cached) " >&6
8192 cat >conftest.$ac_ext <<_ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8198 #include <sys/types.h>
8205 int *p = &tm.tm_sec;
8211 rm -f conftest.$ac_objext
8212 if { (ac_try="$ac_compile"
8214 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8215 *) ac_try_echo
=$ac_try;;
8217 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8218 $as_echo "$ac_try_echo") >&5
8219 (eval "$ac_compile") 2>conftest.er1
8221 grep -v '^ *+' conftest.er1
>conftest.err
8223 cat conftest.err
>&5
8224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } && {
8226 test -z "$ac_c_werror_flag" ||
8227 test ! -s conftest.err
8228 } && test -s conftest.
$ac_objext; then
8229 ac_cv_struct_tm
=time.h
8231 $as_echo "$as_me: failed program was:" >&5
8232 sed 's/^/| /' conftest.
$ac_ext >&5
8234 ac_cv_struct_tm
=sys
/time.h
8237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8239 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8240 $as_echo "$ac_cv_struct_tm" >&6; }
8241 if test $ac_cv_struct_tm = sys
/time.h
; then
8243 cat >>confdefs.h
<<\_ACEOF
8244 #define TM_IN_SYS_TIME 1
8249 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8250 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8251 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8252 $as_echo_n "(cached) " >&6
8254 cat >conftest.
$ac_ext <<_ACEOF
8257 cat confdefs.h
>>conftest.
$ac_ext
8258 cat >>conftest.
$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 #include <sys/types.h>
8261 #include <$ac_cv_struct_tm>
8267 static struct tm ac_aggr;
8268 if (ac_aggr.tm_zone)
8274 rm -f conftest.
$ac_objext
8275 if { (ac_try
="$ac_compile"
8277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8281 $as_echo "$ac_try_echo") >&5
8282 (eval "$ac_compile") 2>conftest.er1
8284 grep -v '^ *+' conftest.er1 >conftest.err
8286 cat conftest.err >&5
8287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } && {
8289 test -z "$ac_c_werror_flag" ||
8290 test ! -s conftest.err
8291 } && test -s conftest.$ac_objext; then
8292 ac_cv_member_struct_tm_tm_zone=yes
8294 $as_echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8297 cat >conftest.$ac_ext <<_ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8303 #include <sys/types.h>
8304 #include <$ac_cv_struct_tm>
8310 static struct tm ac_aggr;
8311 if (sizeof ac_aggr.tm_zone)
8317 rm -f conftest.$ac_objext
8318 if { (ac_try="$ac_compile"
8320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8321 *) ac_try_echo
=$ac_try;;
8323 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8324 $as_echo "$ac_try_echo") >&5
8325 (eval "$ac_compile") 2>conftest.er1
8327 grep -v '^ *+' conftest.er1
>conftest.err
8329 cat conftest.err
>&5
8330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } && {
8332 test -z "$ac_c_werror_flag" ||
8333 test ! -s conftest.err
8334 } && test -s conftest.
$ac_objext; then
8335 ac_cv_member_struct_tm_tm_zone
=yes
8337 $as_echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.
$ac_ext >&5
8340 ac_cv_member_struct_tm_tm_zone
=no
8343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8348 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8349 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8350 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8352 cat >>confdefs.h
<<_ACEOF
8353 #define HAVE_STRUCT_TM_TM_ZONE 1
8359 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8361 cat >>confdefs.h
<<\_ACEOF
8362 #define HAVE_TM_ZONE 1
8366 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8367 $as_echo_n "checking whether tzname is declared... " >&6; }
8368 if test "${ac_cv_have_decl_tzname+set}" = set; then
8369 $as_echo_n "(cached) " >&6
8371 cat >conftest.
$ac_ext <<_ACEOF
8374 cat confdefs.h
>>conftest.
$ac_ext
8375 cat >>conftest.
$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8390 rm -f conftest.
$ac_objext
8391 if { (ac_try
="$ac_compile"
8393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8397 $as_echo "$ac_try_echo") >&5
8398 (eval "$ac_compile") 2>conftest.er1
8400 grep -v '^ *+' conftest.er1 >conftest.err
8402 cat conftest.err >&5
8403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } && {
8405 test -z "$ac_c_werror_flag" ||
8406 test ! -s conftest.err
8407 } && test -s conftest.$ac_objext; then
8408 ac_cv_have_decl_tzname=yes
8410 $as_echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8413 ac_cv_have_decl_tzname=no
8416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8419 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8420 if test $ac_cv_have_decl_tzname = yes; then
8422 cat >>confdefs.h <<_ACEOF
8423 #define HAVE_DECL_TZNAME 1
8428 cat >>confdefs.h <<_ACEOF
8429 #define HAVE_DECL_TZNAME 0
8436 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8437 $as_echo_n "checking for tzname... " >&6; }
8438 if test "${ac_cv_var_tzname+set}" = set; then
8439 $as_echo_n "(cached) " >&6
8441 cat >conftest.$ac_ext <<_ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8448 #if !HAVE_DECL_TZNAME
8449 extern char *tzname[];
8455 return tzname[0][0];
8460 rm -f conftest.$ac_objext conftest$ac_exeext
8461 if { (ac_try="$ac_link"
8463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8464 *) ac_try_echo
=$ac_try;;
8466 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8467 $as_echo "$ac_try_echo") >&5
8468 (eval "$ac_link") 2>conftest.er1
8470 grep -v '^ *+' conftest.er1
>conftest.err
8472 cat conftest.err
>&5
8473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } && {
8475 test -z "$ac_c_werror_flag" ||
8476 test ! -s conftest.err
8477 } && test -s conftest
$ac_exeext && {
8478 test "$cross_compiling" = yes ||
8479 $as_test_x conftest
$ac_exeext
8481 ac_cv_var_tzname
=yes
8483 $as_echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.
$ac_ext >&5
8489 rm -rf conftest.dSYM
8490 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8491 conftest
$ac_exeext conftest.
$ac_ext
8493 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8494 $as_echo "$ac_cv_var_tzname" >&6; }
8495 if test $ac_cv_var_tzname = yes; then
8497 cat >>confdefs.h
<<\_ACEOF
8498 #define HAVE_TZNAME 1
8504 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8505 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8506 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8507 $as_echo_n "(cached) " >&6
8509 cat >conftest.
$ac_ext <<_ACEOF
8512 cat confdefs.h
>>conftest.
$ac_ext
8513 cat >>conftest.
$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8520 static struct tm ac_aggr;
8521 if (ac_aggr.tm_gmtoff)
8527 rm -f conftest.
$ac_objext
8528 if { (ac_try
="$ac_compile"
8530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8534 $as_echo "$ac_try_echo") >&5
8535 (eval "$ac_compile") 2>conftest.er1
8537 grep -v '^ *+' conftest.er1 >conftest.err
8539 cat conftest.err >&5
8540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } && {
8542 test -z "$ac_c_werror_flag" ||
8543 test ! -s conftest.err
8544 } && test -s conftest.$ac_objext; then
8545 ac_cv_member_struct_tm_tm_gmtoff=yes
8547 $as_echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8550 cat >conftest.$ac_ext <<_ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8561 static struct tm ac_aggr;
8562 if (sizeof ac_aggr.tm_gmtoff)
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8572 *) ac_try_echo
=$ac_try;;
8574 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8575 $as_echo "$ac_try_echo") >&5
8576 (eval "$ac_compile") 2>conftest.er1
8578 grep -v '^ *+' conftest.er1
>conftest.err
8580 cat conftest.err
>&5
8581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } && {
8583 test -z "$ac_c_werror_flag" ||
8584 test ! -s conftest.err
8585 } && test -s conftest.
$ac_objext; then
8586 ac_cv_member_struct_tm_tm_gmtoff
=yes
8588 $as_echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.
$ac_ext >&5
8591 ac_cv_member_struct_tm_tm_gmtoff
=no
8594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8599 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8600 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8601 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8603 cat >>confdefs.h
<<\_ACEOF
8604 #define HAVE_TM_GMTOFF 1
8609 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8610 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8611 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8612 $as_echo_n "(cached) " >&6
8614 cat >conftest.
$ac_ext <<_ACEOF
8617 cat confdefs.h
>>conftest.
$ac_ext
8618 cat >>conftest.
$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8620 $ac_includes_default
8621 #if HAVE_SYS_SOCKET_H
8622 #include <sys/socket.h>
8631 static struct ifreq ac_aggr;
8632 if (ac_aggr.ifr_flags)
8638 rm -f conftest.
$ac_objext
8639 if { (ac_try
="$ac_compile"
8641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8645 $as_echo "$ac_try_echo") >&5
8646 (eval "$ac_compile") 2>conftest.er1
8648 grep -v '^ *+' conftest.er1 >conftest.err
8650 cat conftest.err >&5
8651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } && {
8653 test -z "$ac_c_werror_flag" ||
8654 test ! -s conftest.err
8655 } && test -s conftest.$ac_objext; then
8656 ac_cv_member_struct_ifreq_ifr_flags=yes
8658 $as_echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8661 cat >conftest.$ac_ext <<_ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 $ac_includes_default
8668 #if HAVE_SYS_SOCKET_H
8669 #include <sys/socket.h>
8678 static struct ifreq ac_aggr;
8679 if (sizeof ac_aggr.ifr_flags)
8685 rm -f conftest.$ac_objext
8686 if { (ac_try="$ac_compile"
8688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8689 *) ac_try_echo
=$ac_try;;
8691 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8692 $as_echo "$ac_try_echo") >&5
8693 (eval "$ac_compile") 2>conftest.er1
8695 grep -v '^ *+' conftest.er1
>conftest.err
8697 cat conftest.err
>&5
8698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } && {
8700 test -z "$ac_c_werror_flag" ||
8701 test ! -s conftest.err
8702 } && test -s conftest.
$ac_objext; then
8703 ac_cv_member_struct_ifreq_ifr_flags
=yes
8705 $as_echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.
$ac_ext >&5
8708 ac_cv_member_struct_ifreq_ifr_flags
=no
8711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8716 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8717 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8718 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8720 cat >>confdefs.h
<<_ACEOF
8721 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8726 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8727 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8728 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8729 $as_echo_n "(cached) " >&6
8731 cat >conftest.
$ac_ext <<_ACEOF
8734 cat confdefs.h
>>conftest.
$ac_ext
8735 cat >>conftest.
$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8737 $ac_includes_default
8738 #if HAVE_SYS_SOCKET_H
8739 #include <sys/socket.h>
8748 static struct ifreq ac_aggr;
8749 if (ac_aggr.ifr_hwaddr)
8755 rm -f conftest.
$ac_objext
8756 if { (ac_try
="$ac_compile"
8758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8759 *) ac_try_echo=$ac_try;;
8761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8762 $as_echo "$ac_try_echo") >&5
8763 (eval "$ac_compile") 2>conftest.er1
8765 grep -v '^ *+' conftest.er1 >conftest.err
8767 cat conftest.err >&5
8768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } && {
8770 test -z "$ac_c_werror_flag" ||
8771 test ! -s conftest.err
8772 } && test -s conftest.$ac_objext; then
8773 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8775 $as_echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 cat >conftest.$ac_ext <<_ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8784 $ac_includes_default
8785 #if HAVE_SYS_SOCKET_H
8786 #include <sys/socket.h>
8795 static struct ifreq ac_aggr;
8796 if (sizeof ac_aggr.ifr_hwaddr)
8802 rm -f conftest.$ac_objext
8803 if { (ac_try="$ac_compile"
8805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8806 *) ac_try_echo
=$ac_try;;
8808 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8809 $as_echo "$ac_try_echo") >&5
8810 (eval "$ac_compile") 2>conftest.er1
8812 grep -v '^ *+' conftest.er1
>conftest.err
8814 cat conftest.err
>&5
8815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } && {
8817 test -z "$ac_c_werror_flag" ||
8818 test ! -s conftest.err
8819 } && test -s conftest.
$ac_objext; then
8820 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8822 $as_echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.
$ac_ext >&5
8825 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8833 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8834 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8835 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8837 cat >>confdefs.h
<<_ACEOF
8838 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8843 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8844 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8845 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8846 $as_echo_n "(cached) " >&6
8848 cat >conftest.
$ac_ext <<_ACEOF
8851 cat confdefs.h
>>conftest.
$ac_ext
8852 cat >>conftest.
$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 $ac_includes_default
8855 #if HAVE_SYS_SOCKET_H
8856 #include <sys/socket.h>
8865 static struct ifreq ac_aggr;
8866 if (ac_aggr.ifr_netmask)
8872 rm -f conftest.
$ac_objext
8873 if { (ac_try
="$ac_compile"
8875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8879 $as_echo "$ac_try_echo") >&5
8880 (eval "$ac_compile") 2>conftest.er1
8882 grep -v '^ *+' conftest.er1 >conftest.err
8884 cat conftest.err >&5
8885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } && {
8887 test -z "$ac_c_werror_flag" ||
8888 test ! -s conftest.err
8889 } && test -s conftest.$ac_objext; then
8890 ac_cv_member_struct_ifreq_ifr_netmask=yes
8892 $as_echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8895 cat >conftest.$ac_ext <<_ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8901 $ac_includes_default
8902 #if HAVE_SYS_SOCKET_H
8903 #include <sys/socket.h>
8912 static struct ifreq ac_aggr;
8913 if (sizeof ac_aggr.ifr_netmask)
8919 rm -f conftest.$ac_objext
8920 if { (ac_try="$ac_compile"
8922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8923 *) ac_try_echo
=$ac_try;;
8925 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8926 $as_echo "$ac_try_echo") >&5
8927 (eval "$ac_compile") 2>conftest.er1
8929 grep -v '^ *+' conftest.er1
>conftest.err
8931 cat conftest.err
>&5
8932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); } && {
8934 test -z "$ac_c_werror_flag" ||
8935 test ! -s conftest.err
8936 } && test -s conftest.
$ac_objext; then
8937 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8939 $as_echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.
$ac_ext >&5
8942 ac_cv_member_struct_ifreq_ifr_netmask
=no
8945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8950 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8951 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8952 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8954 cat >>confdefs.h
<<_ACEOF
8955 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8960 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8961 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8962 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8963 $as_echo_n "(cached) " >&6
8965 cat >conftest.
$ac_ext <<_ACEOF
8968 cat confdefs.h
>>conftest.
$ac_ext
8969 cat >>conftest.
$ac_ext <<_ACEOF
8970 /* end confdefs.h. */
8971 $ac_includes_default
8972 #if HAVE_SYS_SOCKET_H
8973 #include <sys/socket.h>
8982 static struct ifreq ac_aggr;
8983 if (ac_aggr.ifr_broadaddr)
8989 rm -f conftest.
$ac_objext
8990 if { (ac_try
="$ac_compile"
8992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8993 *) ac_try_echo=$ac_try;;
8995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8996 $as_echo "$ac_try_echo") >&5
8997 (eval "$ac_compile") 2>conftest.er1
8999 grep -v '^ *+' conftest.er1 >conftest.err
9001 cat conftest.err >&5
9002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } && {
9004 test -z "$ac_c_werror_flag" ||
9005 test ! -s conftest.err
9006 } && test -s conftest.$ac_objext; then
9007 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9009 $as_echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9012 cat >conftest.$ac_ext <<_ACEOF
9015 cat confdefs.h >>conftest.$ac_ext
9016 cat >>conftest.$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 $ac_includes_default
9019 #if HAVE_SYS_SOCKET_H
9020 #include <sys/socket.h>
9029 static struct ifreq ac_aggr;
9030 if (sizeof ac_aggr.ifr_broadaddr)
9036 rm -f conftest.$ac_objext
9037 if { (ac_try="$ac_compile"
9039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9040 *) ac_try_echo
=$ac_try;;
9042 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9043 $as_echo "$ac_try_echo") >&5
9044 (eval "$ac_compile") 2>conftest.er1
9046 grep -v '^ *+' conftest.er1
>conftest.err
9048 cat conftest.err
>&5
9049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } && {
9051 test -z "$ac_c_werror_flag" ||
9052 test ! -s conftest.err
9053 } && test -s conftest.
$ac_objext; then
9054 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
9056 $as_echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.
$ac_ext >&5
9059 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
9062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9067 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9068 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9069 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9071 cat >>confdefs.h
<<_ACEOF
9072 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9077 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9078 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9079 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9080 $as_echo_n "(cached) " >&6
9082 cat >conftest.
$ac_ext <<_ACEOF
9085 cat confdefs.h
>>conftest.
$ac_ext
9086 cat >>conftest.
$ac_ext <<_ACEOF
9087 /* end confdefs.h. */
9088 $ac_includes_default
9089 #if HAVE_SYS_SOCKET_H
9090 #include <sys/socket.h>
9099 static struct ifreq ac_aggr;
9100 if (ac_aggr.ifr_addr)
9106 rm -f conftest.
$ac_objext
9107 if { (ac_try
="$ac_compile"
9109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9113 $as_echo "$ac_try_echo") >&5
9114 (eval "$ac_compile") 2>conftest.er1
9116 grep -v '^ *+' conftest.er1 >conftest.err
9118 cat conftest.err >&5
9119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } && {
9121 test -z "$ac_c_werror_flag" ||
9122 test ! -s conftest.err
9123 } && test -s conftest.$ac_objext; then
9124 ac_cv_member_struct_ifreq_ifr_addr=yes
9126 $as_echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9129 cat >conftest.$ac_ext <<_ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9135 $ac_includes_default
9136 #if HAVE_SYS_SOCKET_H
9137 #include <sys/socket.h>
9146 static struct ifreq ac_aggr;
9147 if (sizeof ac_aggr.ifr_addr)
9153 rm -f conftest.$ac_objext
9154 if { (ac_try="$ac_compile"
9156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9157 *) ac_try_echo
=$ac_try;;
9159 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9160 $as_echo "$ac_try_echo") >&5
9161 (eval "$ac_compile") 2>conftest.er1
9163 grep -v '^ *+' conftest.er1
>conftest.err
9165 cat conftest.err
>&5
9166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); } && {
9168 test -z "$ac_c_werror_flag" ||
9169 test ! -s conftest.err
9170 } && test -s conftest.
$ac_objext; then
9171 ac_cv_member_struct_ifreq_ifr_addr
=yes
9173 $as_echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.
$ac_ext >&5
9176 ac_cv_member_struct_ifreq_ifr_addr
=no
9179 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9184 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9185 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9186 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9188 cat >>confdefs.h
<<_ACEOF
9189 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9197 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9198 $as_echo_n "checking for function prototypes... " >&6; }
9199 if test "$ac_cv_prog_cc_c89" != no
; then
9200 { $as_echo "$as_me:$LINENO: result: yes" >&5
9201 $as_echo "yes" >&6; }
9203 cat >>confdefs.h
<<\_ACEOF
9204 #define PROTOTYPES 1
9208 cat >>confdefs.h
<<\_ACEOF
9209 #define __PROTOTYPES 1
9213 { $as_echo "$as_me:$LINENO: result: no" >&5
9214 $as_echo "no" >&6; }
9217 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9218 $as_echo_n "checking for working volatile... " >&6; }
9219 if test "${ac_cv_c_volatile+set}" = set; then
9220 $as_echo_n "(cached) " >&6
9222 cat >conftest.
$ac_ext <<_ACEOF
9225 cat confdefs.h
>>conftest.
$ac_ext
9226 cat >>conftest.
$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9234 int * volatile y = (int *) 0;
9240 rm -f conftest.
$ac_objext
9241 if { (ac_try
="$ac_compile"
9243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9247 $as_echo "$ac_try_echo") >&5
9248 (eval "$ac_compile") 2>conftest.er1
9250 grep -v '^ *+' conftest.er1 >conftest.err
9252 cat conftest.err >&5
9253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } && {
9255 test -z "$ac_c_werror_flag" ||
9256 test ! -s conftest.err
9257 } && test -s conftest.$ac_objext; then
9258 ac_cv_c_volatile=yes
9260 $as_echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9268 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9269 $as_echo "$ac_cv_c_volatile" >&6; }
9270 if test $ac_cv_c_volatile = no; then
9272 cat >>confdefs.h <<\_ACEOF
9273 #define volatile /**/
9278 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9279 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9280 if test "${ac_cv_c_const+set}" = set; then
9281 $as_echo_n "(cached) " >&6
9283 cat >conftest.$ac_ext <<_ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h. */
9293 /* FIXME: Include the comments suggested by Paul. */
9295 /* Ultrix mips cc rejects this. */
9296 typedef int charset[2];
9298 /* SunOS 4.1.1 cc rejects this. */
9299 char const *const *pcpcc;
9301 /* NEC SVR4.0.2 mips cc rejects this. */
9302 struct point {int x, y;};
9303 static struct point const zero = {0,0};
9304 /* AIX XL C 1.02.0.0 rejects this.
9305 It does not let you subtract one const X* pointer from another in
9306 an arm of an if-expression whose if-part is not a constant
9308 const char *g = "string";
9309 pcpcc = &g + (g ? g-g : 0);
9310 /* HPUX 7.0 cc rejects these. */
9312 ppc = (char**) pcpcc;
9313 pcpcc = (char const *const *) ppc;
9314 { /* SCO 3.2v4 cc rejects this. */
9316 char const *s = 0 ? (char *) 0 : (char const *) 0;
9321 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9323 const int *foo = &x[0];
9326 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9327 typedef const int *iptr;
9331 { /* AIX XL C 1.02.0.0 rejects this saying
9332 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9333 struct s { int j; const int *ap[3]; };
9334 struct s *b; b->j = 5;
9336 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9340 return !cs[0] && !zero.x;
9347 rm -f conftest.$ac_objext
9348 if { (ac_try="$ac_compile"
9350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9351 *) ac_try_echo
=$ac_try;;
9353 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9354 $as_echo "$ac_try_echo") >&5
9355 (eval "$ac_compile") 2>conftest.er1
9357 grep -v '^ *+' conftest.er1
>conftest.err
9359 cat conftest.err
>&5
9360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && {
9362 test -z "$ac_c_werror_flag" ||
9363 test ! -s conftest.err
9364 } && test -s conftest.
$ac_objext; then
9367 $as_echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.
$ac_ext >&5
9373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9375 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9376 $as_echo "$ac_cv_c_const" >&6; }
9377 if test $ac_cv_c_const = no
; then
9379 cat >>confdefs.h
<<\_ACEOF
9385 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9386 $as_echo_n "checking for void * support... " >&6; }
9387 if test "${emacs_cv_void_star+set}" = set; then
9388 $as_echo_n "(cached) " >&6
9390 cat >conftest.
$ac_ext <<_ACEOF
9393 cat confdefs.h
>>conftest.
$ac_ext
9394 cat >>conftest.
$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9405 rm -f conftest.
$ac_objext
9406 if { (ac_try
="$ac_compile"
9408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9412 $as_echo "$ac_try_echo") >&5
9413 (eval "$ac_compile") 2>conftest.er1
9415 grep -v '^ *+' conftest.er1 >conftest.err
9417 cat conftest.err >&5
9418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 (exit $ac_status); } && {
9420 test -z "$ac_c_werror_flag" ||
9421 test ! -s conftest.err
9422 } && test -s conftest.$ac_objext; then
9423 emacs_cv_void_star=yes
9425 $as_echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9428 emacs_cv_void_star=no
9431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9433 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9434 $as_echo "$emacs_cv_void_star" >&6; }
9435 if test $emacs_cv_void_star = yes; then
9436 cat >>confdefs.h <<\_ACEOF
9437 #define POINTER_TYPE void
9441 cat >>confdefs.h <<\_ACEOF
9442 #define POINTER_TYPE char
9451 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9452 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9454 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9455 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9456 $as_echo_n "(cached) " >&6
9458 cat >conftest.make <<\_ACEOF
9461 @echo '@@@%%%=$(MAKE)=@@@%%%'
9463 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9464 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9466 eval ac_cv_prog_make_${ac_make}_set=yes;;
9468 eval ac_cv_prog_make_${ac_make}_set=no;;
9472 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9473 { $as_echo "$as_me:$LINENO: result: yes" >&5
9474 $as_echo "yes" >&6; }
9477 { $as_echo "$as_me:$LINENO: result: no" >&5
9478 $as_echo "no" >&6; }
9479 SET_MAKE="MAKE=${MAKE-make}"
9486 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9487 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9488 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9490 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9491 if test "x$testval" != x; then
9494 ac_enable_autodepend=no
9496 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9497 $as_echo "$HAVE_GNU_MAKE" >&6; }
9498 if test $HAVE_GNU_MAKE = yes; then
9499 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9500 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9501 SAVE_CFLAGS="$CFLAGS"
9502 CFLAGS="$CFLAGS -MMD -MF deps.d"
9503 cat >conftest.$ac_ext <<_ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9518 rm -f conftest.$ac_objext
9519 if { (ac_try="$ac_compile"
9521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9522 *) ac_try_echo
=$ac_try;;
9524 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9525 $as_echo "$ac_try_echo") >&5
9526 (eval "$ac_compile") 2>conftest.er1
9528 grep -v '^ *+' conftest.er1
>conftest.err
9530 cat conftest.err
>&5
9531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } && {
9533 test -z "$ac_c_werror_flag" ||
9534 test ! -s conftest.err
9535 } && test -s conftest.
$ac_objext; then
9538 $as_echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.
$ac_ext >&5
9541 ac_enable_autodepend
=no
9544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9545 CFLAGS
="$SAVE_CFLAGS"
9546 test -f deps.d || ac_enable_autodepend
=no
9548 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9549 $as_echo "$ac_enable_autodepend" >&6; }
9551 if test $ac_enable_autodepend = yes; then
9552 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
9553 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR}'
9554 deps_frag
=autodeps.mk
9557 deps_frag
=$srcdir/src
/$deps_frag
9563 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9564 $as_echo_n "checking for long file names... " >&6; }
9565 if test "${ac_cv_sys_long_file_names+set}" = set; then
9566 $as_echo_n "(cached) " >&6
9568 ac_cv_sys_long_file_names
=yes
9569 # Test for long file names in all the places we know might matter:
9570 # . the current directory, where building will happen
9571 # $prefix/lib where we will be installing things
9572 # $exec_prefix/lib likewise
9573 # $TMPDIR if set, where it might want to write temporary files
9574 # /tmp where it might want to write temporary files
9577 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9578 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9579 # in the usual case where exec_prefix is '${prefix}'.
9581 . |
/* | ?
:[\\/]*) ;; #(
9584 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9585 ac_xdir
=$ac_dir/cf$$
9586 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9587 ac_tf1
=$ac_xdir/conftest9012345
9588 ac_tf2
=$ac_xdir/conftest9012346
9589 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9590 ac_cv_sys_long_file_names
=no
9591 rm -f -r "$ac_xdir" 2>/dev
/null
9592 test $ac_cv_sys_long_file_names = no
&& break
9595 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9596 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9597 if test $ac_cv_sys_long_file_names = yes; then
9599 cat >>confdefs.h
<<\_ACEOF
9600 #define HAVE_LONG_FILE_NAMES 1
9606 #### Choose a window system.
9608 { $as_echo "$as_me:$LINENO: checking for X" >&5
9609 $as_echo_n "checking for X... " >&6; }
9612 # Check whether --with-x was given.
9613 if test "${with_x+set}" = set; then
9617 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9618 if test "x$with_x" = xno
; then
9619 # The user explicitly disabled X.
9622 case $x_includes,$x_libraries in #(
9623 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9624 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9625 { (exit 1); exit 1; }; };; #(
9626 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9627 $as_echo_n "(cached) " >&6
9629 # One or both of the vars are not set, and there is no cached value.
9630 ac_x_includes
=no ac_x_libraries
=no
9631 rm -f -r conftest.dir
9632 if mkdir conftest.dir
; then
9634 cat >Imakefile
<<'_ACEOF'
9636 @echo incroot='${INCROOT}'
9638 @echo usrlibdir='${USRLIBDIR}'
9640 @echo libdir='${LIBDIR}'
9642 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9643 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9644 for ac_var
in incroot usrlibdir libdir
; do
9645 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9647 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9648 for ac_extension
in a so sl dylib la dll
; do
9649 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9650 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9651 ac_im_usrlibdir
=$ac_im_libdir; break
9654 # Screen out bogus values from the imake configuration. They are
9655 # bogus both because they are the default anyway, and because
9656 # using them would break gcc on systems where it needs fixed includes.
9657 case $ac_im_incroot in
9658 /usr
/include
) ac_x_includes
= ;;
9659 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9661 case $ac_im_usrlibdir in
9663 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9667 rm -f -r conftest.dir
9670 # Standard set of common directories for X headers.
9671 # Check X11 before X11Rn because it is often a symlink to the current release.
9683 /usr/local/X11/include
9684 /usr/local/X11R6/include
9685 /usr/local/X11R5/include
9686 /usr/local/X11R4/include
9688 /usr/local/include/X11
9689 /usr/local/include/X11R6
9690 /usr/local/include/X11R5
9691 /usr/local/include/X11R4
9695 /usr/XFree86/include/X11
9699 /usr/unsupported/include
9701 /usr/local/x11r5/include
9702 /usr/lpp/Xamples/include
9704 /usr/openwin/include
9705 /usr/openwin/share/include'
9707 if test "$ac_x_includes" = no
; then
9708 # Guess where to find include files, by looking for Xlib.h.
9709 # First, try using that file with no special directory specified.
9710 cat >conftest.
$ac_ext <<_ACEOF
9713 cat confdefs.h
>>conftest.
$ac_ext
9714 cat >>conftest.
$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9716 #include <X11/Xlib.h>
9718 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9724 $as_echo "$ac_try_echo") >&5
9725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9727 grep -v '^ *+' conftest.er1 >conftest.err
9729 cat conftest.err >&5
9730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } >/dev/null && {
9732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9733 test ! -s conftest.err
9735 # We can compile using X headers with no special include directory.
9738 $as_echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 for ac_dir in $ac_x_header_dirs; do
9742 if test -r "$ac_dir/X11/Xlib.h"; then
9743 ac_x_includes=$ac_dir
9749 rm -f conftest.err conftest.$ac_ext
9750 fi # $ac_x_includes = no
9752 if test "$ac_x_libraries" = no; then
9753 # Check for the libraries.
9754 # See if we find them without any special options.
9755 # Don't add to $LIBS permanently.
9758 cat >conftest.$ac_ext <<_ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9764 #include <X11/Xlib.h>
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (ac_try="$ac_link"
9776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9777 *) ac_try_echo
=$ac_try;;
9779 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9780 $as_echo "$ac_try_echo") >&5
9781 (eval "$ac_link") 2>conftest.er1
9783 grep -v '^ *+' conftest.er1
>conftest.err
9785 cat conftest.err
>&5
9786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } && {
9788 test -z "$ac_c_werror_flag" ||
9789 test ! -s conftest.err
9790 } && test -s conftest
$ac_exeext && {
9791 test "$cross_compiling" = yes ||
9792 $as_test_x conftest
$ac_exeext
9795 # We can link X programs with no special library path.
9798 $as_echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.
$ac_ext >&5
9802 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9804 # Don't even attempt the hair of trying to link an X program!
9805 for ac_extension
in a so sl dylib la dll
; do
9806 if test -r "$ac_dir/libX11.$ac_extension"; then
9807 ac_x_libraries
=$ac_dir
9814 rm -rf conftest.dSYM
9815 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9816 conftest
$ac_exeext conftest.
$ac_ext
9817 fi # $ac_x_libraries = no
9819 case $ac_x_includes,$ac_x_libraries in #(
9821 # Didn't find X, or a directory has "'" in its name.
9822 ac_cv_have_x
="have_x=no";; #(
9824 # Record where we found X for the cache.
9825 ac_cv_have_x
="have_x=yes\
9826 ac_x_includes='$ac_x_includes'\
9827 ac_x_libraries='$ac_x_libraries'"
9833 eval "$ac_cv_have_x"
9836 if test "$have_x" != yes; then
9837 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9838 $as_echo "$have_x" >&6; }
9841 # If each of the values was on the command line, it overrides each guess.
9842 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9843 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9844 # Update the cache value to reflect the command line values.
9845 ac_cv_have_x
="have_x=yes\
9846 ac_x_includes='$x_includes'\
9847 ac_x_libraries='$x_libraries'"
9848 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9849 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9852 if test "$no_x" = yes; then
9858 ## Workaround for bug in autoconf <= 2.62.
9859 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9860 ## No need to do anything special for these standard directories.
9861 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9863 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9867 LD_SWITCH_X_SITE_AUX
=
9868 LD_SWITCH_X_SITE_AUX_RPATH
=
9869 if test "${x_libraries}" != NONE
; then
9870 if test -n "${x_libraries}"; then
9871 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9872 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9873 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9875 x_default_search_path
=""
9876 x_search_path
=${x_libraries}
9877 if test -z "${x_search_path}"; then
9878 x_search_path
=/usr
/lib
9880 for x_library
in `echo ${x_search_path}: | \
9881 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9883 ${x_library}/X11/%L/%T/%N%C%S:\
9884 ${x_library}/X11/%l/%T/%N%C%S:\
9885 ${x_library}/X11/%T/%N%C%S:\
9886 ${x_library}/X11/%L/%T/%N%S:\
9887 ${x_library}/X11/%l/%T/%N%S:\
9888 ${x_library}/X11/%T/%N%S"
9889 if test x
"${x_default_search_path}" = x
; then
9890 x_default_search_path
=${x_search_path}
9892 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9899 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9900 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9903 if test x
"${x_includes}" = x
; then
9904 bitmapdir
=/usr
/include
/X11
/bitmaps
9906 # accumulate include directories that have X11 bitmap subdirectories
9908 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9909 if test -d "${bmd}/X11/bitmaps"; then
9910 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9912 if test -d "${bmd}/bitmaps"; then
9913 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9916 if test ${bmd_acc} != "dummyval"; then
9917 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9924 NS_IMPL_GNUSTEP_INC
=
9925 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
=
9926 tmp_CPPFLAGS
="$CPPFLAGS"
9927 tmp_CFLAGS
="$CFLAGS"
9928 CPPFLAGS
="$CPPFLAGS -x objective-c"
9929 CFLAGS
="$CFLAGS -x objective-c"
9930 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9931 if test "${with_ns}" != no
; then
9932 if test "${opsys}" = darwin
; then
9934 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
9935 ns_appbindir
=${ns_appdir}Contents
/MacOS
/
9936 ns_appresdir
=${ns_appdir}Contents
/Resources
9937 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9938 elif test -f $GNUSTEP_CONFIG_FILE; then
9940 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
9941 ns_appbindir
=${ns_appdir}
9942 ns_appresdir
=${ns_appdir}Resources
9943 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9944 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9945 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9946 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9947 ## Pull in stuff from GNUstep-make.
9948 NS_IMPL_GNUSTEP_INC
="FOUNDATION_LIB=gnu
9950 include $GNUSTEP_MAKEFILES/Additional/base.make
9951 include $GNUSTEP_MAKEFILES/Additional/gui.make
9954 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
="-L${GNUSTEP_SYSTEM_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc \${CONFIG_SYSTEM_LIBS} -lpthread"
9955 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9956 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9957 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9958 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9963 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9964 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9965 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9966 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9967 $as_echo_n "(cached) " >&6
9969 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9970 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9972 # Is the header compilable?
9973 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9974 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9975 cat >conftest.
$ac_ext <<_ACEOF
9978 cat confdefs.h
>>conftest.
$ac_ext
9979 cat >>conftest.
$ac_ext <<_ACEOF
9980 /* end confdefs.h. */
9981 $ac_includes_default
9982 #include <AppKit/AppKit.h>
9984 rm -f conftest.
$ac_objext
9985 if { (ac_try
="$ac_compile"
9987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9991 $as_echo "$ac_try_echo") >&5
9992 (eval "$ac_compile") 2>conftest.er1
9994 grep -v '^ *+' conftest.er1 >conftest.err
9996 cat conftest.err >&5
9997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } && {
9999 test -z "$ac_c_werror_flag" ||
10000 test ! -s conftest.err
10001 } && test -s conftest.$ac_objext; then
10002 ac_header_compiler=yes
10004 $as_echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 ac_header_compiler=no
10010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10011 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10012 $as_echo "$ac_header_compiler" >&6; }
10014 # Is the header present?
10015 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10016 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10017 cat >conftest.$ac_ext <<_ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 #include <AppKit/AppKit.h>
10025 if { (ac_try="$ac_cpp conftest.$ac_ext"
10026 case "(($ac_try" in
10027 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10028 *) ac_try_echo
=$ac_try;;
10030 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10031 $as_echo "$ac_try_echo") >&5
10032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10034 grep -v '^ *+' conftest.er1
>conftest.err
10036 cat conftest.err
>&5
10037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } >/dev
/null
&& {
10039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10040 test ! -s conftest.err
10042 ac_header_preproc
=yes
10044 $as_echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.
$ac_ext >&5
10047 ac_header_preproc
=no
10050 rm -f conftest.err conftest.
$ac_ext
10051 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10052 $as_echo "$ac_header_preproc" >&6; }
10054 # So? What about this header?
10055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10057 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10058 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10059 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10060 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10061 ac_header_preproc
=yes
10064 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10065 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10066 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10067 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10068 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10069 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10070 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10071 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10072 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10073 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10074 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10075 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10079 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10080 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10081 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10082 $as_echo_n "(cached) " >&6
10084 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
10086 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10087 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10090 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10093 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10094 files are missing or cannot be compiled." >&5
10095 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10096 files are missing or cannot be compiled." >&2;}
10097 { (exit 1); exit 1; }; }
10101 NS_HAVE_NSINTEGER
=yes
10102 cat >conftest.
$ac_ext <<_ACEOF
10105 cat confdefs.h
>>conftest.
$ac_ext
10106 cat >>conftest.
$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10108 #include <Foundation/NSObjCRuntime.h>
10117 rm -f conftest.
$ac_objext
10118 if { (ac_try
="$ac_compile"
10119 case "(($ac_try" in
10120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10124 $as_echo "$ac_try_echo") >&5
10125 (eval "$ac_compile") 2>conftest.er1
10127 grep -v '^ *+' conftest.er1 >conftest.err
10129 cat conftest.err >&5
10130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); } && {
10132 test -z "$ac_c_werror_flag" ||
10133 test ! -s conftest.err
10134 } && test -s conftest.$ac_objext; then
10135 ns_have_nsinteger=yes
10137 $as_echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10140 ns_have_nsinteger=no
10143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10144 if test $ns_have_nsinteger = no; then
10145 NS_HAVE_NSINTEGER=no
10154 if test "${HAVE_NS}" = yes; then
10155 window_system=nextstep
10157 # set up packaging dirs
10158 exec_prefix=${ns_appbindir}
10159 libexecdir=${ns_appbindir}/libexec
10160 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10161 prefix=${ns_appresdir}
10163 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10164 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10166 CFLAGS="$tmp_CFLAGS"
10167 CPPFLAGS="$tmp_CPPFLAGS"
10172 case "${window_system}" in
10176 case "${with_x_toolkit}" in
10177 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10178 motif ) USE_X_TOOLKIT=MOTIF ;;
10180 USE_X_TOOLKIT=none ;;
10181 no ) USE_X_TOOLKIT=none ;;
10182 * ) USE_X_TOOLKIT=maybe ;;
10192 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10193 # Extract the first word of "X", so it can be a program name with args.
10194 set dummy X; ac_word=$2
10195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10196 $as_echo_n "checking for $ac_word... " >&6; }
10197 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10198 $as_echo_n "(cached) " >&6
10200 if test -n "$HAVE_XSERVER"; then
10201 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204 for as_dir in $PATH
10207 test -z "$as_dir" && as_dir=.
10208 for ac_exec_ext in '' $ac_executable_extensions; do
10209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10210 ac_cv_prog_HAVE_XSERVER="true"
10211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10218 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10221 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10222 if test -n "$HAVE_XSERVER"; then
10223 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10224 $as_echo "$HAVE_XSERVER" >&6; }
10226 { $as_echo "$as_me:$LINENO: result: no" >&5
10227 $as_echo "no" >&6; }
10231 if test "$HAVE_XSERVER" = true ||
10232 test -n "$DISPLAY" ||
10233 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
10234 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10235 were found. You should install the relevant development files for X
10236 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10237 sure you have development files for image handling, i.e.
10238 tiff, gif, jpeg, png and xpm.
10239 If you are sure you want Emacs compiled without X window support, pass
10242 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10243 were found. You should install the relevant development files for X
10244 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10245 sure you have development files for image handling, i.e.
10246 tiff, gif, jpeg, png and xpm.
10247 If you are sure you want Emacs compiled without X window support, pass
10249 to configure." >&2;}
10250 { (exit 1); exit 1; }; }
10254 ### If we're using X11, we should use the X menu package.
10256 case ${HAVE_X11} in
10257 yes ) HAVE_MENUS=yes ;;
10260 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10261 # Assume not, until told otherwise.
10263 doug_lea_malloc=yes
10264 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10265 $as_echo_n "checking for malloc_get_state... " >&6; }
10266 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10267 $as_echo_n "(cached) " >&6
10269 cat >conftest.$ac_ext <<_ACEOF
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h. */
10275 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10277 #define malloc_get_state innocuous_malloc_get_state
10279 /* System header to define __stub macros and hopefully few prototypes,
10280 which can conflict with char malloc_get_state (); below.
10281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10282 <limits.h> exists even on freestanding compilers. */
10285 # include <limits.h>
10287 # include <assert.h>
10290 #undef malloc_get_state
10292 /* Override any GCC internal prototype to avoid an error.
10293 Use char because int might match the return type of a GCC
10294 builtin and then its argument prototype would still apply. */
10298 char malloc_get_state ();
10299 /* The GNU C library defines this for functions which it implements
10300 to always fail with ENOSYS. Some functions are actually named
10301 something starting with __ and the normal name is an alias. */
10302 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10309 return malloc_get_state ();
10314 rm -f conftest.$ac_objext conftest$ac_exeext
10315 if { (ac_try="$ac_link"
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_link") 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); } && {
10329 test -z "$ac_c_werror_flag" ||
10330 test ! -s conftest.err
10331 } && test -s conftest
$ac_exeext && {
10332 test "$cross_compiling" = yes ||
10333 $as_test_x conftest
$ac_exeext
10335 ac_cv_func_malloc_get_state
=yes
10337 $as_echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.
$ac_ext >&5
10340 ac_cv_func_malloc_get_state
=no
10343 rm -rf conftest.dSYM
10344 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10345 conftest
$ac_exeext conftest.
$ac_ext
10347 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10348 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10349 if test $ac_cv_func_malloc_get_state = yes; then
10355 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10356 $as_echo_n "checking for malloc_set_state... " >&6; }
10357 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10358 $as_echo_n "(cached) " >&6
10360 cat >conftest.
$ac_ext <<_ACEOF
10363 cat confdefs.h
>>conftest.
$ac_ext
10364 cat >>conftest.
$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10368 #define malloc_set_state innocuous_malloc_set_state
10370 /* System header to define __stub macros and hopefully few prototypes,
10371 which can conflict with char malloc_set_state (); below.
10372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10373 <limits.h> exists even on freestanding compilers. */
10376 # include <limits.h>
10378 # include <assert.h>
10381 #undef malloc_set_state
10383 /* Override any GCC internal prototype to avoid an error.
10384 Use char because int might match the return type of a GCC
10385 builtin and then its argument prototype would still apply. */
10389 char malloc_set_state ();
10390 /* The GNU C library defines this for functions which it implements
10391 to always fail with ENOSYS. Some functions are actually named
10392 something starting with __ and the normal name is an alias. */
10393 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10400 return malloc_set_state ();
10405 rm -f conftest.
$ac_objext conftest
$ac_exeext
10406 if { (ac_try
="$ac_link"
10407 case "(($ac_try" in
10408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10409 *) ac_try_echo=$ac_try;;
10411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10412 $as_echo "$ac_try_echo") >&5
10413 (eval "$ac_link") 2>conftest.er1
10415 grep -v '^ *+' conftest.er1 >conftest.err
10417 cat conftest.err >&5
10418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } && {
10420 test -z "$ac_c_werror_flag" ||
10421 test ! -s conftest.err
10422 } && test -s conftest$ac_exeext && {
10423 test "$cross_compiling" = yes ||
10424 $as_test_x conftest$ac_exeext
10426 ac_cv_func_malloc_set_state=yes
10428 $as_echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10431 ac_cv_func_malloc_set_state=no
10434 rm -rf conftest.dSYM
10435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10436 conftest$ac_exeext conftest.$ac_ext
10438 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10439 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10440 if test $ac_cv_func_malloc_set_state = yes; then
10446 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10447 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10448 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10449 $as_echo_n "(cached) " >&6
10451 cat >conftest.$ac_ext <<_ACEOF
10454 cat confdefs.h >>conftest.$ac_ext
10455 cat >>conftest.$ac_ext <<_ACEOF
10456 /* end confdefs.h. */
10457 extern void (* __after_morecore_hook)();
10461 __after_morecore_hook = 0
10466 rm -f conftest.$ac_objext conftest$ac_exeext
10467 if { (ac_try="$ac_link"
10468 case "(($ac_try" in
10469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10470 *) ac_try_echo
=$ac_try;;
10472 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10473 $as_echo "$ac_try_echo") >&5
10474 (eval "$ac_link") 2>conftest.er1
10476 grep -v '^ *+' conftest.er1
>conftest.err
10478 cat conftest.err
>&5
10479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 } && test -s conftest
$ac_exeext && {
10484 test "$cross_compiling" = yes ||
10485 $as_test_x conftest
$ac_exeext
10487 emacs_cv_var___after_morecore_hook
=yes
10489 $as_echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.
$ac_ext >&5
10492 emacs_cv_var___after_morecore_hook
=no
10495 rm -rf conftest.dSYM
10496 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10497 conftest
$ac_exeext conftest.
$ac_ext
10499 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10500 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10501 if test $emacs_cv_var___after_morecore_hook = no
; then
10505 if test "${system_malloc}" = "yes"; then
10507 GNU_MALLOC_reason
="
10508 (The GNU allocators don't work with this system configuration.)"
10512 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10513 VMLIMIT_OBJ
=vm-limit.o
10518 if test "$doug_lea_malloc" = "yes" ; then
10519 if test "$GNU_MALLOC" = yes ; then
10520 GNU_MALLOC_reason
="
10521 (Using Doug Lea's new malloc from the GNU C Library.)"
10524 cat >>confdefs.h
<<\_ACEOF
10525 #define DOUG_LEA_MALLOC 1
10529 ## Use mmap directly for allocating larger buffers.
10530 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10531 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10532 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10534 gnu
*) REL_ALLOC
=no
;;
10538 if test x
"${REL_ALLOC}" = x
; then
10539 REL_ALLOC
=${GNU_MALLOC}
10545 for ac_header
in stdlib.h unistd.h
10547 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10548 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10549 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10550 $as_echo_n "checking for $ac_header... " >&6; }
10551 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10552 $as_echo_n "(cached) " >&6
10554 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10555 $as_echo "$as_val"'`
10556 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10557 $as_echo "$ac_res" >&6; }
10559 # Is the header compilable?
10560 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10561 $as_echo_n "checking $ac_header usability... " >&6; }
10562 cat >conftest.
$ac_ext <<_ACEOF
10565 cat confdefs.h
>>conftest.
$ac_ext
10566 cat >>conftest.
$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10568 $ac_includes_default
10569 #include <$ac_header>
10571 rm -f conftest.
$ac_objext
10572 if { (ac_try
="$ac_compile"
10573 case "(($ac_try" in
10574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10578 $as_echo "$ac_try_echo") >&5
10579 (eval "$ac_compile") 2>conftest.er1
10581 grep -v '^ *+' conftest.er1 >conftest.err
10583 cat conftest.err >&5
10584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } && {
10586 test -z "$ac_c_werror_flag" ||
10587 test ! -s conftest.err
10588 } && test -s conftest.$ac_objext; then
10589 ac_header_compiler=yes
10591 $as_echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10594 ac_header_compiler=no
10597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10598 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10599 $as_echo "$ac_header_compiler" >&6; }
10601 # Is the header present?
10602 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10603 $as_echo_n "checking $ac_header presence... " >&6; }
10604 cat >conftest.$ac_ext <<_ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h. */
10610 #include <$ac_header>
10612 if { (ac_try="$ac_cpp conftest.$ac_ext"
10613 case "(($ac_try" in
10614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10615 *) ac_try_echo
=$ac_try;;
10617 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10618 $as_echo "$ac_try_echo") >&5
10619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10621 grep -v '^ *+' conftest.er1
>conftest.err
10623 cat conftest.err
>&5
10624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } >/dev
/null
&& {
10626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10627 test ! -s conftest.err
10629 ac_header_preproc
=yes
10631 $as_echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.
$ac_ext >&5
10634 ac_header_preproc
=no
10637 rm -f conftest.err conftest.
$ac_ext
10638 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10639 $as_echo "$ac_header_preproc" >&6; }
10641 # So? What about this header?
10642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10645 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10647 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10648 ac_header_preproc
=yes
10651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10652 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10654 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10656 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10658 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10660 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10662 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10666 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10667 $as_echo_n "checking for $ac_header... " >&6; }
10668 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10669 $as_echo_n "(cached) " >&6
10671 eval "$as_ac_Header=\$ac_header_preproc"
10673 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10674 $as_echo "$as_val"'`
10675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10676 $as_echo "$ac_res" >&6; }
10679 if test `eval 'as_val=${'$as_ac_Header'}
10680 $as_echo "$as_val"'` = yes; then
10681 cat >>confdefs.h
<<_ACEOF
10682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10690 for ac_func
in getpagesize
10692 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10693 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10694 $as_echo_n "checking for $ac_func... " >&6; }
10695 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10696 $as_echo_n "(cached) " >&6
10698 cat >conftest.
$ac_ext <<_ACEOF
10701 cat confdefs.h
>>conftest.
$ac_ext
10702 cat >>conftest.
$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10706 #define $ac_func innocuous_$ac_func
10708 /* System header to define __stub macros and hopefully few prototypes,
10709 which can conflict with char $ac_func (); below.
10710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10711 <limits.h> exists even on freestanding compilers. */
10714 # include <limits.h>
10716 # include <assert.h>
10721 /* Override any GCC internal prototype to avoid an error.
10722 Use char because int might match the return type of a GCC
10723 builtin and then its argument prototype would still apply. */
10728 /* The GNU C library defines this for functions which it implements
10729 to always fail with ENOSYS. Some functions are actually named
10730 something starting with __ and the normal name is an alias. */
10731 #if defined __stub_$ac_func || defined __stub___$ac_func
10738 return $ac_func ();
10743 rm -f conftest.
$ac_objext conftest
$ac_exeext
10744 if { (ac_try
="$ac_link"
10745 case "(($ac_try" in
10746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10747 *) ac_try_echo=$ac_try;;
10749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10750 $as_echo "$ac_try_echo") >&5
10751 (eval "$ac_link") 2>conftest.er1
10753 grep -v '^ *+' conftest.er1 >conftest.err
10755 cat conftest.err >&5
10756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } && {
10758 test -z "$ac_c_werror_flag" ||
10759 test ! -s conftest.err
10760 } && test -s conftest$ac_exeext && {
10761 test "$cross_compiling" = yes ||
10762 $as_test_x conftest$ac_exeext
10764 eval "$as_ac_var=yes"
10766 $as_echo "$as_me: failed program was:" >&5
10767 sed 's/^/| /' conftest.$ac_ext >&5
10769 eval "$as_ac_var=no"
10772 rm -rf conftest.dSYM
10773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10774 conftest$ac_exeext conftest.$ac_ext
10776 ac_res=`eval 'as_val=${'$as_ac_var'}
10777 $as_echo "$as_val"'`
10778 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10779 $as_echo "$ac_res" >&6; }
10780 if test `eval 'as_val=${'$as_ac_var'}
10781 $as_echo "$as_val"'` = yes; then
10782 cat >>confdefs.h <<_ACEOF
10783 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10789 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10790 $as_echo_n "checking for working mmap... " >&6; }
10791 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10792 $as_echo_n "(cached) " >&6
10794 if test "$cross_compiling" = yes; then
10795 ac_cv_func_mmap_fixed_mapped=no
10797 cat >conftest.$ac_ext <<_ACEOF
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10804 /* malloc might have been renamed as rpl_malloc. */
10807 /* Thanks to Mike Haertel and Jim Avera for this test.
10808 Here is a matrix of mmap possibilities:
10809 mmap private not fixed
10810 mmap private fixed at somewhere currently unmapped
10811 mmap private fixed at somewhere already mapped
10812 mmap shared not fixed
10813 mmap shared fixed at somewhere currently unmapped
10814 mmap shared fixed at somewhere already mapped
10815 For private mappings, we should verify that changes cannot be read()
10816 back from the file, nor mmap's back from the file at a different
10817 address. (There have been systems where private was not correctly
10818 implemented like the infamous i386 svr4.0, and systems where the
10819 VM page cache was not coherent with the file system buffer cache
10820 like early versions of FreeBSD and possibly contemporary NetBSD.)
10821 For shared mappings, we should conversely verify that changes get
10822 propagated back to all the places they're supposed to be.
10824 Grep wants private fixed already mapped.
10825 The main things grep needs to know about mmap are:
10826 * does it exist and is it safe to write into the mmap'd area
10827 * how to use it (BSD variants) */
10830 #include <sys/mman.h>
10832 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10836 /* This mess was copied from the GNU getpagesize.h. */
10837 #ifndef HAVE_GETPAGESIZE
10838 /* Assume that all systems that can run configure have sys/param.h. */
10839 # ifndef HAVE_SYS_PARAM_H
10840 # define HAVE_SYS_PARAM_H 1
10843 # ifdef _SC_PAGESIZE
10844 # define getpagesize() sysconf(_SC_PAGESIZE)
10845 # else /* no _SC_PAGESIZE */
10846 # ifdef HAVE_SYS_PARAM_H
10847 # include <sys/param.h>
10848 # ifdef EXEC_PAGESIZE
10849 # define getpagesize() EXEC_PAGESIZE
10850 # else /* no EXEC_PAGESIZE */
10852 # define getpagesize() NBPG * CLSIZE
10855 # endif /* no CLSIZE */
10856 # else /* no NBPG */
10858 # define getpagesize() NBPC
10859 # else /* no NBPC */
10861 # define getpagesize() PAGESIZE
10862 # endif /* PAGESIZE */
10863 # endif /* no NBPC */
10864 # endif /* no NBPG */
10865 # endif /* no EXEC_PAGESIZE */
10866 # else /* no HAVE_SYS_PARAM_H */
10867 # define getpagesize() 8192 /* punt totally */
10868 # endif /* no HAVE_SYS_PARAM_H */
10869 # endif /* no _SC_PAGESIZE */
10871 #endif /* no HAVE_GETPAGESIZE */
10876 char *data, *data2, *data3;
10880 pagesize = getpagesize ();
10882 /* First, make a file with some known garbage in it. */
10883 data = (char *) malloc (pagesize);
10886 for (i = 0; i < pagesize; ++i)
10887 *(data + i) = rand ();
10889 fd = creat ("conftest.mmap", 0600);
10892 if (write (fd, data, pagesize) != pagesize)
10896 /* Next, try to mmap the file at a fixed address which already has
10897 something else allocated at it. If we can, also make sure that
10898 we see the same garbage. */
10899 fd = open ("conftest.mmap", O_RDWR);
10902 data2 = (char *) malloc (2 * pagesize);
10905 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10906 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10907 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10909 for (i = 0; i < pagesize; ++i)
10910 if (*(data + i) != *(data2 + i))
10913 /* Finally, make sure that changes to the mapped area do not
10914 percolate back to the file as seen by read(). (This is a bug on
10915 some variants of i386 svr4.0.) */
10916 for (i = 0; i < pagesize; ++i)
10917 *(data2 + i) = *(data2 + i) + 1;
10918 data3 = (char *) malloc (pagesize);
10921 if (read (fd, data3, pagesize) != pagesize)
10923 for (i = 0; i < pagesize; ++i)
10924 if (*(data + i) != *(data3 + i))
10930 rm -f conftest$ac_exeext
10931 if { (ac_try="$ac_link"
10932 case "(($ac_try" in
10933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10934 *) ac_try_echo
=$ac_try;;
10936 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10937 $as_echo "$ac_try_echo") >&5
10938 (eval "$ac_link") 2>&5
10940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10942 { (case "(($ac_try" in
10943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10947 $as_echo "$ac_try_echo") >&5
10948 (eval "$ac_try") 2>&5
10950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 ac_cv_func_mmap_fixed_mapped=yes
10954 $as_echo "$as_me: program exited with status $ac_status" >&5
10955 $as_echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10958 ( exit $ac_status )
10959 ac_cv_func_mmap_fixed_mapped=no
10961 rm -rf conftest.dSYM
10962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10967 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10968 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10969 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10971 cat >>confdefs.h <<\_ACEOF
10972 #define HAVE_MMAP 1
10976 rm -f conftest.mmap
10978 if test $use_mmap_for_buffers = yes; then
10982 LIBS="$LIBS_SYSTEM $LIBS"
10985 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10986 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10987 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10988 $as_echo_n "(cached) " >&6
10990 ac_check_lib_save_LIBS=$LIBS
10991 LIBS="-ldnet $LIBS"
10992 cat >conftest.$ac_ext <<_ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10999 /* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
11009 return dnet_ntoa ();
11014 rm -f conftest.$ac_objext conftest$ac_exeext
11015 if { (ac_try="$ac_link"
11016 case "(($ac_try" in
11017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11018 *) ac_try_echo
=$ac_try;;
11020 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11021 $as_echo "$ac_try_echo") >&5
11022 (eval "$ac_link") 2>conftest.er1
11024 grep -v '^ *+' conftest.er1
>conftest.err
11026 cat conftest.err
>&5
11027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } && {
11029 test -z "$ac_c_werror_flag" ||
11030 test ! -s conftest.err
11031 } && test -s conftest
$ac_exeext && {
11032 test "$cross_compiling" = yes ||
11033 $as_test_x conftest
$ac_exeext
11035 ac_cv_lib_dnet_dnet_ntoa
=yes
11037 $as_echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.
$ac_ext >&5
11040 ac_cv_lib_dnet_dnet_ntoa
=no
11043 rm -rf conftest.dSYM
11044 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11045 conftest
$ac_exeext conftest.
$ac_ext
11046 LIBS
=$ac_check_lib_save_LIBS
11048 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11049 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11050 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11051 cat >>confdefs.h
<<_ACEOF
11052 #define HAVE_LIBDNET 1
11055 LIBS
="-ldnet $LIBS"
11060 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11061 $as_echo_n "checking for main in -lXbsd... " >&6; }
11062 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11063 $as_echo_n "(cached) " >&6
11065 ac_check_lib_save_LIBS
=$LIBS
11066 LIBS
="-lXbsd $LIBS"
11067 cat >conftest.
$ac_ext <<_ACEOF
11070 cat confdefs.h
>>conftest.
$ac_ext
11071 cat >>conftest.
$ac_ext <<_ACEOF
11072 /* end confdefs.h. */
11083 rm -f conftest.
$ac_objext conftest
$ac_exeext
11084 if { (ac_try
="$ac_link"
11085 case "(($ac_try" in
11086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11090 $as_echo "$ac_try_echo") >&5
11091 (eval "$ac_link") 2>conftest.er1
11093 grep -v '^ *+' conftest.er1 >conftest.err
11095 cat conftest.err >&5
11096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } && {
11098 test -z "$ac_c_werror_flag" ||
11099 test ! -s conftest.err
11100 } && test -s conftest$ac_exeext && {
11101 test "$cross_compiling" = yes ||
11102 $as_test_x conftest$ac_exeext
11104 ac_cv_lib_Xbsd_main=yes
11106 $as_echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11109 ac_cv_lib_Xbsd_main=no
11112 rm -rf conftest.dSYM
11113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11114 conftest$ac_exeext conftest.$ac_ext
11115 LIBS=$ac_check_lib_save_LIBS
11117 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11118 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11119 if test $ac_cv_lib_Xbsd_main = yes; then
11120 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11125 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11126 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11127 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11128 $as_echo_n "(cached) " >&6
11130 ac_check_lib_save_LIBS=$LIBS
11131 LIBS="-lpthreads $LIBS"
11132 cat >conftest.$ac_ext <<_ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h. */
11139 /* Override any GCC internal prototype to avoid an error.
11140 Use char because int might match the return type of a GCC
11141 builtin and then its argument prototype would still apply. */
11149 return cma_open ();
11154 rm -f conftest.$ac_objext conftest$ac_exeext
11155 if { (ac_try="$ac_link"
11156 case "(($ac_try" in
11157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11158 *) ac_try_echo
=$ac_try;;
11160 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11161 $as_echo "$ac_try_echo") >&5
11162 (eval "$ac_link") 2>conftest.er1
11164 grep -v '^ *+' conftest.er1
>conftest.err
11166 cat conftest.err
>&5
11167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } && {
11169 test -z "$ac_c_werror_flag" ||
11170 test ! -s conftest.err
11171 } && test -s conftest
$ac_exeext && {
11172 test "$cross_compiling" = yes ||
11173 $as_test_x conftest
$ac_exeext
11175 ac_cv_lib_pthreads_cma_open
=yes
11177 $as_echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.
$ac_ext >&5
11180 ac_cv_lib_pthreads_cma_open
=no
11183 rm -rf conftest.dSYM
11184 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11185 conftest
$ac_exeext conftest.
$ac_ext
11186 LIBS
=$ac_check_lib_save_LIBS
11188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11189 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11190 if test $ac_cv_lib_pthreads_cma_open = yes; then
11191 cat >>confdefs.h
<<_ACEOF
11192 #define HAVE_LIBPTHREADS 1
11195 LIBS
="-lpthreads $LIBS"
11200 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11201 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11202 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11203 ## added to LIBS in configure would never contain the pthreads part,
11204 ## but the value used in Makefiles might. FIXME?
11206 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11207 ## be harmless on older versions of X where it happens to exist.
11208 test "$opsys" = "aix4-2" && \
11209 test $ac_cv_lib_pthreads_cma_open = yes && \
11210 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
11215 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11216 $as_echo_n "checking for -bbigtoc option... " >&6; }
11217 if test "${gdb_cv_bigtoc+set}" = set; then
11218 $as_echo_n "(cached) " >&6
11222 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11223 *) gdb_cv_bigtoc
=-bbigtoc ;;
11226 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11227 cat >conftest.
$ac_ext <<_ACEOF
11230 cat confdefs.h
>>conftest.
$ac_ext
11231 cat >>conftest.
$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11242 rm -f conftest.
$ac_objext conftest
$ac_exeext
11243 if { (ac_try
="$ac_link"
11244 case "(($ac_try" in
11245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11249 $as_echo "$ac_try_echo") >&5
11250 (eval "$ac_link") 2>conftest.er1
11252 grep -v '^ *+' conftest.er1 >conftest.err
11254 cat conftest.err >&5
11255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } && {
11257 test -z "$ac_c_werror_flag" ||
11258 test ! -s conftest.err
11259 } && test -s conftest$ac_exeext && {
11260 test "$cross_compiling" = yes ||
11261 $as_test_x conftest$ac_exeext
11265 $as_echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11271 rm -rf conftest.dSYM
11272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11273 conftest$ac_exeext conftest.$ac_ext
11276 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11277 $as_echo "$gdb_cv_bigtoc" >&6; }
11281 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11282 # used for the tests that follow. We set them back to REAL_CFLAGS and
11283 # REAL_CPPFLAGS later on.
11285 REAL_CPPFLAGS="$CPPFLAGS"
11287 if test "${HAVE_X11}" = "yes"; then
11288 DEFS="$C_SWITCH_X_SITE $DEFS"
11289 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11291 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11292 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11294 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11295 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11296 # but it's more convenient here to set LD_RUN_PATH
11297 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11298 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11299 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11303 if test "${opsys}" = "gnu-linux"; then
11304 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11305 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11306 cat >conftest.$ac_ext <<_ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11316 XOpenDisplay ("foo");
11321 rm -f conftest.$ac_objext conftest$ac_exeext
11322 if { (ac_try="$ac_link"
11323 case "(($ac_try" in
11324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11325 *) ac_try_echo
=$ac_try;;
11327 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11328 $as_echo "$ac_try_echo") >&5
11329 (eval "$ac_link") 2>conftest.er1
11331 grep -v '^ *+' conftest.er1
>conftest.err
11333 cat conftest.err
>&5
11334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && {
11336 test -z "$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11338 } && test -s conftest
$ac_exeext && {
11339 test "$cross_compiling" = yes ||
11340 $as_test_x conftest
$ac_exeext
11342 xlinux_first_failure
=no
11344 $as_echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.
$ac_ext >&5
11347 xlinux_first_failure
=yes
11350 rm -rf conftest.dSYM
11351 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11352 conftest
$ac_exeext conftest.
$ac_ext
11353 if test "${xlinux_first_failure}" = "yes"; then
11354 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11355 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11356 OLD_CPPFLAGS
="$CPPFLAGS"
11358 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11359 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11360 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11361 LIBS
="$LIBS -b i486-linuxaout"
11362 cat >conftest.
$ac_ext <<_ACEOF
11365 cat confdefs.h
>>conftest.
$ac_ext
11366 cat >>conftest.
$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11372 XOpenDisplay ("foo");
11377 rm -f conftest.
$ac_objext conftest
$ac_exeext
11378 if { (ac_try
="$ac_link"
11379 case "(($ac_try" in
11380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11381 *) ac_try_echo=$ac_try;;
11383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11384 $as_echo "$ac_try_echo") >&5
11385 (eval "$ac_link") 2>conftest.er1
11387 grep -v '^ *+' conftest.er1 >conftest.err
11389 cat conftest.err >&5
11390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } && {
11392 test -z "$ac_c_werror_flag" ||
11393 test ! -s conftest.err
11394 } && test -s conftest$ac_exeext && {
11395 test "$cross_compiling" = yes ||
11396 $as_test_x conftest$ac_exeext
11398 xlinux_second_failure=no
11400 $as_echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.$ac_ext >&5
11403 xlinux_second_failure=yes
11406 rm -rf conftest.dSYM
11407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11408 conftest$ac_exeext conftest.$ac_ext
11409 if test "${xlinux_second_failure}" = "yes"; then
11410 # If we get the same failure with -b, there is no use adding -b.
11411 # So take it out. This plays safe.
11412 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11413 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11414 CPPFLAGS="$OLD_CPPFLAGS"
11416 { $as_echo "$as_me:$LINENO: result: no" >&5
11417 $as_echo "no" >&6; }
11419 { $as_echo "$as_me:$LINENO: result: yes" >&5
11420 $as_echo "yes" >&6; }
11423 { $as_echo "$as_me:$LINENO: result: no" >&5
11424 $as_echo "no" >&6; }
11428 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11429 # header files included from there.
11430 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11431 $as_echo_n "checking for Xkb... " >&6; }
11432 cat >conftest.$ac_ext <<_ACEOF
11435 cat confdefs.h >>conftest.$ac_ext
11436 cat >>conftest.$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438 #include <X11/Xlib.h>
11439 #include <X11/XKBlib.h>
11443 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11448 rm -f conftest.$ac_objext conftest$ac_exeext
11449 if { (ac_try="$ac_link"
11450 case "(($ac_try" in
11451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11452 *) ac_try_echo
=$ac_try;;
11454 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11455 $as_echo "$ac_try_echo") >&5
11456 (eval "$ac_link") 2>conftest.er1
11458 grep -v '^ *+' conftest.er1
>conftest.err
11460 cat conftest.err
>&5
11461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && {
11463 test -z "$ac_c_werror_flag" ||
11464 test ! -s conftest.err
11465 } && test -s conftest
$ac_exeext && {
11466 test "$cross_compiling" = yes ||
11467 $as_test_x conftest
$ac_exeext
11471 $as_echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.
$ac_ext >&5
11477 rm -rf conftest.dSYM
11478 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11479 conftest
$ac_exeext conftest.
$ac_ext
11480 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11481 $as_echo "$emacs_xkb" >&6; }
11482 if test $emacs_xkb = yes; then
11484 cat >>confdefs.h
<<\_ACEOF
11485 #define HAVE_XKBGETKEYBOARD 1
11494 for ac_func
in XrmSetDatabase XScreenResourceString \
11495 XScreenNumberOfScreen XSetWMProtocols
11497 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11498 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11499 $as_echo_n "checking for $ac_func... " >&6; }
11500 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11501 $as_echo_n "(cached) " >&6
11503 cat >conftest.
$ac_ext <<_ACEOF
11506 cat confdefs.h
>>conftest.
$ac_ext
11507 cat >>conftest.
$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11511 #define $ac_func innocuous_$ac_func
11513 /* System header to define __stub macros and hopefully few prototypes,
11514 which can conflict with char $ac_func (); below.
11515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11516 <limits.h> exists even on freestanding compilers. */
11519 # include <limits.h>
11521 # include <assert.h>
11526 /* Override any GCC internal prototype to avoid an error.
11527 Use char because int might match the return type of a GCC
11528 builtin and then its argument prototype would still apply. */
11533 /* The GNU C library defines this for functions which it implements
11534 to always fail with ENOSYS. Some functions are actually named
11535 something starting with __ and the normal name is an alias. */
11536 #if defined __stub_$ac_func || defined __stub___$ac_func
11543 return $ac_func ();
11548 rm -f conftest.
$ac_objext conftest
$ac_exeext
11549 if { (ac_try
="$ac_link"
11550 case "(($ac_try" in
11551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11555 $as_echo "$ac_try_echo") >&5
11556 (eval "$ac_link") 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext && {
11566 test "$cross_compiling" = yes ||
11567 $as_test_x conftest$ac_exeext
11569 eval "$as_ac_var=yes"
11571 $as_echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11574 eval "$as_ac_var=no"
11577 rm -rf conftest.dSYM
11578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11579 conftest$ac_exeext conftest.$ac_ext
11581 ac_res=`eval 'as_val=${'$as_ac_var'}
11582 $as_echo "$as_val"'`
11583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11584 $as_echo "$ac_res" >&6; }
11585 if test `eval 'as_val=${'$as_ac_var'}
11586 $as_echo "$as_val"'` = yes; then
11587 cat >>confdefs.h <<_ACEOF
11588 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11596 if test "${window_system}" = "x11"; then
11597 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11598 $as_echo_n "checking X11 version 6... " >&6; }
11599 if test "${emacs_cv_x11_version_6+set}" = set; then
11600 $as_echo_n "(cached) " >&6
11602 cat >conftest.$ac_ext <<_ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11608 #include <X11/Xlib.h>
11612 #if XlibSpecificationRelease < 6
11620 rm -f conftest.$ac_objext conftest$ac_exeext
11621 if { (ac_try="$ac_link"
11622 case "(($ac_try" in
11623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11624 *) ac_try_echo
=$ac_try;;
11626 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11627 $as_echo "$ac_try_echo") >&5
11628 (eval "$ac_link") 2>conftest.er1
11630 grep -v '^ *+' conftest.er1
>conftest.err
11632 cat conftest.err
>&5
11633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } && {
11635 test -z "$ac_c_werror_flag" ||
11636 test ! -s conftest.err
11637 } && test -s conftest
$ac_exeext && {
11638 test "$cross_compiling" = yes ||
11639 $as_test_x conftest
$ac_exeext
11641 emacs_cv_x11_version_6
=yes
11643 $as_echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.
$ac_ext >&5
11646 emacs_cv_x11_version_6
=no
11649 rm -rf conftest.dSYM
11650 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11651 conftest
$ac_exeext conftest.
$ac_ext
11654 if test $emacs_cv_x11_version_6 = yes; then
11655 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11656 $as_echo "6 or newer" >&6; }
11658 cat >>confdefs.h
<<\_ACEOF
11659 #define HAVE_X11R6 1
11663 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11664 $as_echo "before 6" >&6; }
11669 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11671 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11672 if test "${with_rsvg}" != "no"; then
11673 RSVG_REQUIRED
=2.11.0
11674 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11679 # Extract the first word of "pkg-config", so it can be a program name with args.
11680 set dummy pkg-config
; ac_word
=$2
11681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11684 $as_echo_n "(cached) " >&6
11686 case $PKG_CONFIG in
11688 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11692 for as_dir
in $PATH
11695 test -z "$as_dir" && as_dir
=.
11696 for ac_exec_ext
in '' $ac_executable_extensions; do
11697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11698 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11710 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11711 if test -n "$PKG_CONFIG"; then
11712 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11713 $as_echo "$PKG_CONFIG" >&6; }
11715 { $as_echo "$as_me:$LINENO: result: no" >&5
11716 $as_echo "no" >&6; }
11721 if test "$PKG_CONFIG" = "no" ; then
11724 PKG_CONFIG_MIN_VERSION
=0.9.0
11725 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11726 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11727 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11729 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11730 { $as_echo "$as_me:$LINENO: result: yes" >&5
11731 $as_echo "yes" >&6; }
11734 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11735 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11736 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11737 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11738 $as_echo "$RSVG_CFLAGS" >&6; }
11740 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11741 $as_echo_n "checking RSVG_LIBS... " >&6; }
11742 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11743 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11744 $as_echo "$RSVG_LIBS" >&6; }
11746 { $as_echo "$as_me:$LINENO: result: no" >&5
11747 $as_echo "no" >&6; }
11750 ## If we have a custom action on failure, don't print errors, but
11751 ## do set a variable so people can do so.
11752 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11759 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11760 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11764 if test $succeeded = yes; then
11773 if test ".${RSVG_CFLAGS}" != "."; then
11776 cat >>confdefs.h
<<\_ACEOF
11777 #define HAVE_RSVG 1
11780 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11781 LIBS
="$RSVG_LIBS $LIBS"
11788 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11791 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11796 # Extract the first word of "pkg-config", so it can be a program name with args.
11797 set dummy pkg-config
; ac_word
=$2
11798 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11799 $as_echo_n "checking for $ac_word... " >&6; }
11800 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11801 $as_echo_n "(cached) " >&6
11803 case $PKG_CONFIG in
11805 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11808 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11809 for as_dir
in $PATH
11812 test -z "$as_dir" && as_dir
=.
11813 for ac_exec_ext
in '' $ac_executable_extensions; do
11814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11815 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11823 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11827 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11828 if test -n "$PKG_CONFIG"; then
11829 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11830 $as_echo "$PKG_CONFIG" >&6; }
11832 { $as_echo "$as_me:$LINENO: result: no" >&5
11833 $as_echo "no" >&6; }
11838 if test "$PKG_CONFIG" = "no" ; then
11841 PKG_CONFIG_MIN_VERSION
=0.9.0
11842 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11843 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11844 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11846 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11847 { $as_echo "$as_me:$LINENO: result: yes" >&5
11848 $as_echo "yes" >&6; }
11851 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11852 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11853 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11854 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11855 $as_echo "$GTK_CFLAGS" >&6; }
11857 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11858 $as_echo_n "checking GTK_LIBS... " >&6; }
11859 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11860 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11861 $as_echo "$GTK_LIBS" >&6; }
11863 { $as_echo "$as_me:$LINENO: result: no" >&5
11864 $as_echo "no" >&6; }
11867 ## If we have a custom action on failure, don't print errors, but
11868 ## do set a variable so people can do so.
11869 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11876 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11877 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11881 if test $succeeded = yes; then
11887 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11888 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11889 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11890 { (exit 1); exit 1; }; }
11896 if test x
"$pkg_check_gtk" = xyes
; then
11900 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11901 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11902 LIBS
="$GTK_LIBS $LIBS"
11905 for ac_func
in gtk_main
11907 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11908 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11909 $as_echo_n "checking for $ac_func... " >&6; }
11910 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11911 $as_echo_n "(cached) " >&6
11913 cat >conftest.
$ac_ext <<_ACEOF
11916 cat confdefs.h
>>conftest.
$ac_ext
11917 cat >>conftest.
$ac_ext <<_ACEOF
11918 /* end confdefs.h. */
11919 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11921 #define $ac_func innocuous_$ac_func
11923 /* System header to define __stub macros and hopefully few prototypes,
11924 which can conflict with char $ac_func (); below.
11925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11926 <limits.h> exists even on freestanding compilers. */
11929 # include <limits.h>
11931 # include <assert.h>
11936 /* Override any GCC internal prototype to avoid an error.
11937 Use char because int might match the return type of a GCC
11938 builtin and then its argument prototype would still apply. */
11943 /* The GNU C library defines this for functions which it implements
11944 to always fail with ENOSYS. Some functions are actually named
11945 something starting with __ and the normal name is an alias. */
11946 #if defined __stub_$ac_func || defined __stub___$ac_func
11953 return $ac_func ();
11958 rm -f conftest.
$ac_objext conftest
$ac_exeext
11959 if { (ac_try
="$ac_link"
11960 case "(($ac_try" in
11961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11962 *) ac_try_echo=$ac_try;;
11964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11965 $as_echo "$ac_try_echo") >&5
11966 (eval "$ac_link") 2>conftest.er1
11968 grep -v '^ *+' conftest.er1 >conftest.err
11970 cat conftest.err >&5
11971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } && {
11973 test -z "$ac_c_werror_flag" ||
11974 test ! -s conftest.err
11975 } && test -s conftest$ac_exeext && {
11976 test "$cross_compiling" = yes ||
11977 $as_test_x conftest$ac_exeext
11979 eval "$as_ac_var=yes"
11981 $as_echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 eval "$as_ac_var=no"
11987 rm -rf conftest.dSYM
11988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11989 conftest$ac_exeext conftest.$ac_ext
11991 ac_res=`eval 'as_val=${'$as_ac_var'}
11992 $as_echo "$as_val"'`
11993 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11994 $as_echo "$ac_res" >&6; }
11995 if test `eval 'as_val=${'$as_ac_var'}
11996 $as_echo "$as_val"'` = yes; then
11997 cat >>confdefs.h <<_ACEOF
11998 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12004 if test "${GTK_COMPILES}" != "yes"; then
12005 if test "$USE_X_TOOLKIT" != "maybe"; then
12006 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12007 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12008 { (exit 1); exit 1; }; };
12013 cat >>confdefs.h <<\_ACEOF
12019 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12022 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12023 closing open displays. This is no problem if you just use
12024 one display, but if you use more than one and close one of them
12025 Emacs may crash." >&5
12026 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12027 closing open displays. This is no problem if you just use
12028 one display, but if you use more than one and close one of them
12029 Emacs may crash." >&2;}
12038 if test "${HAVE_GTK}" = "yes"; then
12040 if test "$with_toolkit_scroll_bars" != no; then
12041 with_toolkit_scroll_bars=yes
12044 HAVE_GTK_MULTIDISPLAY=no
12046 for ac_func in gdk_display_open
12048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12049 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12050 $as_echo_n "checking for $ac_func... " >&6; }
12051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12052 $as_echo_n "(cached) " >&6
12054 cat >conftest.$ac_ext <<_ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12062 #define $ac_func innocuous_$ac_func
12064 /* System header to define __stub macros and hopefully few prototypes,
12065 which can conflict with char $ac_func (); below.
12066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12067 <limits.h> exists even on freestanding compilers. */
12070 # include <limits.h>
12072 # include <assert.h>
12077 /* Override any GCC internal prototype to avoid an error.
12078 Use char because int might match the return type of a GCC
12079 builtin and then its argument prototype would still apply. */
12084 /* The GNU C library defines this for functions which it implements
12085 to always fail with ENOSYS. Some functions are actually named
12086 something starting with __ and the normal name is an alias. */
12087 #if defined __stub_$ac_func || defined __stub___$ac_func
12094 return $ac_func ();
12099 rm -f conftest.$ac_objext conftest$ac_exeext
12100 if { (ac_try="$ac_link"
12101 case "(($ac_try" in
12102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12103 *) ac_try_echo
=$ac_try;;
12105 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12106 $as_echo "$ac_try_echo") >&5
12107 (eval "$ac_link") 2>conftest.er1
12109 grep -v '^ *+' conftest.er1
>conftest.err
12111 cat conftest.err
>&5
12112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } && {
12114 test -z "$ac_c_werror_flag" ||
12115 test ! -s conftest.err
12116 } && test -s conftest
$ac_exeext && {
12117 test "$cross_compiling" = yes ||
12118 $as_test_x conftest
$ac_exeext
12120 eval "$as_ac_var=yes"
12122 $as_echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.
$ac_ext >&5
12125 eval "$as_ac_var=no"
12128 rm -rf conftest.dSYM
12129 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12130 conftest
$ac_exeext conftest.
$ac_ext
12132 ac_res
=`eval 'as_val=${'$as_ac_var'}
12133 $as_echo "$as_val"'`
12134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12135 $as_echo "$ac_res" >&6; }
12136 if test `eval 'as_val=${'$as_ac_var'}
12137 $as_echo "$as_val"'` = yes; then
12138 cat >>confdefs.h
<<_ACEOF
12139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12141 HAVE_GTK_MULTIDISPLAY
=yes
12145 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12147 cat >>confdefs.h
<<\_ACEOF
12148 #define HAVE_GTK_MULTIDISPLAY 1
12153 HAVE_GTK_FILE_SELECTION
=no
12154 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12155 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12156 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12157 $as_echo_n "(cached) " >&6
12159 cat >conftest.
$ac_ext <<_ACEOF
12162 cat confdefs.h
>>conftest.
$ac_ext
12163 cat >>conftest.
$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12165 $ac_includes_default
12166 #include <gtk/gtk.h>
12171 #ifndef GTK_TYPE_FILE_SELECTION
12172 (void) GTK_TYPE_FILE_SELECTION;
12179 rm -f conftest.
$ac_objext
12180 if { (ac_try
="$ac_compile"
12181 case "(($ac_try" in
12182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12183 *) ac_try_echo=$ac_try;;
12185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12186 $as_echo "$ac_try_echo") >&5
12187 (eval "$ac_compile") 2>conftest.er1
12189 grep -v '^ *+' conftest.er1 >conftest.err
12191 cat conftest.err >&5
12192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } && {
12194 test -z "$ac_c_werror_flag" ||
12195 test ! -s conftest.err
12196 } && test -s conftest.$ac_objext; then
12197 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12199 $as_echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12208 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12209 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12210 HAVE_GTK_FILE_SELECTION=yes
12212 HAVE_GTK_FILE_SELECTION=no
12215 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12217 for ac_func in gtk_file_selection_new
12219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12220 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12221 $as_echo_n "checking for $ac_func... " >&6; }
12222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12223 $as_echo_n "(cached) " >&6
12225 cat >conftest.$ac_ext <<_ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h. */
12231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12233 #define $ac_func innocuous_$ac_func
12235 /* System header to define __stub macros and hopefully few prototypes,
12236 which can conflict with char $ac_func (); below.
12237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12238 <limits.h> exists even on freestanding compilers. */
12241 # include <limits.h>
12243 # include <assert.h>
12248 /* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
12255 /* The GNU C library defines this for functions which it implements
12256 to always fail with ENOSYS. Some functions are actually named
12257 something starting with __ and the normal name is an alias. */
12258 #if defined __stub_$ac_func || defined __stub___$ac_func
12265 return $ac_func ();
12270 rm -f conftest.$ac_objext conftest$ac_exeext
12271 if { (ac_try="$ac_link"
12272 case "(($ac_try" in
12273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12274 *) ac_try_echo
=$ac_try;;
12276 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12277 $as_echo "$ac_try_echo") >&5
12278 (eval "$ac_link") 2>conftest.er1
12280 grep -v '^ *+' conftest.er1
>conftest.err
12282 cat conftest.err
>&5
12283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } && {
12285 test -z "$ac_c_werror_flag" ||
12286 test ! -s conftest.err
12287 } && test -s conftest
$ac_exeext && {
12288 test "$cross_compiling" = yes ||
12289 $as_test_x conftest
$ac_exeext
12291 eval "$as_ac_var=yes"
12293 $as_echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.
$ac_ext >&5
12296 eval "$as_ac_var=no"
12299 rm -rf conftest.dSYM
12300 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12301 conftest
$ac_exeext conftest.
$ac_ext
12303 ac_res
=`eval 'as_val=${'$as_ac_var'}
12304 $as_echo "$as_val"'`
12305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12306 $as_echo "$ac_res" >&6; }
12307 if test `eval 'as_val=${'$as_ac_var'}
12308 $as_echo "$as_val"'` = yes; then
12309 cat >>confdefs.h
<<_ACEOF
12310 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12312 HAVE_GTK_FILE_SELECTION
=yes
12314 HAVE_GTK_FILE_SELECTION
=no
12320 HAVE_GTK_FILE_CHOOSER
=no
12321 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12322 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12323 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12324 $as_echo_n "(cached) " >&6
12326 cat >conftest.
$ac_ext <<_ACEOF
12329 cat confdefs.h
>>conftest.
$ac_ext
12330 cat >>conftest.
$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 $ac_includes_default
12333 #include <gtk/gtk.h>
12338 #ifndef GTK_TYPE_FILE_CHOOSER
12339 (void) GTK_TYPE_FILE_CHOOSER;
12346 rm -f conftest.
$ac_objext
12347 if { (ac_try
="$ac_compile"
12348 case "(($ac_try" in
12349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12353 $as_echo "$ac_try_echo") >&5
12354 (eval "$ac_compile") 2>conftest.er1
12356 grep -v '^ *+' conftest.er1 >conftest.err
12358 cat conftest.err >&5
12359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } && {
12361 test -z "$ac_c_werror_flag" ||
12362 test ! -s conftest.err
12363 } && test -s conftest.$ac_objext; then
12364 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12366 $as_echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12375 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12376 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12377 HAVE_GTK_FILE_CHOOSER=yes
12379 HAVE_GTK_FILE_CHOOSER=no
12382 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12384 for ac_func in gtk_file_chooser_dialog_new
12386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12387 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12388 $as_echo_n "checking for $ac_func... " >&6; }
12389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12390 $as_echo_n "(cached) " >&6
12392 cat >conftest.$ac_ext <<_ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h. */
12398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12400 #define $ac_func innocuous_$ac_func
12402 /* System header to define __stub macros and hopefully few prototypes,
12403 which can conflict with char $ac_func (); below.
12404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12405 <limits.h> exists even on freestanding compilers. */
12408 # include <limits.h>
12410 # include <assert.h>
12415 /* Override any GCC internal prototype to avoid an error.
12416 Use char because int might match the return type of a GCC
12417 builtin and then its argument prototype would still apply. */
12422 /* The GNU C library defines this for functions which it implements
12423 to always fail with ENOSYS. Some functions are actually named
12424 something starting with __ and the normal name is an alias. */
12425 #if defined __stub_$ac_func || defined __stub___$ac_func
12432 return $ac_func ();
12437 rm -f conftest.$ac_objext conftest$ac_exeext
12438 if { (ac_try="$ac_link"
12439 case "(($ac_try" in
12440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12441 *) ac_try_echo
=$ac_try;;
12443 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12444 $as_echo "$ac_try_echo") >&5
12445 (eval "$ac_link") 2>conftest.er1
12447 grep -v '^ *+' conftest.er1
>conftest.err
12449 cat conftest.err
>&5
12450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } && {
12452 test -z "$ac_c_werror_flag" ||
12453 test ! -s conftest.err
12454 } && test -s conftest
$ac_exeext && {
12455 test "$cross_compiling" = yes ||
12456 $as_test_x conftest
$ac_exeext
12458 eval "$as_ac_var=yes"
12460 $as_echo "$as_me: failed program was:" >&5
12461 sed 's/^/| /' conftest.
$ac_ext >&5
12463 eval "$as_ac_var=no"
12466 rm -rf conftest.dSYM
12467 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12468 conftest
$ac_exeext conftest.
$ac_ext
12470 ac_res
=`eval 'as_val=${'$as_ac_var'}
12471 $as_echo "$as_val"'`
12472 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12473 $as_echo "$ac_res" >&6; }
12474 if test `eval 'as_val=${'$as_ac_var'}
12475 $as_echo "$as_val"'` = yes; then
12476 cat >>confdefs.h
<<_ACEOF
12477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12479 HAVE_GTK_FILE_CHOOSER
=yes
12481 HAVE_GTK_FILE_CHOOSER
=no
12487 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12488 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12490 cat >>confdefs.h
<<\_ACEOF
12491 #define HAVE_GTK_FILE_BOTH 1
12496 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12497 HAVE_GTK_AND_PTHREAD
=no
12499 for ac_header
in pthread.h
12501 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12502 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12503 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12504 $as_echo_n "checking for $ac_header... " >&6; }
12505 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12506 $as_echo_n "(cached) " >&6
12508 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12509 $as_echo "$as_val"'`
12510 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12511 $as_echo "$ac_res" >&6; }
12513 # Is the header compilable?
12514 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12515 $as_echo_n "checking $ac_header usability... " >&6; }
12516 cat >conftest.
$ac_ext <<_ACEOF
12519 cat confdefs.h
>>conftest.
$ac_ext
12520 cat >>conftest.
$ac_ext <<_ACEOF
12521 /* end confdefs.h. */
12522 $ac_includes_default
12523 #include <$ac_header>
12525 rm -f conftest.
$ac_objext
12526 if { (ac_try
="$ac_compile"
12527 case "(($ac_try" in
12528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12532 $as_echo "$ac_try_echo") >&5
12533 (eval "$ac_compile") 2>conftest.er1
12535 grep -v '^ *+' conftest.er1 >conftest.err
12537 cat conftest.err >&5
12538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } && {
12540 test -z "$ac_c_werror_flag" ||
12541 test ! -s conftest.err
12542 } && test -s conftest.$ac_objext; then
12543 ac_header_compiler=yes
12545 $as_echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12548 ac_header_compiler=no
12551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12552 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12553 $as_echo "$ac_header_compiler" >&6; }
12555 # Is the header present?
12556 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12557 $as_echo_n "checking $ac_header presence... " >&6; }
12558 cat >conftest.$ac_ext <<_ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12564 #include <$ac_header>
12566 if { (ac_try="$ac_cpp conftest.$ac_ext"
12567 case "(($ac_try" in
12568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12569 *) ac_try_echo
=$ac_try;;
12571 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12572 $as_echo "$ac_try_echo") >&5
12573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12575 grep -v '^ *+' conftest.er1
>conftest.err
12577 cat conftest.err
>&5
12578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } >/dev
/null
&& {
12580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12581 test ! -s conftest.err
12583 ac_header_preproc
=yes
12585 $as_echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.
$ac_ext >&5
12588 ac_header_preproc
=no
12591 rm -f conftest.err conftest.
$ac_ext
12592 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12593 $as_echo "$ac_header_preproc" >&6; }
12595 # So? What about this header?
12596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12599 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12601 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12602 ac_header_preproc
=yes
12605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12606 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12608 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12610 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12612 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12614 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12616 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12621 $as_echo_n "checking for $ac_header... " >&6; }
12622 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12623 $as_echo_n "(cached) " >&6
12625 eval "$as_ac_Header=\$ac_header_preproc"
12627 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12628 $as_echo "$as_val"'`
12629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12630 $as_echo "$ac_res" >&6; }
12633 if test `eval 'as_val=${'$as_ac_Header'}
12634 $as_echo "$as_val"'` = yes; then
12635 cat >>confdefs.h
<<_ACEOF
12636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12643 if test "$ac_cv_header_pthread_h"; then
12644 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12645 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12646 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12647 $as_echo_n "(cached) " >&6
12649 ac_check_lib_save_LIBS
=$LIBS
12650 LIBS
="-lpthread $LIBS"
12651 cat >conftest.
$ac_ext <<_ACEOF
12654 cat confdefs.h
>>conftest.
$ac_ext
12655 cat >>conftest.
$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12658 /* Override any GCC internal prototype to avoid an error.
12659 Use char because int might match the return type of a GCC
12660 builtin and then its argument prototype would still apply. */
12664 char pthread_self ();
12668 return pthread_self ();
12673 rm -f conftest.
$ac_objext conftest
$ac_exeext
12674 if { (ac_try
="$ac_link"
12675 case "(($ac_try" in
12676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12680 $as_echo "$ac_try_echo") >&5
12681 (eval "$ac_link") 2>conftest.er1
12683 grep -v '^ *+' conftest.er1 >conftest.err
12685 cat conftest.err >&5
12686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } && {
12688 test -z "$ac_c_werror_flag" ||
12689 test ! -s conftest.err
12690 } && test -s conftest$ac_exeext && {
12691 test "$cross_compiling" = yes ||
12692 $as_test_x conftest$ac_exeext
12694 ac_cv_lib_pthread_pthread_self=yes
12696 $as_echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12699 ac_cv_lib_pthread_pthread_self=no
12702 rm -rf conftest.dSYM
12703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12704 conftest$ac_exeext conftest.$ac_ext
12705 LIBS=$ac_check_lib_save_LIBS
12707 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12708 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12709 if test $ac_cv_lib_pthread_pthread_self = yes; then
12710 HAVE_GTK_AND_PTHREAD=yes
12714 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12715 case "${canonical}" in
12717 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12720 cat >>confdefs.h <<\_ACEOF
12721 #define HAVE_GTK_AND_PTHREAD 1
12730 if test "${with_dbus}" = "yes"; then
12734 # Extract the first word of "pkg-config", so it can be a program name with args.
12735 set dummy pkg-config; ac_word=$2
12736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12737 $as_echo_n "checking for $ac_word... " >&6; }
12738 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12739 $as_echo_n "(cached) " >&6
12741 case $PKG_CONFIG in
12743 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12747 for as_dir in $PATH
12750 test -z "$as_dir" && as_dir=.
12751 for ac_exec_ext in '' $ac_executable_extensions; do
12752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12753 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12754 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12761 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12765 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12766 if test -n "$PKG_CONFIG"; then
12767 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12768 $as_echo "$PKG_CONFIG" >&6; }
12770 { $as_echo "$as_me:$LINENO: result: no" >&5
12771 $as_echo "no" >&6; }
12776 if test "$PKG_CONFIG" = "no" ; then
12779 PKG_CONFIG_MIN_VERSION=0.9.0
12780 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12781 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12782 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12784 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12785 { $as_echo "$as_me:$LINENO: result: yes" >&5
12786 $as_echo "yes" >&6; }
12789 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12790 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12791 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12792 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12793 $as_echo "$DBUS_CFLAGS" >&6; }
12795 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12796 $as_echo_n "checking DBUS_LIBS... " >&6; }
12797 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12798 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12799 $as_echo "$DBUS_LIBS" >&6; }
12801 { $as_echo "$as_me:$LINENO: result: no" >&5
12802 $as_echo "no" >&6; }
12805 ## If we have a custom action on failure, don't print errors, but
12806 ## do set a variable so people can do so.
12807 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12814 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12815 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12819 if test $succeeded = yes; then
12825 if test "$HAVE_DBUS" = yes; then
12826 LIBS="$LIBS $DBUS_LIBS"
12828 cat >>confdefs.h <<\_ACEOF
12829 #define HAVE_DBUS 1
12833 for ac_func in dbus_watch_get_unix_fd
12835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12836 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12837 $as_echo_n "checking for $ac_func... " >&6; }
12838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12839 $as_echo_n "(cached) " >&6
12841 cat >conftest.$ac_ext <<_ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h. */
12847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12849 #define $ac_func innocuous_$ac_func
12851 /* System header to define __stub macros and hopefully few prototypes,
12852 which can conflict with char $ac_func (); below.
12853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12854 <limits.h> exists even on freestanding compilers. */
12857 # include <limits.h>
12859 # include <assert.h>
12864 /* Override any GCC internal prototype to avoid an error.
12865 Use char because int might match the return type of a GCC
12866 builtin and then its argument prototype would still apply. */
12871 /* The GNU C library defines this for functions which it implements
12872 to always fail with ENOSYS. Some functions are actually named
12873 something starting with __ and the normal name is an alias. */
12874 #if defined __stub_$ac_func || defined __stub___$ac_func
12881 return $ac_func ();
12886 rm -f conftest.$ac_objext conftest$ac_exeext
12887 if { (ac_try="$ac_link"
12888 case "(($ac_try" in
12889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12890 *) ac_try_echo
=$ac_try;;
12892 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12893 $as_echo "$ac_try_echo") >&5
12894 (eval "$ac_link") 2>conftest.er1
12896 grep -v '^ *+' conftest.er1
>conftest.err
12898 cat conftest.err
>&5
12899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } && {
12901 test -z "$ac_c_werror_flag" ||
12902 test ! -s conftest.err
12903 } && test -s conftest
$ac_exeext && {
12904 test "$cross_compiling" = yes ||
12905 $as_test_x conftest
$ac_exeext
12907 eval "$as_ac_var=yes"
12909 $as_echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.
$ac_ext >&5
12912 eval "$as_ac_var=no"
12915 rm -rf conftest.dSYM
12916 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12917 conftest
$ac_exeext conftest.
$ac_ext
12919 ac_res
=`eval 'as_val=${'$as_ac_var'}
12920 $as_echo "$as_val"'`
12921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12922 $as_echo "$ac_res" >&6; }
12923 if test `eval 'as_val=${'$as_ac_var'}
12924 $as_echo "$as_val"'` = yes; then
12925 cat >>confdefs.h
<<_ACEOF
12926 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12932 DBUS_OBJ
=dbusbind.o
12938 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12942 # Extract the first word of "pkg-config", so it can be a program name with args.
12943 set dummy pkg-config
; ac_word
=$2
12944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12945 $as_echo_n "checking for $ac_word... " >&6; }
12946 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12947 $as_echo_n "(cached) " >&6
12949 case $PKG_CONFIG in
12951 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12955 for as_dir
in $PATH
12958 test -z "$as_dir" && as_dir
=.
12959 for ac_exec_ext
in '' $ac_executable_extensions; do
12960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12961 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12969 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12973 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12974 if test -n "$PKG_CONFIG"; then
12975 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12976 $as_echo "$PKG_CONFIG" >&6; }
12978 { $as_echo "$as_me:$LINENO: result: no" >&5
12979 $as_echo "no" >&6; }
12984 if test "$PKG_CONFIG" = "no" ; then
12987 PKG_CONFIG_MIN_VERSION
=0.9.0
12988 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12989 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12990 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12992 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12993 { $as_echo "$as_me:$LINENO: result: yes" >&5
12994 $as_echo "yes" >&6; }
12997 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12998 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12999 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13000 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
13001 $as_echo "$GCONF_CFLAGS" >&6; }
13003 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
13004 $as_echo_n "checking GCONF_LIBS... " >&6; }
13005 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13006 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
13007 $as_echo "$GCONF_LIBS" >&6; }
13009 { $as_echo "$as_me:$LINENO: result: no" >&5
13010 $as_echo "no" >&6; }
13013 ## If we have a custom action on failure, don't print errors, but
13014 ## do set a variable so people can do so.
13015 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13022 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13023 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13027 if test $succeeded = yes; then
13033 if test "$HAVE_GCONF" = yes; then
13035 cat >>confdefs.h
<<\_ACEOF
13036 #define HAVE_GCONF 1
13044 if test "${with_selinux}" = "yes"; then
13045 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13046 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13047 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13048 $as_echo_n "(cached) " >&6
13050 ac_check_lib_save_LIBS
=$LIBS
13051 LIBS
="-lselinux $LIBS"
13052 cat >conftest.
$ac_ext <<_ACEOF
13055 cat confdefs.h
>>conftest.
$ac_ext
13056 cat >>conftest.
$ac_ext <<_ACEOF
13057 /* end confdefs.h. */
13059 /* Override any GCC internal prototype to avoid an error.
13060 Use char because int might match the return type of a GCC
13061 builtin and then its argument prototype would still apply. */
13065 char lgetfilecon ();
13069 return lgetfilecon ();
13074 rm -f conftest.
$ac_objext conftest
$ac_exeext
13075 if { (ac_try
="$ac_link"
13076 case "(($ac_try" in
13077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13078 *) ac_try_echo=$ac_try;;
13080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13081 $as_echo "$ac_try_echo") >&5
13082 (eval "$ac_link") 2>conftest.er1
13084 grep -v '^ *+' conftest.er1 >conftest.err
13086 cat conftest.err >&5
13087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } && {
13089 test -z "$ac_c_werror_flag" ||
13090 test ! -s conftest.err
13091 } && test -s conftest$ac_exeext && {
13092 test "$cross_compiling" = yes ||
13093 $as_test_x conftest$ac_exeext
13095 ac_cv_lib_selinux_lgetfilecon=yes
13097 $as_echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13100 ac_cv_lib_selinux_lgetfilecon=no
13103 rm -rf conftest.dSYM
13104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13105 conftest$ac_exeext conftest.$ac_ext
13106 LIBS=$ac_check_lib_save_LIBS
13108 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13109 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13110 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13111 HAVE_LIBSELINUX=yes
13116 if test "$HAVE_LIBSELINUX" = yes; then
13118 cat >>confdefs.h <<\_ACEOF
13119 #define HAVE_LIBSELINUX 1
13122 LIBSELINUX_LIBS=-lselinux
13129 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13130 if test "$with_xaw3d" != no; then
13131 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13132 $as_echo_n "checking for xaw3d... " >&6; }
13133 if test "${emacs_cv_xaw3d+set}" = set; then
13134 $as_echo_n "(cached) " >&6
13136 cat >conftest.$ac_ext <<_ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13143 #include <X11/Intrinsic.h>
13144 #include <X11/Xaw3d/Simple.h>
13153 rm -f conftest.$ac_objext conftest$ac_exeext
13154 if { (ac_try="$ac_link"
13155 case "(($ac_try" in
13156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13157 *) ac_try_echo
=$ac_try;;
13159 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13160 $as_echo "$ac_try_echo") >&5
13161 (eval "$ac_link") 2>conftest.er1
13163 grep -v '^ *+' conftest.er1
>conftest.err
13165 cat conftest.err
>&5
13166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } && {
13168 test -z "$ac_c_werror_flag" ||
13169 test ! -s conftest.err
13170 } && test -s conftest
$ac_exeext && {
13171 test "$cross_compiling" = yes ||
13172 $as_test_x conftest
$ac_exeext
13176 $as_echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.
$ac_ext >&5
13182 rm -rf conftest.dSYM
13183 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13184 conftest
$ac_exeext conftest.
$ac_ext
13190 if test $emacs_cv_xaw3d = yes; then
13191 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13192 $as_echo "yes; using Lucid toolkit" >&6; }
13193 USE_X_TOOLKIT
=LUCID
13197 cat >>confdefs.h
<<\_ACEOF
13198 #define HAVE_XAW3D 1
13202 { $as_echo "$as_me:$LINENO: result: no" >&5
13203 $as_echo "no" >&6; }
13204 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13205 $as_echo_n "checking for libXaw... " >&6; }
13206 if test "${emacs_cv_xaw+set}" = set; then
13207 $as_echo_n "(cached) " >&6
13209 cat >conftest.
$ac_ext <<_ACEOF
13212 cat confdefs.h
>>conftest.
$ac_ext
13213 cat >>conftest.
$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13216 #include <X11/Intrinsic.h>
13217 #include <X11/Xaw/Simple.h>
13226 rm -f conftest.
$ac_objext conftest
$ac_exeext
13227 if { (ac_try
="$ac_link"
13228 case "(($ac_try" in
13229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13233 $as_echo "$ac_try_echo") >&5
13234 (eval "$ac_link") 2>conftest.er1
13236 grep -v '^ *+' conftest.er1 >conftest.err
13238 cat conftest.err >&5
13239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } && {
13241 test -z "$ac_c_werror_flag" ||
13242 test ! -s conftest.err
13243 } && test -s conftest$ac_exeext && {
13244 test "$cross_compiling" = yes ||
13245 $as_test_x conftest$ac_exeext
13249 $as_echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13255 rm -rf conftest.dSYM
13256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13257 conftest$ac_exeext conftest.$ac_ext
13260 if test $emacs_cv_xaw = yes; then
13261 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13262 $as_echo "yes; using Lucid toolkit" >&6; }
13263 USE_X_TOOLKIT=LUCID
13265 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13266 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13267 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13268 { (exit 1); exit 1; }; }
13270 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13271 $as_echo "no; do not use toolkit by default" >&6; }
13277 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13280 if test "${USE_X_TOOLKIT}" != "none"; then
13281 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13282 $as_echo_n "checking X11 toolkit version... " >&6; }
13283 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13284 $as_echo_n "(cached) " >&6
13286 cat >conftest.$ac_ext <<_ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h. */
13292 #include <X11/Intrinsic.h>
13296 #if XtSpecificationRelease < 6
13304 rm -f conftest.$ac_objext conftest$ac_exeext
13305 if { (ac_try="$ac_link"
13306 case "(($ac_try" in
13307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13308 *) ac_try_echo
=$ac_try;;
13310 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13311 $as_echo "$ac_try_echo") >&5
13312 (eval "$ac_link") 2>conftest.er1
13314 grep -v '^ *+' conftest.er1
>conftest.err
13316 cat conftest.err
>&5
13317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } && {
13319 test -z "$ac_c_werror_flag" ||
13320 test ! -s conftest.err
13321 } && test -s conftest
$ac_exeext && {
13322 test "$cross_compiling" = yes ||
13323 $as_test_x conftest
$ac_exeext
13325 emacs_cv_x11_toolkit_version_6
=yes
13327 $as_echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.
$ac_ext >&5
13330 emacs_cv_x11_toolkit_version_6
=no
13333 rm -rf conftest.dSYM
13334 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13335 conftest
$ac_exeext conftest.
$ac_ext
13338 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
13339 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13340 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13341 $as_echo "6 or newer" >&6; }
13343 cat >>confdefs.h
<<\_ACEOF
13344 #define HAVE_X11XTR6 1
13347 LIBXTR6
="-lSM -lICE"
13349 ## Use libw.a along with X11R6 Xt.
13350 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
13353 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13354 $as_echo "before 6" >&6; }
13358 if test x
$HAVE_X11XTR6 = xyes
; then
13359 LIBS
="-lXt -lSM -lICE $LIBS"
13364 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13365 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13366 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13367 $as_echo_n "(cached) " >&6
13369 ac_check_lib_save_LIBS
=$LIBS
13371 cat >conftest.
$ac_ext <<_ACEOF
13374 cat confdefs.h
>>conftest.
$ac_ext
13375 cat >>conftest.
$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13378 /* Override any GCC internal prototype to avoid an error.
13379 Use char because int might match the return type of a GCC
13380 builtin and then its argument prototype would still apply. */
13384 char XmuConvertStandardSelection ();
13388 return XmuConvertStandardSelection ();
13393 rm -f conftest.
$ac_objext conftest
$ac_exeext
13394 if { (ac_try
="$ac_link"
13395 case "(($ac_try" in
13396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13400 $as_echo "$ac_try_echo") >&5
13401 (eval "$ac_link") 2>conftest.er1
13403 grep -v '^ *+' conftest.er1 >conftest.err
13405 cat conftest.err >&5
13406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } && {
13408 test -z "$ac_c_werror_flag" ||
13409 test ! -s conftest.err
13410 } && test -s conftest$ac_exeext && {
13411 test "$cross_compiling" = yes ||
13412 $as_test_x conftest$ac_exeext
13414 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13416 $as_echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13419 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13422 rm -rf conftest.dSYM
13423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13424 conftest$ac_exeext conftest.$ac_ext
13425 LIBS=$ac_check_lib_save_LIBS
13427 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13428 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13429 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13430 cat >>confdefs.h <<_ACEOF
13431 #define HAVE_LIBXMU 1
13438 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13444 ## These machines don't supply Xmu.
13446 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13451 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13452 if test "${HAVE_X11}" = "yes"; then
13453 if test "${USE_X_TOOLKIT}" != "none"; then
13455 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13456 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13457 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13458 $as_echo_n "(cached) " >&6
13460 ac_check_lib_save_LIBS=$LIBS
13461 LIBS="-lXext $LIBS"
13462 cat >conftest.$ac_ext <<_ACEOF
13465 cat confdefs.h >>conftest.$ac_ext
13466 cat >>conftest.$ac_ext <<_ACEOF
13467 /* end confdefs.h. */
13469 /* Override any GCC internal prototype to avoid an error.
13470 Use char because int might match the return type of a GCC
13471 builtin and then its argument prototype would still apply. */
13475 char XShapeQueryExtension ();
13479 return XShapeQueryExtension ();
13484 rm -f conftest.$ac_objext conftest$ac_exeext
13485 if { (ac_try="$ac_link"
13486 case "(($ac_try" in
13487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13488 *) ac_try_echo
=$ac_try;;
13490 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13491 $as_echo "$ac_try_echo") >&5
13492 (eval "$ac_link") 2>conftest.er1
13494 grep -v '^ *+' conftest.er1
>conftest.err
13496 cat conftest.err
>&5
13497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } && {
13499 test -z "$ac_c_werror_flag" ||
13500 test ! -s conftest.err
13501 } && test -s conftest
$ac_exeext && {
13502 test "$cross_compiling" = yes ||
13503 $as_test_x conftest
$ac_exeext
13505 ac_cv_lib_Xext_XShapeQueryExtension
=yes
13507 $as_echo "$as_me: failed program was:" >&5
13508 sed 's/^/| /' conftest.
$ac_ext >&5
13510 ac_cv_lib_Xext_XShapeQueryExtension
=no
13513 rm -rf conftest.dSYM
13514 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13515 conftest
$ac_exeext conftest.
$ac_ext
13516 LIBS
=$ac_check_lib_save_LIBS
13518 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13519 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13520 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13521 cat >>confdefs.h
<<_ACEOF
13522 #define HAVE_LIBXEXT 1
13525 LIBS
="-lXext $LIBS"
13533 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13534 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13535 $as_echo_n "checking for Motif version 2.1... " >&6; }
13536 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13537 $as_echo_n "(cached) " >&6
13539 cat >conftest.
$ac_ext <<_ACEOF
13542 cat confdefs.h
>>conftest.
$ac_ext
13543 cat >>conftest.
$ac_ext <<_ACEOF
13544 /* end confdefs.h. */
13549 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13552 Motif version prior to 2.1.
13558 rm -f conftest.
$ac_objext
13559 if { (ac_try
="$ac_compile"
13560 case "(($ac_try" in
13561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13562 *) ac_try_echo=$ac_try;;
13564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13565 $as_echo "$ac_try_echo") >&5
13566 (eval "$ac_compile") 2>conftest.er1
13568 grep -v '^ *+' conftest.er1 >conftest.err
13570 cat conftest.err >&5
13571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } && {
13573 test -z "$ac_c_werror_flag" ||
13574 test ! -s conftest.err
13575 } && test -s conftest.$ac_objext; then
13576 emacs_cv_motif_version_2_1=yes
13578 $as_echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13581 emacs_cv_motif_version_2_1=no
13584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13586 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13587 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13588 if test $emacs_cv_motif_version_2_1 = yes; then
13589 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13590 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13591 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13592 $as_echo_n "(cached) " >&6
13594 ac_check_lib_save_LIBS=$LIBS
13596 cat >conftest.$ac_ext <<_ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13603 /* Override any GCC internal prototype to avoid an error.
13604 Use char because int might match the return type of a GCC
13605 builtin and then its argument prototype would still apply. */
13609 char XpCreateContext ();
13613 return XpCreateContext ();
13618 rm -f conftest.$ac_objext conftest$ac_exeext
13619 if { (ac_try="$ac_link"
13620 case "(($ac_try" in
13621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13622 *) ac_try_echo
=$ac_try;;
13624 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13625 $as_echo "$ac_try_echo") >&5
13626 (eval "$ac_link") 2>conftest.er1
13628 grep -v '^ *+' conftest.er1
>conftest.err
13630 cat conftest.err
>&5
13631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } && {
13633 test -z "$ac_c_werror_flag" ||
13634 test ! -s conftest.err
13635 } && test -s conftest
$ac_exeext && {
13636 test "$cross_compiling" = yes ||
13637 $as_test_x conftest
$ac_exeext
13639 ac_cv_lib_Xp_XpCreateContext
=yes
13641 $as_echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.
$ac_ext >&5
13644 ac_cv_lib_Xp_XpCreateContext
=no
13647 rm -rf conftest.dSYM
13648 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13649 conftest
$ac_exeext conftest.
$ac_ext
13650 LIBS
=$ac_check_lib_save_LIBS
13652 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13653 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13654 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13659 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13660 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13661 if test "${emacs_cv_lesstif+set}" = set; then
13662 $as_echo_n "(cached) " >&6
13664 # We put this in CFLAGS temporarily to precede other -I options
13665 # that might be in CFLAGS temporarily.
13666 # We put this in CPPFLAGS where it precedes the other -I options.
13667 OLD_CPPFLAGS
=$CPPFLAGS
13669 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13670 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13671 cat >conftest.
$ac_ext <<_ACEOF
13674 cat confdefs.h
>>conftest.
$ac_ext
13675 cat >>conftest.
$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13677 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13686 rm -f conftest.
$ac_objext
13687 if { (ac_try
="$ac_compile"
13688 case "(($ac_try" in
13689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13693 $as_echo "$ac_try_echo") >&5
13694 (eval "$ac_compile") 2>conftest.er1
13696 grep -v '^ *+' conftest.er1 >conftest.err
13698 cat conftest.err >&5
13699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } && {
13701 test -z "$ac_c_werror_flag" ||
13702 test ! -s conftest.err
13703 } && test -s conftest.$ac_objext; then
13704 emacs_cv_lesstif=yes
13706 $as_echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13709 emacs_cv_lesstif=no
13712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13714 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13715 $as_echo "$emacs_cv_lesstif" >&6; }
13716 if test $emacs_cv_lesstif = yes; then
13717 # Make sure this -I option remains in CPPFLAGS after it is set
13718 # back to REAL_CPPFLAGS.
13719 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13720 # have those other -I options anyway. Ultimately, having this
13721 # directory ultimately in CPPFLAGS will be enough.
13722 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13723 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13726 CPPFLAGS=$OLD_CPPFLAGS
13733 USE_TOOLKIT_SCROLL_BARS=no
13734 if test "${with_toolkit_scroll_bars}" != "no"; then
13735 if test "${USE_X_TOOLKIT}" != "none"; then
13736 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13737 cat >>confdefs.h <<\_ACEOF
13738 #define USE_TOOLKIT_SCROLL_BARS 1
13742 USE_TOOLKIT_SCROLL_BARS=yes
13743 elif test "${HAVE_XAW3D}" = "yes"; then
13744 cat >>confdefs.h <<\_ACEOF
13745 #define USE_TOOLKIT_SCROLL_BARS 1
13748 USE_TOOLKIT_SCROLL_BARS=yes
13750 elif test "${HAVE_GTK}" = "yes"; then
13751 cat >>confdefs.h <<\_ACEOF
13752 #define USE_TOOLKIT_SCROLL_BARS 1
13755 USE_TOOLKIT_SCROLL_BARS=yes
13756 elif test "${HAVE_NS}" = "yes"; then
13757 cat >>confdefs.h <<\_ACEOF
13758 #define USE_TOOLKIT_SCROLL_BARS 1
13761 USE_TOOLKIT_SCROLL_BARS=yes
13765 cat >conftest.$ac_ext <<_ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13772 #include <X11/Xlib.h>
13773 #include <X11/Xresource.h>
13782 rm -f conftest.$ac_objext
13783 if { (ac_try="$ac_compile"
13784 case "(($ac_try" in
13785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13786 *) ac_try_echo
=$ac_try;;
13788 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13789 $as_echo "$ac_try_echo") >&5
13790 (eval "$ac_compile") 2>conftest.er1
13792 grep -v '^ *+' conftest.er1
>conftest.err
13794 cat conftest.err
>&5
13795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } && {
13797 test -z "$ac_c_werror_flag" ||
13798 test ! -s conftest.err
13799 } && test -s conftest.
$ac_objext; then
13802 cat >>confdefs.h
<<\_ACEOF
13807 $as_echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.
$ac_ext >&5
13813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13816 if test "${with_xim}" != "no"; then
13818 cat >>confdefs.h
<<\_ACEOF
13825 if test "${HAVE_XIM}" != "no"; then
13826 late_CFLAGS
=$CFLAGS
13827 if test "$GCC" = yes; then
13828 CFLAGS
="$CFLAGS --pedantic-errors"
13830 cat >conftest.
$ac_ext <<_ACEOF
13833 cat confdefs.h
>>conftest.
$ac_ext
13834 cat >>conftest.
$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13837 #include <X11/Xlib.h>
13838 #include <X11/Xresource.h>
13847 XPointer *client_data;
13849 /* If we're not using GCC, it's probably not XFree86, and this is
13850 probably right, but we can't use something like --pedantic-errors. */
13851 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13852 char*, XIMProc, XPointer*);
13854 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13860 rm -f conftest.
$ac_objext
13861 if { (ac_try
="$ac_compile"
13862 case "(($ac_try" in
13863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13867 $as_echo "$ac_try_echo") >&5
13868 (eval "$ac_compile") 2>conftest.er1
13870 grep -v '^ *+' conftest.er1 >conftest.err
13872 cat conftest.err >&5
13873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } && {
13875 test -z "$ac_c_werror_flag" ||
13876 test ! -s conftest.err
13877 } && test -s conftest.$ac_objext; then
13878 emacs_cv_arg6_star=yes
13880 $as_echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13888 if test "$emacs_cv_arg6_star" = yes; then
13889 cat >>confdefs.h <<\_ACEOF
13890 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13894 cat >>confdefs.h <<\_ACEOF
13895 #define XRegisterIMInstantiateCallback_arg6 XPointer
13899 CFLAGS=$late_CFLAGS
13902 ### Start of font-backend (under any platform) section.
13903 # (nothing here yet -- this is a placeholder)
13904 ### End of font-backend (under any platform) section.
13906 ### Start of font-backend (under X11) section.
13907 if test "${HAVE_X11}" = "yes"; then
13911 # Extract the first word of "pkg-config", so it can be a program name with args.
13912 set dummy pkg-config; ac_word=$2
13913 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13914 $as_echo_n "checking for $ac_word... " >&6; }
13915 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13916 $as_echo_n "(cached) " >&6
13918 case $PKG_CONFIG in
13920 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13924 for as_dir in $PATH
13927 test -z "$as_dir" && as_dir=.
13928 for ac_exec_ext in '' $ac_executable_extensions; do
13929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13930 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13931 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13938 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13942 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13943 if test -n "$PKG_CONFIG"; then
13944 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13945 $as_echo "$PKG_CONFIG" >&6; }
13947 { $as_echo "$as_me:$LINENO: result: no" >&5
13948 $as_echo "no" >&6; }
13953 if test "$PKG_CONFIG" = "no" ; then
13956 PKG_CONFIG_MIN_VERSION=0.9.0
13957 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13958 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13959 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13961 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13962 { $as_echo "$as_me:$LINENO: result: yes" >&5
13963 $as_echo "yes" >&6; }
13966 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13967 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13968 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13969 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13970 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13972 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13973 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13974 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13975 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13976 $as_echo "$FONTCONFIG_LIBS" >&6; }
13978 { $as_echo "$as_me:$LINENO: result: no" >&5
13979 $as_echo "no" >&6; }
13980 FONTCONFIG_CFLAGS=""
13982 ## If we have a custom action on failure, don't print errors, but
13983 ## do set a variable so people can do so.
13984 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13991 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13992 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13996 if test $succeeded = yes; then
14003 ## Use -lXft if available, unless `--with-xft=no
'.
14005 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
14008 if test "x${with_xft}" != "xno"; then
14013 # Extract the first word of "pkg-config", so it can be a program name with args.
14014 set dummy pkg-config; ac_word=$2
14015 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14016 $as_echo_n "checking for $ac_word... " >&6; }
14017 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14018 $as_echo_n "(cached) " >&6
14020 case $PKG_CONFIG in
14022 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14026 for as_dir in $PATH
14029 test -z "$as_dir" && as_dir=.
14030 for ac_exec_ext in '' $ac_executable_extensions; do
14031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14032 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14033 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14040 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14044 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14045 if test -n "$PKG_CONFIG"; then
14046 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14047 $as_echo "$PKG_CONFIG" >&6; }
14049 { $as_echo "$as_me:$LINENO: result: no" >&5
14050 $as_echo "no" >&6; }
14055 if test "$PKG_CONFIG" = "no" ; then
14058 PKG_CONFIG_MIN_VERSION=0.9.0
14059 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14060 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14061 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14063 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14064 { $as_echo "$as_me:$LINENO: result: yes" >&5
14065 $as_echo "yes" >&6; }
14068 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14069 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14070 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14071 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14072 $as_echo "$XFT_CFLAGS" >&6; }
14074 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14075 $as_echo_n "checking XFT_LIBS... " >&6; }
14076 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14077 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14078 $as_echo "$XFT_LIBS" >&6; }
14080 { $as_echo "$as_me:$LINENO: result: no" >&5
14081 $as_echo "no" >&6; }
14084 ## If we have a custom action on failure, don't print errors
, but
14085 ## do set a variable so people can do so.
14086 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14093 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14094 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14098 if test $succeeded = yes; then
14104 ## Because xftfont.c uses XRenderQueryExtension, we also
14105 ## need to link to -lXrender.
14107 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14108 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14109 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14110 $as_echo_n "(cached) " >&6
14112 ac_check_lib_save_LIBS
=$LIBS
14113 LIBS
="-lXrender $LIBS"
14114 cat >conftest.
$ac_ext <<_ACEOF
14117 cat confdefs.h
>>conftest.
$ac_ext
14118 cat >>conftest.
$ac_ext <<_ACEOF
14119 /* end confdefs.h. */
14121 /* Override any GCC internal prototype to avoid an error.
14122 Use char because int might match the return type of a GCC
14123 builtin and then its argument prototype would still apply. */
14127 char XRenderQueryExtension ();
14131 return XRenderQueryExtension ();
14136 rm -f conftest.
$ac_objext conftest
$ac_exeext
14137 if { (ac_try
="$ac_link"
14138 case "(($ac_try" in
14139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14143 $as_echo "$ac_try_echo") >&5
14144 (eval "$ac_link") 2>conftest.er1
14146 grep -v '^ *+' conftest.er1 >conftest.err
14148 cat conftest.err >&5
14149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); } && {
14151 test -z "$ac_c_werror_flag" ||
14152 test ! -s conftest.err
14153 } && test -s conftest$ac_exeext && {
14154 test "$cross_compiling" = yes ||
14155 $as_test_x conftest$ac_exeext
14157 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14159 $as_echo "$as_me: failed program was:" >&5
14160 sed 's/^/| /' conftest.$ac_ext >&5
14162 ac_cv_lib_Xrender_XRenderQueryExtension=no
14165 rm -rf conftest.dSYM
14166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14167 conftest$ac_exeext conftest.$ac_ext
14168 LIBS=$ac_check_lib_save_LIBS
14170 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14171 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14172 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14176 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14177 OLD_CPPFLAGS="$CPPFLAGS"
14178 OLD_CFLAGS="$CFLAGS"
14180 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14181 CFLAGS="$CFLAGS $XFT_CFLAGS"
14182 XFT_LIBS="-lXrender $XFT_LIBS"
14183 LIBS="$XFT_LIBS $LIBS"
14184 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14185 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14186 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14187 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14188 $as_echo_n "(cached) " >&6
14190 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14191 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14193 # Is the header compilable?
14194 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14195 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14196 cat >conftest.$ac_ext <<_ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h. */
14202 $ac_includes_default
14203 #include <X11/Xft/Xft.h>
14205 rm -f conftest.$ac_objext
14206 if { (ac_try="$ac_compile"
14207 case "(($ac_try" in
14208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14209 *) ac_try_echo
=$ac_try;;
14211 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14212 $as_echo "$ac_try_echo") >&5
14213 (eval "$ac_compile") 2>conftest.er1
14215 grep -v '^ *+' conftest.er1
>conftest.err
14217 cat conftest.err
>&5
14218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } && {
14220 test -z "$ac_c_werror_flag" ||
14221 test ! -s conftest.err
14222 } && test -s conftest.
$ac_objext; then
14223 ac_header_compiler
=yes
14225 $as_echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.
$ac_ext >&5
14228 ac_header_compiler
=no
14231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14232 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14233 $as_echo "$ac_header_compiler" >&6; }
14235 # Is the header present?
14236 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14237 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14238 cat >conftest.
$ac_ext <<_ACEOF
14241 cat confdefs.h
>>conftest.
$ac_ext
14242 cat >>conftest.
$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 #include <X11/Xft/Xft.h>
14246 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14247 case "(($ac_try" in
14248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14252 $as_echo "$ac_try_echo") >&5
14253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14255 grep -v '^ *+' conftest.er1 >conftest.err
14257 cat conftest.err >&5
14258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } >/dev/null && {
14260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14261 test ! -s conftest.err
14263 ac_header_preproc=yes
14265 $as_echo "$as_me: failed program was:" >&5
14266 sed 's/^/| /' conftest.$ac_ext >&5
14268 ac_header_preproc=no
14271 rm -f conftest.err conftest.$ac_ext
14272 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14273 $as_echo "$ac_header_preproc" >&6; }
14275 # So? What about this header?
14276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14278 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14279 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14280 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14281 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14282 ac_header_preproc=yes
14285 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14286 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14287 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14288 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14289 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14290 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14291 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14292 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14293 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14294 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14295 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14296 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14300 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14301 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14302 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14303 $as_echo_n "(cached) " >&6
14305 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14307 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14308 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14311 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14312 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14313 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14314 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14315 $as_echo_n "(cached) " >&6
14317 ac_check_lib_save_LIBS=$LIBS
14318 LIBS="-lXft $XFT_LIBS $LIBS"
14319 cat >conftest.$ac_ext <<_ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h. */
14326 /* Override any GCC internal prototype to avoid an error.
14327 Use char because int might match the return type of a GCC
14328 builtin and then its argument prototype would still apply. */
14332 char XftFontOpen ();
14336 return XftFontOpen ();
14341 rm -f conftest.$ac_objext conftest$ac_exeext
14342 if { (ac_try="$ac_link"
14343 case "(($ac_try" in
14344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14345 *) ac_try_echo
=$ac_try;;
14347 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14348 $as_echo "$ac_try_echo") >&5
14349 (eval "$ac_link") 2>conftest.er1
14351 grep -v '^ *+' conftest.er1
>conftest.err
14353 cat conftest.err
>&5
14354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } && {
14356 test -z "$ac_c_werror_flag" ||
14357 test ! -s conftest.err
14358 } && test -s conftest
$ac_exeext && {
14359 test "$cross_compiling" = yes ||
14360 $as_test_x conftest
$ac_exeext
14362 ac_cv_lib_Xft_XftFontOpen
=yes
14364 $as_echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.
$ac_ext >&5
14367 ac_cv_lib_Xft_XftFontOpen
=no
14370 rm -rf conftest.dSYM
14371 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14372 conftest
$ac_exeext conftest.
$ac_ext
14373 LIBS
=$ac_check_lib_save_LIBS
14375 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14376 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14377 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14385 if test "${HAVE_XFT}" = "yes"; then
14387 cat >>confdefs.h
<<\_ACEOF
14392 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14394 CPPFLAGS
="$OLD_CPPFLAGS"
14395 CFLAGS
="$OLD_CFLAGS"
14397 fi # "${HAVE_XFT}" = "yes"
14398 fi # "$HAVE_XFT" != no
14399 fi # "x${with_xft}" != "xno"
14401 if test "$HAVE_XFT" != "yes"; then
14407 ## We used to allow building with FreeType and without Xft.
14408 ## However, the ftx font backend driver is not in good shape.
14409 if test "${HAVE_XFT}" = "yes"; then
14416 if test "${HAVE_FREETYPE}" = "yes"; then
14418 cat >>confdefs.h
<<\_ACEOF
14419 #define HAVE_FREETYPE 1
14422 if test "${with_libotf}" != "no"; then
14426 # Extract the first word of "pkg-config", so it can be a program name with args.
14427 set dummy pkg-config
; ac_word
=$2
14428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14429 $as_echo_n "checking for $ac_word... " >&6; }
14430 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14431 $as_echo_n "(cached) " >&6
14433 case $PKG_CONFIG in
14435 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14439 for as_dir
in $PATH
14442 test -z "$as_dir" && as_dir
=.
14443 for ac_exec_ext
in '' $ac_executable_extensions; do
14444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14445 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14453 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14457 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14458 if test -n "$PKG_CONFIG"; then
14459 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14460 $as_echo "$PKG_CONFIG" >&6; }
14462 { $as_echo "$as_me:$LINENO: result: no" >&5
14463 $as_echo "no" >&6; }
14468 if test "$PKG_CONFIG" = "no" ; then
14471 PKG_CONFIG_MIN_VERSION
=0.9.0
14472 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14473 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14474 $as_echo_n "checking for libotf... " >&6; }
14476 if $PKG_CONFIG --exists "libotf" 2>&5; then
14477 { $as_echo "$as_me:$LINENO: result: yes" >&5
14478 $as_echo "yes" >&6; }
14481 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14482 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14483 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14484 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14485 $as_echo "$LIBOTF_CFLAGS" >&6; }
14487 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14488 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14489 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14490 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14491 $as_echo "$LIBOTF_LIBS" >&6; }
14493 { $as_echo "$as_me:$LINENO: result: no" >&5
14494 $as_echo "no" >&6; }
14497 ## If we have a custom action on failure, don't print errors, but
14498 ## do set a variable so people can do so.
14499 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14506 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14507 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14511 if test $succeeded = yes; then
14517 if test "$HAVE_LIBOTF" = "yes"; then
14519 cat >>confdefs.h
<<\_ACEOF
14520 #define HAVE_LIBOTF 1
14523 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14524 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14525 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14526 $as_echo_n "(cached) " >&6
14528 ac_check_lib_save_LIBS
=$LIBS
14530 cat >conftest.
$ac_ext <<_ACEOF
14533 cat confdefs.h
>>conftest.
$ac_ext
14534 cat >>conftest.
$ac_ext <<_ACEOF
14535 /* end confdefs.h. */
14537 /* Override any GCC internal prototype to avoid an error.
14538 Use char because int might match the return type of a GCC
14539 builtin and then its argument prototype would still apply. */
14543 char OTF_get_variation_glyphs ();
14547 return OTF_get_variation_glyphs ();
14552 rm -f conftest.
$ac_objext conftest
$ac_exeext
14553 if { (ac_try
="$ac_link"
14554 case "(($ac_try" in
14555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14556 *) ac_try_echo=$ac_try;;
14558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14559 $as_echo "$ac_try_echo") >&5
14560 (eval "$ac_link") 2>conftest.er1
14562 grep -v '^ *+' conftest.er1 >conftest.err
14564 cat conftest.err >&5
14565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } && {
14567 test -z "$ac_c_werror_flag" ||
14568 test ! -s conftest.err
14569 } && test -s conftest$ac_exeext && {
14570 test "$cross_compiling" = yes ||
14571 $as_test_x conftest$ac_exeext
14573 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14575 $as_echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14578 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14581 rm -rf conftest.dSYM
14582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14583 conftest$ac_exeext conftest.$ac_ext
14584 LIBS=$ac_check_lib_save_LIBS
14586 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14587 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14588 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14589 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14591 HAVE_OTF_GET_VARIATION_GLYPHS=no
14594 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14596 cat >>confdefs.h <<\_ACEOF
14597 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14606 if test "${HAVE_LIBOTF}" = yes; then
14607 if test "${with_m17n_flt}" != "no"; then
14611 # Extract the first word of "pkg-config", so it can be a program name with args.
14612 set dummy pkg-config; ac_word=$2
14613 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14614 $as_echo_n "checking for $ac_word... " >&6; }
14615 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14616 $as_echo_n "(cached) " >&6
14618 case $PKG_CONFIG in
14620 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14624 for as_dir in $PATH
14627 test -z "$as_dir" && as_dir=.
14628 for ac_exec_ext in '' $ac_executable_extensions; do
14629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14630 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14638 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14642 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14643 if test -n "$PKG_CONFIG"; then
14644 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14645 $as_echo "$PKG_CONFIG" >&6; }
14647 { $as_echo "$as_me:$LINENO: result: no" >&5
14648 $as_echo "no" >&6; }
14653 if test "$PKG_CONFIG" = "no" ; then
14656 PKG_CONFIG_MIN_VERSION=0.9.0
14657 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14658 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14659 $as_echo_n "checking for m17n-flt... " >&6; }
14661 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14662 { $as_echo "$as_me:$LINENO: result: yes" >&5
14663 $as_echo "yes" >&6; }
14666 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14667 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14668 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14669 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14670 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14672 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14673 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14674 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14675 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14676 $as_echo "$M17N_FLT_LIBS" >&6; }
14678 { $as_echo "$as_me:$LINENO: result: no" >&5
14679 $as_echo "no" >&6; }
14682 ## If we have a custom action on failure, don't print errors, but
14683 ## do set a variable so people can do so.
14684 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14691 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14692 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14696 if test $succeeded = yes; then
14702 if test "$HAVE_M17N_FLT" = "yes"; then
14704 cat >>confdefs.h <<\_ACEOF
14705 #define HAVE_M17N_FLT 1
14718 ### End of font-backend (under X11) section.
14729 ### Use -lXpm if available, unless `--with-xpm=no
'.
14732 if test "${HAVE_X11}" = "yes"; then
14733 if test "${with_xpm}" != "no"; then
14734 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14735 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14736 $as_echo_n "checking for X11/xpm.h... " >&6; }
14737 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14738 $as_echo_n "(cached) " >&6
14740 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14741 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14743 # Is the header compilable?
14744 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14745 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14746 cat >conftest.$ac_ext <<_ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14752 $ac_includes_default
14753 #include <X11/xpm.h>
14755 rm -f conftest.$ac_objext
14756 if { (ac_try="$ac_compile"
14757 case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14762 $as_echo "$ac_try_echo") >&5
14763 (eval "$ac_compile") 2>conftest.er1
14765 grep -v '^
*+' conftest.er1 >conftest.err
14767 cat conftest.err >&5
14768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } && {
14770 test -z "$ac_c_werror_flag" ||
14771 test ! -s conftest.err
14772 } && test -s conftest.$ac_objext; then
14773 ac_header_compiler=yes
14775 $as_echo "$as_me: failed program was:" >&5
14776 sed 's
/^
/|
/' conftest.$ac_ext >&5
14778 ac_header_compiler=no
14781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14782 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14783 $as_echo "$ac_header_compiler" >&6; }
14785 # Is the header present?
14786 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14787 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14788 cat >conftest.$ac_ext <<_ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h. */
14794 #include <X11/xpm.h>
14796 if { (ac_try="$ac_cpp conftest.$ac_ext"
14797 case "(($ac_try" in
14798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799 *) ac_try_echo=$ac_try;;
14801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14802 $as_echo "$ac_try_echo") >&5
14803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14805 grep -v '^
*+' conftest.er1 >conftest.err
14807 cat conftest.err >&5
14808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } >/dev/null && {
14810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14811 test ! -s conftest.err
14813 ac_header_preproc=yes
14815 $as_echo "$as_me: failed program was:" >&5
14816 sed 's
/^
/|
/' conftest.$ac_ext >&5
14818 ac_header_preproc=no
14821 rm -f conftest.err conftest.$ac_ext
14822 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823 $as_echo "$ac_header_preproc" >&6; }
14825 # So? What about this header?
14826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14828 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14829 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14831 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14832 ac_header_preproc=yes
14835 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14836 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14837 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14838 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14839 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14840 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14841 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14842 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14843 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14844 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14845 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14846 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14850 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14851 $as_echo_n "checking for X11/xpm.h... " >&6; }
14852 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14853 $as_echo_n "(cached) " >&6
14855 ac_cv_header_X11_xpm_h=$ac_header_preproc
14857 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14858 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14861 if test $ac_cv_header_X11_xpm_h = yes; then
14862 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14863 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14864 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14865 $as_echo_n "(cached) " >&6
14867 ac_check_lib_save_LIBS=$LIBS
14868 LIBS="-lXpm -lX11 $LIBS"
14869 cat >conftest.$ac_ext <<_ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14876 /* Override any GCC internal prototype to avoid an error.
14877 Use char because int might match the return type of a GCC
14878 builtin and then its argument prototype would still apply. */
14882 char XpmReadFileToPixmap ();
14886 return XpmReadFileToPixmap ();
14891 rm -f conftest.$ac_objext conftest$ac_exeext
14892 if { (ac_try="$ac_link"
14893 case "(($ac_try" in
14894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895 *) ac_try_echo=$ac_try;;
14897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14898 $as_echo "$ac_try_echo") >&5
14899 (eval "$ac_link") 2>conftest.er1
14901 grep -v '^
*+' conftest.er1 >conftest.err
14903 cat conftest.err >&5
14904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } && {
14906 test -z "$ac_c_werror_flag" ||
14907 test ! -s conftest.err
14908 } && test -s conftest$ac_exeext && {
14909 test "$cross_compiling" = yes ||
14910 $as_test_x conftest$ac_exeext
14912 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14914 $as_echo "$as_me: failed program was:" >&5
14915 sed 's
/^
/|
/' conftest.$ac_ext >&5
14917 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14920 rm -rf conftest.dSYM
14921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14922 conftest$ac_exeext conftest.$ac_ext
14923 LIBS=$ac_check_lib_save_LIBS
14925 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14926 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14927 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14934 if test "${HAVE_XPM}" = "yes"; then
14935 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14936 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14937 cat >conftest.$ac_ext <<_ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14943 #include "X11/xpm.h"
14944 #ifndef XpmReturnAllocPixels
14945 no_return_alloc_pixels
14949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14950 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14958 if test "${HAVE_XPM}" = "yes"; then
14959 { $as_echo "$as_me:$LINENO: result: yes" >&5
14960 $as_echo "yes" >&6; }
14962 { $as_echo "$as_me:$LINENO: result: no" >&5
14963 $as_echo "no" >&6; }
14968 if test "${HAVE_XPM}" = "yes"; then
14970 cat >>confdefs.h <<\_ACEOF
14979 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14982 if test "${HAVE_X11}" = "yes"; then
14983 if test "${with_jpeg}" != "no"; then
14984 if test "${ac_cv_header_jerror_h+set}" = set; then
14985 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14986 $as_echo_n "checking for jerror.h... " >&6; }
14987 if test "${ac_cv_header_jerror_h+set}" = set; then
14988 $as_echo_n "(cached) " >&6
14990 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14991 $as_echo "$ac_cv_header_jerror_h" >&6; }
14993 # Is the header compilable?
14994 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14995 $as_echo_n "checking jerror.h usability... " >&6; }
14996 cat >conftest.
$ac_ext <<_ACEOF
14999 cat confdefs.h
>>conftest.
$ac_ext
15000 cat >>conftest.
$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 $ac_includes_default
15003 #include <jerror.h>
15005 rm -f conftest.
$ac_objext
15006 if { (ac_try
="$ac_compile"
15007 case "(($ac_try" in
15008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15012 $as_echo "$ac_try_echo") >&5
15013 (eval "$ac_compile") 2>conftest.er1
15015 grep -v '^ *+' conftest.er1 >conftest.err
15017 cat conftest.err >&5
15018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } && {
15020 test -z "$ac_c_werror_flag" ||
15021 test ! -s conftest.err
15022 } && test -s conftest.$ac_objext; then
15023 ac_header_compiler=yes
15025 $as_echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 ac_header_compiler=no
15031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15032 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15033 $as_echo "$ac_header_compiler" >&6; }
15035 # Is the header present?
15036 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15037 $as_echo_n "checking jerror.h presence... " >&6; }
15038 cat >conftest.$ac_ext <<_ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h. */
15044 #include <jerror.h>
15046 if { (ac_try="$ac_cpp conftest.$ac_ext"
15047 case "(($ac_try" in
15048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15049 *) ac_try_echo
=$ac_try;;
15051 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15052 $as_echo "$ac_try_echo") >&5
15053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15055 grep -v '^ *+' conftest.er1
>conftest.err
15057 cat conftest.err
>&5
15058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } >/dev
/null
&& {
15060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15061 test ! -s conftest.err
15063 ac_header_preproc
=yes
15065 $as_echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.
$ac_ext >&5
15068 ac_header_preproc
=no
15071 rm -f conftest.err conftest.
$ac_ext
15072 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15073 $as_echo "$ac_header_preproc" >&6; }
15075 # So? What about this header?
15076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15078 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15079 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15080 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15081 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15082 ac_header_preproc
=yes
15085 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15086 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15087 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15088 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15089 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15090 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15091 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15092 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15093 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15094 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15095 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15096 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15100 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15101 $as_echo_n "checking for jerror.h... " >&6; }
15102 if test "${ac_cv_header_jerror_h+set}" = set; then
15103 $as_echo_n "(cached) " >&6
15105 ac_cv_header_jerror_h
=$ac_header_preproc
15107 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15108 $as_echo "$ac_cv_header_jerror_h" >&6; }
15111 if test $ac_cv_header_jerror_h = yes; then
15112 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15113 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15114 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15115 $as_echo_n "(cached) " >&6
15117 ac_check_lib_save_LIBS
=$LIBS
15118 LIBS
="-ljpeg $LIBS"
15119 cat >conftest.
$ac_ext <<_ACEOF
15122 cat confdefs.h
>>conftest.
$ac_ext
15123 cat >>conftest.
$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15126 /* Override any GCC internal prototype to avoid an error.
15127 Use char because int might match the return type of a GCC
15128 builtin and then its argument prototype would still apply. */
15132 char jpeg_destroy_compress ();
15136 return jpeg_destroy_compress ();
15141 rm -f conftest.
$ac_objext conftest
$ac_exeext
15142 if { (ac_try
="$ac_link"
15143 case "(($ac_try" in
15144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15148 $as_echo "$ac_try_echo") >&5
15149 (eval "$ac_link") 2>conftest.er1
15151 grep -v '^ *+' conftest.er1 >conftest.err
15153 cat conftest.err >&5
15154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } && {
15156 test -z "$ac_c_werror_flag" ||
15157 test ! -s conftest.err
15158 } && test -s conftest$ac_exeext && {
15159 test "$cross_compiling" = yes ||
15160 $as_test_x conftest$ac_exeext
15162 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15164 $as_echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15167 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15170 rm -rf conftest.dSYM
15171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15172 conftest$ac_exeext conftest.$ac_ext
15173 LIBS=$ac_check_lib_save_LIBS
15175 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15176 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15177 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15187 if test "${HAVE_JPEG}" = "yes"; then
15188 cat >>confdefs.h <<\_ACEOF
15189 #define HAVE_JPEG 1
15192 cat >conftest.$ac_ext <<_ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15198 #include <jpeglib.h>
15199 version=JPEG_LIB_VERSION
15202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15203 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15204 cat >>confdefs.h <<\_ACEOF
15205 #define HAVE_JPEG 1
15209 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15210 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15216 if test "${HAVE_JPEG}" = "yes"; then
15222 ### Use -lpng if available, unless `--with-png=no
'.
15225 if test "${HAVE_X11}" = "yes"; then
15226 if test "${with_png}" != "no"; then
15227 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15228 # in /usr/include/libpng.
15231 for ac_header in png.h libpng/png.h
15233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15236 $as_echo_n "checking for $ac_header... " >&6; }
15237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15238 $as_echo_n "(cached) " >&6
15240 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15241 $as_echo "$as_val"'`
15242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15243 $as_echo "$ac_res" >&6; }
15245 # Is the header compilable?
15246 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15247 $as_echo_n "checking $ac_header usability... " >&6; }
15248 cat >conftest.$ac_ext <<_ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 $ac_includes_default
15255 #include <$ac_header>
15257 rm -f conftest.$ac_objext
15258 if { (ac_try="$ac_compile"
15259 case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15264 $as_echo "$ac_try_echo") >&5
15265 (eval "$ac_compile") 2>conftest.er1
15267 grep -v '^
*+' conftest.er1 >conftest.err
15269 cat conftest.err >&5
15270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } && {
15272 test -z "$ac_c_werror_flag" ||
15273 test ! -s conftest.err
15274 } && test -s conftest.$ac_objext; then
15275 ac_header_compiler=yes
15277 $as_echo "$as_me: failed program was:" >&5
15278 sed 's
/^
/|
/' conftest.$ac_ext >&5
15280 ac_header_compiler=no
15283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15285 $as_echo "$ac_header_compiler" >&6; }
15287 # Is the header present?
15288 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15289 $as_echo_n "checking $ac_header presence... " >&6; }
15290 cat >conftest.$ac_ext <<_ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15296 #include <$ac_header>
15298 if { (ac_try="$ac_cpp conftest.$ac_ext"
15299 case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15304 $as_echo "$ac_try_echo") >&5
15305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15307 grep -v '^
*+' conftest.er1 >conftest.err
15309 cat conftest.err >&5
15310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } >/dev/null && {
15312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15313 test ! -s conftest.err
15315 ac_header_preproc=yes
15317 $as_echo "$as_me: failed program was:" >&5
15318 sed 's
/^
/|
/' conftest.$ac_ext >&5
15320 ac_header_preproc=no
15323 rm -f conftest.err conftest.$ac_ext
15324 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15325 $as_echo "$ac_header_preproc" >&6; }
15327 # So? What about this header?
15328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15331 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
15333 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
15334 ac_header_preproc=yes
15337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15338 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15340 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15342 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15344 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
15346 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
15347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15348 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15352 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15353 $as_echo_n "checking for $ac_header... " >&6; }
15354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15355 $as_echo_n "(cached) " >&6
15357 eval "$as_ac_Header=\$ac_header_preproc"
15359 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15360 $as_echo "$as_val"'`
15361 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15362 $as_echo "$ac_res" >&6; }
15365 if test `eval 'as_val
=${'$as_ac_Header'}
15366 $as_echo "$as_val"'` = yes; then
15367 cat >>confdefs.h <<_ACEOF
15368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15375 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15376 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15377 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15378 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15379 $as_echo_n "(cached) " >&6
15381 ac_check_lib_save_LIBS=$LIBS
15382 LIBS="-lpng -lz -lm $LIBS"
15383 cat >conftest.$ac_ext <<_ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15390 /* Override any GCC internal prototype to avoid an error.
15391 Use char because int might match the return type of a GCC
15392 builtin and then its argument prototype would still apply. */
15396 char png_get_channels ();
15400 return png_get_channels ();
15405 rm -f conftest.$ac_objext conftest$ac_exeext
15406 if { (ac_try="$ac_link"
15407 case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15412 $as_echo "$ac_try_echo") >&5
15413 (eval "$ac_link") 2>conftest.er1
15415 grep -v '^
*+' conftest.er1 >conftest.err
15417 cat conftest.err >&5
15418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); } && {
15420 test -z "$ac_c_werror_flag" ||
15421 test ! -s conftest.err
15422 } && test -s conftest$ac_exeext && {
15423 test "$cross_compiling" = yes ||
15424 $as_test_x conftest$ac_exeext
15426 ac_cv_lib_png_png_get_channels=yes
15428 $as_echo "$as_me: failed program was:" >&5
15429 sed 's
/^
/|
/' conftest.$ac_ext >&5
15431 ac_cv_lib_png_png_get_channels=no
15434 rm -rf conftest.dSYM
15435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15436 conftest$ac_exeext conftest.$ac_ext
15437 LIBS=$ac_check_lib_save_LIBS
15439 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15440 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15441 if test $ac_cv_lib_png_png_get_channels = yes; then
15448 if test "${HAVE_PNG}" = "yes"; then
15450 cat >>confdefs.h <<\_ACEOF
15454 LIBPNG="-lpng -lz -lm"
15459 ### Use -ltiff if available, unless `--with-tiff=no'.
15462 if test "${HAVE_X11}" = "yes"; then
15463 if test "${with_tiff}" != "no"; then
15464 if test "${ac_cv_header_tiffio_h+set}" = set; then
15465 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15466 $as_echo_n "checking for tiffio.h... " >&6; }
15467 if test "${ac_cv_header_tiffio_h+set}" = set; then
15468 $as_echo_n "(cached) " >&6
15470 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15471 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15473 # Is the header compilable?
15474 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15475 $as_echo_n "checking tiffio.h usability... " >&6; }
15476 cat >conftest.
$ac_ext <<_ACEOF
15479 cat confdefs.h
>>conftest.
$ac_ext
15480 cat >>conftest.
$ac_ext <<_ACEOF
15481 /* end confdefs.h. */
15482 $ac_includes_default
15483 #include <tiffio.h>
15485 rm -f conftest.
$ac_objext
15486 if { (ac_try
="$ac_compile"
15487 case "(($ac_try" in
15488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15492 $as_echo "$ac_try_echo") >&5
15493 (eval "$ac_compile") 2>conftest.er1
15495 grep -v '^ *+' conftest.er1 >conftest.err
15497 cat conftest.err >&5
15498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } && {
15500 test -z "$ac_c_werror_flag" ||
15501 test ! -s conftest.err
15502 } && test -s conftest.$ac_objext; then
15503 ac_header_compiler=yes
15505 $as_echo "$as_me: failed program was:" >&5
15506 sed 's/^/| /' conftest.$ac_ext >&5
15508 ac_header_compiler=no
15511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15512 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15513 $as_echo "$ac_header_compiler" >&6; }
15515 # Is the header present?
15516 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15517 $as_echo_n "checking tiffio.h presence... " >&6; }
15518 cat >conftest.$ac_ext <<_ACEOF
15521 cat confdefs.h >>conftest.$ac_ext
15522 cat >>conftest.$ac_ext <<_ACEOF
15523 /* end confdefs.h. */
15524 #include <tiffio.h>
15526 if { (ac_try="$ac_cpp conftest.$ac_ext"
15527 case "(($ac_try" in
15528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15529 *) ac_try_echo
=$ac_try;;
15531 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15532 $as_echo "$ac_try_echo") >&5
15533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15535 grep -v '^ *+' conftest.er1
>conftest.err
15537 cat conftest.err
>&5
15538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); } >/dev
/null
&& {
15540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15541 test ! -s conftest.err
15543 ac_header_preproc
=yes
15545 $as_echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.
$ac_ext >&5
15548 ac_header_preproc
=no
15551 rm -f conftest.err conftest.
$ac_ext
15552 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15553 $as_echo "$ac_header_preproc" >&6; }
15555 # So? What about this header?
15556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15558 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15559 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15560 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15561 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15562 ac_header_preproc
=yes
15565 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15566 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15567 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15568 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15569 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15570 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15571 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15572 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15573 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15574 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15575 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15576 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15580 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15581 $as_echo_n "checking for tiffio.h... " >&6; }
15582 if test "${ac_cv_header_tiffio_h+set}" = set; then
15583 $as_echo_n "(cached) " >&6
15585 ac_cv_header_tiffio_h
=$ac_header_preproc
15587 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15588 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15591 if test $ac_cv_header_tiffio_h = yes; then
15593 # At least one tiff package requires the jpeg library.
15594 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15595 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15596 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15597 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15598 $as_echo_n "(cached) " >&6
15600 ac_check_lib_save_LIBS
=$LIBS
15601 LIBS
="-ltiff $tifflibs $LIBS"
15602 cat >conftest.
$ac_ext <<_ACEOF
15605 cat confdefs.h
>>conftest.
$ac_ext
15606 cat >>conftest.
$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15609 /* Override any GCC internal prototype to avoid an error.
15610 Use char because int might match the return type of a GCC
15611 builtin and then its argument prototype would still apply. */
15615 char TIFFGetVersion ();
15619 return TIFFGetVersion ();
15624 rm -f conftest.
$ac_objext conftest
$ac_exeext
15625 if { (ac_try
="$ac_link"
15626 case "(($ac_try" in
15627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15631 $as_echo "$ac_try_echo") >&5
15632 (eval "$ac_link") 2>conftest.er1
15634 grep -v '^ *+' conftest.er1 >conftest.err
15636 cat conftest.err >&5
15637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); } && {
15639 test -z "$ac_c_werror_flag" ||
15640 test ! -s conftest.err
15641 } && test -s conftest$ac_exeext && {
15642 test "$cross_compiling" = yes ||
15643 $as_test_x conftest$ac_exeext
15645 ac_cv_lib_tiff_TIFFGetVersion=yes
15647 $as_echo "$as_me: failed program was:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15650 ac_cv_lib_tiff_TIFFGetVersion=no
15653 rm -rf conftest.dSYM
15654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15655 conftest$ac_exeext conftest.$ac_ext
15656 LIBS=$ac_check_lib_save_LIBS
15658 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15659 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15660 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15669 if test "${HAVE_TIFF}" = "yes"; then
15671 cat >>confdefs.h <<\_ACEOF
15672 #define HAVE_TIFF 1
15680 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15683 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15684 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15685 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15686 $as_echo_n "checking for gif_lib.h... " >&6; }
15687 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15688 $as_echo_n "(cached) " >&6
15690 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15691 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15693 # Is the header compilable?
15694 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15695 $as_echo_n "checking gif_lib.h usability... " >&6; }
15696 cat >conftest.$ac_ext <<_ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 $ac_includes_default
15703 #include <gif_lib.h>
15705 rm -f conftest.$ac_objext
15706 if { (ac_try="$ac_compile"
15707 case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15712 $as_echo "$ac_try_echo") >&5
15713 (eval "$ac_compile") 2>conftest.er1
15715 grep -v '^
*+' conftest.er1 >conftest.err
15717 cat conftest.err >&5
15718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); } && {
15720 test -z "$ac_c_werror_flag" ||
15721 test ! -s conftest.err
15722 } && test -s conftest.$ac_objext; then
15723 ac_header_compiler=yes
15725 $as_echo "$as_me: failed program was:" >&5
15726 sed 's
/^
/|
/' conftest.$ac_ext >&5
15728 ac_header_compiler=no
15731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15732 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15733 $as_echo "$ac_header_compiler" >&6; }
15735 # Is the header present?
15736 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15737 $as_echo_n "checking gif_lib.h presence... " >&6; }
15738 cat >conftest.$ac_ext <<_ACEOF
15741 cat confdefs.h >>conftest.$ac_ext
15742 cat >>conftest.$ac_ext <<_ACEOF
15743 /* end confdefs.h. */
15744 #include <gif_lib.h>
15746 if { (ac_try="$ac_cpp conftest.$ac_ext"
15747 case "(($ac_try" in
15748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749 *) ac_try_echo=$ac_try;;
15751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15752 $as_echo "$ac_try_echo") >&5
15753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15755 grep -v '^
*+' conftest.er1 >conftest.err
15757 cat conftest.err >&5
15758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); } >/dev/null && {
15760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15761 test ! -s conftest.err
15763 ac_header_preproc=yes
15765 $as_echo "$as_me: failed program was:" >&5
15766 sed 's
/^
/|
/' conftest.$ac_ext >&5
15768 ac_header_preproc=no
15771 rm -f conftest.err conftest.$ac_ext
15772 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15773 $as_echo "$ac_header_preproc" >&6; }
15775 # So? What about this header?
15776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15778 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15779 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15780 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15781 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15782 ac_header_preproc=yes
15785 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15786 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15787 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15788 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15789 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15790 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15791 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15792 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15793 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15794 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15795 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15796 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15800 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15801 $as_echo_n "checking for gif_lib.h... " >&6; }
15802 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15803 $as_echo_n "(cached) " >&6
15805 ac_cv_header_gif_lib_h=$ac_header_preproc
15807 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15808 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15811 if test $ac_cv_header_gif_lib_h = yes; then
15812 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15813 # Earlier versions can crash Emacs.
15814 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15815 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15816 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15817 $as_echo_n "(cached) " >&6
15819 ac_check_lib_save_LIBS=$LIBS
15821 cat >conftest.$ac_ext <<_ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h. */
15828 /* Override any GCC internal prototype to avoid an error.
15829 Use char because int might match the return type of a GCC
15830 builtin and then its argument prototype would still apply. */
15834 char EGifPutExtensionLast ();
15838 return EGifPutExtensionLast ();
15843 rm -f conftest.$ac_objext conftest$ac_exeext
15844 if { (ac_try="$ac_link"
15845 case "(($ac_try" in
15846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847 *) ac_try_echo=$ac_try;;
15849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15850 $as_echo "$ac_try_echo") >&5
15851 (eval "$ac_link") 2>conftest.er1
15853 grep -v '^
*+' conftest.er1 >conftest.err
15855 cat conftest.err >&5
15856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } && {
15858 test -z "$ac_c_werror_flag" ||
15859 test ! -s conftest.err
15860 } && test -s conftest$ac_exeext && {
15861 test "$cross_compiling" = yes ||
15862 $as_test_x conftest$ac_exeext
15864 ac_cv_lib_gif_EGifPutExtensionLast=yes
15866 $as_echo "$as_me: failed program was:" >&5
15867 sed 's
/^
/|
/' conftest.$ac_ext >&5
15869 ac_cv_lib_gif_EGifPutExtensionLast=no
15872 rm -rf conftest.dSYM
15873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15874 conftest$ac_exeext conftest.$ac_ext
15875 LIBS=$ac_check_lib_save_LIBS
15877 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15878 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15879 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15889 if test "$HAVE_GIF" = yes; then
15891 elif test "$HAVE_GIF" = maybe; then
15892 # If gif_lib.h but no libgif, try libungif.
15893 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15894 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15895 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15896 $as_echo_n "(cached) " >&6
15898 ac_check_lib_save_LIBS=$LIBS
15899 LIBS="-lungif $LIBS"
15900 cat >conftest.$ac_ext <<_ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h. */
15907 /* Override any GCC internal prototype to avoid an error.
15908 Use char because int might match the return type of a GCC
15909 builtin and then its argument prototype would still apply. */
15913 char EGifPutExtensionLast ();
15917 return EGifPutExtensionLast ();
15922 rm -f conftest.$ac_objext conftest$ac_exeext
15923 if { (ac_try="$ac_link"
15924 case "(($ac_try" in
15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926 *) ac_try_echo=$ac_try;;
15928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15929 $as_echo "$ac_try_echo") >&5
15930 (eval "$ac_link") 2>conftest.er1
15932 grep -v '^
*+' conftest.er1 >conftest.err
15934 cat conftest.err >&5
15935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } && {
15937 test -z "$ac_c_werror_flag" ||
15938 test ! -s conftest.err
15939 } && test -s conftest$ac_exeext && {
15940 test "$cross_compiling" = yes ||
15941 $as_test_x conftest$ac_exeext
15943 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15945 $as_echo "$as_me: failed program was:" >&5
15946 sed 's
/^
/|
/' conftest.$ac_ext >&5
15948 ac_cv_lib_ungif_EGifPutExtensionLast=no
15951 rm -rf conftest.dSYM
15952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15953 conftest$ac_exeext conftest.$ac_ext
15954 LIBS=$ac_check_lib_save_LIBS
15956 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15957 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15958 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15964 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15967 if test "${HAVE_GIF}" = "yes"; then
15969 cat >>confdefs.h <<\_ACEOF
15977 if test "${HAVE_X11}" = "yes"; then
15980 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15981 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15982 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15983 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15984 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15985 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15986 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15987 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15988 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15989 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15991 if test "X${MISSING}" != X; then
15992 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15994 Maybe some development libraries/packages are missing?
15995 If you don't want to link with them give
15997 as options to configure
" >&5
15998 $as_echo "$as_me: error
: The following required libraries were not found
:
16000 Maybe some development libraries
/packages are missing?
16001 If you don
't want to link with them give
16003 as options to configure" >&2;}
16004 { (exit 1); exit 1; }; }
16008 ### Use -lgpm if available, unless `--with-gpm=no'.
16012 if test "${with_gpm}" != "no"; then
16013 if test "${ac_cv_header_gpm_h+set}" = set; then
16014 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16015 $as_echo_n "checking for gpm.h... " >&6; }
16016 if test "${ac_cv_header_gpm_h+set}" = set; then
16017 $as_echo_n "(cached) " >&6
16019 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16020 $as_echo "$ac_cv_header_gpm_h" >&6; }
16022 # Is the header compilable?
16023 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16024 $as_echo_n "checking gpm.h usability... " >&6; }
16025 cat >conftest.
$ac_ext <<_ACEOF
16028 cat confdefs.h
>>conftest.
$ac_ext
16029 cat >>conftest.
$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16031 $ac_includes_default
16034 rm -f conftest.
$ac_objext
16035 if { (ac_try
="$ac_compile"
16036 case "(($ac_try" in
16037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16041 $as_echo "$ac_try_echo") >&5
16042 (eval "$ac_compile") 2>conftest.er1
16044 grep -v '^ *+' conftest.er1 >conftest.err
16046 cat conftest.err >&5
16047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } && {
16049 test -z "$ac_c_werror_flag" ||
16050 test ! -s conftest.err
16051 } && test -s conftest.$ac_objext; then
16052 ac_header_compiler=yes
16054 $as_echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16057 ac_header_compiler=no
16060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16061 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16062 $as_echo "$ac_header_compiler" >&6; }
16064 # Is the header present?
16065 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16066 $as_echo_n "checking gpm.h presence... " >&6; }
16067 cat >conftest.$ac_ext <<_ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16075 if { (ac_try="$ac_cpp conftest.$ac_ext"
16076 case "(($ac_try" in
16077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16078 *) ac_try_echo
=$ac_try;;
16080 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16081 $as_echo "$ac_try_echo") >&5
16082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16084 grep -v '^ *+' conftest.er1
>conftest.err
16086 cat conftest.err
>&5
16087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } >/dev
/null
&& {
16089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16090 test ! -s conftest.err
16092 ac_header_preproc
=yes
16094 $as_echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.
$ac_ext >&5
16097 ac_header_preproc
=no
16100 rm -f conftest.err conftest.
$ac_ext
16101 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16102 $as_echo "$ac_header_preproc" >&6; }
16104 # So? What about this header?
16105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16107 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16108 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16109 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16110 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16111 ac_header_preproc
=yes
16114 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16115 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16116 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16117 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16118 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16119 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16120 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16121 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16122 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16123 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16124 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16125 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16129 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16130 $as_echo_n "checking for gpm.h... " >&6; }
16131 if test "${ac_cv_header_gpm_h+set}" = set; then
16132 $as_echo_n "(cached) " >&6
16134 ac_cv_header_gpm_h
=$ac_header_preproc
16136 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16137 $as_echo "$ac_cv_header_gpm_h" >&6; }
16140 if test $ac_cv_header_gpm_h = yes; then
16141 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16142 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16143 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16144 $as_echo_n "(cached) " >&6
16146 ac_check_lib_save_LIBS
=$LIBS
16148 cat >conftest.
$ac_ext <<_ACEOF
16151 cat confdefs.h
>>conftest.
$ac_ext
16152 cat >>conftest.
$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16155 /* Override any GCC internal prototype to avoid an error.
16156 Use char because int might match the return type of a GCC
16157 builtin and then its argument prototype would still apply. */
16165 return Gpm_Open ();
16170 rm -f conftest.
$ac_objext conftest
$ac_exeext
16171 if { (ac_try
="$ac_link"
16172 case "(($ac_try" in
16173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16177 $as_echo "$ac_try_echo") >&5
16178 (eval "$ac_link") 2>conftest.er1
16180 grep -v '^ *+' conftest.er1 >conftest.err
16182 cat conftest.err >&5
16183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } && {
16185 test -z "$ac_c_werror_flag" ||
16186 test ! -s conftest.err
16187 } && test -s conftest$ac_exeext && {
16188 test "$cross_compiling" = yes ||
16189 $as_test_x conftest$ac_exeext
16191 ac_cv_lib_gpm_Gpm_Open=yes
16193 $as_echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 ac_cv_lib_gpm_Gpm_Open=no
16199 rm -rf conftest.dSYM
16200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16201 conftest$ac_exeext conftest.$ac_ext
16202 LIBS=$ac_check_lib_save_LIBS
16204 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16205 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16206 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16214 if test "${HAVE_GPM}" = "yes"; then
16216 cat >>confdefs.h <<\_ACEOF
16221 ## May be reset below.
16222 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
16227 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16228 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16229 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16230 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16231 $as_echo_n "(cached) " >&6
16233 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16234 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16236 # Is the header compilable?
16237 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16238 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16239 cat >conftest.$ac_ext <<_ACEOF
16242 cat confdefs.h >>conftest.$ac_ext
16243 cat >>conftest.$ac_ext <<_ACEOF
16244 /* end confdefs.h. */
16245 $ac_includes_default
16246 #include <malloc/malloc.h>
16248 rm -f conftest.$ac_objext
16249 if { (ac_try="$ac_compile"
16250 case "(($ac_try" in
16251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16252 *) ac_try_echo
=$ac_try;;
16254 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16255 $as_echo "$ac_try_echo") >&5
16256 (eval "$ac_compile") 2>conftest.er1
16258 grep -v '^ *+' conftest.er1
>conftest.err
16260 cat conftest.err
>&5
16261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); } && {
16263 test -z "$ac_c_werror_flag" ||
16264 test ! -s conftest.err
16265 } && test -s conftest.
$ac_objext; then
16266 ac_header_compiler
=yes
16268 $as_echo "$as_me: failed program was:" >&5
16269 sed 's/^/| /' conftest.
$ac_ext >&5
16271 ac_header_compiler
=no
16274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16275 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16276 $as_echo "$ac_header_compiler" >&6; }
16278 # Is the header present?
16279 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16280 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16281 cat >conftest.
$ac_ext <<_ACEOF
16284 cat confdefs.h
>>conftest.
$ac_ext
16285 cat >>conftest.
$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16287 #include <malloc/malloc.h>
16289 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16290 case "(($ac_try" in
16291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16292 *) ac_try_echo=$ac_try;;
16294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16295 $as_echo "$ac_try_echo") >&5
16296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16298 grep -v '^ *+' conftest.er1 >conftest.err
16300 cat conftest.err >&5
16301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } >/dev/null && {
16303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16304 test ! -s conftest.err
16306 ac_header_preproc=yes
16308 $as_echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16311 ac_header_preproc=no
16314 rm -f conftest.err conftest.$ac_ext
16315 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16316 $as_echo "$ac_header_preproc" >&6; }
16318 # So? What about this header?
16319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16321 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16322 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16323 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16324 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16325 ac_header_preproc=yes
16328 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16329 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16330 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16331 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16332 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16333 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16334 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16335 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16336 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16337 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16338 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16339 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16343 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16344 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16345 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16346 $as_echo_n "(cached) " >&6
16348 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16350 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16351 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16354 if test $ac_cv_header_malloc_malloc_h = yes; then
16356 cat >>confdefs.h <<\_ACEOF
16357 #define HAVE_MALLOC_MALLOC_H 1
16365 ### Use NeXTstep API to implement GUI.
16366 if test "${HAVE_NS}" = "yes"; then
16368 cat >>confdefs.h <<\_ACEOF
16372 if test "${NS_IMPL_COCOA}" = "yes"; then
16374 cat >>confdefs.h <<\_ACEOF
16375 #define NS_IMPL_COCOA 1
16380 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16382 cat >>confdefs.h <<\_ACEOF
16383 #define NS_IMPL_GNUSTEP 1
16386 # See also .m.o rule in Makefile.in */
16387 # FIXME: are all these flags really needed? Document here why. */
16388 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16389 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16391 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16393 cat >>confdefs.h <<\_ACEOF
16394 #define NS_HAVE_NSINTEGER 1
16398 # We also have mouse menus.
16404 ### Use session management (-lSM -lICE) if available
16407 if test "${HAVE_X11}" = "yes"; then
16408 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16409 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16410 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16411 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16412 $as_echo_n "(cached) " >&6
16414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16415 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16417 # Is the header compilable?
16418 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16419 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16420 cat >conftest.$ac_ext <<_ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h. */
16426 $ac_includes_default
16427 #include <X11/SM/SMlib.h>
16429 rm -f conftest.$ac_objext
16430 if { (ac_try="$ac_compile"
16431 case "(($ac_try" in
16432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16433 *) ac_try_echo
=$ac_try;;
16435 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16436 $as_echo "$ac_try_echo") >&5
16437 (eval "$ac_compile") 2>conftest.er1
16439 grep -v '^ *+' conftest.er1
>conftest.err
16441 cat conftest.err
>&5
16442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } && {
16444 test -z "$ac_c_werror_flag" ||
16445 test ! -s conftest.err
16446 } && test -s conftest.
$ac_objext; then
16447 ac_header_compiler
=yes
16449 $as_echo "$as_me: failed program was:" >&5
16450 sed 's/^/| /' conftest.
$ac_ext >&5
16452 ac_header_compiler
=no
16455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16456 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16457 $as_echo "$ac_header_compiler" >&6; }
16459 # Is the header present?
16460 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16461 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16462 cat >conftest.
$ac_ext <<_ACEOF
16465 cat confdefs.h
>>conftest.
$ac_ext
16466 cat >>conftest.
$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16468 #include <X11/SM/SMlib.h>
16470 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16471 case "(($ac_try" in
16472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16476 $as_echo "$ac_try_echo") >&5
16477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16479 grep -v '^ *+' conftest.er1 >conftest.err
16481 cat conftest.err >&5
16482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } >/dev/null && {
16484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16485 test ! -s conftest.err
16487 ac_header_preproc=yes
16489 $as_echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16492 ac_header_preproc=no
16495 rm -f conftest.err conftest.$ac_ext
16496 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16497 $as_echo "$ac_header_preproc" >&6; }
16499 # So? What about this header?
16500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16502 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16503 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16504 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16505 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16506 ac_header_preproc=yes
16509 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16510 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16511 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16512 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16513 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16514 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16515 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16516 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16517 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16518 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16519 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16520 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16524 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16525 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16526 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16527 $as_echo_n "(cached) " >&6
16529 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16532 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16535 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16536 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16537 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16538 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16539 $as_echo_n "(cached) " >&6
16541 ac_check_lib_save_LIBS=$LIBS
16542 LIBS="-lSM -lICE $LIBS"
16543 cat >conftest.$ac_ext <<_ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16550 /* Override any GCC internal prototype to avoid an error.
16551 Use char because int might match the return type of a GCC
16552 builtin and then its argument prototype would still apply. */
16556 char SmcOpenConnection ();
16560 return SmcOpenConnection ();
16565 rm -f conftest.$ac_objext conftest$ac_exeext
16566 if { (ac_try="$ac_link"
16567 case "(($ac_try" in
16568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16569 *) ac_try_echo
=$ac_try;;
16571 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16572 $as_echo "$ac_try_echo") >&5
16573 (eval "$ac_link") 2>conftest.er1
16575 grep -v '^ *+' conftest.er1
>conftest.err
16577 cat conftest.err
>&5
16578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } && {
16580 test -z "$ac_c_werror_flag" ||
16581 test ! -s conftest.err
16582 } && test -s conftest
$ac_exeext && {
16583 test "$cross_compiling" = yes ||
16584 $as_test_x conftest
$ac_exeext
16586 ac_cv_lib_SM_SmcOpenConnection
=yes
16588 $as_echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.
$ac_ext >&5
16591 ac_cv_lib_SM_SmcOpenConnection
=no
16594 rm -rf conftest.dSYM
16595 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16596 conftest
$ac_exeext conftest.
$ac_ext
16597 LIBS
=$ac_check_lib_save_LIBS
16599 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16600 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16601 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16609 if test "${HAVE_X_SM}" = "yes"; then
16611 cat >>confdefs.h
<<\_ACEOF
16612 #define HAVE_X_SM 1
16615 LIBXSM
="-lSM -lICE"
16618 *) LIBS
="$LIBXSM $LIBS" ;;
16624 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16625 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16626 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16627 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16628 $as_echo_n "(cached) " >&6
16630 cat >conftest.
$ac_ext <<_ACEOF
16633 cat confdefs.h
>>conftest.
$ac_ext
16634 cat >>conftest.
$ac_ext <<_ACEOF
16635 /* end confdefs.h. */
16645 rm -f conftest.
$ac_objext conftest
$ac_exeext
16646 if { (ac_try
="$ac_link"
16647 case "(($ac_try" in
16648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16652 $as_echo "$ac_try_echo") >&5
16653 (eval "$ac_link") 2>conftest.er1
16655 grep -v '^ *+' conftest.er1 >conftest.err
16657 cat conftest.err >&5
16658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } && {
16660 test -z "$ac_c_werror_flag" ||
16661 test ! -s conftest.err
16662 } && test -s conftest$ac_exeext && {
16663 test "$cross_compiling" = yes ||
16664 $as_test_x conftest$ac_exeext
16666 emacs_cv_netdb_declares_h_errno=yes
16668 $as_echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16671 emacs_cv_netdb_declares_h_errno=no
16674 rm -rf conftest.dSYM
16675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16676 conftest$ac_exeext conftest.$ac_ext
16678 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16679 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16680 if test $emacs_cv_netdb_declares_h_errno = yes; then
16682 cat >>confdefs.h <<\_ACEOF
16683 #define HAVE_H_ERRNO 1
16688 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16689 # for constant arguments. Useless!
16690 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16691 $as_echo_n "checking for working alloca.h... " >&6; }
16692 if test "${ac_cv_working_alloca_h+set}" = set; then
16693 $as_echo_n "(cached) " >&6
16695 cat >conftest.$ac_ext <<_ACEOF
16698 cat confdefs.h >>conftest.$ac_ext
16699 cat >>conftest.$ac_ext <<_ACEOF
16700 /* end confdefs.h. */
16701 #include <alloca.h>
16705 char *p = (char *) alloca (2 * sizeof (int));
16711 rm -f conftest.$ac_objext conftest$ac_exeext
16712 if { (ac_try="$ac_link"
16713 case "(($ac_try" in
16714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16715 *) ac_try_echo
=$ac_try;;
16717 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16718 $as_echo "$ac_try_echo") >&5
16719 (eval "$ac_link") 2>conftest.er1
16721 grep -v '^ *+' conftest.er1
>conftest.err
16723 cat conftest.err
>&5
16724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } && {
16726 test -z "$ac_c_werror_flag" ||
16727 test ! -s conftest.err
16728 } && test -s conftest
$ac_exeext && {
16729 test "$cross_compiling" = yes ||
16730 $as_test_x conftest
$ac_exeext
16732 ac_cv_working_alloca_h
=yes
16734 $as_echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.
$ac_ext >&5
16737 ac_cv_working_alloca_h
=no
16740 rm -rf conftest.dSYM
16741 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16742 conftest
$ac_exeext conftest.
$ac_ext
16744 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16745 $as_echo "$ac_cv_working_alloca_h" >&6; }
16746 if test $ac_cv_working_alloca_h = yes; then
16748 cat >>confdefs.h
<<\_ACEOF
16749 #define HAVE_ALLOCA_H 1
16754 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16755 $as_echo_n "checking for alloca... " >&6; }
16756 if test "${ac_cv_func_alloca_works+set}" = set; then
16757 $as_echo_n "(cached) " >&6
16759 cat >conftest.
$ac_ext <<_ACEOF
16762 cat confdefs.h
>>conftest.
$ac_ext
16763 cat >>conftest.
$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16766 # define alloca __builtin_alloca
16769 # include <malloc.h>
16770 # define alloca _alloca
16772 # ifdef HAVE_ALLOCA_H
16773 # include <alloca.h>
16778 # ifndef alloca /* predefined by HP cc +Olibcalls */
16789 char *p = (char *) alloca (1);
16795 rm -f conftest.
$ac_objext conftest
$ac_exeext
16796 if { (ac_try
="$ac_link"
16797 case "(($ac_try" in
16798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16802 $as_echo "$ac_try_echo") >&5
16803 (eval "$ac_link") 2>conftest.er1
16805 grep -v '^ *+' conftest.er1 >conftest.err
16807 cat conftest.err >&5
16808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } && {
16810 test -z "$ac_c_werror_flag" ||
16811 test ! -s conftest.err
16812 } && test -s conftest$ac_exeext && {
16813 test "$cross_compiling" = yes ||
16814 $as_test_x conftest$ac_exeext
16816 ac_cv_func_alloca_works=yes
16818 $as_echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16821 ac_cv_func_alloca_works=no
16824 rm -rf conftest.dSYM
16825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16826 conftest$ac_exeext conftest.$ac_ext
16828 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16829 $as_echo "$ac_cv_func_alloca_works" >&6; }
16831 if test $ac_cv_func_alloca_works = yes; then
16833 cat >>confdefs.h <<\_ACEOF
16834 #define HAVE_ALLOCA 1
16838 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16839 # that cause trouble. Some versions do not even contain alloca or
16840 # contain a buggy version. If you still want to use their alloca,
16841 # use ar to extract alloca.o from them instead of compiling alloca.c.
16843 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16845 cat >>confdefs.h <<\_ACEOF
16850 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16851 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16852 if test "${ac_cv_os_cray+set}" = set; then
16853 $as_echo_n "(cached
) " >&6
16855 cat >conftest.$ac_ext <<_ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h. */
16861 #if defined CRAY && ! defined CRAY2
16868 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16869 $EGREP "webecray
" >/dev/null 2>&1; then
16877 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16878 $as_echo "$ac_cv_os_cray" >&6; }
16879 if test $ac_cv_os_cray = yes; then
16880 for ac_func in _getb67 GETB67 getb67; do
16881 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16882 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16883 $as_echo_n "checking
for $ac_func...
" >&6; }
16884 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16885 $as_echo_n "(cached
) " >&6
16887 cat >conftest.$ac_ext <<_ACEOF
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16895 #define $ac_func innocuous_$ac_func
16897 /* System header to define __stub macros and hopefully few prototypes,
16898 which can conflict with char $ac_func (); below.
16899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16900 <limits.h> exists even on freestanding compilers. */
16903 # include <limits.h>
16905 # include <assert.h>
16910 /* Override any GCC internal prototype to avoid an error.
16911 Use char because int might match the return type of a GCC
16912 builtin and then its argument prototype would still apply. */
16917 /* The GNU C library defines this for functions which it implements
16918 to always fail with ENOSYS. Some functions are actually named
16919 something starting with __ and the normal name is an alias. */
16920 #if defined __stub_$ac_func || defined __stub___$ac_func
16927 return $ac_func ();
16932 rm -f conftest.$ac_objext conftest$ac_exeext
16933 if { (ac_try="$ac_link"
16934 case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16938 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16939 $as_echo "$ac_try_echo") >&5
16940 (eval "$ac_link") 2>conftest.er1
16942 grep -v '^ *+' conftest.er1 >conftest.err
16944 cat conftest.err >&5
16945 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16946 (exit $ac_status); } && {
16947 test -z "$ac_c_werror_flag" ||
16948 test ! -s conftest.err
16949 } && test -s conftest$ac_exeext && {
16950 test "$cross_compiling" = yes ||
16951 $as_test_x conftest$ac_exeext
16953 eval "$as_ac_var=yes"
16955 $as_echo "$as_me: failed program was
:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16958 eval "$as_ac_var=no
"
16961 rm -rf conftest.dSYM
16962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16963 conftest$ac_exeext conftest.$ac_ext
16965 ac_res=`eval 'as_val=${'$as_ac_var'}
16966 $as_echo "$as_val"'`
16967 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16968 $as_echo "$ac_res" >&6; }
16969 if test `eval 'as_val=${'$as_ac_var'}
16970 $as_echo "$as_val"'` = yes; then
16972 cat >>confdefs.h <<_ACEOF
16973 #define CRAY_STACKSEG_END $ac_func
16982 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16983 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16984 if test "${ac_cv_c_stack_direction+set}" = set; then
16985 $as_echo_n "(cached
) " >&6
16987 if test "$cross_compiling" = yes; then
16988 ac_cv_c_stack_direction=0
16990 cat >conftest.$ac_ext <<_ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 $ac_includes_default
16998 find_stack_direction ()
17000 static char *addr = 0;
17005 return find_stack_direction ();
17008 return (&dummy > addr) ? 1 : -1;
17014 return find_stack_direction () < 0;
17017 rm -f conftest$ac_exeext
17018 if { (ac_try="$ac_link"
17019 case "(($ac_try" in
17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17023 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17024 $as_echo "$ac_try_echo") >&5
17025 (eval "$ac_link") 2>&5
17027 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17029 { (case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17033 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17034 $as_echo "$ac_try_echo") >&5
17035 (eval "$ac_try") 2>&5
17037 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17038 (exit $ac_status); }; }; then
17039 ac_cv_c_stack_direction=1
17041 $as_echo "$as_me: program exited with status
$ac_status" >&5
17042 $as_echo "$as_me: failed program was
:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 ( exit $ac_status )
17046 ac_cv_c_stack_direction=-1
17048 rm -rf conftest.dSYM
17049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17054 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
17055 $as_echo "$ac_cv_c_stack_direction" >&6; }
17057 cat >>confdefs.h <<_ACEOF
17058 #define STACK_DIRECTION $ac_cv_c_stack_direction
17065 if test x"$ac_cv_func_alloca_works" != xyes; then
17066 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
17067 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
17068 { (exit 1); exit 1; }; }
17071 # fmod, logb, and frexp are found in -lm on most systems.
17072 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17074 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
17075 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
17076 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17077 $as_echo_n "(cached
) " >&6
17079 ac_check_lib_save_LIBS=$LIBS
17081 cat >conftest.$ac_ext <<_ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17088 /* Override any GCC internal prototype to avoid an error.
17089 Use char because int might match the return type of a GCC
17090 builtin and then its argument prototype would still apply. */
17103 rm -f conftest.$ac_objext conftest$ac_exeext
17104 if { (ac_try="$ac_link"
17105 case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17109 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17110 $as_echo "$ac_try_echo") >&5
17111 (eval "$ac_link") 2>conftest.er1
17113 grep -v '^ *+' conftest.er1 >conftest.err
17115 cat conftest.err >&5
17116 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17117 (exit $ac_status); } && {
17118 test -z "$ac_c_werror_flag" ||
17119 test ! -s conftest.err
17120 } && test -s conftest$ac_exeext && {
17121 test "$cross_compiling" = yes ||
17122 $as_test_x conftest$ac_exeext
17124 ac_cv_lib_m_sqrt=yes
17126 $as_echo "$as_me: failed program was
:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17129 ac_cv_lib_m_sqrt=no
17132 rm -rf conftest.dSYM
17133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17134 conftest$ac_exeext conftest.$ac_ext
17135 LIBS=$ac_check_lib_save_LIBS
17137 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
17138 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17139 if test $ac_cv_lib_m_sqrt = yes; then
17140 cat >>confdefs.h <<_ACEOF
17141 #define HAVE_LIBM 1
17149 # Check for mail-locking functions in a "mail" library. Probably this should
17150 # have the same check as for liblockfile below.
17151 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
17152 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
17153 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17154 $as_echo_n "(cached
) " >&6
17156 ac_check_lib_save_LIBS=$LIBS
17157 LIBS="-lmail $LIBS"
17158 cat >conftest.$ac_ext <<_ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17165 /* Override any GCC internal prototype to avoid an error.
17166 Use char because int might match the return type of a GCC
17167 builtin and then its argument prototype would still apply. */
17175 return maillock ();
17180 rm -f conftest.$ac_objext conftest$ac_exeext
17181 if { (ac_try="$ac_link"
17182 case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17186 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17187 $as_echo "$ac_try_echo") >&5
17188 (eval "$ac_link") 2>conftest.er1
17190 grep -v '^ *+' conftest.er1 >conftest.err
17192 cat conftest.err >&5
17193 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17194 (exit $ac_status); } && {
17195 test -z "$ac_c_werror_flag" ||
17196 test ! -s conftest.err
17197 } && test -s conftest$ac_exeext && {
17198 test "$cross_compiling" = yes ||
17199 $as_test_x conftest$ac_exeext
17201 ac_cv_lib_mail_maillock=yes
17203 $as_echo "$as_me: failed program was
:" >&5
17204 sed 's/^/| /' conftest.$ac_ext >&5
17206 ac_cv_lib_mail_maillock=no
17209 rm -rf conftest.dSYM
17210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17211 conftest$ac_exeext conftest.$ac_ext
17212 LIBS=$ac_check_lib_save_LIBS
17214 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
17215 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17216 if test $ac_cv_lib_mail_maillock = yes; then
17222 if test $have_mail = yes; then
17224 LIBS="$LIBS_MAIL $LIBS"
17226 cat >>confdefs.h <<\_ACEOF
17227 #define HAVE_LIBMAIL 1
17233 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
17234 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
17235 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17236 $as_echo_n "(cached
) " >&6
17238 ac_check_lib_save_LIBS=$LIBS
17239 LIBS="-llockfile $LIBS"
17240 cat >conftest.$ac_ext <<_ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17247 /* Override any GCC internal prototype to avoid an error.
17248 Use char because int might match the return type of a GCC
17249 builtin and then its argument prototype would still apply. */
17257 return maillock ();
17262 rm -f conftest.$ac_objext conftest$ac_exeext
17263 if { (ac_try="$ac_link"
17264 case "(($ac_try" in
17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17268 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17269 $as_echo "$ac_try_echo") >&5
17270 (eval "$ac_link") 2>conftest.er1
17272 grep -v '^ *+' conftest.er1 >conftest.err
17274 cat conftest.err >&5
17275 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17276 (exit $ac_status); } && {
17277 test -z "$ac_c_werror_flag" ||
17278 test ! -s conftest.err
17279 } && test -s conftest$ac_exeext && {
17280 test "$cross_compiling" = yes ||
17281 $as_test_x conftest$ac_exeext
17283 ac_cv_lib_lockfile_maillock=yes
17285 $as_echo "$as_me: failed program was
:" >&5
17286 sed 's/^/| /' conftest.$ac_ext >&5
17288 ac_cv_lib_lockfile_maillock=no
17291 rm -rf conftest.dSYM
17292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17293 conftest$ac_exeext conftest.$ac_ext
17294 LIBS=$ac_check_lib_save_LIBS
17296 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
17297 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17298 if test $ac_cv_lib_lockfile_maillock = yes; then
17304 if test $have_lockfile = yes; then
17305 LIBS_MAIL=-llockfile
17306 LIBS="$LIBS_MAIL $LIBS"
17308 cat >>confdefs.h <<\_ACEOF
17309 #define HAVE_LIBLOCKFILE 1
17313 # If we have the shared liblockfile, assume we must use it for mail
17314 # locking (e.g. Debian). If we couldn't link against liblockfile
17315 # (no liblockfile.a installed), ensure that we don't need to.
17316 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
17317 set dummy liblockfile.so; ac_word=$2
17318 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
17319 $as_echo_n "checking
for $ac_word...
" >&6; }
17320 if test "${ac_cv_prog_liblockfile+set}" = set; then
17321 $as_echo_n "(cached
) " >&6
17323 if test -n "$liblockfile"; then
17324 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17327 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
17328 for as_dir in $as_dummy
17331 test -z "$as_dir" && as_dir=.
17332 for ac_exec_ext in '' $ac_executable_extensions; do
17333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17334 ac_cv_prog_liblockfile="yes"
17335 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17342 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
17345 liblockfile=$ac_cv_prog_liblockfile
17346 if test -n "$liblockfile"; then
17347 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
17348 $as_echo "$liblockfile" >&6; }
17350 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17351 $as_echo "no
" >&6; }
17355 if test $ac_cv_prog_liblockfile = yes; then
17356 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
17357 This probably means that movemail could lose mail.
17358 There may be a \`development' package to
install containing liblockfile.
" >&5
17359 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
17360 This probably means that movemail could lose mail.
17361 There may be a \`development' package to
install containing liblockfile.
" >&2;}
17362 { (exit 1); exit 1; }; }
17366 for ac_func in touchlock
17368 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17369 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17370 $as_echo_n "checking
for $ac_func...
" >&6; }
17371 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17372 $as_echo_n "(cached
) " >&6
17374 cat >conftest.$ac_ext <<_ACEOF
17377 cat confdefs.h >>conftest.$ac_ext
17378 cat >>conftest.$ac_ext <<_ACEOF
17379 /* end confdefs.h. */
17380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17382 #define $ac_func innocuous_$ac_func
17384 /* System header to define __stub macros and hopefully few prototypes,
17385 which can conflict with char $ac_func (); below.
17386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17387 <limits.h> exists even on freestanding compilers. */
17390 # include <limits.h>
17392 # include <assert.h>
17397 /* Override any GCC internal prototype to avoid an error.
17398 Use char because int might match the return type of a GCC
17399 builtin and then its argument prototype would still apply. */
17404 /* The GNU C library defines this for functions which it implements
17405 to always fail with ENOSYS. Some functions are actually named
17406 something starting with __ and the normal name is an alias. */
17407 #if defined __stub_$ac_func || defined __stub___$ac_func
17414 return $ac_func ();
17419 rm -f conftest.$ac_objext conftest$ac_exeext
17420 if { (ac_try="$ac_link"
17421 case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17425 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17426 $as_echo "$ac_try_echo") >&5
17427 (eval "$ac_link") 2>conftest.er1
17429 grep -v '^ *+' conftest.er1 >conftest.err
17431 cat conftest.err >&5
17432 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17433 (exit $ac_status); } && {
17434 test -z "$ac_c_werror_flag" ||
17435 test ! -s conftest.err
17436 } && test -s conftest$ac_exeext && {
17437 test "$cross_compiling" = yes ||
17438 $as_test_x conftest$ac_exeext
17440 eval "$as_ac_var=yes"
17442 $as_echo "$as_me: failed program was
:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 eval "$as_ac_var=no
"
17448 rm -rf conftest.dSYM
17449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17450 conftest$ac_exeext conftest.$ac_ext
17452 ac_res=`eval 'as_val=${'$as_ac_var'}
17453 $as_echo "$as_val"'`
17454 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17455 $as_echo "$ac_res" >&6; }
17456 if test `eval 'as_val=${'$as_ac_var'}
17457 $as_echo "$as_val"'` = yes; then
17458 cat >>confdefs.h <<_ACEOF
17459 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17466 for ac_header in maillock.h
17468 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17469 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17470 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17471 $as_echo_n "checking
for $ac_header...
" >&6; }
17472 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17473 $as_echo_n "(cached
) " >&6
17475 ac_res=`eval 'as_val=${'$as_ac_Header'}
17476 $as_echo "$as_val"'`
17477 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17478 $as_echo "$ac_res" >&6; }
17480 # Is the header compilable?
17481 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17482 $as_echo_n "checking
$ac_header usability...
" >&6; }
17483 cat >conftest.$ac_ext <<_ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h. */
17489 $ac_includes_default
17490 #include <$ac_header>
17492 rm -f conftest.$ac_objext
17493 if { (ac_try="$ac_compile"
17494 case "(($ac_try" in
17495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496 *) ac_try_echo=$ac_try;;
17498 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17499 $as_echo "$ac_try_echo") >&5
17500 (eval "$ac_compile") 2>conftest.er1
17502 grep -v '^ *+' conftest.er1 >conftest.err
17504 cat conftest.err >&5
17505 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17506 (exit $ac_status); } && {
17507 test -z "$ac_c_werror_flag" ||
17508 test ! -s conftest.err
17509 } && test -s conftest.$ac_objext; then
17510 ac_header_compiler=yes
17512 $as_echo "$as_me: failed program was
:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17515 ac_header_compiler=no
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17520 $as_echo "$ac_header_compiler" >&6; }
17522 # Is the header present?
17523 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17524 $as_echo_n "checking
$ac_header presence...
" >&6; }
17525 cat >conftest.$ac_ext <<_ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 #include <$ac_header>
17533 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17539 $as_echo "$ac_try_echo") >&5
17540 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17542 grep -v '^ *+' conftest.er1 >conftest.err
17544 cat conftest.err >&5
17545 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17546 (exit $ac_status); } >/dev/null && {
17547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17548 test ! -s conftest.err
17550 ac_header_preproc=yes
17552 $as_echo "$as_me: failed program was
:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17555 ac_header_preproc=no
17558 rm -f conftest.err conftest.$ac_ext
17559 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17560 $as_echo "$ac_header_preproc" >&6; }
17562 # So? What about this header?
17563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17565 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17566 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17567 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17568 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17569 ac_header_preproc=yes
17572 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17573 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17574 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17575 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17576 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17577 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17578 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17579 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17580 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17581 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17582 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17583 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17587 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17588 $as_echo_n "checking
for $ac_header...
" >&6; }
17589 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17590 $as_echo_n "(cached
) " >&6
17592 eval "$as_ac_Header=\
$ac_header_preproc"
17594 ac_res=`eval 'as_val=${'$as_ac_Header'}
17595 $as_echo "$as_val"'`
17596 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17597 $as_echo "$ac_res" >&6; }
17600 if test `eval 'as_val=${'$as_ac_Header'}
17601 $as_echo "$as_val"'` = yes; then
17602 cat >>confdefs.h <<_ACEOF
17603 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17612 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17613 ## interlock access to the mail spool. The alternative is a lock file named
17614 ## /usr/spool/mail/$USER.lock.
17617 aix4-2) mail_lock="lockf
" ;;
17619 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock
" ;;
17621 ## On GNU/Linux systems, both methods are used by various mail programs.
17622 ## I assume most people are using newer mailers that have heard of flock.
17623 ## Change this if you need to.
17624 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17625 ## configure gets the right answers, and that means *NOT* using flock.
17626 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17627 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17628 ## Debian maintainer hasn't provided a clean fix for Emacs.
17629 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17630 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17631 ## correct logic. -- fx
17632 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17633 ## liblockfile is a Free Software replacement for libmail, used on
17634 ## Debian systems and elsewhere. -rfr.
17637 if test $have_mail = yes || test $have_lockfile = yes; then
17638 test $ac_cv_header_maillock_h = yes && mail_lock=no
17644 case "$mail_lock" in
17646 cat >>confdefs.h <<\_ACEOF
17647 #define MAIL_USE_FLOCK 1
17652 cat >>confdefs.h <<\_ACEOF
17653 #define MAIL_USE_LOCKF 1
17657 *) BLESSMAIL_TARGET="need-blessmail
" ;;
17735 for ac_func in gethostname getdomainname dup2 \
17736 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17737 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17738 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17739 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17740 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17741 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17742 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17743 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17744 cfmakeraw cfsetspeed isnan copysign
17746 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17747 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17748 $as_echo_n "checking
for $ac_func...
" >&6; }
17749 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17750 $as_echo_n "(cached
) " >&6
17752 cat >conftest.$ac_ext <<_ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17760 #define $ac_func innocuous_$ac_func
17762 /* System header to define __stub macros and hopefully few prototypes,
17763 which can conflict with char $ac_func (); below.
17764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17765 <limits.h> exists even on freestanding compilers. */
17768 # include <limits.h>
17770 # include <assert.h>
17775 /* Override any GCC internal prototype to avoid an error.
17776 Use char because int might match the return type of a GCC
17777 builtin and then its argument prototype would still apply. */
17782 /* The GNU C library defines this for functions which it implements
17783 to always fail with ENOSYS. Some functions are actually named
17784 something starting with __ and the normal name is an alias. */
17785 #if defined __stub_$ac_func || defined __stub___$ac_func
17792 return $ac_func ();
17797 rm -f conftest.$ac_objext conftest$ac_exeext
17798 if { (ac_try="$ac_link"
17799 case "(($ac_try" in
17800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17803 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17804 $as_echo "$ac_try_echo") >&5
17805 (eval "$ac_link") 2>conftest.er1
17807 grep -v '^ *+' conftest.er1 >conftest.err
17809 cat conftest.err >&5
17810 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17811 (exit $ac_status); } && {
17812 test -z "$ac_c_werror_flag" ||
17813 test ! -s conftest.err
17814 } && test -s conftest$ac_exeext && {
17815 test "$cross_compiling" = yes ||
17816 $as_test_x conftest$ac_exeext
17818 eval "$as_ac_var=yes"
17820 $as_echo "$as_me: failed program was
:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17823 eval "$as_ac_var=no
"
17826 rm -rf conftest.dSYM
17827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17828 conftest$ac_exeext conftest.$ac_ext
17830 ac_res=`eval 'as_val=${'$as_ac_var'}
17831 $as_echo "$as_val"'`
17832 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17833 $as_echo "$ac_res" >&6; }
17834 if test `eval 'as_val=${'$as_ac_var'}
17835 $as_echo "$as_val"'` = yes; then
17836 cat >>confdefs.h <<_ACEOF
17837 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17845 for ac_header in sys/un.h
17847 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17848 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17849 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17850 $as_echo_n "checking
for $ac_header...
" >&6; }
17851 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17852 $as_echo_n "(cached
) " >&6
17854 ac_res=`eval 'as_val=${'$as_ac_Header'}
17855 $as_echo "$as_val"'`
17856 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17857 $as_echo "$ac_res" >&6; }
17859 # Is the header compilable?
17860 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17861 $as_echo_n "checking
$ac_header usability...
" >&6; }
17862 cat >conftest.$ac_ext <<_ACEOF
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h. */
17868 $ac_includes_default
17869 #include <$ac_header>
17871 rm -f conftest.$ac_objext
17872 if { (ac_try="$ac_compile"
17873 case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17877 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17878 $as_echo "$ac_try_echo") >&5
17879 (eval "$ac_compile") 2>conftest.er1
17881 grep -v '^ *+' conftest.er1 >conftest.err
17883 cat conftest.err >&5
17884 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17885 (exit $ac_status); } && {
17886 test -z "$ac_c_werror_flag" ||
17887 test ! -s conftest.err
17888 } && test -s conftest.$ac_objext; then
17889 ac_header_compiler=yes
17891 $as_echo "$as_me: failed program was
:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17894 ac_header_compiler=no
17897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17898 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17899 $as_echo "$ac_header_compiler" >&6; }
17901 # Is the header present?
17902 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17903 $as_echo_n "checking
$ac_header presence...
" >&6; }
17904 cat >conftest.$ac_ext <<_ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17910 #include <$ac_header>
17912 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17913 case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17917 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17918 $as_echo "$ac_try_echo") >&5
17919 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17921 grep -v '^ *+' conftest.er1 >conftest.err
17923 cat conftest.err >&5
17924 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17925 (exit $ac_status); } >/dev/null && {
17926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17927 test ! -s conftest.err
17929 ac_header_preproc=yes
17931 $as_echo "$as_me: failed program was
:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17934 ac_header_preproc=no
17937 rm -f conftest.err conftest.$ac_ext
17938 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17939 $as_echo "$ac_header_preproc" >&6; }
17941 # So? What about this header?
17942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17944 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17945 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17946 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17947 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17948 ac_header_preproc=yes
17951 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17952 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17953 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17954 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17955 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17956 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17957 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17958 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17959 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17960 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17961 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17962 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17966 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17967 $as_echo_n "checking
for $ac_header...
" >&6; }
17968 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17969 $as_echo_n "(cached
) " >&6
17971 eval "$as_ac_Header=\
$ac_header_preproc"
17973 ac_res=`eval 'as_val=${'$as_ac_Header'}
17974 $as_echo "$as_val"'`
17975 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17976 $as_echo "$ac_res" >&6; }
17979 if test `eval 'as_val=${'$as_ac_Header'}
17980 $as_echo "$as_val"'` = yes; then
17981 cat >>confdefs.h <<_ACEOF
17982 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17994 for ac_header in $ac_header_list
17996 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17997 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17998 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17999 $as_echo_n "checking
for $ac_header...
" >&6; }
18000 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18001 $as_echo_n "(cached
) " >&6
18003 ac_res=`eval 'as_val=${'$as_ac_Header'}
18004 $as_echo "$as_val"'`
18005 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18006 $as_echo "$ac_res" >&6; }
18008 # Is the header compilable?
18009 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18010 $as_echo_n "checking
$ac_header usability...
" >&6; }
18011 cat >conftest.$ac_ext <<_ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18017 $ac_includes_default
18018 #include <$ac_header>
18020 rm -f conftest.$ac_objext
18021 if { (ac_try="$ac_compile"
18022 case "(($ac_try" in
18023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024 *) ac_try_echo=$ac_try;;
18026 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18027 $as_echo "$ac_try_echo") >&5
18028 (eval "$ac_compile") 2>conftest.er1
18030 grep -v '^ *+' conftest.er1 >conftest.err
18032 cat conftest.err >&5
18033 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18034 (exit $ac_status); } && {
18035 test -z "$ac_c_werror_flag" ||
18036 test ! -s conftest.err
18037 } && test -s conftest.$ac_objext; then
18038 ac_header_compiler=yes
18040 $as_echo "$as_me: failed program was
:" >&5
18041 sed 's/^/| /' conftest.$ac_ext >&5
18043 ac_header_compiler=no
18046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18047 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18048 $as_echo "$ac_header_compiler" >&6; }
18050 # Is the header present?
18051 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18052 $as_echo_n "checking
$ac_header presence...
" >&6; }
18053 cat >conftest.$ac_ext <<_ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18059 #include <$ac_header>
18061 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18062 case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18066 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18067 $as_echo "$ac_try_echo") >&5
18068 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18070 grep -v '^ *+' conftest.er1 >conftest.err
18072 cat conftest.err >&5
18073 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18074 (exit $ac_status); } >/dev/null && {
18075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18076 test ! -s conftest.err
18078 ac_header_preproc=yes
18080 $as_echo "$as_me: failed program was
:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083 ac_header_preproc=no
18086 rm -f conftest.err conftest.$ac_ext
18087 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18088 $as_echo "$ac_header_preproc" >&6; }
18090 # So? What about this header?
18091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18093 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18094 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18095 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18097 ac_header_preproc=yes
18100 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18101 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18102 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18103 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18104 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18105 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18106 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18107 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18108 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18110 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18111 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18115 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
18116 $as_echo_n "checking
for $ac_header...
" >&6; }
18117 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18118 $as_echo_n "(cached
) " >&6
18120 eval "$as_ac_Header=\
$ac_header_preproc"
18122 ac_res=`eval 'as_val=${'$as_ac_Header'}
18123 $as_echo "$as_val"'`
18124 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18125 $as_echo "$ac_res" >&6; }
18128 if test `eval 'as_val=${'$as_ac_Header'}
18129 $as_echo "$as_val"'` = yes; then
18130 cat >>confdefs.h <<_ACEOF
18131 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18146 for ac_func in $ac_func_list
18148 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18149 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18150 $as_echo_n "checking
for $ac_func...
" >&6; }
18151 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18152 $as_echo_n "(cached
) " >&6
18154 cat >conftest.$ac_ext <<_ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h. */
18160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18162 #define $ac_func innocuous_$ac_func
18164 /* System header to define __stub macros and hopefully few prototypes,
18165 which can conflict with char $ac_func (); below.
18166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18167 <limits.h> exists even on freestanding compilers. */
18170 # include <limits.h>
18172 # include <assert.h>
18177 /* Override any GCC internal prototype to avoid an error.
18178 Use char because int might match the return type of a GCC
18179 builtin and then its argument prototype would still apply. */
18184 /* The GNU C library defines this for functions which it implements
18185 to always fail with ENOSYS. Some functions are actually named
18186 something starting with __ and the normal name is an alias. */
18187 #if defined __stub_$ac_func || defined __stub___$ac_func
18194 return $ac_func ();
18199 rm -f conftest.$ac_objext conftest$ac_exeext
18200 if { (ac_try="$ac_link"
18201 case "(($ac_try" in
18202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203 *) ac_try_echo=$ac_try;;
18205 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18206 $as_echo "$ac_try_echo") >&5
18207 (eval "$ac_link") 2>conftest.er1
18209 grep -v '^ *+' conftest.er1 >conftest.err
18211 cat conftest.err >&5
18212 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18213 (exit $ac_status); } && {
18214 test -z "$ac_c_werror_flag" ||
18215 test ! -s conftest.err
18216 } && test -s conftest$ac_exeext && {
18217 test "$cross_compiling" = yes ||
18218 $as_test_x conftest$ac_exeext
18220 eval "$as_ac_var=yes"
18222 $as_echo "$as_me: failed program was
:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18225 eval "$as_ac_var=no
"
18228 rm -rf conftest.dSYM
18229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18230 conftest$ac_exeext conftest.$ac_ext
18232 ac_res=`eval 'as_val=${'$as_ac_var'}
18233 $as_echo "$as_val"'`
18234 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18235 $as_echo "$ac_res" >&6; }
18236 if test `eval 'as_val=${'$as_ac_var'}
18237 $as_echo "$as_val"'` = yes; then
18238 cat >>confdefs.h <<_ACEOF
18239 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18261 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
18262 $as_echo_n "checking
for working mktime...
" >&6; }
18263 if test "${ac_cv_func_working_mktime+set}" = set; then
18264 $as_echo_n "(cached
) " >&6
18266 if test "$cross_compiling" = yes; then
18267 ac_cv_func_working_mktime=no
18269 cat >conftest.$ac_ext <<_ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h. */
18275 /* Test program from Paul Eggert and Tony Leneis. */
18276 #ifdef TIME_WITH_SYS_TIME
18277 # include <sys/time.h>
18280 # ifdef HAVE_SYS_TIME_H
18281 # include <sys/time.h>
18287 #include <limits.h>
18288 #include <stdlib.h>
18290 #ifdef HAVE_UNISTD_H
18291 # include <unistd.h>
18295 # define alarm(X) /* empty */
18298 /* Work around redefinition to rpl_putenv by other config tests. */
18301 static time_t time_t_max;
18302 static time_t time_t_min;
18304 /* Values we'll use to set the TZ environment variable. */
18305 static char *tz_strings[] = {
18306 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
18307 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
18309 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18311 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18312 Based on a problem report from Andreas Jaeger. */
18314 spring_forward_gap ()
18316 /* glibc (up to about 1998-10-07) failed this test. */
18319 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18320 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18321 on systems that don't support the Olson extension, or don't have the
18322 full zoneinfo tables installed. */
18323 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18332 return mktime (&tm) != (time_t) -1;
18340 return ! (lt = localtime (&now)) || mktime (lt) == now;
18347 return (mktime_test1 (now)
18348 && mktime_test1 ((time_t) (time_t_max - now))
18349 && mktime_test1 ((time_t) (time_t_min + now)));
18355 /* Based on code from Ariel Faigon. */
18365 return tm.tm_mon == 2 && tm.tm_mday == 31;
18374 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18375 now = mktime (&tm);
18376 if (now != (time_t) -1)
18378 struct tm *lt = localtime (&now);
18380 && lt->tm_year == tm.tm_year
18381 && lt->tm_mon == tm.tm_mon
18382 && lt->tm_mday == tm.tm_mday
18383 && lt->tm_hour == tm.tm_hour
18384 && lt->tm_min == tm.tm_min
18385 && lt->tm_sec == tm.tm_sec
18386 && lt->tm_yday == tm.tm_yday
18387 && lt->tm_wday == tm.tm_wday
18388 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18389 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18398 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18399 ignoring leap seconds. */
18400 unsigned long int answer = 2527315200UL;
18404 tm.tm_year = 2050 - 1900;
18407 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18410 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18411 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18412 on systems that don't support the Olson extension, or don't have the
18413 full zoneinfo tables installed. */
18414 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18418 /* Check that the result is either a failure, or close enough
18419 to the correct answer that we can assume the discrepancy is
18420 due to leap seconds. */
18421 return (t == (time_t) -1
18422 || (0 < t && answer - 120 <= t && t <= answer + 120));
18431 /* This test makes some buggy mktime implementations loop.
18432 Give up after 60 seconds; a mktime slower than that
18433 isn't worth using anyway. */
18438 t = (time_t_max << 1) + 1;
18439 if (t <= time_t_max)
18443 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18445 delta = time_t_max / 997; /* a suitable prime number */
18446 for (i = 0; i < N_STRINGS; i++)
18449 putenv (tz_strings[i]);
18451 for (t = 0; t <= time_t_max - delta; t += delta)
18452 if (! mktime_test (t))
18454 if (! (mktime_test ((time_t) 1)
18455 && mktime_test ((time_t) (60 * 60))
18456 && mktime_test ((time_t) (60 * 60 * 24))))
18459 for (j = 1; ; j <<= 1)
18460 if (! bigtime_test (j))
18462 else if (INT_MAX / 2 < j)
18464 if (! bigtime_test (INT_MAX))
18467 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18470 rm -f conftest$ac_exeext
18471 if { (ac_try="$ac_link"
18472 case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18476 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18477 $as_echo "$ac_try_echo") >&5
18478 (eval "$ac_link") 2>&5
18480 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18482 { (case "(($ac_try" in
18483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18484 *) ac_try_echo=$ac_try;;
18486 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18487 $as_echo "$ac_try_echo") >&5
18488 (eval "$ac_try") 2>&5
18490 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18491 (exit $ac_status); }; }; then
18492 ac_cv_func_working_mktime=yes
18494 $as_echo "$as_me: program exited with status
$ac_status" >&5
18495 $as_echo "$as_me: failed program was
:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18498 ( exit $ac_status )
18499 ac_cv_func_working_mktime=no
18501 rm -rf conftest.dSYM
18502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18507 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
18508 $as_echo "$ac_cv_func_working_mktime" >&6; }
18509 if test $ac_cv_func_working_mktime = no; then
18510 case " $LIBOBJS " in
18511 *" mktime.
$ac_objext "* ) ;;
18512 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
18518 if test "$ac_cv_func_working_mktime" = no; then
18520 cat >>confdefs.h <<\_ACEOF
18521 #define BROKEN_MKTIME 1
18526 ac_have_func=no # yes means we've found a way to get the load average.
18528 # Make sure getloadavg.c is where it belongs, at configure-time.
18529 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18530 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18531 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18532 { (exit 1); exit 1; }; }
18536 # Check for getloadavg, but be sure not to touch the cache variable.
18537 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18538 $as_echo_n "checking
for getloadavg...
" >&6; }
18539 if test "${ac_cv_func_getloadavg+set}" = set; then
18540 $as_echo_n "(cached
) " >&6
18542 cat >conftest.$ac_ext <<_ACEOF
18545 cat confdefs.h >>conftest.$ac_ext
18546 cat >>conftest.$ac_ext <<_ACEOF
18547 /* end confdefs.h. */
18548 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18550 #define getloadavg innocuous_getloadavg
18552 /* System header to define __stub macros and hopefully few prototypes,
18553 which can conflict with char getloadavg (); below.
18554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18555 <limits.h> exists even on freestanding compilers. */
18558 # include <limits.h>
18560 # include <assert.h>
18565 /* Override any GCC internal prototype to avoid an error.
18566 Use char because int might match the return type of a GCC
18567 builtin and then its argument prototype would still apply. */
18571 char getloadavg ();
18572 /* The GNU C library defines this for functions which it implements
18573 to always fail with ENOSYS. Some functions are actually named
18574 something starting with __ and the normal name is an alias. */
18575 #if defined __stub_getloadavg || defined __stub___getloadavg
18582 return getloadavg ();
18587 rm -f conftest.$ac_objext conftest$ac_exeext
18588 if { (ac_try="$ac_link"
18589 case "(($ac_try" in
18590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18591 *) ac_try_echo=$ac_try;;
18593 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18594 $as_echo "$ac_try_echo") >&5
18595 (eval "$ac_link") 2>conftest.er1
18597 grep -v '^ *+' conftest.er1 >conftest.err
18599 cat conftest.err >&5
18600 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18601 (exit $ac_status); } && {
18602 test -z "$ac_c_werror_flag" ||
18603 test ! -s conftest.err
18604 } && test -s conftest$ac_exeext && {
18605 test "$cross_compiling" = yes ||
18606 $as_test_x conftest$ac_exeext
18608 ac_cv_func_getloadavg=yes
18610 $as_echo "$as_me: failed program was
:" >&5
18611 sed 's/^/| /' conftest.$ac_ext >&5
18613 ac_cv_func_getloadavg=no
18616 rm -rf conftest.dSYM
18617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18618 conftest$ac_exeext conftest.$ac_ext
18620 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18621 $as_echo "$ac_cv_func_getloadavg" >&6; }
18622 if test $ac_cv_func_getloadavg = yes; then
18627 ) && ac_have_func=yes
18629 # On HPUX9, an unprivileged user can get load averages through this function.
18631 for ac_func in pstat_getdynamic
18633 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18634 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18635 $as_echo_n "checking
for $ac_func...
" >&6; }
18636 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18637 $as_echo_n "(cached
) " >&6
18639 cat >conftest.$ac_ext <<_ACEOF
18642 cat confdefs.h >>conftest.$ac_ext
18643 cat >>conftest.$ac_ext <<_ACEOF
18644 /* end confdefs.h. */
18645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18647 #define $ac_func innocuous_$ac_func
18649 /* System header to define __stub macros and hopefully few prototypes,
18650 which can conflict with char $ac_func (); below.
18651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18652 <limits.h> exists even on freestanding compilers. */
18655 # include <limits.h>
18657 # include <assert.h>
18662 /* Override any GCC internal prototype to avoid an error.
18663 Use char because int might match the return type of a GCC
18664 builtin and then its argument prototype would still apply. */
18669 /* The GNU C library defines this for functions which it implements
18670 to always fail with ENOSYS. Some functions are actually named
18671 something starting with __ and the normal name is an alias. */
18672 #if defined __stub_$ac_func || defined __stub___$ac_func
18679 return $ac_func ();
18684 rm -f conftest.$ac_objext conftest$ac_exeext
18685 if { (ac_try="$ac_link"
18686 case "(($ac_try" in
18687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688 *) ac_try_echo=$ac_try;;
18690 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18691 $as_echo "$ac_try_echo") >&5
18692 (eval "$ac_link") 2>conftest.er1
18694 grep -v '^ *+' conftest.er1 >conftest.err
18696 cat conftest.err >&5
18697 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18698 (exit $ac_status); } && {
18699 test -z "$ac_c_werror_flag" ||
18700 test ! -s conftest.err
18701 } && test -s conftest$ac_exeext && {
18702 test "$cross_compiling" = yes ||
18703 $as_test_x conftest$ac_exeext
18705 eval "$as_ac_var=yes"
18707 $as_echo "$as_me: failed program was
:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18710 eval "$as_ac_var=no
"
18713 rm -rf conftest.dSYM
18714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18715 conftest$ac_exeext conftest.$ac_ext
18717 ac_res=`eval 'as_val=${'$as_ac_var'}
18718 $as_echo "$as_val"'`
18719 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18720 $as_echo "$ac_res" >&6; }
18721 if test `eval 'as_val=${'$as_ac_var'}
18722 $as_echo "$as_val"'` = yes; then
18723 cat >>confdefs.h <<_ACEOF
18724 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18731 # Solaris has libkstat which does not require root.
18733 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18734 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18735 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18736 $as_echo_n "(cached
) " >&6
18738 ac_check_lib_save_LIBS=$LIBS
18739 LIBS="-lkstat $LIBS"
18740 cat >conftest.$ac_ext <<_ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18747 /* Override any GCC internal prototype to avoid an error.
18748 Use char because int might match the return type of a GCC
18749 builtin and then its argument prototype would still apply. */
18753 char kstat_open ();
18757 return kstat_open ();
18762 rm -f conftest.$ac_objext conftest$ac_exeext
18763 if { (ac_try="$ac_link"
18764 case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18768 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18769 $as_echo "$ac_try_echo") >&5
18770 (eval "$ac_link") 2>conftest.er1
18772 grep -v '^ *+' conftest.er1 >conftest.err
18774 cat conftest.err >&5
18775 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18776 (exit $ac_status); } && {
18777 test -z "$ac_c_werror_flag" ||
18778 test ! -s conftest.err
18779 } && test -s conftest$ac_exeext && {
18780 test "$cross_compiling" = yes ||
18781 $as_test_x conftest$ac_exeext
18783 ac_cv_lib_kstat_kstat_open=yes
18785 $as_echo "$as_me: failed program was
:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18788 ac_cv_lib_kstat_kstat_open=no
18791 rm -rf conftest.dSYM
18792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18793 conftest$ac_exeext conftest.$ac_ext
18794 LIBS=$ac_check_lib_save_LIBS
18796 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18797 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18798 if test $ac_cv_lib_kstat_kstat_open = yes; then
18799 cat >>confdefs.h <<_ACEOF
18800 #define HAVE_LIBKSTAT 1
18803 LIBS="-lkstat $LIBS"
18807 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18809 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18810 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18811 # to get the right answer into the cache.
18812 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18813 if test $ac_have_func = no; then
18814 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18815 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18816 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18817 $as_echo_n "(cached
) " >&6
18819 ac_check_lib_save_LIBS=$LIBS
18821 cat >conftest.$ac_ext <<_ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h. */
18828 /* Override any GCC internal prototype to avoid an error.
18829 Use char because int might match the return type of a GCC
18830 builtin and then its argument prototype would still apply. */
18838 return elf_begin ();
18843 rm -f conftest.$ac_objext conftest$ac_exeext
18844 if { (ac_try="$ac_link"
18845 case "(($ac_try" in
18846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847 *) ac_try_echo=$ac_try;;
18849 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18850 $as_echo "$ac_try_echo") >&5
18851 (eval "$ac_link") 2>conftest.er1
18853 grep -v '^ *+' conftest.er1 >conftest.err
18855 cat conftest.err >&5
18856 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18857 (exit $ac_status); } && {
18858 test -z "$ac_c_werror_flag" ||
18859 test ! -s conftest.err
18860 } && test -s conftest$ac_exeext && {
18861 test "$cross_compiling" = yes ||
18862 $as_test_x conftest$ac_exeext
18864 ac_cv_lib_elf_elf_begin=yes
18866 $as_echo "$as_me: failed program was
:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18869 ac_cv_lib_elf_elf_begin=no
18872 rm -rf conftest.dSYM
18873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18874 conftest$ac_exeext conftest.$ac_ext
18875 LIBS=$ac_check_lib_save_LIBS
18877 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18878 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18879 if test $ac_cv_lib_elf_elf_begin = yes; then
18884 if test $ac_have_func = no; then
18885 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18886 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18887 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18888 $as_echo_n "(cached
) " >&6
18890 ac_check_lib_save_LIBS=$LIBS
18892 cat >conftest.$ac_ext <<_ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18899 /* Override any GCC internal prototype to avoid an error.
18900 Use char because int might match the return type of a GCC
18901 builtin and then its argument prototype would still apply. */
18909 return kvm_open ();
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (ac_try="$ac_link"
18916 case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18920 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18921 $as_echo "$ac_try_echo") >&5
18922 (eval "$ac_link") 2>conftest.er1
18924 grep -v '^ *+' conftest.er1 >conftest.err
18926 cat conftest.err >&5
18927 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18928 (exit $ac_status); } && {
18929 test -z "$ac_c_werror_flag" ||
18930 test ! -s conftest.err
18931 } && test -s conftest$ac_exeext && {
18932 test "$cross_compiling" = yes ||
18933 $as_test_x conftest$ac_exeext
18935 ac_cv_lib_kvm_kvm_open=yes
18937 $as_echo "$as_me: failed program was
:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18940 ac_cv_lib_kvm_kvm_open=no
18943 rm -rf conftest.dSYM
18944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18945 conftest$ac_exeext conftest.$ac_ext
18946 LIBS=$ac_check_lib_save_LIBS
18948 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18949 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18950 if test $ac_cv_lib_kvm_kvm_open = yes; then
18954 # Check for the 4.4BSD definition of getloadavg.
18955 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18956 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18957 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18958 $as_echo_n "(cached
) " >&6
18960 ac_check_lib_save_LIBS=$LIBS
18961 LIBS="-lutil $LIBS"
18962 cat >conftest.$ac_ext <<_ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18969 /* Override any GCC internal prototype to avoid an error.
18970 Use char because int might match the return type of a GCC
18971 builtin and then its argument prototype would still apply. */
18975 char getloadavg ();
18979 return getloadavg ();
18984 rm -f conftest.$ac_objext conftest$ac_exeext
18985 if { (ac_try="$ac_link"
18986 case "(($ac_try" in
18987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18990 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18991 $as_echo "$ac_try_echo") >&5
18992 (eval "$ac_link") 2>conftest.er1
18994 grep -v '^ *+' conftest.er1 >conftest.err
18996 cat conftest.err >&5
18997 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18998 (exit $ac_status); } && {
18999 test -z "$ac_c_werror_flag" ||
19000 test ! -s conftest.err
19001 } && test -s conftest$ac_exeext && {
19002 test "$cross_compiling" = yes ||
19003 $as_test_x conftest$ac_exeext
19005 ac_cv_lib_util_getloadavg=yes
19007 $as_echo "$as_me: failed program was
:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19010 ac_cv_lib_util_getloadavg=no
19013 rm -rf conftest.dSYM
19014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19015 conftest$ac_exeext conftest.$ac_ext
19016 LIBS=$ac_check_lib_save_LIBS
19018 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
19019 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19020 if test $ac_cv_lib_util_getloadavg = yes; then
19021 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19026 if test $ac_have_func = no; then
19027 # There is a commonly available library for RS/6000 AIX.
19028 # Since it is not a standard part of AIX, it might be installed locally.
19029 ac_getloadavg_LIBS=$LIBS
19030 LIBS="-L/usr
/local
/lib
$LIBS"
19031 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
19032 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
19033 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19034 $as_echo_n "(cached
) " >&6
19036 ac_check_lib_save_LIBS=$LIBS
19037 LIBS="-lgetloadavg $LIBS"
19038 cat >conftest.$ac_ext <<_ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19045 /* Override any GCC internal prototype to avoid an error.
19046 Use char because int might match the return type of a GCC
19047 builtin and then its argument prototype would still apply. */
19051 char getloadavg ();
19055 return getloadavg ();
19060 rm -f conftest.$ac_objext conftest$ac_exeext
19061 if { (ac_try="$ac_link"
19062 case "(($ac_try" in
19063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19064 *) ac_try_echo=$ac_try;;
19066 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19067 $as_echo "$ac_try_echo") >&5
19068 (eval "$ac_link") 2>conftest.er1
19070 grep -v '^ *+' conftest.er1 >conftest.err
19072 cat conftest.err >&5
19073 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19074 (exit $ac_status); } && {
19075 test -z "$ac_c_werror_flag" ||
19076 test ! -s conftest.err
19077 } && test -s conftest$ac_exeext && {
19078 test "$cross_compiling" = yes ||
19079 $as_test_x conftest$ac_exeext
19081 ac_cv_lib_getloadavg_getloadavg=yes
19083 $as_echo "$as_me: failed program was
:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19086 ac_cv_lib_getloadavg_getloadavg=no
19089 rm -rf conftest.dSYM
19090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19091 conftest$ac_exeext conftest.$ac_ext
19092 LIBS=$ac_check_lib_save_LIBS
19094 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
19095 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19096 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19097 LIBS="-lgetloadavg $LIBS"
19099 LIBS=$ac_getloadavg_LIBS
19104 # Make sure it is really in the library, if we think we found it,
19105 # otherwise set up the replacement function.
19107 for ac_func in getloadavg
19109 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19110 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19111 $as_echo_n "checking
for $ac_func...
" >&6; }
19112 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19113 $as_echo_n "(cached
) " >&6
19115 cat >conftest.$ac_ext <<_ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19123 #define $ac_func innocuous_$ac_func
19125 /* System header to define __stub macros and hopefully few prototypes,
19126 which can conflict with char $ac_func (); below.
19127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19128 <limits.h> exists even on freestanding compilers. */
19131 # include <limits.h>
19133 # include <assert.h>
19138 /* Override any GCC internal prototype to avoid an error.
19139 Use char because int might match the return type of a GCC
19140 builtin and then its argument prototype would still apply. */
19145 /* The GNU C library defines this for functions which it implements
19146 to always fail with ENOSYS. Some functions are actually named
19147 something starting with __ and the normal name is an alias. */
19148 #if defined __stub_$ac_func || defined __stub___$ac_func
19155 return $ac_func ();
19160 rm -f conftest.$ac_objext conftest$ac_exeext
19161 if { (ac_try="$ac_link"
19162 case "(($ac_try" in
19163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19164 *) ac_try_echo=$ac_try;;
19166 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19167 $as_echo "$ac_try_echo") >&5
19168 (eval "$ac_link") 2>conftest.er1
19170 grep -v '^ *+' conftest.er1 >conftest.err
19172 cat conftest.err >&5
19173 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19174 (exit $ac_status); } && {
19175 test -z "$ac_c_werror_flag" ||
19176 test ! -s conftest.err
19177 } && test -s conftest$ac_exeext && {
19178 test "$cross_compiling" = yes ||
19179 $as_test_x conftest$ac_exeext
19181 eval "$as_ac_var=yes"
19183 $as_echo "$as_me: failed program was
:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19186 eval "$as_ac_var=no
"
19189 rm -rf conftest.dSYM
19190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19191 conftest$ac_exeext conftest.$ac_ext
19193 ac_res=`eval 'as_val=${'$as_ac_var'}
19194 $as_echo "$as_val"'`
19195 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19196 $as_echo "$ac_res" >&6; }
19197 if test `eval 'as_val=${'$as_ac_var'}
19198 $as_echo "$as_val"'` = yes; then
19199 cat >>confdefs.h <<_ACEOF
19200 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19204 case " $LIBOBJS " in
19205 *" getloadavg.
$ac_objext "* ) ;;
19206 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
19211 cat >>confdefs.h <<\_ACEOF
19212 #define C_GETLOADAVG 1
19215 # Figure out what our getloadavg.c needs.
19217 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19218 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19219 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19220 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19221 $as_echo_n "(cached
) " >&6
19223 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19224 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19226 # Is the header compilable?
19227 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
19228 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
19229 cat >conftest.$ac_ext <<_ACEOF
19232 cat confdefs.h >>conftest.$ac_ext
19233 cat >>conftest.$ac_ext <<_ACEOF
19234 /* end confdefs.h. */
19235 $ac_includes_default
19236 #include <sys/dg_sys_info.h>
19238 rm -f conftest.$ac_objext
19239 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
19256 ac_header_compiler=yes
19258 $as_echo "$as_me: failed program was
:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19261 ac_header_compiler=no
19264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19265 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19266 $as_echo "$ac_header_compiler" >&6; }
19268 # Is the header present?
19269 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
19270 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
19271 cat >conftest.$ac_ext <<_ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 #include <sys/dg_sys_info.h>
19279 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19280 case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19284 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19285 $as_echo "$ac_try_echo") >&5
19286 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19288 grep -v '^ *+' conftest.er1 >conftest.err
19290 cat conftest.err >&5
19291 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19292 (exit $ac_status); } >/dev/null && {
19293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19294 test ! -s conftest.err
19296 ac_header_preproc=yes
19298 $as_echo "$as_me: failed program was
:" >&5
19299 sed 's/^/| /' conftest.$ac_ext >&5
19301 ac_header_preproc=no
19304 rm -f conftest.err conftest.$ac_ext
19305 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19306 $as_echo "$ac_header_preproc" >&6; }
19308 # So? What about this header?
19309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19311 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19312 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19313 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
19314 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
19315 ac_header_preproc=yes
19318 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
19319 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
19320 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
19321 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
19322 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
19323 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
19324 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19325 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19326 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
19327 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
19328 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
19329 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
19333 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19334 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19335 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19336 $as_echo_n "(cached
) " >&6
19338 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19340 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19341 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19344 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19347 cat >>confdefs.h <<\_ACEOF
19352 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
19353 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
19354 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19355 $as_echo_n "(cached
) " >&6
19357 ac_check_lib_save_LIBS=$LIBS
19359 cat >conftest.$ac_ext <<_ACEOF
19362 cat confdefs.h >>conftest.$ac_ext
19363 cat >>conftest.$ac_ext <<_ACEOF
19364 /* end confdefs.h. */
19366 /* Override any GCC internal prototype to avoid an error.
19367 Use char because int might match the return type of a GCC
19368 builtin and then its argument prototype would still apply. */
19372 char dg_sys_info ();
19376 return dg_sys_info ();
19381 rm -f conftest.$ac_objext conftest$ac_exeext
19382 if { (ac_try="$ac_link"
19383 case "(($ac_try" in
19384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385 *) ac_try_echo=$ac_try;;
19387 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19388 $as_echo "$ac_try_echo") >&5
19389 (eval "$ac_link") 2>conftest.er1
19391 grep -v '^ *+' conftest.er1 >conftest.err
19393 cat conftest.err >&5
19394 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19395 (exit $ac_status); } && {
19396 test -z "$ac_c_werror_flag" ||
19397 test ! -s conftest.err
19398 } && test -s conftest$ac_exeext && {
19399 test "$cross_compiling" = yes ||
19400 $as_test_x conftest$ac_exeext
19402 ac_cv_lib_dgc_dg_sys_info=yes
19404 $as_echo "$as_me: failed program was
:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19407 ac_cv_lib_dgc_dg_sys_info=no
19410 rm -rf conftest.dSYM
19411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19412 conftest$ac_exeext conftest.$ac_ext
19413 LIBS=$ac_check_lib_save_LIBS
19415 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
19416 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19417 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19418 cat >>confdefs.h <<_ACEOF
19419 #define HAVE_LIBDGC 1
19430 if test "${ac_cv_header_locale_h+set}" = set; then
19431 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19432 $as_echo_n "checking
for locale.h...
" >&6; }
19433 if test "${ac_cv_header_locale_h+set}" = set; then
19434 $as_echo_n "(cached
) " >&6
19436 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19437 $as_echo "$ac_cv_header_locale_h" >&6; }
19439 # Is the header compilable?
19440 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19441 $as_echo_n "checking locale.h usability...
" >&6; }
19442 cat >conftest.$ac_ext <<_ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h. */
19448 $ac_includes_default
19449 #include <locale.h>
19451 rm -f conftest.$ac_objext
19452 if { (ac_try="$ac_compile"
19453 case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19457 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19458 $as_echo "$ac_try_echo") >&5
19459 (eval "$ac_compile") 2>conftest.er1
19461 grep -v '^ *+' conftest.er1 >conftest.err
19463 cat conftest.err >&5
19464 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19465 (exit $ac_status); } && {
19466 test -z "$ac_c_werror_flag" ||
19467 test ! -s conftest.err
19468 } && test -s conftest.$ac_objext; then
19469 ac_header_compiler=yes
19471 $as_echo "$as_me: failed program was
:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ac_header_compiler=no
19477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19478 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19479 $as_echo "$ac_header_compiler" >&6; }
19481 # Is the header present?
19482 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19483 $as_echo_n "checking locale.h presence...
" >&6; }
19484 cat >conftest.$ac_ext <<_ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19490 #include <locale.h>
19492 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19493 case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19497 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19498 $as_echo "$ac_try_echo") >&5
19499 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19501 grep -v '^ *+' conftest.er1 >conftest.err
19503 cat conftest.err >&5
19504 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19505 (exit $ac_status); } >/dev/null && {
19506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19507 test ! -s conftest.err
19509 ac_header_preproc=yes
19511 $as_echo "$as_me: failed program was
:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19514 ac_header_preproc=no
19517 rm -f conftest.err conftest.$ac_ext
19518 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19519 $as_echo "$ac_header_preproc" >&6; }
19521 # So? What about this header?
19522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19524 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19525 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19526 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19527 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19528 ac_header_preproc=yes
19531 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19532 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19533 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19534 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19535 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19536 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19537 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19538 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19539 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19540 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19541 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19542 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19546 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19547 $as_echo_n "checking
for locale.h...
" >&6; }
19548 if test "${ac_cv_header_locale_h+set}" = set; then
19549 $as_echo_n "(cached
) " >&6
19551 ac_cv_header_locale_h=$ac_header_preproc
19553 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19554 $as_echo "$ac_cv_header_locale_h" >&6; }
19560 for ac_func in setlocale
19562 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19563 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19564 $as_echo_n "checking
for $ac_func...
" >&6; }
19565 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19566 $as_echo_n "(cached
) " >&6
19568 cat >conftest.$ac_ext <<_ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h. */
19574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19576 #define $ac_func innocuous_$ac_func
19578 /* System header to define __stub macros and hopefully few prototypes,
19579 which can conflict with char $ac_func (); below.
19580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19581 <limits.h> exists even on freestanding compilers. */
19584 # include <limits.h>
19586 # include <assert.h>
19591 /* Override any GCC internal prototype to avoid an error.
19592 Use char because int might match the return type of a GCC
19593 builtin and then its argument prototype would still apply. */
19598 /* The GNU C library defines this for functions which it implements
19599 to always fail with ENOSYS. Some functions are actually named
19600 something starting with __ and the normal name is an alias. */
19601 #if defined __stub_$ac_func || defined __stub___$ac_func
19608 return $ac_func ();
19613 rm -f conftest.$ac_objext conftest$ac_exeext
19614 if { (ac_try="$ac_link"
19615 case "(($ac_try" in
19616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617 *) ac_try_echo=$ac_try;;
19619 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19620 $as_echo "$ac_try_echo") >&5
19621 (eval "$ac_link") 2>conftest.er1
19623 grep -v '^ *+' conftest.er1 >conftest.err
19625 cat conftest.err >&5
19626 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19627 (exit $ac_status); } && {
19628 test -z "$ac_c_werror_flag" ||
19629 test ! -s conftest.err
19630 } && test -s conftest$ac_exeext && {
19631 test "$cross_compiling" = yes ||
19632 $as_test_x conftest$ac_exeext
19634 eval "$as_ac_var=yes"
19636 $as_echo "$as_me: failed program was
:" >&5
19637 sed 's/^/| /' conftest.$ac_ext >&5
19639 eval "$as_ac_var=no
"
19642 rm -rf conftest.dSYM
19643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19644 conftest$ac_exeext conftest.$ac_ext
19646 ac_res=`eval 'as_val=${'$as_ac_var'}
19647 $as_echo "$as_val"'`
19648 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19649 $as_echo "$ac_res" >&6; }
19650 if test `eval 'as_val=${'$as_ac_var'}
19651 $as_echo "$as_val"'` = yes; then
19652 cat >>confdefs.h <<_ACEOF
19653 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19660 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19661 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19662 # Irix 4.0.5F has the header but not the library.
19663 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19666 cat >>confdefs.h <<\_ACEOF
19672 if test $ac_have_func = no; then
19673 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19674 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19675 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19676 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19677 $as_echo_n "(cached
) " >&6
19679 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19680 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19682 # Is the header compilable?
19683 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19684 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19685 cat >conftest.$ac_ext <<_ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 $ac_includes_default
19692 #include <inq_stats/cpustats.h>
19694 rm -f conftest.$ac_objext
19695 if { (ac_try="$ac_compile"
19696 case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19700 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19701 $as_echo "$ac_try_echo") >&5
19702 (eval "$ac_compile") 2>conftest.er1
19704 grep -v '^ *+' conftest.er1 >conftest.err
19706 cat conftest.err >&5
19707 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19708 (exit $ac_status); } && {
19709 test -z "$ac_c_werror_flag" ||
19710 test ! -s conftest.err
19711 } && test -s conftest.$ac_objext; then
19712 ac_header_compiler=yes
19714 $as_echo "$as_me: failed program was
:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19717 ac_header_compiler=no
19720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19722 $as_echo "$ac_header_compiler" >&6; }
19724 # Is the header present?
19725 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19726 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19727 cat >conftest.$ac_ext <<_ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h. */
19733 #include <inq_stats/cpustats.h>
19735 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19736 case "(($ac_try" in
19737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19738 *) ac_try_echo=$ac_try;;
19740 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19741 $as_echo "$ac_try_echo") >&5
19742 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19744 grep -v '^ *+' conftest.er1 >conftest.err
19746 cat conftest.err >&5
19747 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19748 (exit $ac_status); } >/dev/null && {
19749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19750 test ! -s conftest.err
19752 ac_header_preproc=yes
19754 $as_echo "$as_me: failed program was
:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19757 ac_header_preproc=no
19760 rm -f conftest.err conftest.$ac_ext
19761 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19762 $as_echo "$ac_header_preproc" >&6; }
19764 # So? What about this header?
19765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19767 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19768 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19769 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19770 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19771 ac_header_preproc=yes
19774 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19775 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19776 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19777 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19778 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19779 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19780 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19781 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19782 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19783 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19784 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19785 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19789 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19790 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19791 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19792 $as_echo_n "(cached
) " >&6
19794 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19796 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19797 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19800 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19803 cat >>confdefs.h <<\_ACEOF
19808 cat >>confdefs.h <<\_ACEOF
19817 if test $ac_have_func = no; then
19818 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19819 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19820 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19821 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19822 $as_echo_n "(cached
) " >&6
19824 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19825 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19827 # Is the header compilable?
19828 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19829 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19830 cat >conftest.$ac_ext <<_ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h. */
19836 $ac_includes_default
19837 #include <sys/cpustats.h>
19839 rm -f conftest.$ac_objext
19840 if { (ac_try="$ac_compile"
19841 case "(($ac_try" in
19842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843 *) ac_try_echo=$ac_try;;
19845 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19846 $as_echo "$ac_try_echo") >&5
19847 (eval "$ac_compile") 2>conftest.er1
19849 grep -v '^ *+' conftest.er1 >conftest.err
19851 cat conftest.err >&5
19852 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19853 (exit $ac_status); } && {
19854 test -z "$ac_c_werror_flag" ||
19855 test ! -s conftest.err
19856 } && test -s conftest.$ac_objext; then
19857 ac_header_compiler=yes
19859 $as_echo "$as_me: failed program was
:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19862 ac_header_compiler=no
19865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19866 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19867 $as_echo "$ac_header_compiler" >&6; }
19869 # Is the header present?
19870 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19871 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19872 cat >conftest.$ac_ext <<_ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19878 #include <sys/cpustats.h>
19880 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19886 $as_echo "$ac_try_echo") >&5
19887 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19889 grep -v '^ *+' conftest.er1 >conftest.err
19891 cat conftest.err >&5
19892 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19893 (exit $ac_status); } >/dev/null && {
19894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19895 test ! -s conftest.err
19897 ac_header_preproc=yes
19899 $as_echo "$as_me: failed program was
:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 ac_header_preproc=no
19905 rm -f conftest.err conftest.$ac_ext
19906 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19907 $as_echo "$ac_header_preproc" >&6; }
19909 # So? What about this header?
19910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19912 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19913 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19914 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19915 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19916 ac_header_preproc=yes
19919 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19920 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19921 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19922 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19923 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19924 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19925 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19926 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19927 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19928 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19929 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19930 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19934 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19935 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19936 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19937 $as_echo_n "(cached
) " >&6
19939 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19941 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19942 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19945 if test $ac_cv_header_sys_cpustats_h = yes; then
19946 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19955 if test $ac_have_func = no; then
19957 for ac_header in mach/mach.h
19959 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19960 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19961 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19962 $as_echo_n "checking
for $ac_header...
" >&6; }
19963 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19964 $as_echo_n "(cached
) " >&6
19966 ac_res=`eval 'as_val=${'$as_ac_Header'}
19967 $as_echo "$as_val"'`
19968 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19969 $as_echo "$ac_res" >&6; }
19971 # Is the header compilable?
19972 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19973 $as_echo_n "checking
$ac_header usability...
" >&6; }
19974 cat >conftest.$ac_ext <<_ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19980 $ac_includes_default
19981 #include <$ac_header>
19983 rm -f conftest.$ac_objext
19984 if { (ac_try="$ac_compile"
19985 case "(($ac_try" in
19986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19987 *) ac_try_echo=$ac_try;;
19989 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19990 $as_echo "$ac_try_echo") >&5
19991 (eval "$ac_compile") 2>conftest.er1
19993 grep -v '^ *+' conftest.er1 >conftest.err
19995 cat conftest.err >&5
19996 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19997 (exit $ac_status); } && {
19998 test -z "$ac_c_werror_flag" ||
19999 test ! -s conftest.err
20000 } && test -s conftest.$ac_objext; then
20001 ac_header_compiler=yes
20003 $as_echo "$as_me: failed program was
:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ac_header_compiler=no
20009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20011 $as_echo "$ac_header_compiler" >&6; }
20013 # Is the header present?
20014 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20015 $as_echo_n "checking
$ac_header presence...
" >&6; }
20016 cat >conftest.$ac_ext <<_ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 #include <$ac_header>
20024 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20029 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20030 $as_echo "$ac_try_echo") >&5
20031 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20033 grep -v '^ *+' conftest.er1 >conftest.err
20035 cat conftest.err >&5
20036 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20037 (exit $ac_status); } >/dev/null && {
20038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20039 test ! -s conftest.err
20041 ac_header_preproc=yes
20043 $as_echo "$as_me: failed program was
:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20046 ac_header_preproc=no
20049 rm -f conftest.err conftest.$ac_ext
20050 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20051 $as_echo "$ac_header_preproc" >&6; }
20053 # So? What about this header?
20054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20056 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20057 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20058 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20059 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20060 ac_header_preproc=yes
20063 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20064 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20065 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20066 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20067 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20068 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20069 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20070 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20071 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20072 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20073 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20074 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20078 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20079 $as_echo_n "checking
for $ac_header...
" >&6; }
20080 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20081 $as_echo_n "(cached
) " >&6
20083 eval "$as_ac_Header=\
$ac_header_preproc"
20085 ac_res=`eval 'as_val=${'$as_ac_Header'}
20086 $as_echo "$as_val"'`
20087 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20088 $as_echo "$ac_res" >&6; }
20091 if test `eval 'as_val=${'$as_ac_Header'}
20092 $as_echo "$as_val"'` = yes; then
20093 cat >>confdefs.h <<_ACEOF
20094 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20104 for ac_header in nlist.h
20106 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20107 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20108 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20109 $as_echo_n "checking
for $ac_header...
" >&6; }
20110 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20111 $as_echo_n "(cached
) " >&6
20113 ac_res=`eval 'as_val=${'$as_ac_Header'}
20114 $as_echo "$as_val"'`
20115 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20116 $as_echo "$ac_res" >&6; }
20118 # Is the header compilable?
20119 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20120 $as_echo_n "checking
$ac_header usability...
" >&6; }
20121 cat >conftest.$ac_ext <<_ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h. */
20127 $ac_includes_default
20128 #include <$ac_header>
20130 rm -f conftest.$ac_objext
20131 if { (ac_try="$ac_compile"
20132 case "(($ac_try" in
20133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134 *) ac_try_echo=$ac_try;;
20136 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20137 $as_echo "$ac_try_echo") >&5
20138 (eval "$ac_compile") 2>conftest.er1
20140 grep -v '^ *+' conftest.er1 >conftest.err
20142 cat conftest.err >&5
20143 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20144 (exit $ac_status); } && {
20145 test -z "$ac_c_werror_flag" ||
20146 test ! -s conftest.err
20147 } && test -s conftest.$ac_objext; then
20148 ac_header_compiler=yes
20150 $as_echo "$as_me: failed program was
:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20153 ac_header_compiler=no
20156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20158 $as_echo "$ac_header_compiler" >&6; }
20160 # Is the header present?
20161 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20162 $as_echo_n "checking
$ac_header presence...
" >&6; }
20163 cat >conftest.$ac_ext <<_ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20169 #include <$ac_header>
20171 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20172 case "(($ac_try" in
20173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174 *) ac_try_echo=$ac_try;;
20176 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20177 $as_echo "$ac_try_echo") >&5
20178 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20180 grep -v '^ *+' conftest.er1 >conftest.err
20182 cat conftest.err >&5
20183 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20184 (exit $ac_status); } >/dev/null && {
20185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20186 test ! -s conftest.err
20188 ac_header_preproc=yes
20190 $as_echo "$as_me: failed program was
:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20193 ac_header_preproc=no
20196 rm -f conftest.err conftest.$ac_ext
20197 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20198 $as_echo "$ac_header_preproc" >&6; }
20200 # So? What about this header?
20201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20203 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20204 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20205 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20206 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20207 ac_header_preproc=yes
20210 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20211 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20212 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20213 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20214 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20215 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20216 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20217 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20218 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20219 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20220 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20221 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20225 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20226 $as_echo_n "checking
for $ac_header...
" >&6; }
20227 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20228 $as_echo_n "(cached
) " >&6
20230 eval "$as_ac_Header=\
$ac_header_preproc"
20232 ac_res=`eval 'as_val=${'$as_ac_Header'}
20233 $as_echo "$as_val"'`
20234 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20235 $as_echo "$ac_res" >&6; }
20238 if test `eval 'as_val=${'$as_ac_Header'}
20239 $as_echo "$as_val"'` = yes; then
20240 cat >>confdefs.h <<_ACEOF
20241 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20243 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
20244 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
20245 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20246 $as_echo_n "(cached
) " >&6
20248 cat >conftest.$ac_ext <<_ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h. */
20259 static struct nlist ac_aggr;
20260 if (ac_aggr.n_un.n_name)
20266 rm -f conftest.$ac_objext
20267 if { (ac_try="$ac_compile"
20268 case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20272 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20273 $as_echo "$ac_try_echo") >&5
20274 (eval "$ac_compile") 2>conftest.er1
20276 grep -v '^ *+' conftest.er1 >conftest.err
20278 cat conftest.err >&5
20279 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20280 (exit $ac_status); } && {
20281 test -z "$ac_c_werror_flag" ||
20282 test ! -s conftest.err
20283 } && test -s conftest.$ac_objext; then
20284 ac_cv_member_struct_nlist_n_un_n_name=yes
20286 $as_echo "$as_me: failed program was
:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 cat >conftest.$ac_ext <<_ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h. */
20300 static struct nlist ac_aggr;
20301 if (sizeof ac_aggr.n_un.n_name)
20307 rm -f conftest.$ac_objext
20308 if { (ac_try="$ac_compile"
20309 case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20313 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20314 $as_echo "$ac_try_echo") >&5
20315 (eval "$ac_compile") 2>conftest.er1
20317 grep -v '^ *+' conftest.er1 >conftest.err
20319 cat conftest.err >&5
20320 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20321 (exit $ac_status); } && {
20322 test -z "$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 } && test -s conftest.$ac_objext; then
20325 ac_cv_member_struct_nlist_n_un_n_name=yes
20327 $as_echo "$as_me: failed program was
:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20330 ac_cv_member_struct_nlist_n_un_n_name=no
20333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20338 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20339 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20340 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20342 cat >>confdefs.h <<_ACEOF
20343 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20347 cat >>confdefs.h <<\_ACEOF
20348 #define NLIST_NAME_UNION 1
20362 # Some definitions of getloadavg require that the program be installed setgid.
20363 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
20364 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
20365 if test "${ac_cv_func_getloadavg_setgid+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 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
20375 #ifdef LDAV_PRIVILEGED
20376 Yowza Am I SETGID yet
20379 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
20380 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
20381 ac_cv_func_getloadavg_setgid=yes
20383 ac_cv_func_getloadavg_setgid=no
20388 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
20389 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20390 if test $ac_cv_func_getloadavg_setgid = yes; then
20393 cat >>confdefs.h <<\_ACEOF
20394 #define GETLOADAVG_PRIVILEGED 1
20401 if test $ac_cv_func_getloadavg_setgid = yes; then
20402 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
20403 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
20404 if test "${ac_cv_group_kmem+set}" = set; then
20405 $as_echo_n "(cached
) " >&6
20407 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20408 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20409 # If we got an error (system does not support symlinks), try without -L.
20410 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20411 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20412 | sed -ne 's/[ ][ ]*/ /g;
20413 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20417 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
20418 $as_echo "$ac_cv_group_kmem" >&6; }
20419 KMEM_GROUP=$ac_cv_group_kmem
20421 if test "x
$ac_save_LIBS" = x; then
20422 GETLOADAVG_LIBS=$LIBS
20424 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
20430 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
20431 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
20432 if test "${ac_cv_sys_largefile_source+set}" = set; then
20433 $as_echo_n "(cached
) " >&6
20436 cat >conftest.$ac_ext <<_ACEOF
20439 cat confdefs.h >>conftest.$ac_ext
20440 cat >>conftest.$ac_ext <<_ACEOF
20441 /* end confdefs.h. */
20442 #include <sys/types.h> /* for off_t */
20447 int (*fp) (FILE *, off_t, int) = fseeko;
20448 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20453 rm -f conftest.$ac_objext conftest$ac_exeext
20454 if { (ac_try="$ac_link"
20455 case "(($ac_try" in
20456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457 *) ac_try_echo=$ac_try;;
20459 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20460 $as_echo "$ac_try_echo") >&5
20461 (eval "$ac_link") 2>conftest.er1
20463 grep -v '^ *+' conftest.er1 >conftest.err
20465 cat conftest.err >&5
20466 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20467 (exit $ac_status); } && {
20468 test -z "$ac_c_werror_flag" ||
20469 test ! -s conftest.err
20470 } && test -s conftest$ac_exeext && {
20471 test "$cross_compiling" = yes ||
20472 $as_test_x conftest$ac_exeext
20474 ac_cv_sys_largefile_source=no; break
20476 $as_echo "$as_me: failed program was
:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20482 rm -rf conftest.dSYM
20483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20484 conftest$ac_exeext conftest.$ac_ext
20485 cat >conftest.$ac_ext <<_ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20491 #define _LARGEFILE_SOURCE 1
20492 #include <sys/types.h> /* for off_t */
20497 int (*fp) (FILE *, off_t, int) = fseeko;
20498 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20503 rm -f conftest.$ac_objext conftest$ac_exeext
20504 if { (ac_try="$ac_link"
20505 case "(($ac_try" in
20506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20507 *) ac_try_echo=$ac_try;;
20509 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20510 $as_echo "$ac_try_echo") >&5
20511 (eval "$ac_link") 2>conftest.er1
20513 grep -v '^ *+' conftest.er1 >conftest.err
20515 cat conftest.err >&5
20516 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20517 (exit $ac_status); } && {
20518 test -z "$ac_c_werror_flag" ||
20519 test ! -s conftest.err
20520 } && test -s conftest$ac_exeext && {
20521 test "$cross_compiling" = yes ||
20522 $as_test_x conftest$ac_exeext
20524 ac_cv_sys_largefile_source=1; break
20526 $as_echo "$as_me: failed program was
:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20532 rm -rf conftest.dSYM
20533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20534 conftest$ac_exeext conftest.$ac_ext
20535 ac_cv_sys_largefile_source=unknown
20539 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20540 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20541 case $ac_cv_sys_largefile_source in #(
20544 cat >>confdefs.h <<_ACEOF
20545 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20551 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20552 # in glibc 2.1.3, but that breaks too many other things.
20553 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20554 if test $ac_cv_sys_largefile_source != unknown; then
20556 cat >>confdefs.h <<\_ACEOF
20557 #define HAVE_FSEEKO 1
20563 # Configure getopt.
20564 # getopt.m4 serial 10
20566 # The getopt module assume you want GNU getopt, with getopt_long etc,
20567 # rather than vanilla POSIX getopt. This means your your code should
20568 # always include <getopt.h> for the getopt prototypes.
20580 # Prerequisites of lib/getopt*.
20587 for ac_header in getopt.h
20589 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20590 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20591 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20592 $as_echo_n "checking
for $ac_header...
" >&6; }
20593 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20594 $as_echo_n "(cached
) " >&6
20596 ac_res=`eval 'as_val=${'$as_ac_Header'}
20597 $as_echo "$as_val"'`
20598 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20599 $as_echo "$ac_res" >&6; }
20601 # Is the header compilable?
20602 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20603 $as_echo_n "checking
$ac_header usability...
" >&6; }
20604 cat >conftest.$ac_ext <<_ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h. */
20610 $ac_includes_default
20611 #include <$ac_header>
20613 rm -f conftest.$ac_objext
20614 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
20623 grep -v '^ *+' conftest.er1 >conftest.err
20625 cat conftest.err >&5
20626 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20627 (exit $ac_status); } && {
20628 test -z "$ac_c_werror_flag" ||
20629 test ! -s conftest.err
20630 } && test -s conftest.$ac_objext; then
20631 ac_header_compiler=yes
20633 $as_echo "$as_me: failed program was
:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20636 ac_header_compiler=no
20639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20640 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20641 $as_echo "$ac_header_compiler" >&6; }
20643 # Is the header present?
20644 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20645 $as_echo_n "checking
$ac_header presence...
" >&6; }
20646 cat >conftest.$ac_ext <<_ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652 #include <$ac_header>
20654 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20655 case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20659 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20660 $as_echo "$ac_try_echo") >&5
20661 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20663 grep -v '^ *+' conftest.er1 >conftest.err
20665 cat conftest.err >&5
20666 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20667 (exit $ac_status); } >/dev/null && {
20668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20669 test ! -s conftest.err
20671 ac_header_preproc=yes
20673 $as_echo "$as_me: failed program was
:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20676 ac_header_preproc=no
20679 rm -f conftest.err conftest.$ac_ext
20680 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20681 $as_echo "$ac_header_preproc" >&6; }
20683 # So? What about this header?
20684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20686 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20687 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20688 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20689 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20690 ac_header_preproc=yes
20693 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20694 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20695 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20696 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20697 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20698 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20699 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20700 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20701 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20702 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20703 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20704 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20708 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20709 $as_echo_n "checking
for $ac_header...
" >&6; }
20710 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20711 $as_echo_n "(cached
) " >&6
20713 eval "$as_ac_Header=\
$ac_header_preproc"
20715 ac_res=`eval 'as_val=${'$as_ac_Header'}
20716 $as_echo "$as_val"'`
20717 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20718 $as_echo "$ac_res" >&6; }
20721 if test `eval 'as_val=${'$as_ac_Header'}
20722 $as_echo "$as_val"'` = yes; then
20723 cat >>confdefs.h <<_ACEOF
20724 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20733 if test -z "$GETOPT_H"; then
20735 for ac_func in getopt_long_only
20737 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20738 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20739 $as_echo_n "checking
for $ac_func...
" >&6; }
20740 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20741 $as_echo_n "(cached
) " >&6
20743 cat >conftest.$ac_ext <<_ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h. */
20749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20751 #define $ac_func innocuous_$ac_func
20753 /* System header to define __stub macros and hopefully few prototypes,
20754 which can conflict with char $ac_func (); below.
20755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20756 <limits.h> exists even on freestanding compilers. */
20759 # include <limits.h>
20761 # include <assert.h>
20766 /* Override any GCC internal prototype to avoid an error.
20767 Use char because int might match the return type of a GCC
20768 builtin and then its argument prototype would still apply. */
20773 /* The GNU C library defines this for functions which it implements
20774 to always fail with ENOSYS. Some functions are actually named
20775 something starting with __ and the normal name is an alias. */
20776 #if defined __stub_$ac_func || defined __stub___$ac_func
20783 return $ac_func ();
20788 rm -f conftest.$ac_objext conftest$ac_exeext
20789 if { (ac_try="$ac_link"
20790 case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20794 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20795 $as_echo "$ac_try_echo") >&5
20796 (eval "$ac_link") 2>conftest.er1
20798 grep -v '^ *+' conftest.er1 >conftest.err
20800 cat conftest.err >&5
20801 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20802 (exit $ac_status); } && {
20803 test -z "$ac_c_werror_flag" ||
20804 test ! -s conftest.err
20805 } && test -s conftest$ac_exeext && {
20806 test "$cross_compiling" = yes ||
20807 $as_test_x conftest$ac_exeext
20809 eval "$as_ac_var=yes"
20811 $as_echo "$as_me: failed program was
:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20814 eval "$as_ac_var=no
"
20817 rm -rf conftest.dSYM
20818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20819 conftest$ac_exeext conftest.$ac_ext
20821 ac_res=`eval 'as_val=${'$as_ac_var'}
20822 $as_echo "$as_val"'`
20823 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20824 $as_echo "$ac_res" >&6; }
20825 if test `eval 'as_val=${'$as_ac_var'}
20826 $as_echo "$as_val"'` = yes; then
20827 cat >>confdefs.h <<_ACEOF
20828 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20838 if test -z "$GETOPT_H"; then
20839 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20840 $as_echo_n "checking whether optreset is declared...
" >&6; }
20841 if test "${ac_cv_have_decl_optreset+set}" = set; then
20842 $as_echo_n "(cached
) " >&6
20844 cat >conftest.$ac_ext <<_ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 #include <getopt.h>
20863 rm -f conftest.$ac_objext
20864 if { (ac_try="$ac_compile"
20865 case "(($ac_try" in
20866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867 *) ac_try_echo=$ac_try;;
20869 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20870 $as_echo "$ac_try_echo") >&5
20871 (eval "$ac_compile") 2>conftest.er1
20873 grep -v '^ *+' conftest.er1 >conftest.err
20875 cat conftest.err >&5
20876 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20877 (exit $ac_status); } && {
20878 test -z "$ac_c_werror_flag" ||
20879 test ! -s conftest.err
20880 } && test -s conftest.$ac_objext; then
20881 ac_cv_have_decl_optreset=yes
20883 $as_echo "$as_me: failed program was
:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20886 ac_cv_have_decl_optreset=no
20889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20891 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20892 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20893 if test $ac_cv_have_decl_optreset = yes; then
20899 if test -z "$GETOPT_H"; then
20900 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20901 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20902 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20903 $as_echo_n "(cached
) " >&6
20905 if test "$cross_compiling" = yes; then
20906 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20907 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20908 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20909 $as_echo_n "(cached
) " >&6
20911 cat >conftest.$ac_ext <<_ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20917 #include <getopt.h>
20922 #ifndef getopt_clip
20923 (void) getopt_clip;
20930 rm -f conftest.$ac_objext
20931 if { (ac_try="$ac_compile"
20932 case "(($ac_try" in
20933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20934 *) ac_try_echo=$ac_try;;
20936 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20937 $as_echo "$ac_try_echo") >&5
20938 (eval "$ac_compile") 2>conftest.er1
20940 grep -v '^ *+' conftest.er1 >conftest.err
20942 cat conftest.err >&5
20943 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20944 (exit $ac_status); } && {
20945 test -z "$ac_c_werror_flag" ||
20946 test ! -s conftest.err
20947 } && test -s conftest.$ac_objext; then
20948 ac_cv_have_decl_getopt_clip=yes
20950 $as_echo "$as_me: failed program was
:" >&5
20951 sed 's/^/| /' conftest.$ac_ext >&5
20953 ac_cv_have_decl_getopt_clip=no
20956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20958 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20959 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20960 if test $ac_cv_have_decl_getopt_clip = yes; then
20961 gl_cv_func_gnu_getopt=no
20963 gl_cv_func_gnu_getopt=yes
20967 cat >conftest.$ac_ext <<_ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20973 #include <getopt.h>
20979 myargv[0] = "conftest
";
20982 return getopt (2, myargv, "+a
") != '?';
20988 rm -f conftest$ac_exeext
20989 if { (ac_try="$ac_link"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20995 $as_echo "$ac_try_echo") >&5
20996 (eval "$ac_link") 2>&5
20998 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21000 { (case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21004 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21005 $as_echo "$ac_try_echo") >&5
21006 (eval "$ac_try") 2>&5
21008 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21009 (exit $ac_status); }; }; then
21010 gl_cv_func_gnu_getopt=yes
21012 $as_echo "$as_me: program exited with status
$ac_status" >&5
21013 $as_echo "$as_me: failed program was
:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21016 ( exit $ac_status )
21017 gl_cv_func_gnu_getopt=no
21019 rm -rf conftest.dSYM
21020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21025 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
21026 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21027 if test "$gl_cv_func_gnu_getopt" = "no
"; then
21034 if test -n "$GETOPT_H"; then
21039 cat >>confdefs.h <<\_ACEOF
21040 #define __GETOPT_PREFIX rpl_
21046 GETOPTOBJS='getopt.o getopt1.o'
21053 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
21054 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
21055 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21056 $as_echo_n "(cached
) " >&6
21058 # Use it with a single arg.
21059 cat >conftest.$ac_ext <<_ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h. */
21065 $ac_includes_default
21074 rm -f conftest.$ac_objext
21075 if { (ac_try="$ac_compile"
21076 case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21080 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21081 $as_echo "$ac_try_echo") >&5
21082 (eval "$ac_compile") 2>conftest.er1
21084 grep -v '^ *+' conftest.er1 >conftest.err
21086 cat conftest.err >&5
21087 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21088 (exit $ac_status); } && {
21089 test -z "$ac_c_werror_flag" ||
21090 test ! -s conftest.err
21091 } && test -s conftest.$ac_objext; then
21092 ac_cv_func_getpgrp_void=no
21094 $as_echo "$as_me: failed program was
:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21097 ac_cv_func_getpgrp_void=yes
21100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
21104 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21105 if test $ac_cv_func_getpgrp_void = yes; then
21107 cat >>confdefs.h <<\_ACEOF
21108 #define GETPGRP_VOID 1
21115 for ac_func in strftime
21117 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21118 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21119 $as_echo_n "checking
for $ac_func...
" >&6; }
21120 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21121 $as_echo_n "(cached
) " >&6
21123 cat >conftest.$ac_ext <<_ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h. */
21129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21131 #define $ac_func innocuous_$ac_func
21133 /* System header to define __stub macros and hopefully few prototypes,
21134 which can conflict with char $ac_func (); below.
21135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21136 <limits.h> exists even on freestanding compilers. */
21139 # include <limits.h>
21141 # include <assert.h>
21146 /* Override any GCC internal prototype to avoid an error.
21147 Use char because int might match the return type of a GCC
21148 builtin and then its argument prototype would still apply. */
21153 /* The GNU C library defines this for functions which it implements
21154 to always fail with ENOSYS. Some functions are actually named
21155 something starting with __ and the normal name is an alias. */
21156 #if defined __stub_$ac_func || defined __stub___$ac_func
21163 return $ac_func ();
21168 rm -f conftest.$ac_objext conftest$ac_exeext
21169 if { (ac_try="$ac_link"
21170 case "(($ac_try" in
21171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172 *) ac_try_echo=$ac_try;;
21174 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21175 $as_echo "$ac_try_echo") >&5
21176 (eval "$ac_link") 2>conftest.er1
21178 grep -v '^ *+' conftest.er1 >conftest.err
21180 cat conftest.err >&5
21181 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21182 (exit $ac_status); } && {
21183 test -z "$ac_c_werror_flag" ||
21184 test ! -s conftest.err
21185 } && test -s conftest$ac_exeext && {
21186 test "$cross_compiling" = yes ||
21187 $as_test_x conftest$ac_exeext
21189 eval "$as_ac_var=yes"
21191 $as_echo "$as_me: failed program was
:" >&5
21192 sed 's/^/| /' conftest.$ac_ext >&5
21194 eval "$as_ac_var=no
"
21197 rm -rf conftest.dSYM
21198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21199 conftest$ac_exeext conftest.$ac_ext
21201 ac_res=`eval 'as_val=${'$as_ac_var'}
21202 $as_echo "$as_val"'`
21203 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21204 $as_echo "$ac_res" >&6; }
21205 if test `eval 'as_val=${'$as_ac_var'}
21206 $as_echo "$as_val"'` = yes; then
21207 cat >>confdefs.h <<_ACEOF
21208 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21212 # strftime is in -lintl on SCO UNIX.
21213 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
21214 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
21215 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21216 $as_echo_n "(cached
) " >&6
21218 ac_check_lib_save_LIBS=$LIBS
21219 LIBS="-lintl $LIBS"
21220 cat >conftest.$ac_ext <<_ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21227 /* Override any GCC internal prototype to avoid an error.
21228 Use char because int might match the return type of a GCC
21229 builtin and then its argument prototype would still apply. */
21237 return strftime ();
21242 rm -f conftest.$ac_objext conftest$ac_exeext
21243 if { (ac_try="$ac_link"
21244 case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21248 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21249 $as_echo "$ac_try_echo") >&5
21250 (eval "$ac_link") 2>conftest.er1
21252 grep -v '^ *+' conftest.er1 >conftest.err
21254 cat conftest.err >&5
21255 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21256 (exit $ac_status); } && {
21257 test -z "$ac_c_werror_flag" ||
21258 test ! -s conftest.err
21259 } && test -s conftest$ac_exeext && {
21260 test "$cross_compiling" = yes ||
21261 $as_test_x conftest$ac_exeext
21263 ac_cv_lib_intl_strftime=yes
21265 $as_echo "$as_me: failed program was
:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21268 ac_cv_lib_intl_strftime=no
21271 rm -rf conftest.dSYM
21272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21273 conftest$ac_exeext conftest.$ac_ext
21274 LIBS=$ac_check_lib_save_LIBS
21276 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
21277 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21278 if test $ac_cv_lib_intl_strftime = yes; then
21279 cat >>confdefs.h <<\_ACEOF
21280 #define HAVE_STRFTIME 1
21283 LIBS="-lintl $LIBS"
21292 for ac_func in grantpt
21294 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21295 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21296 $as_echo_n "checking
for $ac_func...
" >&6; }
21297 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21298 $as_echo_n "(cached
) " >&6
21300 cat >conftest.$ac_ext <<_ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h. */
21306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21308 #define $ac_func innocuous_$ac_func
21310 /* System header to define __stub macros and hopefully few prototypes,
21311 which can conflict with char $ac_func (); below.
21312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21313 <limits.h> exists even on freestanding compilers. */
21316 # include <limits.h>
21318 # include <assert.h>
21323 /* Override any GCC internal prototype to avoid an error.
21324 Use char because int might match the return type of a GCC
21325 builtin and then its argument prototype would still apply. */
21330 /* The GNU C library defines this for functions which it implements
21331 to always fail with ENOSYS. Some functions are actually named
21332 something starting with __ and the normal name is an alias. */
21333 #if defined __stub_$ac_func || defined __stub___$ac_func
21340 return $ac_func ();
21345 rm -f conftest.$ac_objext conftest$ac_exeext
21346 if { (ac_try="$ac_link"
21347 case "(($ac_try" in
21348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349 *) ac_try_echo=$ac_try;;
21351 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21352 $as_echo "$ac_try_echo") >&5
21353 (eval "$ac_link") 2>conftest.er1
21355 grep -v '^ *+' conftest.er1 >conftest.err
21357 cat conftest.err >&5
21358 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21359 (exit $ac_status); } && {
21360 test -z "$ac_c_werror_flag" ||
21361 test ! -s conftest.err
21362 } && test -s conftest$ac_exeext && {
21363 test "$cross_compiling" = yes ||
21364 $as_test_x conftest$ac_exeext
21366 eval "$as_ac_var=yes"
21368 $as_echo "$as_me: failed program was
:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21371 eval "$as_ac_var=no
"
21374 rm -rf conftest.dSYM
21375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21376 conftest$ac_exeext conftest.$ac_ext
21378 ac_res=`eval 'as_val=${'$as_ac_var'}
21379 $as_echo "$as_val"'`
21380 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21381 $as_echo "$ac_res" >&6; }
21382 if test `eval 'as_val=${'$as_ac_var'}
21383 $as_echo "$as_val"'` = yes; then
21384 cat >>confdefs.h <<_ACEOF
21385 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21392 # PTY-related GNU extensions.
21394 for ac_func in getpt
21396 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21397 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21398 $as_echo_n "checking
for $ac_func...
" >&6; }
21399 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21400 $as_echo_n "(cached
) " >&6
21402 cat >conftest.$ac_ext <<_ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h. */
21408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21410 #define $ac_func innocuous_$ac_func
21412 /* System header to define __stub macros and hopefully few prototypes,
21413 which can conflict with char $ac_func (); below.
21414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21415 <limits.h> exists even on freestanding compilers. */
21418 # include <limits.h>
21420 # include <assert.h>
21425 /* Override any GCC internal prototype to avoid an error.
21426 Use char because int might match the return type of a GCC
21427 builtin and then its argument prototype would still apply. */
21432 /* The GNU C library defines this for functions which it implements
21433 to always fail with ENOSYS. Some functions are actually named
21434 something starting with __ and the normal name is an alias. */
21435 #if defined __stub_$ac_func || defined __stub___$ac_func
21442 return $ac_func ();
21447 rm -f conftest.$ac_objext conftest$ac_exeext
21448 if { (ac_try="$ac_link"
21449 case "(($ac_try" in
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21453 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21454 $as_echo "$ac_try_echo") >&5
21455 (eval "$ac_link") 2>conftest.er1
21457 grep -v '^ *+' conftest.er1 >conftest.err
21459 cat conftest.err >&5
21460 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21461 (exit $ac_status); } && {
21462 test -z "$ac_c_werror_flag" ||
21463 test ! -s conftest.err
21464 } && test -s conftest$ac_exeext && {
21465 test "$cross_compiling" = yes ||
21466 $as_test_x conftest$ac_exeext
21468 eval "$as_ac_var=yes"
21470 $as_echo "$as_me: failed program was
:" >&5
21471 sed 's/^/| /' conftest.$ac_ext >&5
21473 eval "$as_ac_var=no
"
21476 rm -rf conftest.dSYM
21477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21478 conftest$ac_exeext conftest.$ac_ext
21480 ac_res=`eval 'as_val=${'$as_ac_var'}
21481 $as_echo "$as_val"'`
21482 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21483 $as_echo "$ac_res" >&6; }
21484 if test `eval 'as_val=${'$as_ac_var'}
21485 $as_echo "$as_val"'` = yes; then
21486 cat >>confdefs.h <<_ACEOF
21487 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21494 # Check this now, so that we will NOT find the above functions in ncurses.
21495 # That is because we have not set up to link ncurses in lib-src.
21496 # It's better to believe a function is not available
21497 # than to expect to find it in ncurses.
21498 # Also we need tputs and friends to be able to build at all.
21499 have_tputs_et_al=true
21500 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21501 $as_echo_n "checking
for library containing tputs...
" >&6; }
21502 if test "${ac_cv_search_tputs+set}" = set; then
21503 $as_echo_n "(cached
) " >&6
21505 ac_func_search_save_LIBS=$LIBS
21506 cat >conftest.$ac_ext <<_ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21513 /* Override any GCC internal prototype to avoid an error.
21514 Use char because int might match the return type of a GCC
21515 builtin and then its argument prototype would still apply. */
21528 for ac_lib in '' ncurses terminfo termcap; do
21529 if test -z "$ac_lib"; then
21530 ac_res="none required
"
21533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21535 rm -f conftest.$ac_objext conftest$ac_exeext
21536 if { (ac_try="$ac_link"
21537 case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21541 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21542 $as_echo "$ac_try_echo") >&5
21543 (eval "$ac_link") 2>conftest.er1
21545 grep -v '^ *+' conftest.er1 >conftest.err
21547 cat conftest.err >&5
21548 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21549 (exit $ac_status); } && {
21550 test -z "$ac_c_werror_flag" ||
21551 test ! -s conftest.err
21552 } && test -s conftest$ac_exeext && {
21553 test "$cross_compiling" = yes ||
21554 $as_test_x conftest$ac_exeext
21556 ac_cv_search_tputs=$ac_res
21558 $as_echo "$as_me: failed program was
:" >&5
21559 sed 's/^/| /' conftest.$ac_ext >&5
21564 rm -rf conftest.dSYM
21565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21567 if test "${ac_cv_search_tputs+set}" = set; then
21571 if test "${ac_cv_search_tputs+set}" = set; then
21574 ac_cv_search_tputs=no
21576 rm conftest.$ac_ext
21577 LIBS=$ac_func_search_save_LIBS
21579 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21580 $as_echo "$ac_cv_search_tputs" >&6; }
21581 ac_res=$ac_cv_search_tputs
21582 if test "$ac_res" != no; then
21583 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21586 have_tputs_et_al=false
21589 if test "$have_tputs_et_al" != true; then
21590 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21591 Maybe some development libraries/packages are missing? Try installing
21592 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21593 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21594 Maybe some development libraries
/packages are missing? Try installing
21595 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21596 { (exit 1); exit 1; }; }
21598 # Must define this when any termcap library is found.
21600 cat >>confdefs.h <<\_ACEOF
21601 #define HAVE_LIBNCURSES 1
21604 ## FIXME This was the cpp logic, but I am not sure it is right.
21605 ## The above test has not necessarily found libncurses.
21606 HAVE_LIBNCURSES=yes
21608 ## Use terminfo instead of termcap?
21609 ## Note only system files NOT using terminfo are:
21610 ## freebsd < 40000, ms-w32, msdos, netbsd, and
21611 ## darwin|gnu without ncurses.
21615 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21616 ## hpux10-20: Use the system provided termcap(3) library.
21617 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21618 ## is necessary. Otherwise Emacs dumps core when run -nw.
21619 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
21621 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21622 ## The ncurses library has been moved out of the System framework in
21623 ## Mac OS X 10.2. So if configure detects it, set the command-line
21624 ## option to use it.
21626 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21627 if test "x
$HAVE_LIBNCURSES" = "xyes
"; then
21629 LIBS_TERMCAP="-lncurses"
21634 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo
" >&5
21635 $as_echo_n "checking whether FreeBSD is new enough to use terminfo...
" >&6; }
21636 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21637 $as_echo_n "(cached
) " >&6
21639 cat >conftest.$ac_ext <<_ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21645 #include <osreldate.h>
21649 #if __FreeBSD_version < 400000
21657 rm -f conftest.$ac_objext conftest$ac_exeext
21658 if { (ac_try="$ac_link"
21659 case "(($ac_try" in
21660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661 *) ac_try_echo=$ac_try;;
21663 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21664 $as_echo "$ac_try_echo") >&5
21665 (eval "$ac_link") 2>conftest.er1
21667 grep -v '^ *+' conftest.er1 >conftest.err
21669 cat conftest.err >&5
21670 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21671 (exit $ac_status); } && {
21672 test -z "$ac_c_werror_flag" ||
21673 test ! -s conftest.err
21674 } && test -s conftest$ac_exeext && {
21675 test "$cross_compiling" = yes ||
21676 $as_test_x conftest$ac_exeext
21678 emacs_cv_freebsd_terminfo=yes
21680 $as_echo "$as_me: failed program was
:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21683 emacs_cv_freebsd_terminfo=no
21686 rm -rf conftest.dSYM
21687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21688 conftest$ac_exeext conftest.$ac_ext
21692 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_freebsd_terminfo" >&5
21693 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21695 if test $emacs_cv_freebsd_terminfo = yes; then
21697 LIBS_TERMCAP="-lncurses"
21699 LIBS_TERMCAP="-ltermcap"
21706 ## hpux: Make sure we get select from libc rather than from libcurses
21707 ## because libcurses on HPUX 10.10 has a broken version of select.
21708 ## We used to use -lc -lcurses, but this may be cleaner.
21709 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
21711 openbsd) LIBS_TERMCAP="-lncurses" ;;
21713 ## Must use system termcap, if we use any termcap. It does special things.
21714 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21717 TERMCAP_OBJ=tparam.o
21718 if test $TERMINFO = yes; then
21720 cat >>confdefs.h <<\_ACEOF
21725 ## Default used to be -ltermcap. Add a case above if need something else.
21726 test "x
$LIBS_TERMCAP" = "x
" && LIBS_TERMCAP="-lcurses"
21728 TERMCAP_OBJ=terminfo.o
21734 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21736 cat >conftest.$ac_ext <<_ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h. */
21742 #include <netinet/in.h>
21743 #include <arpa/nameser.h>
21744 #include <resolv.h>
21753 rm -f conftest.$ac_objext conftest$ac_exeext
21754 if { (ac_try="$ac_link"
21755 case "(($ac_try" in
21756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21757 *) ac_try_echo=$ac_try;;
21759 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21760 $as_echo "$ac_try_echo") >&5
21761 (eval "$ac_link") 2>conftest.er1
21763 grep -v '^ *+' conftest.er1 >conftest.err
21765 cat conftest.err >&5
21766 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21767 (exit $ac_status); } && {
21768 test -z "$ac_c_werror_flag" ||
21769 test ! -s conftest.err
21770 } && test -s conftest$ac_exeext && {
21771 test "$cross_compiling" = yes ||
21772 $as_test_x conftest$ac_exeext
21776 $as_echo "$as_me: failed program was
:" >&5
21777 sed 's/^/| /' conftest.$ac_ext >&5
21782 rm -rf conftest.dSYM
21783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21784 conftest$ac_exeext conftest.$ac_ext
21785 if test "$have_res_init" = no; then
21787 LIBS="$LIBS -lresolv"
21788 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21789 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21790 cat >conftest.$ac_ext <<_ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h. */
21796 #include <netinet/in.h>
21797 #include <arpa/nameser.h>
21798 #include <resolv.h>
21807 rm -f conftest.$ac_objext conftest$ac_exeext
21808 if { (ac_try="$ac_link"
21809 case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21813 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21814 $as_echo "$ac_try_echo") >&5
21815 (eval "$ac_link") 2>conftest.er1
21817 grep -v '^ *+' conftest.er1 >conftest.err
21819 cat conftest.err >&5
21820 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21821 (exit $ac_status); } && {
21822 test -z "$ac_c_werror_flag" ||
21823 test ! -s conftest.err
21824 } && test -s conftest$ac_exeext && {
21825 test "$cross_compiling" = yes ||
21826 $as_test_x conftest$ac_exeext
21830 $as_echo "$as_me: failed program was
:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21836 rm -rf conftest.dSYM
21837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21838 conftest$ac_exeext conftest.$ac_ext
21839 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21840 $as_echo "$have_res_init" >&6; }
21841 if test "$have_res_init" = yes ; then
21847 if test "$have_res_init" = yes; then
21849 cat >>confdefs.h <<\_ACEOF
21850 #define HAVE_RES_INIT 1
21855 # Do we need the Hesiod library to provide the support routines?
21857 if test "$with_hesiod" != no ; then
21858 # Don't set $LIBS here -- see comments above. FIXME which comments?
21859 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21860 $as_echo_n "checking
for res_send...
" >&6; }
21861 if test "${ac_cv_func_res_send+set}" = set; then
21862 $as_echo_n "(cached
) " >&6
21864 cat >conftest.$ac_ext <<_ACEOF
21867 cat confdefs.h >>conftest.$ac_ext
21868 cat >>conftest.$ac_ext <<_ACEOF
21869 /* end confdefs.h. */
21870 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21872 #define res_send innocuous_res_send
21874 /* System header to define __stub macros and hopefully few prototypes,
21875 which can conflict with char res_send (); below.
21876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21877 <limits.h> exists even on freestanding compilers. */
21880 # include <limits.h>
21882 # include <assert.h>
21887 /* Override any GCC internal prototype to avoid an error.
21888 Use char because int might match the return type of a GCC
21889 builtin and then its argument prototype would still apply. */
21894 /* The GNU C library defines this for functions which it implements
21895 to always fail with ENOSYS. Some functions are actually named
21896 something starting with __ and the normal name is an alias. */
21897 #if defined __stub_res_send || defined __stub___res_send
21904 return res_send ();
21909 rm -f conftest.$ac_objext conftest$ac_exeext
21910 if { (ac_try="$ac_link"
21911 case "(($ac_try" in
21912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21913 *) ac_try_echo=$ac_try;;
21915 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21916 $as_echo "$ac_try_echo") >&5
21917 (eval "$ac_link") 2>conftest.er1
21919 grep -v '^ *+' conftest.er1 >conftest.err
21921 cat conftest.err >&5
21922 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21923 (exit $ac_status); } && {
21924 test -z "$ac_c_werror_flag" ||
21925 test ! -s conftest.err
21926 } && test -s conftest$ac_exeext && {
21927 test "$cross_compiling" = yes ||
21928 $as_test_x conftest$ac_exeext
21930 ac_cv_func_res_send=yes
21932 $as_echo "$as_me: failed program was
:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21935 ac_cv_func_res_send=no
21938 rm -rf conftest.dSYM
21939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21940 conftest$ac_exeext conftest.$ac_ext
21942 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21943 $as_echo "$ac_cv_func_res_send" >&6; }
21944 if test $ac_cv_func_res_send = yes; then
21947 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21948 $as_echo_n "checking
for __res_send...
" >&6; }
21949 if test "${ac_cv_func___res_send+set}" = set; then
21950 $as_echo_n "(cached
) " >&6
21952 cat >conftest.$ac_ext <<_ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21960 #define __res_send innocuous___res_send
21962 /* System header to define __stub macros and hopefully few prototypes,
21963 which can conflict with char __res_send (); below.
21964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21965 <limits.h> exists even on freestanding compilers. */
21968 # include <limits.h>
21970 # include <assert.h>
21975 /* Override any GCC internal prototype to avoid an error.
21976 Use char because int might match the return type of a GCC
21977 builtin and then its argument prototype would still apply. */
21981 char __res_send ();
21982 /* The GNU C library defines this for functions which it implements
21983 to always fail with ENOSYS. Some functions are actually named
21984 something starting with __ and the normal name is an alias. */
21985 #if defined __stub___res_send || defined __stub_____res_send
21992 return __res_send ();
21997 rm -f conftest.$ac_objext conftest$ac_exeext
21998 if { (ac_try="$ac_link"
21999 case "(($ac_try" in
22000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001 *) ac_try_echo=$ac_try;;
22003 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22004 $as_echo "$ac_try_echo") >&5
22005 (eval "$ac_link") 2>conftest.er1
22007 grep -v '^ *+' conftest.er1 >conftest.err
22009 cat conftest.err >&5
22010 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22011 (exit $ac_status); } && {
22012 test -z "$ac_c_werror_flag" ||
22013 test ! -s conftest.err
22014 } && test -s conftest$ac_exeext && {
22015 test "$cross_compiling" = yes ||
22016 $as_test_x conftest$ac_exeext
22018 ac_cv_func___res_send=yes
22020 $as_echo "$as_me: failed program was
:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22023 ac_cv_func___res_send=no
22026 rm -rf conftest.dSYM
22027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22028 conftest$ac_exeext conftest.$ac_ext
22030 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
22031 $as_echo "$ac_cv_func___res_send" >&6; }
22032 if test $ac_cv_func___res_send = yes; then
22035 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
22036 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
22037 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22038 $as_echo_n "(cached
) " >&6
22040 ac_check_lib_save_LIBS=$LIBS
22041 LIBS="-lresolv $LIBS"
22042 cat >conftest.$ac_ext <<_ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h. */
22049 /* Override any GCC internal prototype to avoid an error.
22050 Use char because int might match the return type of a GCC
22051 builtin and then its argument prototype would still apply. */
22059 return res_send ();
22064 rm -f conftest.$ac_objext conftest$ac_exeext
22065 if { (ac_try="$ac_link"
22066 case "(($ac_try" in
22067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068 *) ac_try_echo=$ac_try;;
22070 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22071 $as_echo "$ac_try_echo") >&5
22072 (eval "$ac_link") 2>conftest.er1
22074 grep -v '^ *+' conftest.er1 >conftest.err
22076 cat conftest.err >&5
22077 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22078 (exit $ac_status); } && {
22079 test -z "$ac_c_werror_flag" ||
22080 test ! -s conftest.err
22081 } && test -s conftest$ac_exeext && {
22082 test "$cross_compiling" = yes ||
22083 $as_test_x conftest$ac_exeext
22085 ac_cv_lib_resolv_res_send=yes
22087 $as_echo "$as_me: failed program was
:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22090 ac_cv_lib_resolv_res_send=no
22093 rm -rf conftest.dSYM
22094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22095 conftest$ac_exeext conftest.$ac_ext
22096 LIBS=$ac_check_lib_save_LIBS
22098 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
22099 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22100 if test $ac_cv_lib_resolv_res_send = yes; then
22103 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
22104 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
22105 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22106 $as_echo_n "(cached
) " >&6
22108 ac_check_lib_save_LIBS=$LIBS
22109 LIBS="-lresolv $LIBS"
22110 cat >conftest.$ac_ext <<_ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h. */
22117 /* Override any GCC internal prototype to avoid an error.
22118 Use char because int might match the return type of a GCC
22119 builtin and then its argument prototype would still apply. */
22123 char __res_send ();
22127 return __res_send ();
22132 rm -f conftest.$ac_objext conftest$ac_exeext
22133 if { (ac_try="$ac_link"
22134 case "(($ac_try" in
22135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136 *) ac_try_echo=$ac_try;;
22138 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22139 $as_echo "$ac_try_echo") >&5
22140 (eval "$ac_link") 2>conftest.er1
22142 grep -v '^ *+' conftest.er1 >conftest.err
22144 cat conftest.err >&5
22145 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22146 (exit $ac_status); } && {
22147 test -z "$ac_c_werror_flag" ||
22148 test ! -s conftest.err
22149 } && test -s conftest$ac_exeext && {
22150 test "$cross_compiling" = yes ||
22151 $as_test_x conftest$ac_exeext
22153 ac_cv_lib_resolv___res_send=yes
22155 $as_echo "$as_me: failed program was
:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22158 ac_cv_lib_resolv___res_send=no
22161 rm -rf conftest.dSYM
22162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22163 conftest$ac_exeext conftest.$ac_ext
22164 LIBS=$ac_check_lib_save_LIBS
22166 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
22167 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22168 if test $ac_cv_lib_resolv___res_send = yes; then
22178 if test "$resolv" = yes ; then
22183 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
22184 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
22185 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22186 $as_echo_n "(cached
) " >&6
22188 cat >conftest.$ac_ext <<_ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22194 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22196 #define hes_getmailhost innocuous_hes_getmailhost
22198 /* System header to define __stub macros and hopefully few prototypes,
22199 which can conflict with char hes_getmailhost (); below.
22200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22201 <limits.h> exists even on freestanding compilers. */
22204 # include <limits.h>
22206 # include <assert.h>
22209 #undef hes_getmailhost
22211 /* Override any GCC internal prototype to avoid an error.
22212 Use char because int might match the return type of a GCC
22213 builtin and then its argument prototype would still apply. */
22217 char hes_getmailhost ();
22218 /* The GNU C library defines this for functions which it implements
22219 to always fail with ENOSYS. Some functions are actually named
22220 something starting with __ and the normal name is an alias. */
22221 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22228 return hes_getmailhost ();
22233 rm -f conftest.$ac_objext conftest$ac_exeext
22234 if { (ac_try="$ac_link"
22235 case "(($ac_try" in
22236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22237 *) ac_try_echo=$ac_try;;
22239 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22240 $as_echo "$ac_try_echo") >&5
22241 (eval "$ac_link") 2>conftest.er1
22243 grep -v '^ *+' conftest.er1 >conftest.err
22245 cat conftest.err >&5
22246 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22247 (exit $ac_status); } && {
22248 test -z "$ac_c_werror_flag" ||
22249 test ! -s conftest.err
22250 } && test -s conftest$ac_exeext && {
22251 test "$cross_compiling" = yes ||
22252 $as_test_x conftest$ac_exeext
22254 ac_cv_func_hes_getmailhost=yes
22256 $as_echo "$as_me: failed program was
:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22259 ac_cv_func_hes_getmailhost=no
22262 rm -rf conftest.dSYM
22263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22264 conftest$ac_exeext conftest.$ac_ext
22266 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
22267 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22268 if test $ac_cv_func_hes_getmailhost = yes; then
22271 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
22272 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
22273 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22274 $as_echo_n "(cached
) " >&6
22276 ac_check_lib_save_LIBS=$LIBS
22277 LIBS="-lhesiod $RESOLVLIB $LIBS"
22278 cat >conftest.$ac_ext <<_ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h. */
22285 /* Override any GCC internal prototype to avoid an error.
22286 Use char because int might match the return type of a GCC
22287 builtin and then its argument prototype would still apply. */
22291 char hes_getmailhost ();
22295 return hes_getmailhost ();
22300 rm -f conftest.$ac_objext conftest$ac_exeext
22301 if { (ac_try="$ac_link"
22302 case "(($ac_try" in
22303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304 *) ac_try_echo=$ac_try;;
22306 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22307 $as_echo "$ac_try_echo") >&5
22308 (eval "$ac_link") 2>conftest.er1
22310 grep -v '^ *+' conftest.er1 >conftest.err
22312 cat conftest.err >&5
22313 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22314 (exit $ac_status); } && {
22315 test -z "$ac_c_werror_flag" ||
22316 test ! -s conftest.err
22317 } && test -s conftest$ac_exeext && {
22318 test "$cross_compiling" = yes ||
22319 $as_test_x conftest$ac_exeext
22321 ac_cv_lib_hesiod_hes_getmailhost=yes
22323 $as_echo "$as_me: failed program was
:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22326 ac_cv_lib_hesiod_hes_getmailhost=no
22329 rm -rf conftest.dSYM
22330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22331 conftest$ac_exeext conftest.$ac_ext
22332 LIBS=$ac_check_lib_save_LIBS
22334 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22335 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22336 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
22345 if test x"$hesiod" = xyes; then
22347 cat >>confdefs.h <<\_ACEOF
22348 #define HAVE_LIBHESIOD 1
22356 # Do we need libresolv (due to res_init or Hesiod)?
22357 if test "$resolv" = yes ; then
22359 cat >>confdefs.h <<\_ACEOF
22360 #define HAVE_LIBRESOLV 1
22369 # These tell us which Kerberos-related libraries to use.
22376 if test "${with_kerberos}" != no; then
22377 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
22378 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
22379 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22380 $as_echo_n "(cached
) " >&6
22382 ac_check_lib_save_LIBS=$LIBS
22383 LIBS="-lcom_err $LIBS"
22384 cat >conftest.$ac_ext <<_ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h. */
22391 /* Override any GCC internal prototype to avoid an error.
22392 Use char because int might match the return type of a GCC
22393 builtin and then its argument prototype would still apply. */
22406 rm -f conftest.$ac_objext conftest$ac_exeext
22407 if { (ac_try="$ac_link"
22408 case "(($ac_try" in
22409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410 *) ac_try_echo=$ac_try;;
22412 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22413 $as_echo "$ac_try_echo") >&5
22414 (eval "$ac_link") 2>conftest.er1
22416 grep -v '^ *+' conftest.er1 >conftest.err
22418 cat conftest.err >&5
22419 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22420 (exit $ac_status); } && {
22421 test -z "$ac_c_werror_flag" ||
22422 test ! -s conftest.err
22423 } && test -s conftest$ac_exeext && {
22424 test "$cross_compiling" = yes ||
22425 $as_test_x conftest$ac_exeext
22427 ac_cv_lib_com_err_com_err=yes
22429 $as_echo "$as_me: failed program was
:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22432 ac_cv_lib_com_err_com_err=no
22435 rm -rf conftest.dSYM
22436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22437 conftest$ac_exeext conftest.$ac_ext
22438 LIBS=$ac_check_lib_save_LIBS
22440 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
22441 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22442 if test $ac_cv_lib_com_err_com_err = yes; then
22448 if test $have_com_err = yes; then
22449 COM_ERRLIB=-lcom_err
22450 LIBS="$COM_ERRLIB $LIBS"
22452 cat >>confdefs.h <<\_ACEOF
22453 #define HAVE_LIBCOM_ERR 1
22457 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
22458 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
22459 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22460 $as_echo_n "(cached
) " >&6
22462 ac_check_lib_save_LIBS=$LIBS
22463 LIBS="-lcrypto $LIBS"
22464 cat >conftest.$ac_ext <<_ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22471 /* Override any GCC internal prototype to avoid an error.
22472 Use char because int might match the return type of a GCC
22473 builtin and then its argument prototype would still apply. */
22477 char mit_des_cbc_encrypt ();
22481 return mit_des_cbc_encrypt ();
22486 rm -f conftest.$ac_objext conftest$ac_exeext
22487 if { (ac_try="$ac_link"
22488 case "(($ac_try" in
22489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490 *) ac_try_echo=$ac_try;;
22492 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22493 $as_echo "$ac_try_echo") >&5
22494 (eval "$ac_link") 2>conftest.er1
22496 grep -v '^ *+' conftest.er1 >conftest.err
22498 cat conftest.err >&5
22499 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22500 (exit $ac_status); } && {
22501 test -z "$ac_c_werror_flag" ||
22502 test ! -s conftest.err
22503 } && test -s conftest$ac_exeext && {
22504 test "$cross_compiling" = yes ||
22505 $as_test_x conftest$ac_exeext
22507 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22509 $as_echo "$as_me: failed program was
:" >&5
22510 sed 's/^/| /' conftest.$ac_ext >&5
22512 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22515 rm -rf conftest.dSYM
22516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22517 conftest$ac_exeext conftest.$ac_ext
22518 LIBS=$ac_check_lib_save_LIBS
22520 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22521 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22522 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22528 if test $have_crypto = yes; then
22530 LIBS="$CRYPTOLIB $LIBS"
22532 cat >>confdefs.h <<\_ACEOF
22533 #define HAVE_LIBCRYPTO 1
22537 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
22538 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
22539 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22540 $as_echo_n "(cached
) " >&6
22542 ac_check_lib_save_LIBS=$LIBS
22543 LIBS="-lk5crypto $LIBS"
22544 cat >conftest.$ac_ext <<_ACEOF
22547 cat confdefs.h >>conftest.$ac_ext
22548 cat >>conftest.$ac_ext <<_ACEOF
22549 /* end confdefs.h. */
22551 /* Override any GCC internal prototype to avoid an error.
22552 Use char because int might match the return type of a GCC
22553 builtin and then its argument prototype would still apply. */
22557 char mit_des_cbc_encrypt ();
22561 return mit_des_cbc_encrypt ();
22566 rm -f conftest.$ac_objext conftest$ac_exeext
22567 if { (ac_try="$ac_link"
22568 case "(($ac_try" in
22569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570 *) ac_try_echo=$ac_try;;
22572 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22573 $as_echo "$ac_try_echo") >&5
22574 (eval "$ac_link") 2>conftest.er1
22576 grep -v '^ *+' conftest.er1 >conftest.err
22578 cat conftest.err >&5
22579 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22580 (exit $ac_status); } && {
22581 test -z "$ac_c_werror_flag" ||
22582 test ! -s conftest.err
22583 } && test -s conftest$ac_exeext && {
22584 test "$cross_compiling" = yes ||
22585 $as_test_x conftest$ac_exeext
22587 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22589 $as_echo "$as_me: failed program was
:" >&5
22590 sed 's/^/| /' conftest.$ac_ext >&5
22592 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22595 rm -rf conftest.dSYM
22596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22597 conftest$ac_exeext conftest.$ac_ext
22598 LIBS=$ac_check_lib_save_LIBS
22600 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22601 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22602 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22608 if test $have_k5crypto = yes; then
22609 CRYPTOLIB=-lk5crypto
22610 LIBS="$CRYPTOLIB $LIBS"
22612 cat >>confdefs.h <<\_ACEOF
22613 #define HAVE_LIBK5CRYPTO 1
22617 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22618 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22619 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22620 $as_echo_n "(cached
) " >&6
22622 ac_check_lib_save_LIBS=$LIBS
22623 LIBS="-lkrb5 $LIBS"
22624 cat >conftest.$ac_ext <<_ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h. */
22631 /* Override any GCC internal prototype to avoid an error.
22632 Use char because int might match the return type of a GCC
22633 builtin and then its argument prototype would still apply. */
22637 char krb5_init_context ();
22641 return krb5_init_context ();
22646 rm -f conftest.$ac_objext conftest$ac_exeext
22647 if { (ac_try="$ac_link"
22648 case "(($ac_try" in
22649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650 *) ac_try_echo=$ac_try;;
22652 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22653 $as_echo "$ac_try_echo") >&5
22654 (eval "$ac_link") 2>conftest.er1
22656 grep -v '^ *+' conftest.er1 >conftest.err
22658 cat conftest.err >&5
22659 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22660 (exit $ac_status); } && {
22661 test -z "$ac_c_werror_flag" ||
22662 test ! -s conftest.err
22663 } && test -s conftest$ac_exeext && {
22664 test "$cross_compiling" = yes ||
22665 $as_test_x conftest$ac_exeext
22667 ac_cv_lib_krb5_krb5_init_context=yes
22669 $as_echo "$as_me: failed program was
:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22672 ac_cv_lib_krb5_krb5_init_context=no
22675 rm -rf conftest.dSYM
22676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22677 conftest$ac_exeext conftest.$ac_ext
22678 LIBS=$ac_check_lib_save_LIBS
22680 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22681 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22682 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22688 if test $have_krb5=yes; then
22690 LIBS="$KRB5LIB $LIBS"
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_LIBKRB5 1
22697 if test "${with_kerberos5}" = no; then
22698 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22699 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22700 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22701 $as_echo_n "(cached
) " >&6
22703 ac_check_lib_save_LIBS=$LIBS
22704 LIBS="-ldes425 $LIBS"
22705 cat >conftest.$ac_ext <<_ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22712 /* Override any GCC internal prototype to avoid an error.
22713 Use char because int might match the return type of a GCC
22714 builtin and then its argument prototype would still apply. */
22718 char des_cbc_encrypt ();
22722 return des_cbc_encrypt ();
22727 rm -f conftest.$ac_objext conftest$ac_exeext
22728 if { (ac_try="$ac_link"
22729 case "(($ac_try" in
22730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731 *) ac_try_echo=$ac_try;;
22733 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22734 $as_echo "$ac_try_echo") >&5
22735 (eval "$ac_link") 2>conftest.er1
22737 grep -v '^ *+' conftest.er1 >conftest.err
22739 cat conftest.err >&5
22740 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22741 (exit $ac_status); } && {
22742 test -z "$ac_c_werror_flag" ||
22743 test ! -s conftest.err
22744 } && test -s conftest$ac_exeext && {
22745 test "$cross_compiling" = yes ||
22746 $as_test_x conftest$ac_exeext
22748 ac_cv_lib_des425_des_cbc_encrypt=yes
22750 $as_echo "$as_me: failed program was
:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22753 ac_cv_lib_des425_des_cbc_encrypt=no
22756 rm -rf conftest.dSYM
22757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22758 conftest$ac_exeext conftest.$ac_ext
22759 LIBS=$ac_check_lib_save_LIBS
22761 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22762 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22763 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22769 if test $have_des425 = yes; then
22771 LIBS="$DESLIB $LIBS"
22773 cat >>confdefs.h <<\_ACEOF
22774 #define HAVE_LIBDES425 1
22778 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22779 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22780 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22781 $as_echo_n "(cached
) " >&6
22783 ac_check_lib_save_LIBS=$LIBS
22785 cat >conftest.$ac_ext <<_ACEOF
22788 cat confdefs.h >>conftest.$ac_ext
22789 cat >>conftest.$ac_ext <<_ACEOF
22790 /* end confdefs.h. */
22792 /* Override any GCC internal prototype to avoid an error.
22793 Use char because int might match the return type of a GCC
22794 builtin and then its argument prototype would still apply. */
22798 char des_cbc_encrypt ();
22802 return des_cbc_encrypt ();
22807 rm -f conftest.$ac_objext conftest$ac_exeext
22808 if { (ac_try="$ac_link"
22809 case "(($ac_try" in
22810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22811 *) ac_try_echo=$ac_try;;
22813 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22814 $as_echo "$ac_try_echo") >&5
22815 (eval "$ac_link") 2>conftest.er1
22817 grep -v '^ *+' conftest.er1 >conftest.err
22819 cat conftest.err >&5
22820 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22821 (exit $ac_status); } && {
22822 test -z "$ac_c_werror_flag" ||
22823 test ! -s conftest.err
22824 } && test -s conftest$ac_exeext && {
22825 test "$cross_compiling" = yes ||
22826 $as_test_x conftest$ac_exeext
22828 ac_cv_lib_des_des_cbc_encrypt=yes
22830 $as_echo "$as_me: failed program was
:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22833 ac_cv_lib_des_des_cbc_encrypt=no
22836 rm -rf conftest.dSYM
22837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22838 conftest$ac_exeext conftest.$ac_ext
22839 LIBS=$ac_check_lib_save_LIBS
22841 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22842 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22843 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22849 if test $have_des = yes; then
22851 LIBS="$DESLIB $LIBS"
22853 cat >>confdefs.h <<\_ACEOF
22854 #define HAVE_LIBDES 1
22859 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22860 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22861 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22862 $as_echo_n "(cached
) " >&6
22864 ac_check_lib_save_LIBS=$LIBS
22865 LIBS="-lkrb4 $LIBS"
22866 cat >conftest.$ac_ext <<_ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h. */
22873 /* Override any GCC internal prototype to avoid an error.
22874 Use char because int might match the return type of a GCC
22875 builtin and then its argument prototype would still apply. */
22879 char krb_get_cred ();
22883 return krb_get_cred ();
22888 rm -f conftest.$ac_objext conftest$ac_exeext
22889 if { (ac_try="$ac_link"
22890 case "(($ac_try" in
22891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22892 *) ac_try_echo=$ac_try;;
22894 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22895 $as_echo "$ac_try_echo") >&5
22896 (eval "$ac_link") 2>conftest.er1
22898 grep -v '^ *+' conftest.er1 >conftest.err
22900 cat conftest.err >&5
22901 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22902 (exit $ac_status); } && {
22903 test -z "$ac_c_werror_flag" ||
22904 test ! -s conftest.err
22905 } && test -s conftest$ac_exeext && {
22906 test "$cross_compiling" = yes ||
22907 $as_test_x conftest$ac_exeext
22909 ac_cv_lib_krb4_krb_get_cred=yes
22911 $as_echo "$as_me: failed program was
:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22914 ac_cv_lib_krb4_krb_get_cred=no
22917 rm -rf conftest.dSYM
22918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22919 conftest$ac_exeext conftest.$ac_ext
22920 LIBS=$ac_check_lib_save_LIBS
22922 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22923 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22924 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22930 if test $have_krb4 = yes; then
22932 LIBS="$KRB4LIB $LIBS"
22934 cat >>confdefs.h <<\_ACEOF
22935 #define HAVE_LIBKRB4 1
22939 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22940 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22941 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22942 $as_echo_n "(cached
) " >&6
22944 ac_check_lib_save_LIBS=$LIBS
22946 cat >conftest.$ac_ext <<_ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h. */
22953 /* Override any GCC internal prototype to avoid an error.
22954 Use char because int might match the return type of a GCC
22955 builtin and then its argument prototype would still apply. */
22959 char krb_get_cred ();
22963 return krb_get_cred ();
22968 rm -f conftest.$ac_objext conftest$ac_exeext
22969 if { (ac_try="$ac_link"
22970 case "(($ac_try" in
22971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22972 *) ac_try_echo=$ac_try;;
22974 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22975 $as_echo "$ac_try_echo") >&5
22976 (eval "$ac_link") 2>conftest.er1
22978 grep -v '^ *+' conftest.er1 >conftest.err
22980 cat conftest.err >&5
22981 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22982 (exit $ac_status); } && {
22983 test -z "$ac_c_werror_flag" ||
22984 test ! -s conftest.err
22985 } && test -s conftest$ac_exeext && {
22986 test "$cross_compiling" = yes ||
22987 $as_test_x conftest$ac_exeext
22989 ac_cv_lib_krb_krb_get_cred=yes
22991 $as_echo "$as_me: failed program was
:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22994 ac_cv_lib_krb_krb_get_cred=no
22997 rm -rf conftest.dSYM
22998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22999 conftest$ac_exeext conftest.$ac_ext
23000 LIBS=$ac_check_lib_save_LIBS
23002 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
23003 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23004 if test $ac_cv_lib_krb_krb_get_cred = yes; then
23010 if test $have_krb = yes; then
23012 LIBS="$KRB4LIB $LIBS"
23014 cat >>confdefs.h <<\_ACEOF
23015 #define HAVE_LIBKRB 1
23022 if test "${with_kerberos5}" != no; then
23024 for ac_header in krb5.h
23026 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23027 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23028 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23029 $as_echo_n "checking
for $ac_header...
" >&6; }
23030 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23031 $as_echo_n "(cached
) " >&6
23033 ac_res=`eval 'as_val=${'$as_ac_Header'}
23034 $as_echo "$as_val"'`
23035 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23036 $as_echo "$ac_res" >&6; }
23038 # Is the header compilable?
23039 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23040 $as_echo_n "checking
$ac_header usability...
" >&6; }
23041 cat >conftest.$ac_ext <<_ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23047 $ac_includes_default
23048 #include <$ac_header>
23050 rm -f conftest.$ac_objext
23051 if { (ac_try="$ac_compile"
23052 case "(($ac_try" in
23053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054 *) ac_try_echo=$ac_try;;
23056 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23057 $as_echo "$ac_try_echo") >&5
23058 (eval "$ac_compile") 2>conftest.er1
23060 grep -v '^ *+' conftest.er1 >conftest.err
23062 cat conftest.err >&5
23063 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23064 (exit $ac_status); } && {
23065 test -z "$ac_c_werror_flag" ||
23066 test ! -s conftest.err
23067 } && test -s conftest.$ac_objext; then
23068 ac_header_compiler=yes
23070 $as_echo "$as_me: failed program was
:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23073 ac_header_compiler=no
23076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23077 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23078 $as_echo "$ac_header_compiler" >&6; }
23080 # Is the header present?
23081 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23082 $as_echo_n "checking
$ac_header presence...
" >&6; }
23083 cat >conftest.$ac_ext <<_ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h. */
23089 #include <$ac_header>
23091 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23092 case "(($ac_try" in
23093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23094 *) ac_try_echo=$ac_try;;
23096 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23097 $as_echo "$ac_try_echo") >&5
23098 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23100 grep -v '^ *+' conftest.er1 >conftest.err
23102 cat conftest.err >&5
23103 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23104 (exit $ac_status); } >/dev/null && {
23105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23106 test ! -s conftest.err
23108 ac_header_preproc=yes
23110 $as_echo "$as_me: failed program was
:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23113 ac_header_preproc=no
23116 rm -f conftest.err conftest.$ac_ext
23117 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23118 $as_echo "$ac_header_preproc" >&6; }
23120 # So? What about this header?
23121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23123 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23124 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23125 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23127 ac_header_preproc=yes
23130 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23131 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23132 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23133 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23134 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23135 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23136 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23137 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23138 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23140 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23141 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23145 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23146 $as_echo_n "checking
for $ac_header...
" >&6; }
23147 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23148 $as_echo_n "(cached
) " >&6
23150 eval "$as_ac_Header=\
$ac_header_preproc"
23152 ac_res=`eval 'as_val=${'$as_ac_Header'}
23153 $as_echo "$as_val"'`
23154 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23155 $as_echo "$ac_res" >&6; }
23158 if test `eval 'as_val=${'$as_ac_Header'}
23159 $as_echo "$as_val"'` = yes; then
23160 cat >>confdefs.h <<_ACEOF
23161 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23163 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
23164 $as_echo_n "checking
for krb5_error.text...
" >&6; }
23165 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23166 $as_echo_n "(cached
) " >&6
23168 cat >conftest.$ac_ext <<_ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h. */
23179 static krb5_error ac_aggr;
23186 rm -f conftest.$ac_objext
23187 if { (ac_try="$ac_compile"
23188 case "(($ac_try" in
23189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23190 *) ac_try_echo=$ac_try;;
23192 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23193 $as_echo "$ac_try_echo") >&5
23194 (eval "$ac_compile") 2>conftest.er1
23196 grep -v '^ *+' conftest.er1 >conftest.err
23198 cat conftest.err >&5
23199 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23200 (exit $ac_status); } && {
23201 test -z "$ac_c_werror_flag" ||
23202 test ! -s conftest.err
23203 } && test -s conftest.$ac_objext; then
23204 ac_cv_member_krb5_error_text=yes
23206 $as_echo "$as_me: failed program was
:" >&5
23207 sed 's/^/| /' conftest.$ac_ext >&5
23209 cat >conftest.$ac_ext <<_ACEOF
23212 cat confdefs.h >>conftest.$ac_ext
23213 cat >>conftest.$ac_ext <<_ACEOF
23214 /* end confdefs.h. */
23220 static krb5_error ac_aggr;
23221 if (sizeof ac_aggr.text)
23227 rm -f conftest.$ac_objext
23228 if { (ac_try="$ac_compile"
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_compile") 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); } && {
23242 test -z "$ac_c_werror_flag" ||
23243 test ! -s conftest.err
23244 } && test -s conftest.$ac_objext; then
23245 ac_cv_member_krb5_error_text=yes
23247 $as_echo "$as_me: failed program was
:" >&5
23248 sed 's/^/| /' conftest.$ac_ext >&5
23250 ac_cv_member_krb5_error_text=no
23253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23258 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
23259 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23260 if test $ac_cv_member_krb5_error_text = yes; then
23262 cat >>confdefs.h <<_ACEOF
23263 #define HAVE_KRB5_ERROR_TEXT 1
23268 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
23269 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
23270 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23271 $as_echo_n "(cached
) " >&6
23273 cat >conftest.$ac_ext <<_ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h. */
23284 static krb5_error ac_aggr;
23285 if (ac_aggr.e_text)
23291 rm -f conftest.$ac_objext
23292 if { (ac_try="$ac_compile"
23293 case "(($ac_try" in
23294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295 *) ac_try_echo=$ac_try;;
23297 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23298 $as_echo "$ac_try_echo") >&5
23299 (eval "$ac_compile") 2>conftest.er1
23301 grep -v '^ *+' conftest.er1 >conftest.err
23303 cat conftest.err >&5
23304 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23305 (exit $ac_status); } && {
23306 test -z "$ac_c_werror_flag" ||
23307 test ! -s conftest.err
23308 } && test -s conftest.$ac_objext; then
23309 ac_cv_member_krb5_error_e_text=yes
23311 $as_echo "$as_me: failed program was
:" >&5
23312 sed 's/^/| /' conftest.$ac_ext >&5
23314 cat >conftest.$ac_ext <<_ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23325 static krb5_error ac_aggr;
23326 if (sizeof ac_aggr.e_text)
23332 rm -f conftest.$ac_objext
23333 if { (ac_try="$ac_compile"
23334 case "(($ac_try" in
23335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336 *) ac_try_echo=$ac_try;;
23338 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23339 $as_echo "$ac_try_echo") >&5
23340 (eval "$ac_compile") 2>conftest.er1
23342 grep -v '^ *+' conftest.er1 >conftest.err
23344 cat conftest.err >&5
23345 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23346 (exit $ac_status); } && {
23347 test -z "$ac_c_werror_flag" ||
23348 test ! -s conftest.err
23349 } && test -s conftest.$ac_objext; then
23350 ac_cv_member_krb5_error_e_text=yes
23352 $as_echo "$as_me: failed program was
:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23355 ac_cv_member_krb5_error_e_text=no
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
23364 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23365 if test $ac_cv_member_krb5_error_e_text = yes; then
23367 cat >>confdefs.h <<_ACEOF
23368 #define HAVE_KRB5_ERROR_E_TEXT 1
23380 for ac_header in des.h
23382 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23383 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23384 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23385 $as_echo_n "checking
for $ac_header...
" >&6; }
23386 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23387 $as_echo_n "(cached
) " >&6
23389 ac_res=`eval 'as_val=${'$as_ac_Header'}
23390 $as_echo "$as_val"'`
23391 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23392 $as_echo "$ac_res" >&6; }
23394 # Is the header compilable?
23395 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23396 $as_echo_n "checking
$ac_header usability...
" >&6; }
23397 cat >conftest.$ac_ext <<_ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h. */
23403 $ac_includes_default
23404 #include <$ac_header>
23406 rm -f conftest.$ac_objext
23407 if { (ac_try="$ac_compile"
23408 case "(($ac_try" in
23409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410 *) ac_try_echo=$ac_try;;
23412 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23413 $as_echo "$ac_try_echo") >&5
23414 (eval "$ac_compile") 2>conftest.er1
23416 grep -v '^ *+' conftest.er1 >conftest.err
23418 cat conftest.err >&5
23419 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23420 (exit $ac_status); } && {
23421 test -z "$ac_c_werror_flag" ||
23422 test ! -s conftest.err
23423 } && test -s conftest.$ac_objext; then
23424 ac_header_compiler=yes
23426 $as_echo "$as_me: failed program was
:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23429 ac_header_compiler=no
23432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23433 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23434 $as_echo "$ac_header_compiler" >&6; }
23436 # Is the header present?
23437 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23438 $as_echo_n "checking
$ac_header presence...
" >&6; }
23439 cat >conftest.$ac_ext <<_ACEOF
23442 cat confdefs.h >>conftest.$ac_ext
23443 cat >>conftest.$ac_ext <<_ACEOF
23444 /* end confdefs.h. */
23445 #include <$ac_header>
23447 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23448 case "(($ac_try" in
23449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450 *) ac_try_echo=$ac_try;;
23452 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23453 $as_echo "$ac_try_echo") >&5
23454 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23456 grep -v '^ *+' conftest.er1 >conftest.err
23458 cat conftest.err >&5
23459 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23460 (exit $ac_status); } >/dev/null && {
23461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23462 test ! -s conftest.err
23464 ac_header_preproc=yes
23466 $as_echo "$as_me: failed program was
:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23469 ac_header_preproc=no
23472 rm -f conftest.err conftest.$ac_ext
23473 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23474 $as_echo "$ac_header_preproc" >&6; }
23476 # So? What about this header?
23477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23479 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23480 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23481 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23482 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23483 ac_header_preproc=yes
23486 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23487 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23488 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23489 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23490 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23491 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23492 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23493 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23494 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23495 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23496 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23497 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23501 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23502 $as_echo_n "checking
for $ac_header...
" >&6; }
23503 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23504 $as_echo_n "(cached
) " >&6
23506 eval "$as_ac_Header=\
$ac_header_preproc"
23508 ac_res=`eval 'as_val=${'$as_ac_Header'}
23509 $as_echo "$as_val"'`
23510 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23511 $as_echo "$ac_res" >&6; }
23514 if test `eval 'as_val=${'$as_ac_Header'}
23515 $as_echo "$as_val"'` = yes; then
23516 cat >>confdefs.h <<_ACEOF
23517 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23522 for ac_header in kerberosIV/des.h
23524 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23525 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23526 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23527 $as_echo_n "checking
for $ac_header...
" >&6; }
23528 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23529 $as_echo_n "(cached
) " >&6
23531 ac_res=`eval 'as_val=${'$as_ac_Header'}
23532 $as_echo "$as_val"'`
23533 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23534 $as_echo "$ac_res" >&6; }
23536 # Is the header compilable?
23537 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23538 $as_echo_n "checking
$ac_header usability...
" >&6; }
23539 cat >conftest.$ac_ext <<_ACEOF
23542 cat confdefs.h >>conftest.$ac_ext
23543 cat >>conftest.$ac_ext <<_ACEOF
23544 /* end confdefs.h. */
23545 $ac_includes_default
23546 #include <$ac_header>
23548 rm -f conftest.$ac_objext
23549 if { (ac_try="$ac_compile"
23550 case "(($ac_try" in
23551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23552 *) ac_try_echo=$ac_try;;
23554 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23555 $as_echo "$ac_try_echo") >&5
23556 (eval "$ac_compile") 2>conftest.er1
23558 grep -v '^ *+' conftest.er1 >conftest.err
23560 cat conftest.err >&5
23561 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23562 (exit $ac_status); } && {
23563 test -z "$ac_c_werror_flag" ||
23564 test ! -s conftest.err
23565 } && test -s conftest.$ac_objext; then
23566 ac_header_compiler=yes
23568 $as_echo "$as_me: failed program was
:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23571 ac_header_compiler=no
23574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23575 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23576 $as_echo "$ac_header_compiler" >&6; }
23578 # Is the header present?
23579 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23580 $as_echo_n "checking
$ac_header presence...
" >&6; }
23581 cat >conftest.$ac_ext <<_ACEOF
23584 cat confdefs.h >>conftest.$ac_ext
23585 cat >>conftest.$ac_ext <<_ACEOF
23586 /* end confdefs.h. */
23587 #include <$ac_header>
23589 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23590 case "(($ac_try" in
23591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23592 *) ac_try_echo=$ac_try;;
23594 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23595 $as_echo "$ac_try_echo") >&5
23596 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23598 grep -v '^ *+' conftest.er1 >conftest.err
23600 cat conftest.err >&5
23601 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23602 (exit $ac_status); } >/dev/null && {
23603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23604 test ! -s conftest.err
23606 ac_header_preproc=yes
23608 $as_echo "$as_me: failed program was
:" >&5
23609 sed 's/^/| /' conftest.$ac_ext >&5
23611 ac_header_preproc=no
23614 rm -f conftest.err conftest.$ac_ext
23615 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23616 $as_echo "$ac_header_preproc" >&6; }
23618 # So? What about this header?
23619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23621 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23622 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23623 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23624 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23625 ac_header_preproc=yes
23628 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23629 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23630 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23631 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23632 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23633 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23634 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23635 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23636 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23637 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23638 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23639 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23643 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23644 $as_echo_n "checking
for $ac_header...
" >&6; }
23645 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23646 $as_echo_n "(cached
) " >&6
23648 eval "$as_ac_Header=\
$ac_header_preproc"
23650 ac_res=`eval 'as_val=${'$as_ac_Header'}
23651 $as_echo "$as_val"'`
23652 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23653 $as_echo "$ac_res" >&6; }
23656 if test `eval 'as_val=${'$as_ac_Header'}
23657 $as_echo "$as_val"'` = yes; then
23658 cat >>confdefs.h <<_ACEOF
23659 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23664 for ac_header in kerberos/des.h
23666 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23667 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23668 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23669 $as_echo_n "checking
for $ac_header...
" >&6; }
23670 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23671 $as_echo_n "(cached
) " >&6
23673 ac_res=`eval 'as_val=${'$as_ac_Header'}
23674 $as_echo "$as_val"'`
23675 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23676 $as_echo "$ac_res" >&6; }
23678 # Is the header compilable?
23679 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23680 $as_echo_n "checking
$ac_header usability...
" >&6; }
23681 cat >conftest.$ac_ext <<_ACEOF
23684 cat confdefs.h >>conftest.$ac_ext
23685 cat >>conftest.$ac_ext <<_ACEOF
23686 /* end confdefs.h. */
23687 $ac_includes_default
23688 #include <$ac_header>
23690 rm -f conftest.$ac_objext
23691 if { (ac_try="$ac_compile"
23692 case "(($ac_try" in
23693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23694 *) ac_try_echo=$ac_try;;
23696 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23697 $as_echo "$ac_try_echo") >&5
23698 (eval "$ac_compile") 2>conftest.er1
23700 grep -v '^ *+' conftest.er1 >conftest.err
23702 cat conftest.err >&5
23703 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23704 (exit $ac_status); } && {
23705 test -z "$ac_c_werror_flag" ||
23706 test ! -s conftest.err
23707 } && test -s conftest.$ac_objext; then
23708 ac_header_compiler=yes
23710 $as_echo "$as_me: failed program was
:" >&5
23711 sed 's/^/| /' conftest.$ac_ext >&5
23713 ac_header_compiler=no
23716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23717 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23718 $as_echo "$ac_header_compiler" >&6; }
23720 # Is the header present?
23721 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23722 $as_echo_n "checking
$ac_header presence...
" >&6; }
23723 cat >conftest.$ac_ext <<_ACEOF
23726 cat confdefs.h >>conftest.$ac_ext
23727 cat >>conftest.$ac_ext <<_ACEOF
23728 /* end confdefs.h. */
23729 #include <$ac_header>
23731 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23732 case "(($ac_try" in
23733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734 *) ac_try_echo=$ac_try;;
23736 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23737 $as_echo "$ac_try_echo") >&5
23738 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23740 grep -v '^ *+' conftest.er1 >conftest.err
23742 cat conftest.err >&5
23743 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23744 (exit $ac_status); } >/dev/null && {
23745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23746 test ! -s conftest.err
23748 ac_header_preproc=yes
23750 $as_echo "$as_me: failed program was
:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23753 ac_header_preproc=no
23756 rm -f conftest.err conftest.$ac_ext
23757 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23758 $as_echo "$ac_header_preproc" >&6; }
23760 # So? What about this header?
23761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23763 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23764 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23765 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23767 ac_header_preproc=yes
23770 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23771 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23772 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23773 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23774 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23775 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23776 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23777 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23778 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23780 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23781 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23785 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23786 $as_echo_n "checking
for $ac_header...
" >&6; }
23787 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23788 $as_echo_n "(cached
) " >&6
23790 eval "$as_ac_Header=\
$ac_header_preproc"
23792 ac_res=`eval 'as_val=${'$as_ac_Header'}
23793 $as_echo "$as_val"'`
23794 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23795 $as_echo "$ac_res" >&6; }
23798 if test `eval 'as_val=${'$as_ac_Header'}
23799 $as_echo "$as_val"'` = yes; then
23800 cat >>confdefs.h <<_ACEOF
23801 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23817 for ac_header in krb.h
23819 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23820 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23821 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23822 $as_echo_n "checking
for $ac_header...
" >&6; }
23823 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23824 $as_echo_n "(cached
) " >&6
23826 ac_res=`eval 'as_val=${'$as_ac_Header'}
23827 $as_echo "$as_val"'`
23828 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23829 $as_echo "$ac_res" >&6; }
23831 # Is the header compilable?
23832 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23833 $as_echo_n "checking
$ac_header usability...
" >&6; }
23834 cat >conftest.$ac_ext <<_ACEOF
23837 cat confdefs.h >>conftest.$ac_ext
23838 cat >>conftest.$ac_ext <<_ACEOF
23839 /* end confdefs.h. */
23840 $ac_includes_default
23841 #include <$ac_header>
23843 rm -f conftest.$ac_objext
23844 if { (ac_try="$ac_compile"
23845 case "(($ac_try" in
23846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23847 *) ac_try_echo=$ac_try;;
23849 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23850 $as_echo "$ac_try_echo") >&5
23851 (eval "$ac_compile") 2>conftest.er1
23853 grep -v '^ *+' conftest.er1 >conftest.err
23855 cat conftest.err >&5
23856 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23857 (exit $ac_status); } && {
23858 test -z "$ac_c_werror_flag" ||
23859 test ! -s conftest.err
23860 } && test -s conftest.$ac_objext; then
23861 ac_header_compiler=yes
23863 $as_echo "$as_me: failed program was
:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23866 ac_header_compiler=no
23869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23870 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23871 $as_echo "$ac_header_compiler" >&6; }
23873 # Is the header present?
23874 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23875 $as_echo_n "checking
$ac_header presence...
" >&6; }
23876 cat >conftest.$ac_ext <<_ACEOF
23879 cat confdefs.h >>conftest.$ac_ext
23880 cat >>conftest.$ac_ext <<_ACEOF
23881 /* end confdefs.h. */
23882 #include <$ac_header>
23884 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23885 case "(($ac_try" in
23886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23887 *) ac_try_echo=$ac_try;;
23889 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23890 $as_echo "$ac_try_echo") >&5
23891 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23893 grep -v '^ *+' conftest.er1 >conftest.err
23895 cat conftest.err >&5
23896 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23897 (exit $ac_status); } >/dev/null && {
23898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23899 test ! -s conftest.err
23901 ac_header_preproc=yes
23903 $as_echo "$as_me: failed program was
:" >&5
23904 sed 's/^/| /' conftest.$ac_ext >&5
23906 ac_header_preproc=no
23909 rm -f conftest.err conftest.$ac_ext
23910 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23911 $as_echo "$ac_header_preproc" >&6; }
23913 # So? What about this header?
23914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23916 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23917 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23918 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23919 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23920 ac_header_preproc=yes
23923 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23924 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23925 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23926 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23927 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23928 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23929 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23930 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23931 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23933 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23934 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23938 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23939 $as_echo_n "checking
for $ac_header...
" >&6; }
23940 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23941 $as_echo_n "(cached
) " >&6
23943 eval "$as_ac_Header=\
$ac_header_preproc"
23945 ac_res=`eval 'as_val=${'$as_ac_Header'}
23946 $as_echo "$as_val"'`
23947 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23948 $as_echo "$ac_res" >&6; }
23951 if test `eval 'as_val=${'$as_ac_Header'}
23952 $as_echo "$as_val"'` = yes; then
23953 cat >>confdefs.h <<_ACEOF
23954 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23959 for ac_header in kerberosIV/krb.h
23961 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23962 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23963 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23964 $as_echo_n "checking
for $ac_header...
" >&6; }
23965 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23966 $as_echo_n "(cached
) " >&6
23968 ac_res=`eval 'as_val=${'$as_ac_Header'}
23969 $as_echo "$as_val"'`
23970 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23971 $as_echo "$ac_res" >&6; }
23973 # Is the header compilable?
23974 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23975 $as_echo_n "checking
$ac_header usability...
" >&6; }
23976 cat >conftest.$ac_ext <<_ACEOF
23979 cat confdefs.h >>conftest.$ac_ext
23980 cat >>conftest.$ac_ext <<_ACEOF
23981 /* end confdefs.h. */
23982 $ac_includes_default
23983 #include <$ac_header>
23985 rm -f conftest.$ac_objext
23986 if { (ac_try="$ac_compile"
23987 case "(($ac_try" in
23988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23989 *) ac_try_echo=$ac_try;;
23991 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23992 $as_echo "$ac_try_echo") >&5
23993 (eval "$ac_compile") 2>conftest.er1
23995 grep -v '^ *+' conftest.er1 >conftest.err
23997 cat conftest.err >&5
23998 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23999 (exit $ac_status); } && {
24000 test -z "$ac_c_werror_flag" ||
24001 test ! -s conftest.err
24002 } && test -s conftest.$ac_objext; then
24003 ac_header_compiler=yes
24005 $as_echo "$as_me: failed program was
:" >&5
24006 sed 's/^/| /' conftest.$ac_ext >&5
24008 ac_header_compiler=no
24011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24012 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24013 $as_echo "$ac_header_compiler" >&6; }
24015 # Is the header present?
24016 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24017 $as_echo_n "checking
$ac_header presence...
" >&6; }
24018 cat >conftest.$ac_ext <<_ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h. */
24024 #include <$ac_header>
24026 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24027 case "(($ac_try" in
24028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24029 *) ac_try_echo=$ac_try;;
24031 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24032 $as_echo "$ac_try_echo") >&5
24033 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24035 grep -v '^ *+' conftest.er1 >conftest.err
24037 cat conftest.err >&5
24038 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24039 (exit $ac_status); } >/dev/null && {
24040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24041 test ! -s conftest.err
24043 ac_header_preproc=yes
24045 $as_echo "$as_me: failed program was
:" >&5
24046 sed 's/^/| /' conftest.$ac_ext >&5
24048 ac_header_preproc=no
24051 rm -f conftest.err conftest.$ac_ext
24052 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24053 $as_echo "$ac_header_preproc" >&6; }
24055 # So? What about this header?
24056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24058 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24059 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24060 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24062 ac_header_preproc=yes
24065 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24066 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24067 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24068 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24069 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24070 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24071 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24072 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24073 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24075 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24076 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24080 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24081 $as_echo_n "checking
for $ac_header...
" >&6; }
24082 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24083 $as_echo_n "(cached
) " >&6
24085 eval "$as_ac_Header=\
$ac_header_preproc"
24087 ac_res=`eval 'as_val=${'$as_ac_Header'}
24088 $as_echo "$as_val"'`
24089 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24090 $as_echo "$ac_res" >&6; }
24093 if test `eval 'as_val=${'$as_ac_Header'}
24094 $as_echo "$as_val"'` = yes; then
24095 cat >>confdefs.h <<_ACEOF
24096 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24101 for ac_header in kerberos/krb.h
24103 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24104 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24105 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24106 $as_echo_n "checking
for $ac_header...
" >&6; }
24107 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24108 $as_echo_n "(cached
) " >&6
24110 ac_res=`eval 'as_val=${'$as_ac_Header'}
24111 $as_echo "$as_val"'`
24112 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24113 $as_echo "$ac_res" >&6; }
24115 # Is the header compilable?
24116 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24117 $as_echo_n "checking
$ac_header usability...
" >&6; }
24118 cat >conftest.$ac_ext <<_ACEOF
24121 cat confdefs.h >>conftest.$ac_ext
24122 cat >>conftest.$ac_ext <<_ACEOF
24123 /* end confdefs.h. */
24124 $ac_includes_default
24125 #include <$ac_header>
24127 rm -f conftest.$ac_objext
24128 if { (ac_try="$ac_compile"
24129 case "(($ac_try" in
24130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24131 *) ac_try_echo=$ac_try;;
24133 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24134 $as_echo "$ac_try_echo") >&5
24135 (eval "$ac_compile") 2>conftest.er1
24137 grep -v '^ *+' conftest.er1 >conftest.err
24139 cat conftest.err >&5
24140 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24141 (exit $ac_status); } && {
24142 test -z "$ac_c_werror_flag" ||
24143 test ! -s conftest.err
24144 } && test -s conftest.$ac_objext; then
24145 ac_header_compiler=yes
24147 $as_echo "$as_me: failed program was
:" >&5
24148 sed 's/^/| /' conftest.$ac_ext >&5
24150 ac_header_compiler=no
24153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24154 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24155 $as_echo "$ac_header_compiler" >&6; }
24157 # Is the header present?
24158 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24159 $as_echo_n "checking
$ac_header presence...
" >&6; }
24160 cat >conftest.$ac_ext <<_ACEOF
24163 cat confdefs.h >>conftest.$ac_ext
24164 cat >>conftest.$ac_ext <<_ACEOF
24165 /* end confdefs.h. */
24166 #include <$ac_header>
24168 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24169 case "(($ac_try" in
24170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24171 *) ac_try_echo=$ac_try;;
24173 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24174 $as_echo "$ac_try_echo") >&5
24175 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24177 grep -v '^ *+' conftest.er1 >conftest.err
24179 cat conftest.err >&5
24180 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24181 (exit $ac_status); } >/dev/null && {
24182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24183 test ! -s conftest.err
24185 ac_header_preproc=yes
24187 $as_echo "$as_me: failed program was
:" >&5
24188 sed 's/^/| /' conftest.$ac_ext >&5
24190 ac_header_preproc=no
24193 rm -f conftest.err conftest.$ac_ext
24194 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24195 $as_echo "$ac_header_preproc" >&6; }
24197 # So? What about this header?
24198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24200 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24201 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24202 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24203 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24204 ac_header_preproc=yes
24207 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24208 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24209 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24210 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24211 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24212 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24213 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24214 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24215 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24217 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24218 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24222 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24223 $as_echo_n "checking
for $ac_header...
" >&6; }
24224 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24225 $as_echo_n "(cached
) " >&6
24227 eval "$as_ac_Header=\
$ac_header_preproc"
24229 ac_res=`eval 'as_val=${'$as_ac_Header'}
24230 $as_echo "$as_val"'`
24231 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24232 $as_echo "$ac_res" >&6; }
24235 if test `eval 'as_val=${'$as_ac_Header'}
24236 $as_echo "$as_val"'` = yes; then
24237 cat >>confdefs.h <<_ACEOF
24238 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24255 for ac_header in com_err.h
24257 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24258 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24259 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24260 $as_echo_n "checking
for $ac_header...
" >&6; }
24261 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24262 $as_echo_n "(cached
) " >&6
24264 ac_res=`eval 'as_val=${'$as_ac_Header'}
24265 $as_echo "$as_val"'`
24266 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24267 $as_echo "$ac_res" >&6; }
24269 # Is the header compilable?
24270 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24271 $as_echo_n "checking
$ac_header usability...
" >&6; }
24272 cat >conftest.$ac_ext <<_ACEOF
24275 cat confdefs.h >>conftest.$ac_ext
24276 cat >>conftest.$ac_ext <<_ACEOF
24277 /* end confdefs.h. */
24278 $ac_includes_default
24279 #include <$ac_header>
24281 rm -f conftest.$ac_objext
24282 if { (ac_try="$ac_compile"
24283 case "(($ac_try" in
24284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24285 *) ac_try_echo=$ac_try;;
24287 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24288 $as_echo "$ac_try_echo") >&5
24289 (eval "$ac_compile") 2>conftest.er1
24291 grep -v '^ *+' conftest.er1 >conftest.err
24293 cat conftest.err >&5
24294 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24295 (exit $ac_status); } && {
24296 test -z "$ac_c_werror_flag" ||
24297 test ! -s conftest.err
24298 } && test -s conftest.$ac_objext; then
24299 ac_header_compiler=yes
24301 $as_echo "$as_me: failed program was
:" >&5
24302 sed 's/^/| /' conftest.$ac_ext >&5
24304 ac_header_compiler=no
24307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24308 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24309 $as_echo "$ac_header_compiler" >&6; }
24311 # Is the header present?
24312 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24313 $as_echo_n "checking
$ac_header presence...
" >&6; }
24314 cat >conftest.$ac_ext <<_ACEOF
24317 cat confdefs.h >>conftest.$ac_ext
24318 cat >>conftest.$ac_ext <<_ACEOF
24319 /* end confdefs.h. */
24320 #include <$ac_header>
24322 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24323 case "(($ac_try" in
24324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24325 *) ac_try_echo=$ac_try;;
24327 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24328 $as_echo "$ac_try_echo") >&5
24329 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24331 grep -v '^ *+' conftest.er1 >conftest.err
24333 cat conftest.err >&5
24334 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24335 (exit $ac_status); } >/dev/null && {
24336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24337 test ! -s conftest.err
24339 ac_header_preproc=yes
24341 $as_echo "$as_me: failed program was
:" >&5
24342 sed 's/^/| /' conftest.$ac_ext >&5
24344 ac_header_preproc=no
24347 rm -f conftest.err conftest.$ac_ext
24348 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24349 $as_echo "$ac_header_preproc" >&6; }
24351 # So? What about this header?
24352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24354 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24355 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24356 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24357 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24358 ac_header_preproc=yes
24361 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24362 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24363 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24364 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24365 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24366 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24367 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24368 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24369 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24370 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24371 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24372 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24376 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24377 $as_echo_n "checking
for $ac_header...
" >&6; }
24378 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24379 $as_echo_n "(cached
) " >&6
24381 eval "$as_ac_Header=\
$ac_header_preproc"
24383 ac_res=`eval 'as_val=${'$as_ac_Header'}
24384 $as_echo "$as_val"'`
24385 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24386 $as_echo "$ac_res" >&6; }
24389 if test `eval 'as_val=${'$as_ac_Header'}
24390 $as_echo "$as_val"'` = yes; then
24391 cat >>confdefs.h <<_ACEOF
24392 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24407 # Solaris requires -lintl if you want strerror (which calls dgettext)
24408 # to return localized messages.
24410 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
24411 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
24412 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24413 $as_echo_n "(cached
) " >&6
24415 ac_check_lib_save_LIBS=$LIBS
24416 LIBS="-lintl $LIBS"
24417 cat >conftest.$ac_ext <<_ACEOF
24420 cat confdefs.h >>conftest.$ac_ext
24421 cat >>conftest.$ac_ext <<_ACEOF
24422 /* end confdefs.h. */
24424 /* Override any GCC internal prototype to avoid an error.
24425 Use char because int might match the return type of a GCC
24426 builtin and then its argument prototype would still apply. */
24434 return dgettext ();
24439 rm -f conftest.$ac_objext conftest$ac_exeext
24440 if { (ac_try="$ac_link"
24441 case "(($ac_try" in
24442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443 *) ac_try_echo=$ac_try;;
24445 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24446 $as_echo "$ac_try_echo") >&5
24447 (eval "$ac_link") 2>conftest.er1
24449 grep -v '^ *+' conftest.er1 >conftest.err
24451 cat conftest.err >&5
24452 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24453 (exit $ac_status); } && {
24454 test -z "$ac_c_werror_flag" ||
24455 test ! -s conftest.err
24456 } && test -s conftest$ac_exeext && {
24457 test "$cross_compiling" = yes ||
24458 $as_test_x conftest$ac_exeext
24460 ac_cv_lib_intl_dgettext=yes
24462 $as_echo "$as_me: failed program was
:" >&5
24463 sed 's/^/| /' conftest.$ac_ext >&5
24465 ac_cv_lib_intl_dgettext=no
24468 rm -rf conftest.dSYM
24469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24470 conftest$ac_exeext conftest.$ac_ext
24471 LIBS=$ac_check_lib_save_LIBS
24473 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
24474 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24475 if test $ac_cv_lib_intl_dgettext = yes; then
24476 cat >>confdefs.h <<_ACEOF
24477 #define HAVE_LIBINTL 1
24480 LIBS="-lintl $LIBS"
24485 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
24486 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
24487 if test "${emacs_cv_localtime_cache+set}" = set; then
24488 $as_echo_n "(cached
) " >&6
24490 if test x$ac_cv_func_tzset = xyes; then
24491 if test "$cross_compiling" = yes; then
24492 # If we have tzset, assume the worst when cross-compiling.
24493 emacs_cv_localtime_cache=yes
24495 cat >conftest.$ac_ext <<_ACEOF
24498 cat confdefs.h >>conftest.$ac_ext
24499 cat >>conftest.$ac_ext <<_ACEOF
24500 /* end confdefs.h. */
24502 extern char **environ;
24506 for (to = from = environ; (*to = *from); from++)
24507 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24510 char TZ_GMT0[] = "TZ
=GMT0
";
24511 char TZ_PST8[] = "TZ
=PST8
";
24514 time_t now = time ((time_t *) 0);
24515 int hour_GMT0, hour_unset;
24516 if (putenv (TZ_GMT0) != 0)
24518 hour_GMT0 = localtime (&now)->tm_hour;
24520 hour_unset = localtime (&now)->tm_hour;
24521 if (putenv (TZ_PST8) != 0)
24523 if (localtime (&now)->tm_hour == hour_GMT0)
24526 if (localtime (&now)->tm_hour != hour_unset)
24531 rm -f conftest$ac_exeext
24532 if { (ac_try="$ac_link"
24533 case "(($ac_try" in
24534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24535 *) ac_try_echo=$ac_try;;
24537 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24538 $as_echo "$ac_try_echo") >&5
24539 (eval "$ac_link") 2>&5
24541 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24543 { (case "(($ac_try" in
24544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24545 *) ac_try_echo=$ac_try;;
24547 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24548 $as_echo "$ac_try_echo") >&5
24549 (eval "$ac_try") 2>&5
24551 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24552 (exit $ac_status); }; }; then
24553 emacs_cv_localtime_cache=no
24555 $as_echo "$as_me: program exited with status
$ac_status" >&5
24556 $as_echo "$as_me: failed program was
:" >&5
24557 sed 's/^/| /' conftest.$ac_ext >&5
24559 ( exit $ac_status )
24560 emacs_cv_localtime_cache=yes
24562 rm -rf conftest.dSYM
24563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24568 # If we lack tzset, report that localtime does not cache TZ,
24569 # since we can't invalidate the cache if we don't have tzset.
24570 emacs_cv_localtime_cache=no
24573 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24574 $as_echo "$emacs_cv_localtime_cache" >&6; }
24575 if test $emacs_cv_localtime_cache = yes; then
24577 cat >>confdefs.h <<\_ACEOF
24578 #define LOCALTIME_CACHE 1
24583 if test "x
$HAVE_TIMEVAL" = xyes; then
24585 for ac_func in gettimeofday
24587 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24588 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24589 $as_echo_n "checking
for $ac_func...
" >&6; }
24590 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24591 $as_echo_n "(cached
) " >&6
24593 cat >conftest.$ac_ext <<_ACEOF
24596 cat confdefs.h >>conftest.$ac_ext
24597 cat >>conftest.$ac_ext <<_ACEOF
24598 /* end confdefs.h. */
24599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24601 #define $ac_func innocuous_$ac_func
24603 /* System header to define __stub macros and hopefully few prototypes,
24604 which can conflict with char $ac_func (); below.
24605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24606 <limits.h> exists even on freestanding compilers. */
24609 # include <limits.h>
24611 # include <assert.h>
24616 /* Override any GCC internal prototype to avoid an error.
24617 Use char because int might match the return type of a GCC
24618 builtin and then its argument prototype would still apply. */
24623 /* The GNU C library defines this for functions which it implements
24624 to always fail with ENOSYS. Some functions are actually named
24625 something starting with __ and the normal name is an alias. */
24626 #if defined __stub_$ac_func || defined __stub___$ac_func
24633 return $ac_func ();
24638 rm -f conftest.$ac_objext conftest$ac_exeext
24639 if { (ac_try="$ac_link"
24640 case "(($ac_try" in
24641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24642 *) ac_try_echo=$ac_try;;
24644 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24645 $as_echo "$ac_try_echo") >&5
24646 (eval "$ac_link") 2>conftest.er1
24648 grep -v '^ *+' conftest.er1 >conftest.err
24650 cat conftest.err >&5
24651 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24652 (exit $ac_status); } && {
24653 test -z "$ac_c_werror_flag" ||
24654 test ! -s conftest.err
24655 } && test -s conftest$ac_exeext && {
24656 test "$cross_compiling" = yes ||
24657 $as_test_x conftest$ac_exeext
24659 eval "$as_ac_var=yes"
24661 $as_echo "$as_me: failed program was
:" >&5
24662 sed 's/^/| /' conftest.$ac_ext >&5
24664 eval "$as_ac_var=no
"
24667 rm -rf conftest.dSYM
24668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24669 conftest$ac_exeext conftest.$ac_ext
24671 ac_res=`eval 'as_val=${'$as_ac_var'}
24672 $as_echo "$as_val"'`
24673 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24674 $as_echo "$ac_res" >&6; }
24675 if test `eval 'as_val=${'$as_ac_var'}
24676 $as_echo "$as_val"'` = yes; then
24677 cat >>confdefs.h <<_ACEOF
24678 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24684 if test $ac_cv_func_gettimeofday = yes; then
24685 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24686 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24687 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24688 $as_echo_n "(cached
) " >&6
24690 cat >conftest.$ac_ext <<_ACEOF
24693 cat confdefs.h >>conftest.$ac_ext
24694 cat >>conftest.$ac_ext <<_ACEOF
24695 /* end confdefs.h. */
24697 #ifdef TIME_WITH_SYS_TIME
24698 #include <sys/time.h>
24701 #ifdef HAVE_SYS_TIME_H
24702 #include <sys/time.h>
24710 struct timeval time;
24711 gettimeofday (&time, 0);
24716 rm -f conftest.$ac_objext
24717 if { (ac_try="$ac_compile"
24718 case "(($ac_try" in
24719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720 *) ac_try_echo=$ac_try;;
24722 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24723 $as_echo "$ac_try_echo") >&5
24724 (eval "$ac_compile") 2>conftest.er1
24726 grep -v '^ *+' conftest.er1 >conftest.err
24728 cat conftest.err >&5
24729 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24730 (exit $ac_status); } && {
24731 test -z "$ac_c_werror_flag" ||
24732 test ! -s conftest.err
24733 } && test -s conftest.$ac_objext; then
24734 emacs_cv_gettimeofday_two_arguments=yes
24736 $as_echo "$as_me: failed program was
:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24739 emacs_cv_gettimeofday_two_arguments=no
24742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24744 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24745 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24746 if test $emacs_cv_gettimeofday_two_arguments = no; then
24748 cat >>confdefs.h <<\_ACEOF
24749 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24757 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24758 $as_echo_n "checking
for socket...
" >&6; }
24759 if test "${ac_cv_func_socket+set}" = set; then
24760 $as_echo_n "(cached
) " >&6
24762 cat >conftest.$ac_ext <<_ACEOF
24765 cat confdefs.h >>conftest.$ac_ext
24766 cat >>conftest.$ac_ext <<_ACEOF
24767 /* end confdefs.h. */
24768 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24770 #define socket innocuous_socket
24772 /* System header to define __stub macros and hopefully few prototypes,
24773 which can conflict with char socket (); below.
24774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24775 <limits.h> exists even on freestanding compilers. */
24778 # include <limits.h>
24780 # include <assert.h>
24785 /* Override any GCC internal prototype to avoid an error.
24786 Use char because int might match the return type of a GCC
24787 builtin and then its argument prototype would still apply. */
24792 /* The GNU C library defines this for functions which it implements
24793 to always fail with ENOSYS. Some functions are actually named
24794 something starting with __ and the normal name is an alias. */
24795 #if defined __stub_socket || defined __stub___socket
24807 rm -f conftest.$ac_objext conftest$ac_exeext
24808 if { (ac_try="$ac_link"
24809 case "(($ac_try" in
24810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24811 *) ac_try_echo=$ac_try;;
24813 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24814 $as_echo "$ac_try_echo") >&5
24815 (eval "$ac_link") 2>conftest.er1
24817 grep -v '^ *+' conftest.er1 >conftest.err
24819 cat conftest.err >&5
24820 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24821 (exit $ac_status); } && {
24822 test -z "$ac_c_werror_flag" ||
24823 test ! -s conftest.err
24824 } && test -s conftest$ac_exeext && {
24825 test "$cross_compiling" = yes ||
24826 $as_test_x conftest$ac_exeext
24828 ac_cv_func_socket=yes
24830 $as_echo "$as_me: failed program was
:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24833 ac_cv_func_socket=no
24836 rm -rf conftest.dSYM
24837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24838 conftest$ac_exeext conftest.$ac_ext
24840 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24841 $as_echo "$ac_cv_func_socket" >&6; }
24842 if test $ac_cv_func_socket = yes; then
24848 if test $ok_so_far = yes; then
24849 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24850 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24851 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24852 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24853 $as_echo_n "(cached
) " >&6
24855 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24856 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24858 # Is the header compilable?
24859 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24860 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24861 cat >conftest.$ac_ext <<_ACEOF
24864 cat confdefs.h >>conftest.$ac_ext
24865 cat >>conftest.$ac_ext <<_ACEOF
24866 /* end confdefs.h. */
24867 $ac_includes_default
24868 #include <netinet/in.h>
24870 rm -f conftest.$ac_objext
24871 if { (ac_try="$ac_compile"
24872 case "(($ac_try" in
24873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874 *) ac_try_echo=$ac_try;;
24876 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24877 $as_echo "$ac_try_echo") >&5
24878 (eval "$ac_compile") 2>conftest.er1
24880 grep -v '^ *+' conftest.er1 >conftest.err
24882 cat conftest.err >&5
24883 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24884 (exit $ac_status); } && {
24885 test -z "$ac_c_werror_flag" ||
24886 test ! -s conftest.err
24887 } && test -s conftest.$ac_objext; then
24888 ac_header_compiler=yes
24890 $as_echo "$as_me: failed program was
:" >&5
24891 sed 's/^/| /' conftest.$ac_ext >&5
24893 ac_header_compiler=no
24896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24897 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24898 $as_echo "$ac_header_compiler" >&6; }
24900 # Is the header present?
24901 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24902 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24903 cat >conftest.$ac_ext <<_ACEOF
24906 cat confdefs.h >>conftest.$ac_ext
24907 cat >>conftest.$ac_ext <<_ACEOF
24908 /* end confdefs.h. */
24909 #include <netinet/in.h>
24911 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24912 case "(($ac_try" in
24913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24914 *) ac_try_echo=$ac_try;;
24916 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24917 $as_echo "$ac_try_echo") >&5
24918 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24920 grep -v '^ *+' conftest.er1 >conftest.err
24922 cat conftest.err >&5
24923 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24924 (exit $ac_status); } >/dev/null && {
24925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24926 test ! -s conftest.err
24928 ac_header_preproc=yes
24930 $as_echo "$as_me: failed program was
:" >&5
24931 sed 's/^/| /' conftest.$ac_ext >&5
24933 ac_header_preproc=no
24936 rm -f conftest.err conftest.$ac_ext
24937 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24938 $as_echo "$ac_header_preproc" >&6; }
24940 # So? What about this header?
24941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24943 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24944 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24945 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24946 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24947 ac_header_preproc=yes
24950 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24951 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24952 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24953 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24954 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24955 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24956 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24957 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24958 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24959 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24960 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24961 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24965 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24966 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24967 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24968 $as_echo_n "(cached
) " >&6
24970 ac_cv_header_netinet_in_h=$ac_header_preproc
24972 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24973 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24976 if test $ac_cv_header_netinet_in_h = yes; then
24984 if test $ok_so_far = yes; then
24985 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24986 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24987 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24988 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24989 $as_echo_n "(cached
) " >&6
24991 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24992 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24994 # Is the header compilable?
24995 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24996 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
24997 cat >conftest.$ac_ext <<_ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h. */
25003 $ac_includes_default
25004 #include <arpa/inet.h>
25006 rm -f conftest.$ac_objext
25007 if { (ac_try="$ac_compile"
25008 case "(($ac_try" in
25009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25010 *) ac_try_echo=$ac_try;;
25012 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25013 $as_echo "$ac_try_echo") >&5
25014 (eval "$ac_compile") 2>conftest.er1
25016 grep -v '^ *+' conftest.er1 >conftest.err
25018 cat conftest.err >&5
25019 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25020 (exit $ac_status); } && {
25021 test -z "$ac_c_werror_flag" ||
25022 test ! -s conftest.err
25023 } && test -s conftest.$ac_objext; then
25024 ac_header_compiler=yes
25026 $as_echo "$as_me: failed program was
:" >&5
25027 sed 's/^/| /' conftest.$ac_ext >&5
25029 ac_header_compiler=no
25032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25033 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25034 $as_echo "$ac_header_compiler" >&6; }
25036 # Is the header present?
25037 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
25038 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
25039 cat >conftest.$ac_ext <<_ACEOF
25042 cat confdefs.h >>conftest.$ac_ext
25043 cat >>conftest.$ac_ext <<_ACEOF
25044 /* end confdefs.h. */
25045 #include <arpa/inet.h>
25047 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25048 case "(($ac_try" in
25049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25050 *) ac_try_echo=$ac_try;;
25052 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25053 $as_echo "$ac_try_echo") >&5
25054 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25056 grep -v '^ *+' conftest.er1 >conftest.err
25058 cat conftest.err >&5
25059 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25060 (exit $ac_status); } >/dev/null && {
25061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25062 test ! -s conftest.err
25064 ac_header_preproc=yes
25066 $as_echo "$as_me: failed program was
:" >&5
25067 sed 's/^/| /' conftest.$ac_ext >&5
25069 ac_header_preproc=no
25072 rm -f conftest.err conftest.$ac_ext
25073 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25074 $as_echo "$ac_header_preproc" >&6; }
25076 # So? What about this header?
25077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25079 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25080 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25081 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
25082 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
25083 ac_header_preproc=yes
25086 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
25087 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
25088 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
25089 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
25090 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
25091 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
25092 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25093 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25094 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
25095 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
25096 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
25097 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
25101 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
25102 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
25103 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25104 $as_echo_n "(cached
) " >&6
25106 ac_cv_header_arpa_inet_h=$ac_header_preproc
25108 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
25109 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25112 if test $ac_cv_header_arpa_inet_h = yes; then
25120 if test $ok_so_far = yes; then
25122 cat >>confdefs.h <<\_ACEOF
25123 #define HAVE_INET_SOCKETS 1
25129 for ac_header in sys/ioctl.h
25131 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25132 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25133 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25134 $as_echo_n "checking
for $ac_header...
" >&6; }
25135 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25136 $as_echo_n "(cached
) " >&6
25138 ac_res=`eval 'as_val=${'$as_ac_Header'}
25139 $as_echo "$as_val"'`
25140 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25141 $as_echo "$ac_res" >&6; }
25143 # Is the header compilable?
25144 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25145 $as_echo_n "checking
$ac_header usability...
" >&6; }
25146 cat >conftest.$ac_ext <<_ACEOF
25149 cat confdefs.h >>conftest.$ac_ext
25150 cat >>conftest.$ac_ext <<_ACEOF
25151 /* end confdefs.h. */
25152 $ac_includes_default
25153 #include <$ac_header>
25155 rm -f conftest.$ac_objext
25156 if { (ac_try="$ac_compile"
25157 case "(($ac_try" in
25158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25159 *) ac_try_echo=$ac_try;;
25161 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25162 $as_echo "$ac_try_echo") >&5
25163 (eval "$ac_compile") 2>conftest.er1
25165 grep -v '^ *+' conftest.er1 >conftest.err
25167 cat conftest.err >&5
25168 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25169 (exit $ac_status); } && {
25170 test -z "$ac_c_werror_flag" ||
25171 test ! -s conftest.err
25172 } && test -s conftest.$ac_objext; then
25173 ac_header_compiler=yes
25175 $as_echo "$as_me: failed program was
:" >&5
25176 sed 's/^/| /' conftest.$ac_ext >&5
25178 ac_header_compiler=no
25181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25182 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25183 $as_echo "$ac_header_compiler" >&6; }
25185 # Is the header present?
25186 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25187 $as_echo_n "checking
$ac_header presence...
" >&6; }
25188 cat >conftest.$ac_ext <<_ACEOF
25191 cat confdefs.h >>conftest.$ac_ext
25192 cat >>conftest.$ac_ext <<_ACEOF
25193 /* end confdefs.h. */
25194 #include <$ac_header>
25196 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25197 case "(($ac_try" in
25198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25199 *) ac_try_echo=$ac_try;;
25201 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25202 $as_echo "$ac_try_echo") >&5
25203 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25205 grep -v '^ *+' conftest.er1 >conftest.err
25207 cat conftest.err >&5
25208 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25209 (exit $ac_status); } >/dev/null && {
25210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25211 test ! -s conftest.err
25213 ac_header_preproc=yes
25215 $as_echo "$as_me: failed program was
:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25218 ac_header_preproc=no
25221 rm -f conftest.err conftest.$ac_ext
25222 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25223 $as_echo "$ac_header_preproc" >&6; }
25225 # So? What about this header?
25226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25228 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25229 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25230 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25231 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25232 ac_header_preproc=yes
25235 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25236 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25237 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25238 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25239 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25240 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25241 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25242 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25243 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25244 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25245 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25246 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25250 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25251 $as_echo_n "checking
for $ac_header...
" >&6; }
25252 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25253 $as_echo_n "(cached
) " >&6
25255 eval "$as_ac_Header=\
$ac_header_preproc"
25257 ac_res=`eval 'as_val=${'$as_ac_Header'}
25258 $as_echo "$as_val"'`
25259 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25260 $as_echo "$ac_res" >&6; }
25263 if test `eval 'as_val=${'$as_ac_Header'}
25264 $as_echo "$as_val"'` = yes; then
25265 cat >>confdefs.h <<_ACEOF
25266 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25274 if test -f /usr/lpp/X11/bin/smt.exp; then
25276 cat >>confdefs.h <<\_ACEOF
25277 #define HAVE_AIX_SMT_EXP 1
25282 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
25283 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
25284 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25285 { $as_echo "$as_me:$LINENO: result
: yes" >&5
25286 $as_echo "yes" >&6; }
25288 cat >>confdefs.h <<\_ACEOF
25289 #define HAVE_DEV_PTMX 1
25293 { $as_echo "$as_me:$LINENO: result
: no
" >&5
25294 $as_echo "no
" >&6; }
25297 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
25298 $as_echo_n "checking
for pid_t...
" >&6; }
25299 if test "${ac_cv_type_pid_t+set}" = set; then
25300 $as_echo_n "(cached
) " >&6
25302 ac_cv_type_pid_t=no
25303 cat >conftest.$ac_ext <<_ACEOF
25306 cat confdefs.h >>conftest.$ac_ext
25307 cat >>conftest.$ac_ext <<_ACEOF
25308 /* end confdefs.h. */
25309 $ac_includes_default
25313 if (sizeof (pid_t))
25319 rm -f conftest.$ac_objext
25320 if { (ac_try="$ac_compile"
25321 case "(($ac_try" in
25322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323 *) ac_try_echo=$ac_try;;
25325 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25326 $as_echo "$ac_try_echo") >&5
25327 (eval "$ac_compile") 2>conftest.er1
25329 grep -v '^ *+' conftest.er1 >conftest.err
25331 cat conftest.err >&5
25332 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25333 (exit $ac_status); } && {
25334 test -z "$ac_c_werror_flag" ||
25335 test ! -s conftest.err
25336 } && test -s conftest.$ac_objext; then
25337 cat >conftest.$ac_ext <<_ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h. */
25343 $ac_includes_default
25347 if (sizeof ((pid_t)))
25353 rm -f conftest.$ac_objext
25354 if { (ac_try="$ac_compile"
25355 case "(($ac_try" in
25356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25357 *) ac_try_echo=$ac_try;;
25359 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25360 $as_echo "$ac_try_echo") >&5
25361 (eval "$ac_compile") 2>conftest.er1
25363 grep -v '^ *+' conftest.er1 >conftest.err
25365 cat conftest.err >&5
25366 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25367 (exit $ac_status); } && {
25368 test -z "$ac_c_werror_flag" ||
25369 test ! -s conftest.err
25370 } && test -s conftest.$ac_objext; then
25373 $as_echo "$as_me: failed program was
:" >&5
25374 sed 's/^/| /' conftest.$ac_ext >&5
25376 ac_cv_type_pid_t=yes
25379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25381 $as_echo "$as_me: failed program was
:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25389 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
25390 $as_echo "$ac_cv_type_pid_t" >&6; }
25391 if test $ac_cv_type_pid_t = yes; then
25395 cat >>confdefs.h <<_ACEOF
25402 for ac_header in vfork.h
25404 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25405 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25406 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25407 $as_echo_n "checking
for $ac_header...
" >&6; }
25408 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25409 $as_echo_n "(cached
) " >&6
25411 ac_res=`eval 'as_val=${'$as_ac_Header'}
25412 $as_echo "$as_val"'`
25413 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25414 $as_echo "$ac_res" >&6; }
25416 # Is the header compilable?
25417 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25418 $as_echo_n "checking
$ac_header usability...
" >&6; }
25419 cat >conftest.$ac_ext <<_ACEOF
25422 cat confdefs.h >>conftest.$ac_ext
25423 cat >>conftest.$ac_ext <<_ACEOF
25424 /* end confdefs.h. */
25425 $ac_includes_default
25426 #include <$ac_header>
25428 rm -f conftest.$ac_objext
25429 if { (ac_try="$ac_compile"
25430 case "(($ac_try" in
25431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25432 *) ac_try_echo=$ac_try;;
25434 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25435 $as_echo "$ac_try_echo") >&5
25436 (eval "$ac_compile") 2>conftest.er1
25438 grep -v '^ *+' conftest.er1 >conftest.err
25440 cat conftest.err >&5
25441 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25442 (exit $ac_status); } && {
25443 test -z "$ac_c_werror_flag" ||
25444 test ! -s conftest.err
25445 } && test -s conftest.$ac_objext; then
25446 ac_header_compiler=yes
25448 $as_echo "$as_me: failed program was
:" >&5
25449 sed 's/^/| /' conftest.$ac_ext >&5
25451 ac_header_compiler=no
25454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25455 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25456 $as_echo "$ac_header_compiler" >&6; }
25458 # Is the header present?
25459 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25460 $as_echo_n "checking
$ac_header presence...
" >&6; }
25461 cat >conftest.$ac_ext <<_ACEOF
25464 cat confdefs.h >>conftest.$ac_ext
25465 cat >>conftest.$ac_ext <<_ACEOF
25466 /* end confdefs.h. */
25467 #include <$ac_header>
25469 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25470 case "(($ac_try" in
25471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25472 *) ac_try_echo=$ac_try;;
25474 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25475 $as_echo "$ac_try_echo") >&5
25476 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25478 grep -v '^ *+' conftest.er1 >conftest.err
25480 cat conftest.err >&5
25481 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25482 (exit $ac_status); } >/dev/null && {
25483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25484 test ! -s conftest.err
25486 ac_header_preproc=yes
25488 $as_echo "$as_me: failed program was
:" >&5
25489 sed 's/^/| /' conftest.$ac_ext >&5
25491 ac_header_preproc=no
25494 rm -f conftest.err conftest.$ac_ext
25495 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25496 $as_echo "$ac_header_preproc" >&6; }
25498 # So? What about this header?
25499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25501 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25502 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25503 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25504 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25505 ac_header_preproc=yes
25508 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25509 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25510 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25511 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25512 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25513 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25514 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25515 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25516 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25517 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25518 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25519 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25523 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25524 $as_echo_n "checking
for $ac_header...
" >&6; }
25525 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25526 $as_echo_n "(cached
) " >&6
25528 eval "$as_ac_Header=\
$ac_header_preproc"
25530 ac_res=`eval 'as_val=${'$as_ac_Header'}
25531 $as_echo "$as_val"'`
25532 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25533 $as_echo "$ac_res" >&6; }
25536 if test `eval 'as_val=${'$as_ac_Header'}
25537 $as_echo "$as_val"'` = yes; then
25538 cat >>confdefs.h <<_ACEOF
25539 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25548 for ac_func in fork vfork
25550 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25551 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
25552 $as_echo_n "checking
for $ac_func...
" >&6; }
25553 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25554 $as_echo_n "(cached
) " >&6
25556 cat >conftest.$ac_ext <<_ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h. */
25562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25564 #define $ac_func innocuous_$ac_func
25566 /* System header to define __stub macros and hopefully few prototypes,
25567 which can conflict with char $ac_func (); below.
25568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25569 <limits.h> exists even on freestanding compilers. */
25572 # include <limits.h>
25574 # include <assert.h>
25579 /* Override any GCC internal prototype to avoid an error.
25580 Use char because int might match the return type of a GCC
25581 builtin and then its argument prototype would still apply. */
25586 /* The GNU C library defines this for functions which it implements
25587 to always fail with ENOSYS. Some functions are actually named
25588 something starting with __ and the normal name is an alias. */
25589 #if defined __stub_$ac_func || defined __stub___$ac_func
25596 return $ac_func ();
25601 rm -f conftest.$ac_objext conftest$ac_exeext
25602 if { (ac_try="$ac_link"
25603 case "(($ac_try" in
25604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25605 *) ac_try_echo=$ac_try;;
25607 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25608 $as_echo "$ac_try_echo") >&5
25609 (eval "$ac_link") 2>conftest.er1
25611 grep -v '^ *+' conftest.er1 >conftest.err
25613 cat conftest.err >&5
25614 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25615 (exit $ac_status); } && {
25616 test -z "$ac_c_werror_flag" ||
25617 test ! -s conftest.err
25618 } && test -s conftest$ac_exeext && {
25619 test "$cross_compiling" = yes ||
25620 $as_test_x conftest$ac_exeext
25622 eval "$as_ac_var=yes"
25624 $as_echo "$as_me: failed program was
:" >&5
25625 sed 's/^/| /' conftest.$ac_ext >&5
25627 eval "$as_ac_var=no
"
25630 rm -rf conftest.dSYM
25631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25632 conftest$ac_exeext conftest.$ac_ext
25634 ac_res=`eval 'as_val=${'$as_ac_var'}
25635 $as_echo "$as_val"'`
25636 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25637 $as_echo "$ac_res" >&6; }
25638 if test `eval 'as_val=${'$as_ac_var'}
25639 $as_echo "$as_val"'` = yes; then
25640 cat >>confdefs.h <<_ACEOF
25641 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25647 if test "x
$ac_cv_func_fork" = xyes; then
25648 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25649 $as_echo_n "checking
for working fork...
" >&6; }
25650 if test "${ac_cv_func_fork_works+set}" = set; then
25651 $as_echo_n "(cached
) " >&6
25653 if test "$cross_compiling" = yes; then
25654 ac_cv_func_fork_works=cross
25656 cat >conftest.$ac_ext <<_ACEOF
25659 cat confdefs.h >>conftest.$ac_ext
25660 cat >>conftest.$ac_ext <<_ACEOF
25661 /* end confdefs.h. */
25662 $ac_includes_default
25667 /* By Ruediger Kuhlmann. */
25668 return fork () < 0;
25674 rm -f conftest$ac_exeext
25675 if { (ac_try="$ac_link"
25676 case "(($ac_try" in
25677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678 *) ac_try_echo=$ac_try;;
25680 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25681 $as_echo "$ac_try_echo") >&5
25682 (eval "$ac_link") 2>&5
25684 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25686 { (case "(($ac_try" in
25687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25688 *) ac_try_echo=$ac_try;;
25690 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25691 $as_echo "$ac_try_echo") >&5
25692 (eval "$ac_try") 2>&5
25694 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25695 (exit $ac_status); }; }; then
25696 ac_cv_func_fork_works=yes
25698 $as_echo "$as_me: program exited with status
$ac_status" >&5
25699 $as_echo "$as_me: failed program was
:" >&5
25700 sed 's/^/| /' conftest.$ac_ext >&5
25702 ( exit $ac_status )
25703 ac_cv_func_fork_works=no
25705 rm -rf conftest.dSYM
25706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25711 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25712 $as_echo "$ac_cv_func_fork_works" >&6; }
25715 ac_cv_func_fork_works=$ac_cv_func_fork
25717 if test "x
$ac_cv_func_fork_works" = xcross; then
25719 *-*-amigaos* | *-*-msdosdjgpp*)
25720 # Override, as these systems have only a dummy fork() stub
25721 ac_cv_func_fork_works=no
25724 ac_cv_func_fork_works=yes
25727 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25728 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25730 ac_cv_func_vfork_works=$ac_cv_func_vfork
25731 if test "x
$ac_cv_func_vfork" = xyes; then
25732 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25733 $as_echo_n "checking
for working vfork...
" >&6; }
25734 if test "${ac_cv_func_vfork_works+set}" = set; then
25735 $as_echo_n "(cached
) " >&6
25737 if test "$cross_compiling" = yes; then
25738 ac_cv_func_vfork_works=cross
25740 cat >conftest.$ac_ext <<_ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h. */
25746 /* Thanks to Paul Eggert for this test. */
25747 $ac_includes_default
25748 #include <sys/wait.h>
25749 #ifdef HAVE_VFORK_H
25750 # include <vfork.h>
25752 /* On some sparc systems, changes by the child to local and incoming
25753 argument registers are propagated back to the parent. The compiler
25754 is told about this with #include <vfork.h>, but some compilers
25755 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25756 static variable whose address is put into a register that is
25757 clobbered by the vfork. */
25760 sparc_address_test (int arg)
25762 sparc_address_test (arg) int arg;
25765 static pid_t child;
25783 pid_t parent = getpid ();
25786 sparc_address_test (0);
25791 /* Here is another test for sparc vfork register problems. This
25792 test uses lots of local variables, at least as many local
25793 variables as main has allocated so far including compiler
25794 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25795 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25796 reuse the register of parent for one of the local variables,
25797 since it will think that parent can't possibly be used any more
25798 in this routine. Assigning to the local variable will thus
25799 munge parent in the parent process. */
25801 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25802 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25803 /* Convince the compiler that p..p7 are live; otherwise, it might
25804 use the same hardware register for all 8 local variables. */
25805 if (p != p1 || p != p2 || p != p3 || p != p4
25806 || p != p5 || p != p6 || p != p7)
25809 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25810 from child file descriptors. If the child closes a descriptor
25811 before it execs or exits, this munges the parent's descriptor
25812 as well. Test for this by closing stdout in the child. */
25813 _exit(close(fileno(stdout)) != 0);
25818 while (wait(&status) != child)
25821 /* Was there some problem with vforking? */
25824 /* Did the child fail? (This shouldn't happen.) */
25827 /* Did the vfork/compiler bug occur? */
25828 || parent != getpid()
25830 /* Did the file descriptor bug occur? */
25831 || fstat(fileno(stdout), &st) != 0
25836 rm -f conftest$ac_exeext
25837 if { (ac_try="$ac_link"
25838 case "(($ac_try" in
25839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25840 *) ac_try_echo=$ac_try;;
25842 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25843 $as_echo "$ac_try_echo") >&5
25844 (eval "$ac_link") 2>&5
25846 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25847 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25848 { (case "(($ac_try" in
25849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25850 *) ac_try_echo=$ac_try;;
25852 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25853 $as_echo "$ac_try_echo") >&5
25854 (eval "$ac_try") 2>&5
25856 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25857 (exit $ac_status); }; }; then
25858 ac_cv_func_vfork_works=yes
25860 $as_echo "$as_me: program exited with status
$ac_status" >&5
25861 $as_echo "$as_me: failed program was
:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25864 ( exit $ac_status )
25865 ac_cv_func_vfork_works=no
25867 rm -rf conftest.dSYM
25868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25873 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25874 $as_echo "$ac_cv_func_vfork_works" >&6; }
25877 if test "x
$ac_cv_func_fork_works" = xcross; then
25878 ac_cv_func_vfork_works=$ac_cv_func_vfork
25879 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25880 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25883 if test "x
$ac_cv_func_vfork_works" = xyes; then
25885 cat >>confdefs.h <<\_ACEOF
25886 #define HAVE_WORKING_VFORK 1
25891 cat >>confdefs.h <<\_ACEOF
25896 if test "x
$ac_cv_func_fork_works" = xyes; then
25898 cat >>confdefs.h <<\_ACEOF
25899 #define HAVE_WORKING_FORK 1
25905 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25906 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25907 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25908 $as_echo_n "(cached
) " >&6
25910 cat >conftest.$ac_ext <<_ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h. */
25916 #include <langinfo.h>
25920 char* cs = nl_langinfo(CODESET);
25925 rm -f conftest.$ac_objext conftest$ac_exeext
25926 if { (ac_try="$ac_link"
25927 case "(($ac_try" in
25928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25929 *) ac_try_echo=$ac_try;;
25931 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25932 $as_echo "$ac_try_echo") >&5
25933 (eval "$ac_link") 2>conftest.er1
25935 grep -v '^ *+' conftest.er1 >conftest.err
25937 cat conftest.err >&5
25938 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25939 (exit $ac_status); } && {
25940 test -z "$ac_c_werror_flag" ||
25941 test ! -s conftest.err
25942 } && test -s conftest$ac_exeext && {
25943 test "$cross_compiling" = yes ||
25944 $as_test_x conftest$ac_exeext
25946 emacs_cv_langinfo_codeset=yes
25948 $as_echo "$as_me: failed program was
:" >&5
25949 sed 's/^/| /' conftest.$ac_ext >&5
25951 emacs_cv_langinfo_codeset=no
25954 rm -rf conftest.dSYM
25955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25956 conftest$ac_exeext conftest.$ac_ext
25959 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25960 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25961 if test $emacs_cv_langinfo_codeset = yes; then
25963 cat >>confdefs.h <<\_ACEOF
25964 #define HAVE_LANGINFO_CODESET 1
25969 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25970 $as_echo_n "checking
for size_t...
" >&6; }
25971 if test "${ac_cv_type_size_t+set}" = set; then
25972 $as_echo_n "(cached
) " >&6
25974 ac_cv_type_size_t=no
25975 cat >conftest.$ac_ext <<_ACEOF
25978 cat confdefs.h >>conftest.$ac_ext
25979 cat >>conftest.$ac_ext <<_ACEOF
25980 /* end confdefs.h. */
25981 $ac_includes_default
25985 if (sizeof (size_t))
25991 rm -f conftest.$ac_objext
25992 if { (ac_try="$ac_compile"
25993 case "(($ac_try" in
25994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25995 *) ac_try_echo=$ac_try;;
25997 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25998 $as_echo "$ac_try_echo") >&5
25999 (eval "$ac_compile") 2>conftest.er1
26001 grep -v '^ *+' conftest.er1 >conftest.err
26003 cat conftest.err >&5
26004 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26005 (exit $ac_status); } && {
26006 test -z "$ac_c_werror_flag" ||
26007 test ! -s conftest.err
26008 } && test -s conftest.$ac_objext; then
26009 cat >conftest.$ac_ext <<_ACEOF
26012 cat confdefs.h >>conftest.$ac_ext
26013 cat >>conftest.$ac_ext <<_ACEOF
26014 /* end confdefs.h. */
26015 $ac_includes_default
26019 if (sizeof ((size_t)))
26025 rm -f conftest.$ac_objext
26026 if { (ac_try="$ac_compile"
26027 case "(($ac_try" in
26028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26029 *) ac_try_echo=$ac_try;;
26031 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26032 $as_echo "$ac_try_echo") >&5
26033 (eval "$ac_compile") 2>conftest.er1
26035 grep -v '^ *+' conftest.er1 >conftest.err
26037 cat conftest.err >&5
26038 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26039 (exit $ac_status); } && {
26040 test -z "$ac_c_werror_flag" ||
26041 test ! -s conftest.err
26042 } && test -s conftest.$ac_objext; then
26045 $as_echo "$as_me: failed program was
:" >&5
26046 sed 's/^/| /' conftest.$ac_ext >&5
26048 ac_cv_type_size_t=yes
26051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26053 $as_echo "$as_me: failed program was
:" >&5
26054 sed 's/^/| /' conftest.$ac_ext >&5
26059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26061 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
26062 $as_echo "$ac_cv_type_size_t" >&6; }
26063 if test $ac_cv_type_size_t = yes; then
26065 cat >>confdefs.h <<_ACEOF
26066 #define HAVE_SIZE_T 1
26073 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
26074 $as_echo_n "checking
for mbstate_t...
" >&6; }
26075 if test "${ac_cv_type_mbstate_t+set}" = set; then
26076 $as_echo_n "(cached
) " >&6
26078 cat >conftest.$ac_ext <<_ACEOF
26081 cat confdefs.h >>conftest.$ac_ext
26082 cat >>conftest.$ac_ext <<_ACEOF
26083 /* end confdefs.h. */
26084 $ac_includes_default
26085 # include <wchar.h>
26089 mbstate_t x; return sizeof x;
26094 rm -f conftest.$ac_objext
26095 if { (ac_try="$ac_compile"
26096 case "(($ac_try" in
26097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26098 *) ac_try_echo=$ac_try;;
26100 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26101 $as_echo "$ac_try_echo") >&5
26102 (eval "$ac_compile") 2>conftest.er1
26104 grep -v '^ *+' conftest.er1 >conftest.err
26106 cat conftest.err >&5
26107 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26108 (exit $ac_status); } && {
26109 test -z "$ac_c_werror_flag" ||
26110 test ! -s conftest.err
26111 } && test -s conftest.$ac_objext; then
26112 ac_cv_type_mbstate_t=yes
26114 $as_echo "$as_me: failed program was
:" >&5
26115 sed 's/^/| /' conftest.$ac_ext >&5
26117 ac_cv_type_mbstate_t=no
26120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26122 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
26123 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26124 if test $ac_cv_type_mbstate_t = yes; then
26126 cat >>confdefs.h <<\_ACEOF
26127 #define HAVE_MBSTATE_T 1
26132 cat >>confdefs.h <<\_ACEOF
26133 #define mbstate_t int
26138 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
26139 $as_echo_n "checking
for C restrict keyword...
" >&6; }
26140 if test "${emacs_cv_c_restrict+set}" = set; then
26141 $as_echo_n "(cached
) " >&6
26143 cat >conftest.$ac_ext <<_ACEOF
26146 cat confdefs.h >>conftest.$ac_ext
26147 cat >>conftest.$ac_ext <<_ACEOF
26148 /* end confdefs.h. */
26149 void fred (int *restrict x);
26158 rm -f conftest.$ac_objext
26159 if { (ac_try="$ac_compile"
26160 case "(($ac_try" in
26161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26162 *) ac_try_echo=$ac_try;;
26164 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26165 $as_echo "$ac_try_echo") >&5
26166 (eval "$ac_compile") 2>conftest.er1
26168 grep -v '^ *+' conftest.er1 >conftest.err
26170 cat conftest.err >&5
26171 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26172 (exit $ac_status); } && {
26173 test -z "$ac_c_werror_flag" ||
26174 test ! -s conftest.err
26175 } && test -s conftest.$ac_objext; then
26176 emacs_cv_c_restrict=yes
26178 $as_echo "$as_me: failed program was
:" >&5
26179 sed 's/^/| /' conftest.$ac_ext >&5
26181 cat >conftest.$ac_ext <<_ACEOF
26184 cat confdefs.h >>conftest.$ac_ext
26185 cat >>conftest.$ac_ext <<_ACEOF
26186 /* end confdefs.h. */
26187 void fred (int *__restrict x);
26196 rm -f conftest.$ac_objext
26197 if { (ac_try="$ac_compile"
26198 case "(($ac_try" in
26199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26200 *) ac_try_echo=$ac_try;;
26202 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26203 $as_echo "$ac_try_echo") >&5
26204 (eval "$ac_compile") 2>conftest.er1
26206 grep -v '^ *+' conftest.er1 >conftest.err
26208 cat conftest.err >&5
26209 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26210 (exit $ac_status); } && {
26211 test -z "$ac_c_werror_flag" ||
26212 test ! -s conftest.err
26213 } && test -s conftest.$ac_objext; then
26214 emacs_cv_c_restrict=__restrict
26216 $as_echo "$as_me: failed program was
:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26219 emacs_cv_c_restrict=no
26222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26227 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
26228 $as_echo "$emacs_cv_c_restrict" >&6; }
26229 case "$emacs_cv_c_restrict" in
26230 yes) emacs_restrict=restrict;;
26231 no) emacs_restrict="";;
26232 *) emacs_restrict="$emacs_cv_c_restrict";;
26234 if test "$emacs_restrict" != __restrict; then
26236 cat >>confdefs.h <<_ACEOF
26237 #define __restrict $emacs_restrict
26242 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
26243 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
26244 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26245 $as_echo_n "(cached
) " >&6
26247 cat >conftest.$ac_ext <<_ACEOF
26250 cat confdefs.h >>conftest.$ac_ext
26251 cat >>conftest.$ac_ext <<_ACEOF
26252 /* end confdefs.h. */
26253 void fred (int x[__restrict]);
26262 rm -f conftest.$ac_objext
26263 if { (ac_try="$ac_compile"
26264 case "(($ac_try" in
26265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26266 *) ac_try_echo=$ac_try;;
26268 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26269 $as_echo "$ac_try_echo") >&5
26270 (eval "$ac_compile") 2>conftest.er1
26272 grep -v '^ *+' conftest.er1 >conftest.err
26274 cat conftest.err >&5
26275 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26276 (exit $ac_status); } && {
26277 test -z "$ac_c_werror_flag" ||
26278 test ! -s conftest.err
26279 } && test -s conftest.$ac_objext; then
26280 emacs_cv_c_restrict_arr=yes
26282 $as_echo "$as_me: failed program was
:" >&5
26283 sed 's/^/| /' conftest.$ac_ext >&5
26285 emacs_cv_c_restrict_arr=no
26288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26290 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
26291 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26292 if test "$emacs_cv_c_restrict_arr" = yes; then
26294 cat >>confdefs.h <<\_ACEOF
26295 #define __restrict_arr __restrict
26302 # Set up the CFLAGS for real compilation, so we can substitute it.
26303 CFLAGS="$REAL_CFLAGS"
26304 CPPFLAGS="$REAL_CPPFLAGS"
26306 ## Hack to detect a buggy GCC version.
26307 if test "x
$GCC" = xyes \
26308 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26309 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26310 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26311 { { $as_echo "$as_me:$LINENO: error
: GCC
4.5.0 has problems compiling Emacs
; see etc
/PROBLEMS
'." >&5
26312 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'.
" >&2;}
26313 { (exit 1); exit 1; }; }
26316 #### Find out which version of Emacs this is.
26317 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
26318 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
26319 if test x"${version}" = x; then
26320 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/src/emacs.c'.
" >&5
26321 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/src/emacs.c'.
" >&2;}
26322 { (exit 1); exit 1; }; }
26324 if test x"${version}" != x"$PACKAGE_VERSION"; then
26325 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/src
/emacs.c
'." >&5
26326 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
26329 ### Specify what sort of things we'll be editing into Makefile and config.h.
26330 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26355 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
26356 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
26357 ## end of LIBX_BASE, but nothing ever set it.
26362 ## Used in lwlib/Makefile.in.
26375 cat >>confdefs.h
<<_ACEOF
26376 #define EMACS_CONFIGURATION "${canonical}"
26380 cat >>confdefs.h
<<_ACEOF
26381 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26385 cat >>confdefs.h
<<_ACEOF
26386 #define config_machfile "${machfile}"
26390 cat >>confdefs.h
<<_ACEOF
26391 #define config_opsysfile "${opsysfile}"
26398 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26400 cat >>confdefs.h
<<\_ACEOF
26401 #define HAVE_X_WINDOWS 1
26405 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26407 if test "$HAVE_XFT" = "yes"; then
26408 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
26409 elif test "$HAVE_FREETYPE" = "yes"; then
26410 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
26420 if test "${USE_X_TOOLKIT}" != "none" ; then
26421 WIDGET_OBJ
=widget.o
26423 cat >>confdefs.h
<<\_ACEOF
26424 #define USE_X_TOOLKIT 1
26427 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26429 cat >>confdefs.h
<<\_ACEOF
26430 #define USE_LUCID 1
26433 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26435 cat >>confdefs.h
<<\_ACEOF
26436 #define USE_MOTIF 1
26442 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26443 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
26447 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26448 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26449 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
26453 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26454 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
26457 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
26463 case "$USE_X_TOOLKIT" in
26464 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
26465 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
26466 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
26470 if test "$USE_X_TOOLKIT" = "none"; then
26471 LIBXT_OTHER
="\$(LIBXSM)"
26472 OLDXMENU_TARGET
="really-oldXMenu"
26474 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26475 OLDXMENU_TARGET
="really-lwlib"
26480 ## The X Menu stuff is present in the X10 distribution, but missing
26481 ## from X11. If we have X10, just use the installed library;
26482 ## otherwise, use our own copy.
26483 if test "${HAVE_X11}" = "yes" ; then
26485 cat >>confdefs.h
<<\_ACEOF
26490 if test "$USE_X_TOOLKIT" = "none"; then
26491 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
26493 OLDXMENU
="\${lwlibdir}liblw.a"
26495 LIBXMENU
="\$(OLDXMENU)"
26496 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
26497 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
26500 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
26501 if test "${HAVE_X_WINDOWS}" = "yes"; then
26510 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
26521 if test "${HAVE_MENUS}" = "yes" ; then
26523 cat >>confdefs.h
<<\_ACEOF
26524 #define HAVE_MENUS 1
26529 if test "${GNU_MALLOC}" = "yes" ; then
26531 cat >>confdefs.h
<<\_ACEOF
26532 #define GNU_MALLOC 1
26538 if test "${REL_ALLOC}" = "yes" ; then
26540 cat >>confdefs.h
<<\_ACEOF
26541 #define REL_ALLOC 1
26545 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
26549 if test "$opsys" = "cygwin"; then
26550 CYGWIN_OBJ
="sheap.o"
26551 ## Cygwin differs because of its unexec().
26553 POST_ALLOC_OBJ
=lastfile.o
26556 PRE_ALLOC_OBJ
=lastfile.o
26565 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
26568 ## The -headerpad option tells ld (see man page) to leave room at the
26569 ## end of the header for adding load commands. Needed for dumping.
26570 ## 0x690 is the total size of 30 segment load commands (at 56
26571 ## each); under Cocoa 31 commands are required.
26572 if test "$HAVE_NS" = "yes"; then
26573 libs_nsgui
="-framework AppKit"
26574 headerpad_extra
=6C8
26577 headerpad_extra
=690
26579 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26582 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
26587 ## This exists because src/Makefile.in did some extra fiddling around
26588 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26589 ## #ifndef LD_SWITCH_SYSTEM
26590 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26591 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26592 ## not using gcc, darwin system not on an alpha (ie darwin, since
26593 ## darwin + alpha does not occur).
26594 ## Note that unlike L_S_S, this is not used in ac_link.
26595 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26596 test "$opsys" = "darwin"; then
26597 LD_SWITCH_SYSTEM_EXTRA
="-X"
26599 LD_SWITCH_SYSTEM_EXTRA
=
26607 ## gnu: GNU needs its own crt0.
26608 aix4-2|darwin|gnu|usg5-4|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
26610 cygwin
) LINKER
="\$(CC)" ;;
26612 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
26613 ## library search parth, i.e. it won't search /usr/lib for libc and
26614 ## friends. Using -nostartfiles instead avoids this problem, and
26615 ## will also work on earlier NetBSD releases.
26616 netbsd|openbsd
) LINKER
="\$(CC) -nostartfiles" ;;
26618 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
26619 ## MkLinux/LinuxPPC needs this.
26620 ## ibms390x only supports opsys = gnu-linux so it can be added here.
26623 macppc|ibms390x
) LINKER
="\$(CC) -nostdlib" ;;
26628 ## A macro which other sections of Makefile can redefine to munge the
26629 ## flags before they are passed to LD. This is helpful if you have
26630 ## redefined LD to something odd, like "gcc".
26631 ## (The YMF prefix is a holdover from the old name "ymakefile".)
26632 YMF_PASS_LDFLAGS
=flags
26633 if test "x$ORDINARY_LINK" = "xyes"; then
26637 cat >>confdefs.h
<<\_ACEOF
26638 #define ORDINARY_LINK 1
26642 ## The system files defining neither ORDINARY_LINK nor LINKER are:
26643 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
26644 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
26646 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
26647 ## places that are difficult to figure out at make time. Fortunately,
26648 ## these same versions allow you to pass arbitrary flags on to the
26649 ## linker, so there is no reason not to use it as a linker.
26651 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
26652 ## searching for libraries in its internal directories, so we have to
26653 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
26654 LINKER
="\$(CC) -nostdlib"
26655 ## GCC passes any argument prefixed with -Xlinker directly to the linker.
26656 ## See prefix-args.c for an explanation of why we do not do this with the
26657 ## shell''s ``for'' construct. Note that sane people do not have '.' in
26658 ## their paths, so we must use ./prefix-args.
26659 ## TODO either make prefix-args check ORDINARY_LINK internally,
26660 ## or remove it altogether (bug#6184), removing the need for this macro.
26661 YMF_PASS_LDFLAGS
='`./prefix-args -Xlinker flags`'
26665 test "x$LINKER" = "x" && LINKER
=ld
26666 ## FIXME? What setting of YMF_PASS_LDFLAGS should this have?
26667 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER
="\$(CC) -rdynamic"
26672 ## FIXME? The logic here is not precisely the same as that above
26673 ## setting YMF_PASS_LDFLAGS. There is no check here for a pre-defined
26674 ## LINKER. Should we only be setting LIB_GCC if LD ~ -nostdlib?
26676 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
26679 ## cygwin: don't link against static libgcc.
26680 cygwin|freebsd|netbsd|openbsd
) LIB_GCC
= ;;
26683 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26684 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26685 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26686 if test "$machine" = "arm"; then
26689 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26690 ## immediately undefine it again and redefine it to empty.
26691 ## Was the C_SWITCH_X_SITE part really necessary?
26692 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26697 ## Ask GCC where to find libgcc.a.
26698 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26705 ## If we're using X11/GNUstep, define some consequences.
26706 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
26708 cat >>confdefs.h
<<\_ACEOF
26709 #define HAVE_WINDOW_SYSTEM 1
26713 cat >>confdefs.h
<<\_ACEOF
26714 #define HAVE_MOUSE 1
26717 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
26718 TOOLTIP_SUPPORT
="\${lispsource}mouse.elc"
26720 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
26721 test "$HAVE_X_WINDOWS" = "yes" && \
26722 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
26734 #### Report on what we decided to do.
26735 #### Report GTK as a toolkit, even if it doesn't use Xt.
26736 #### It makes printing result more understandable as using GTK sets
26737 #### toolkit_scroll_bars to yes by default.
26738 if test "${HAVE_GTK}" = "yes"; then
26743 Configured for \`${canonical}'.
26745 Where should the build process find the source code? ${srcdir}
26746 What operating system and machine description files should Emacs use?
26747 \`${opsysfile}' and \`${machfile}'
26748 What compiler should emacs be built with? ${CC} ${CFLAGS}
26749 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26750 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26751 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26752 What window system should Emacs use? ${window_system}
26753 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26755 if test -n "${x_includes}"; then
26756 echo " Where do we find X Windows header files? ${x_includes}"
26758 echo " Where do we find X Windows header files? Standard dirs"
26760 if test -n "${x_libraries}"; then
26761 echo " Where do we find X Windows libraries? ${x_libraries}"
26763 echo " Where do we find X Windows libraries? Standard dirs"
26766 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26767 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26768 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26769 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26770 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26771 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26772 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26773 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26774 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26775 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26776 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26778 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26779 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26780 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26781 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26783 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26786 if test $USE_XASSERTS = yes; then
26787 echo " Compiling with asserts turned on."
26788 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
26793 if test "$HAVE_NS" = "yes"; then
26795 echo "You must run \"make install\" in order to test the built application.
26796 The installed application will go to nextstep/Emacs.app and can be
26797 run or moved from there."
26798 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26799 echo "The application will be fully self-contained."
26801 echo "The lisp resources for the application will be installed under ${prefix}.
26802 You may need to run \"make install\" with sudo. The application will fail
26803 to run if these resources are not installed."
26808 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26809 echo "D-Bus integration has been tested for GNU/Linux only."
26814 # Remove any trailing slashes in these variables.
26815 test "${prefix}" != NONE
&&
26816 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26817 test "${exec_prefix}" != NONE
&&
26818 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26820 # Now get this: Some word that is part of the ${srcdir} directory name
26821 # or the ${configuration} value might, just might, happen to be an
26822 # identifier like `sun4' or `i386' or something, and be predefined by
26823 # the C preprocessor to some helpful value like 1, or maybe the empty
26824 # string. Needless to say consequent macro substitutions are less
26825 # than conducive to the makefile finding the correct directory.
26826 # src/Makefile.in used to treat X11 as equivalent to HAVE_X11.
26827 # But nothing in Emacs defines X11, and everywhere else uses HAVE_X11,
26828 # so that cannot have been doing anything.
26829 cpp_undefs
="`echo $srcdir $configuration $canonical unix mktime register X11 |
26830 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26831 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26833 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26834 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26835 ## from Makefile.c can correctly provide the arg `-traditional' to the
26838 cat >conftest.
$ac_ext <<_ACEOF
26841 cat confdefs.h
>>conftest.
$ac_ext
26842 cat >>conftest.
$ac_ext <<_ACEOF
26843 /* end confdefs.h. */
26846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26847 $EGREP "yes..yes" >/dev
/null
2>&1; then
26848 CPP_NEED_TRADITIONAL
=no
26850 CPP_NEED_TRADITIONAL
=yes
26855 ac_config_files
="$ac_config_files Makefile lib-src/Makefile 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"
26857 ac_config_commands
="$ac_config_commands default"
26859 cat >confcache
<<\_ACEOF
26860 # This file is a shell script that caches the results of configure
26861 # tests run on this system so they can be shared between configure
26862 # scripts and configure runs, see configure's option --config-cache.
26863 # It is not useful on other systems. If it contains results you don't
26864 # want to keep, you may remove or edit it.
26866 # config.status only pays attention to the cache file if you give it
26867 # the --recheck option to rerun configure.
26869 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26870 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26871 # following values.
26875 # The following way of writing the cache mishandles newlines in values,
26876 # but we know of no workaround that is simple, portable, and efficient.
26877 # So, we kill variables containing newlines.
26878 # Ultrix sh set writes to stderr and can't be redirected directly,
26879 # and sets the high bit in the cache file unless we assign to the vars.
26881 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26882 eval ac_val
=\$
$ac_var
26886 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26887 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26890 _ | IFS | as_nl
) ;; #(
26891 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26892 *) $as_unset $ac_var ;;
26898 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26899 *${as_nl}ac_space
=\
*)
26900 # `set' does not quote correctly, so add quotes (double-quote
26901 # substitution turns \\\\ into \\, and sed turns \\ into \).
26904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26907 # `set' quotes correctly as required by POSIX, so do not add quotes.
26908 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26917 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26919 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26921 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26922 if test -w "$cache_file"; then
26923 test "x$cache_file" != "x/dev/null" &&
26924 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26925 $as_echo "$as_me: updating cache $cache_file" >&6;}
26926 cat confcache
>$cache_file
26928 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26929 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26934 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26935 # Let make expand exec_prefix.
26936 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26938 DEFS
=-DHAVE_CONFIG_H
26942 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26943 # 1. Remove the extension, and $U if already installed.
26944 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26945 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26946 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26947 # will be set to the directory where LIBOBJS objects are built.
26948 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26949 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26951 LIBOBJS
=$ac_libobjs
26953 LTLIBOBJS
=$ac_ltlibobjs
26957 : ${CONFIG_STATUS=./config.status}
26959 ac_clean_files_save
=$ac_clean_files
26960 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26961 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26962 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26963 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26965 # Generated by $as_me.
26966 # Run this file to recreate the current configuration.
26967 # Compiler output produced by configure, useful for debugging
26968 # configure, is in config.log if it exists.
26971 ac_cs_recheck=false
26973 SHELL=\${CONFIG_SHELL-$SHELL}
26976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26977 ## --------------------- ##
26978 ## M4sh Initialization. ##
26979 ## --------------------- ##
26981 # Be more Bourne compatible
26982 DUALCASE
=1; export DUALCASE
# for MKS sh
26983 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26986 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26987 # is contrary to our usage. Disable this feature.
26988 alias -g '${1+"$@"}'='"$@"'
26989 setopt NO_GLOB_SUBST
26991 case `(set -o) 2>/dev/null` in
26992 *posix
*) set -o posix
;;
27001 # Avoid depending upon Character Ranges.
27002 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27003 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27004 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27005 as_cr_digits
='0123456789'
27006 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27011 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27012 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27013 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27014 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27015 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27016 as_echo='printf %s
\n'
27017 as_echo_n='printf %s
'
27019 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27020 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27021 as_echo_n='/usr
/ucb
/echo -n'
27023 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27024 as_echo_n_body='eval
27028 expr "X$arg" : "X\\(.*\\)$as_nl";
27029 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27031 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27033 export as_echo_n_body
27034 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27036 export as_echo_body
27037 as_echo='sh
-c $as_echo_body as_echo
'
27040 # The user is always right.
27041 if test "${PATH_SEPARATOR+set}" != set; then
27043 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27044 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27049 # Support unset when possible.
27050 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27058 # We need space, tab and new line, in precisely that order. Quoting is
27059 # there to prevent editors from complaining about space-tab.
27060 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27061 # splitting by setting IFS to empty value.)
27064 # Find who we are. Look in the path if we contain no directory separator.
27066 *[\\/]* ) as_myself=$0 ;;
27067 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27068 for as_dir in $PATH
27071 test -z "$as_dir" && as_dir=.
27072 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27078 # We did not find ourselves, most probably we were run as `sh COMMAND'
27079 # in which case we are not to be found in the path.
27080 if test "x$as_myself" = x
; then
27083 if test ! -f "$as_myself"; then
27084 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27085 { (exit 1); exit 1; }
27088 # Work around bugs in pre-3.0 UWIN ksh.
27089 for as_var
in ENV MAIL MAILPATH
27090 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27102 # Required to use basename.
27103 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27104 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27110 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27111 as_basename
=basename
27117 # Name of the executable.
27118 as_me
=`$as_basename -- "$0" ||
27119 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27120 X"$0" : 'X\(//\)$' \| \
27121 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27123 sed '/^.*\/\([^/][^/]*\)\/*$/{
27142 as_lineno_1
=$LINENO
27143 as_lineno_2
=$LINENO
27144 test "x$as_lineno_1" != "x$as_lineno_2" &&
27145 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27147 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27148 # uniformly replaced by the line number. The first 'sed' inserts a
27149 # line-number line after each line using $LINENO; the second 'sed'
27150 # does the real work. The second script uses 'N' to pair each
27151 # line-number line with the line containing $LINENO, and appends
27152 # trailing '-' during substitution so that $LINENO is not a special
27153 # case at line end.
27154 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27155 # scripts with optimization help from Paolo Bonzini. Blame Lee
27156 # E. McMahon (1931-1989) for sed's syntax. :-)
27168 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27171 ' >$as_me.lineno
&&
27172 chmod +x
"$as_me.lineno" ||
27173 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27174 { (exit 1); exit 1; }; }
27176 # Don't try to exec as it changes $[0], causing all sort of problems
27177 # (the dirname of $[0] is not the place where we might find the
27178 # original and so on. Autoconf is especially sensitive to this).
27179 .
"./$as_me.lineno"
27180 # Exit status is that of the last command.
27185 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27191 ECHO_C
= ECHO_N
= ECHO_T
=
27192 case `echo -n x` in
27194 case `echo 'x\c'` in
27195 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27201 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27202 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27208 rm -f conf$$ conf$$.exe conf$$.
file
27209 if test -d conf$$.dir
; then
27210 rm -f conf$$.dir
/conf$$.
file
27213 mkdir conf$$.dir
2>/dev
/null
27215 if (echo >conf$$.
file) 2>/dev
/null
; then
27216 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27218 # ... but there are two gotchas:
27219 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27220 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27221 # In both cases, we have to default to `cp -p'.
27222 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27224 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27232 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27233 rmdir conf$$.dir
2>/dev
/null
27235 if mkdir
-p .
2>/dev
/null
; then
27238 test -d .
/-p && rmdir .
/-p
27242 if test -x / >/dev
/null
2>&1; then
27243 as_test_x
='test -x'
27245 if ls -dL / >/dev
/null
2>&1; then
27252 if test -d "$1"; then
27258 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27259 ???[sx]*):;;*)false;;esac;fi
27263 as_executable_p
=$as_test_x
27265 # Sed expression to map a string onto a valid CPP name.
27266 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27268 # Sed expression to map a string onto a valid variable name.
27269 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27274 # Save the log message, to keep $[0] and so on meaningful, and to
27275 # report actual input values of CONFIG_FILES etc. instead of their
27276 # values after options handling.
27278 This file was extended by emacs $as_me 24.0.50, which was
27279 generated by GNU Autoconf 2.62. Invocation command line was
27281 CONFIG_FILES = $CONFIG_FILES
27282 CONFIG_HEADERS = $CONFIG_HEADERS
27283 CONFIG_LINKS = $CONFIG_LINKS
27284 CONFIG_COMMANDS = $CONFIG_COMMANDS
27287 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27293 # Files that config.status was made for.
27294 config_files="$ac_config_files"
27295 config_headers="$ac_config_headers"
27296 config_commands="$ac_config_commands"
27300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27302 \`$as_me' instantiates files from templates according to the
27303 current configuration.
27305 Usage: $0 [OPTIONS] [FILE]...
27307 -h, --help print this help, then exit
27308 -V, --version print version number and configuration settings, then exit
27309 -q, --quiet do not print progress messages
27310 -d, --debug don't remove temporary files
27311 --recheck update $as_me by reconfiguring in the same conditions
27312 --file=FILE[:TEMPLATE]
27313 instantiate the configuration file FILE
27314 --header=FILE[:TEMPLATE]
27315 instantiate the configuration header FILE
27317 Configuration files:
27320 Configuration headers:
27323 Configuration commands:
27326 Report bugs to <bug-autoconf@gnu.org>."
27329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27331 emacs config.status 24.0.50
27332 configured by $0, generated by GNU Autoconf 2.62,
27333 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27335 Copyright (C) 2008 Free Software Foundation, Inc.
27336 This config.status script is free software; the Free Software Foundation
27337 gives unlimited permission to copy, distribute and modify it."
27342 test -n "\$AWK" || AWK=awk
27345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27346 # The default lists apply if the user does not specify any file.
27352 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27353 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27364 # Handling of the options.
27365 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27367 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27368 $as_echo "$ac_cs_version"; exit ;;
27369 --debug |
--debu |
--deb |
--de |
--d |
-d )
27371 --file |
--fil |
--fi |
--f )
27374 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27376 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
27377 ac_need_defaults
=false
;;
27378 --header |
--heade |
--head |
--hea )
27381 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27383 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
27384 ac_need_defaults
=false
;;
27386 # Conflict between --help and --header
27387 { $as_echo "$as_me: error: ambiguous option: $1
27388 Try \`$0 --help' for more information." >&2
27389 { (exit 1); exit 1; }; };;
27390 --help |
--hel |
-h )
27391 $as_echo "$ac_cs_usage"; exit ;;
27392 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27393 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27396 # This is an error.
27397 -*) { $as_echo "$as_me: error: unrecognized option: $1
27398 Try \`$0 --help' for more information." >&2
27399 { (exit 1); exit 1; }; } ;;
27401 *) ac_config_targets
="$ac_config_targets $1"
27402 ac_need_defaults
=false
;;
27408 ac_configure_extra_args
=
27410 if $ac_cs_silent; then
27412 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27417 if \$ac_cs_recheck; then
27418 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27420 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27421 CONFIG_SHELL='$SHELL'
27422 export CONFIG_SHELL
27427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27432 ## Running $as_me. ##
27438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27442 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27448 # Handling of arguments.
27449 for ac_config_target
in $ac_config_targets
27451 case $ac_config_target in
27452 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27453 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27454 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
27455 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
27456 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
27457 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
27458 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
27459 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
27460 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27461 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
27462 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
27463 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
27464 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27466 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27467 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27468 { (exit 1); exit 1; }; };;
27473 # If the user did not use the arguments to specify the items to instantiate,
27474 # then the envvar interface is used. Set only those that are not.
27475 # We use the long form for the default assignment because of an extremely
27476 # bizarre bug on SunOS 4.1.3.
27477 if $ac_need_defaults; then
27478 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27479 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27480 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27483 # Have a temporary directory for convenience. Make it in the build tree
27484 # simply because there is no reason against having it here, and in addition,
27485 # creating and moving files from /tmp can sometimes cause problems.
27486 # Hook for its removal unless debugging.
27487 # Note that there is a small window in which the directory will not be cleaned:
27488 # after its creation but before its name has been assigned to `$tmp'.
27492 trap 'exit_status=$?
27493 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27495 trap '{ (exit 1); exit 1; }' 1 2 13 15
27497 # Create a (secure) tmp directory for tmp files.
27500 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27501 test -n "$tmp" && test -d "$tmp"
27504 tmp
=.
/conf$$
-$RANDOM
27505 (umask 077 && mkdir
"$tmp")
27508 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27509 { (exit 1); exit 1; }
27512 # Set up the scripts for CONFIG_FILES section.
27513 # No need to generate them if there are no CONFIG_FILES.
27514 # This happens for instance with `./config.status config.h'.
27515 if test -n "$CONFIG_FILES"; then
27517 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
27518 ac_cs_awk_getline
=:
27519 ac_cs_awk_pipe_init
=
27520 ac_cs_awk_read_file
='
27521 while ((getline aline < (F[key])) > 0)
27524 ac_cs_awk_pipe_fini
=
27526 ac_cs_awk_getline
=false
27527 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
27528 ac_cs_awk_read_file
='
27530 print "cat " F[key] " &&"
27531 '$ac_cs_awk_pipe_init
27532 # The final `:' finishes the AND list.
27533 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
27536 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27537 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27540 ac_cs_awk_cr
=$ac_cr
27543 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27546 # Create commands to substitute file output variables.
27548 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27549 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27550 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
27553 } >conf$
$files.sh
&&
27554 . .
/conf$
$files.sh ||
27555 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27556 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27557 { (exit 1); exit 1; }; }
27558 rm -f conf$
$files.sh
27561 echo "cat >conf$$subs.awk <<_ACEOF" &&
27562 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27564 } >conf$$subs.sh ||
27565 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27566 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27567 { (exit 1); exit 1; }; }
27568 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27570 for ac_last_try in false false false false false :; do
27571 . ./conf$$subs.sh ||
27572 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27573 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27574 { (exit 1); exit 1; }; }
27576 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27578 elif $ac_last_try; then
27579 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27580 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27581 { (exit 1); exit 1; }; }
27583 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27586 rm -f conf$$subs.sh
27588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27589 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27593 s/^/S["/; s
/!.
*/"]=/
27603 s/\(.\{148\}\).*/\1/
27605 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27610 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27617 s/\(.\{148\}\).*/\1/
27619 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27623 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27628 ' <conf$$subs.awk | sed '
27633 ' >>$CONFIG_STATUS || ac_write_fail=1
27634 rm -f conf$$subs.awk
27635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27637 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27638 for (key in S) S_is_set[key] = 1
27640 \$ac_cs_awk_pipe_init
27644 nfields = split(line, field, "@
")
27646 len = length(field[1])
27647 for (i = 2; i < nfields; i++) {
27649 keylen = length(key)
27650 if (S_is_set[key]) {
27652 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27653 len += length(value) + length(field[++i])
27658 if (nfields == 3 && !substed) {
27660 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27661 \$ac_cs_awk_read_file
27667 \$ac_cs_awk_pipe_fini
27670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27671 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27672 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27675 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27676 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
27677 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
27678 { (exit 1); exit 1; }; }
27681 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27682 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27683 # trailing colons and then remove the whole line if VPATH becomes empty
27684 # (actually we leave an empty line to preserve line numbers).
27685 if test "x
$srcdir" = x.; then
27686 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27687 s/:*\$(srcdir):*/:/
27688 s/:*\${srcdir}:*/:/
27690 s/^\([^=]*=[ ]*\):*/\1/
27696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27697 fi # test -n "$CONFIG_FILES"
27699 # Set up the scripts for CONFIG_HEADERS section.
27700 # No need to generate them if there are no CONFIG_HEADERS.
27701 # This happens for instance with `./config.status Makefile'.
27702 if test -n "$CONFIG_HEADERS"; then
27703 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27707 # Transform confdefs.h into an awk script `defines.awk', embedded as
27708 # here-document in config.status, that substitutes the proper values into
27709 # config.h.in to produce config.h.
27711 # Create a delimiter string that does not exist in confdefs.h, to ease
27712 # handling of long lines.
27714 for ac_last_try in false false :; do
27715 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27716 if test -z "$ac_t"; then
27718 elif $ac_last_try; then
27719 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
27720 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
27721 { (exit 1); exit 1; }; }
27723 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27727 # For the awk script, D is an array of macro values keyed by name,
27728 # likewise P contains macro parameters if any. Preserve backslash
27729 # newline sequences.
27731 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27733 s/.\{148\}/&'"$ac_delim"'/g
27736 s/^[ ]*#[ ]*define[ ][ ]*/ /
27743 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27745 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27749 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27750 D["\
1"]=" \
3\\\\\\n
"\\/p
27752 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27757 s/.\{148\}/&'"$ac_delim"'/g
27762 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27765 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27767 ' <confdefs.h | sed '
27768 s/'"$ac_delim"'/"\\\
27769 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27772 for (key in D) D_is_set[key] = 1
27775 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27777 split(line, arg, " ")
27778 if (arg[1] == "#") {
27782 defundef
= substr
(arg
[1], 2)
27785 split(mac1
, mac2
, "(") #)
27787 if (D_is_set
[macro
]) {
27788 # Preserve the white space surrounding the "#".
27789 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27790 print prefix
"define", macro P
[macro
] D
[macro
]
27793 # Replace #undef with comments. This is necessary, for example,
27794 # in the case of _POSIX_SOURCE, which is predefined and required
27795 # on some systems where configure will not decide to define it.
27796 if (defundef
== "undef") {
27797 print
"/*", line
, "*/"
27805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27806 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27807 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27808 { (exit 1); exit 1; }; }
27809 fi # test -n "$CONFIG_HEADERS"
27812 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27817 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27819 case $ac_mode$ac_tag in
27821 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27822 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27823 { (exit 1); exit 1; }; };;
27824 :[FH
]-) ac_tag
=-:-;;
27825 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27842 -) ac_f
="$tmp/stdin";;
27843 *) # Look for the file first in the build tree, then in the source tree
27844 # (if the path is not absolute). The absolute path cannot be DOS-style,
27845 # because $ac_f cannot contain `:'.
27849 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27851 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27852 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27853 { (exit 1); exit 1; }; };;
27855 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27856 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27859 # Let's still pretend it is `configure' which instantiates (i.e., don't
27860 # use $as_me), people would be surprised to read:
27861 # /* config.h. Generated by config.status. */
27862 configure_input
='Generated from '`
27863 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27865 if test x
"$ac_file" != x-
; then
27866 configure_input
="$ac_file. $configure_input"
27867 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27868 $as_echo "$as_me: creating $ac_file" >&6;}
27870 # Neutralize special characters interpreted by sed in replacement strings.
27871 case $configure_input in #(
27872 *\
&* |
*\|
* |
*\\* )
27873 ac_sed_conf_input
=`$as_echo "$configure_input" |
27874 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27875 *) ac_sed_conf_input
=$configure_input;;
27879 *:-:* |
*:-) cat >"$tmp/stdin" \
27880 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27881 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27882 { (exit 1); exit 1; }; } ;;
27887 ac_dir
=`$as_dirname -- "$ac_file" ||
27888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27889 X"$ac_file" : 'X\(//\)[^/]' \| \
27890 X"$ac_file" : 'X\(//\)$' \| \
27891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27892 $as_echo X"$ac_file" |
27893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27897 /^X\(\/\/\)[^/].*/{
27912 -*) as_dir
=.
/$as_dir;;
27914 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27918 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27919 *) as_qdir
=$as_dir;;
27921 as_dirs
="'$as_qdir' $as_dirs"
27922 as_dir
=`$as_dirname -- "$as_dir" ||
27923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27924 X"$as_dir" : 'X\(//\)[^/]' \| \
27925 X"$as_dir" : 'X\(//\)$' \| \
27926 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27927 $as_echo X"$as_dir" |
27928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27932 /^X\(\/\/\)[^/].*/{
27945 test -d "$as_dir" && break
27947 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27948 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27949 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27950 { (exit 1); exit 1; }; }; }
27954 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27956 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27957 # A ".." for each directory in $ac_dir_suffix.
27958 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27959 case $ac_top_builddir_sub in
27960 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27961 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27964 ac_abs_top_builddir
=$ac_pwd
27965 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27966 # for backward compatibility:
27967 ac_top_builddir
=$ac_top_build_prefix
27970 .
) # We are building in place.
27972 ac_top_srcdir
=$ac_top_builddir_sub
27973 ac_abs_top_srcdir
=$ac_pwd ;;
27974 [\\/]* | ?
:[\\/]* ) # Absolute name.
27975 ac_srcdir
=$srcdir$ac_dir_suffix;
27976 ac_top_srcdir
=$srcdir
27977 ac_abs_top_srcdir
=$srcdir ;;
27978 *) # Relative name.
27979 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27980 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27981 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27983 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27993 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27994 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27999 # If the template does not know about datarootdir, expand it.
28000 # FIXME: This hack should be removed a few years after 2.60.
28001 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28014 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28015 *datarootdir
*) ac_datarootdir_seen
=yes;;
28016 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28017 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28018 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28021 ac_datarootdir_hack='
28022 s&@datadir@&$datadir&g
28023 s&@docdir@&$docdir&g
28024 s&@infodir@&$infodir&g
28025 s&@localedir@&$localedir&g
28026 s&@mandir@&$mandir&g
28027 s&\\\${datarootdir}&$datarootdir&g' ;;
28031 # Neutralize VPATH when `$srcdir' = `.'.
28032 # Shell code in configure.ac might set extrasub.
28033 # FIXME: do we really want to maintain this feature?
28034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28035 ac_sed_extra="$ac_vpsub
28038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28040 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28041 s|@configure_input@|
$ac_sed_conf_input|
;t t
28042 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28043 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28044 s
&@srcdir@
&$ac_srcdir&;t t
28045 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28046 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28047 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28048 s
&@builddir@
&$ac_builddir&;t t
28049 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28050 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28051 s
&@INSTALL@
&$ac_INSTALL&;t t
28052 $ac_datarootdir_hack
28054 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28055 if $ac_cs_awk_getline; then
28056 $AWK -f "$tmp/subs.
awk"
28058 $AWK -f "$tmp/subs.
awk" | $SHELL
28060 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
28061 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
28062 { (exit 1); exit 1; }; }
28064 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28065 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28066 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28067 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28068 which seems to be undefined. Please make sure it is defined." >&5
28069 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28070 which seems to be undefined. Please make sure it is defined." >&2;}
28074 -) cat "$tmp/out" && rm -f "$tmp/out";;
28075 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28077 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28078 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28079 { (exit 1); exit 1; }; }
28085 if test x"$ac_file" != x-; then
28087 $as_echo "/* $configure_input */" \
28088 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28089 } >"$tmp/config.h" \
28090 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28091 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28092 { (exit 1); exit 1; }; }
28093 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28094 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28095 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28098 mv "$tmp/config.h" "$ac_file" \
28099 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28100 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28101 { (exit 1); exit 1; }; }
28104 $as_echo "/* $configure_input */" \
28105 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28106 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28107 $as_echo "$as_me: error: could not create -" >&2;}
28108 { (exit 1); exit 1; }; }
28112 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
28113 $as_echo "$as_me: executing $ac_file commands" >&6;}
28118 case $ac_file$ac_mode in
28121 ### Make the necessary directories, if they don't exist.
28122 for dir
in etc lisp
; do
28123 test -d ${dir} || mkdir
${dir}
28126 # Build src/Makefile from ${srcdir}/src/Makefile.c
28127 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
28128 # This must be done after src/config.h is built, since we rely on that file.
28130 echo creating src
/epaths.h
28131 ${MAKE-make} epaths-force
28133 # As of 2000-11-19, newest development versions of GNU cpp preprocess
28134 # `..' to `. .' unless invoked with -traditional
28136 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
28137 CPPFLAGS
="$CPPFLAGS -traditional"
28140 echo creating src
/Makefile
28142 rm -f junk.c junk1.c junk2.c
28143 sed -e '/start of cpp stuff/q' \
28144 < Makefile.c
> junk1.c
28145 sed -e '1,/start of cpp stuff/d'\
28146 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28147 < Makefile.c
> junk.c
28148 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
28149 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28150 cat junk1.c junk2.c
> Makefile.new
28151 rm -f junk.c junk1.c junk2.c
28152 chmod 444 Makefile.new
28153 mv -f Makefile.new Makefile
28156 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
28157 echo creating src
/.gdbinit
28158 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
28167 { (exit 0); exit 0; }
28169 chmod +x
$CONFIG_STATUS
28170 ac_clean_files
=$ac_clean_files_save
28172 test $ac_write_fail = 0 ||
28173 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28174 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28175 { (exit 1); exit 1; }; }
28178 # configure is writing to config.log, and then calls config.status.
28179 # config.status does its own redirection, appending to config.log.
28180 # Unfortunately, on DOS this fails, as config.log is still kept open
28181 # by configure, so config.status won't be able to write to it; its
28182 # output is simply discarded. So we exec the FD to /dev/null,
28183 # effectively closing config.log, so it can be properly (re)opened and
28184 # appended to by config.status. When coming back to configure, we
28185 # need to make the FD available again.
28186 if test "$no_create" != yes; then
28188 ac_config_status_args
=
28189 test "$silent" = yes &&
28190 ac_config_status_args
="$ac_config_status_args --quiet"
28192 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28194 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28195 # would make configure fail if this is the last instruction.
28196 $ac_cs_success ||
{ (exit 1); exit 1; }
28198 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28199 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
28200 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}