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
722 LD_SWITCH_X_SITE_AUX_RPATH
724 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
788 x_default_search_path
822 LD_SWITCH_SYSTEM_TEMACS
823 LD_SWITCH_SYSTEM_EXTRA
831 ac_subst_files
='deps_frag
834 enable_option_checking
854 with_toolkit_scroll_bars
866 enable_ns_self_contained
868 enable_maintainer_mode
876 ac_precious_vars
='build_alias
888 # Initialize some variables set by options.
890 ac_init_version
=false
891 ac_unrecognized_opts
=
893 # The variables have the same names as the options, with
894 # dashes changed to underlines.
902 program_transform_name
=s
,x
,x
,
910 # Installation directory options.
911 # These are left unexpanded so users can "make install exec_prefix=/foo"
912 # and all the variables that are supposed to be based on exec_prefix
913 # by default will actually change.
914 # Use braces instead of parens because sh, perl, etc. also accept them.
915 # (The list follows the same order as the GNU Coding Standards.)
916 bindir
='${exec_prefix}/bin'
917 sbindir
='${exec_prefix}/sbin'
918 libexecdir
='${exec_prefix}/libexec'
919 datarootdir
='${prefix}/share'
920 datadir
='${datarootdir}'
921 sysconfdir
='${prefix}/etc'
922 sharedstatedir
='${prefix}/com'
923 localstatedir
='${prefix}/var'
924 includedir
='${prefix}/include'
925 oldincludedir
='/usr/include'
926 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
927 infodir
='${datarootdir}/info'
932 libdir
='${exec_prefix}/lib'
933 localedir
='${datarootdir}/locale'
934 mandir
='${datarootdir}/man'
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\
$ac_option
948 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952 # Accept the important Cygnus configure options, so we can diagnose typos.
954 case $ac_dashdash$ac_option in
958 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
960 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
963 -build |
--build |
--buil |
--bui |
--bu)
964 ac_prev
=build_alias
;;
965 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
966 build_alias
=$ac_optarg ;;
968 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
969 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
970 ac_prev
=cache_file
;;
971 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
972 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
973 cache_file
=$ac_optarg ;;
976 cache_file
=config.cache
;;
978 -datadir |
--datadir |
--datadi |
--datad)
980 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
981 datadir
=$ac_optarg ;;
983 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
984 |
--dataroo |
--dataro |
--datar)
985 ac_prev
=datarootdir
;;
986 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
987 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
988 datarootdir
=$ac_optarg ;;
990 -disable-* |
--disable-*)
991 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
994 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
995 { (exit 1); exit 1; }; }
996 ac_useropt_orig
=$ac_useropt
997 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_
$ac_useropt"
1002 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep
=', ';;
1005 eval enable_
$ac_useropt=no
;;
1007 -docdir |
--docdir |
--docdi |
--doc |
--do)
1009 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1010 docdir
=$ac_optarg ;;
1012 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1014 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1015 dvidir
=$ac_optarg ;;
1017 -enable-* |
--enable-*)
1018 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1021 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_useropt_orig
=$ac_useropt
1024 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1027 "enable_
$ac_useropt"
1029 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep
=', ';;
1032 eval enable_
$ac_useropt=\
$ac_optarg ;;
1034 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1035 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1036 |
--exec |
--exe |
--ex)
1037 ac_prev
=exec_prefix
;;
1038 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1039 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1040 |
--exec=* |
--exe=* |
--ex=*)
1041 exec_prefix
=$ac_optarg ;;
1043 -gas |
--gas |
--ga |
--g)
1044 # Obsolete; use --with-gas.
1047 -help |
--help |
--hel |
--he |
-h)
1048 ac_init_help
=long
;;
1049 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1050 ac_init_help
=recursive
;;
1051 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1052 ac_init_help
=short
;;
1054 -host |
--host |
--hos |
--ho)
1055 ac_prev
=host_alias
;;
1056 -host=* |
--host=* |
--hos=* |
--ho=*)
1057 host_alias
=$ac_optarg ;;
1059 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1061 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1063 htmldir
=$ac_optarg ;;
1065 -includedir |
--includedir |
--includedi |
--included |
--include \
1066 |
--includ |
--inclu |
--incl |
--inc)
1067 ac_prev
=includedir
;;
1068 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1069 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1070 includedir
=$ac_optarg ;;
1072 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1074 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1075 infodir
=$ac_optarg ;;
1077 -libdir |
--libdir |
--libdi |
--libd)
1079 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1080 libdir
=$ac_optarg ;;
1082 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1083 |
--libexe |
--libex |
--libe)
1084 ac_prev
=libexecdir
;;
1085 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1086 |
--libexe=* |
--libex=* |
--libe=*)
1087 libexecdir
=$ac_optarg ;;
1089 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1090 ac_prev
=localedir
;;
1091 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1092 localedir
=$ac_optarg ;;
1094 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1095 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1096 ac_prev
=localstatedir
;;
1097 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1098 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1099 localstatedir
=$ac_optarg ;;
1101 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1103 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1104 mandir
=$ac_optarg ;;
1106 -nfp |
--nfp |
--nf)
1107 # Obsolete; use --without-fp.
1110 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1111 |
--no-cr |
--no-c |
-n)
1114 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1115 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1118 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1119 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1120 |
--oldin |
--oldi |
--old |
--ol |
--o)
1121 ac_prev
=oldincludedir
;;
1122 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1123 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1124 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1125 oldincludedir
=$ac_optarg ;;
1127 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1129 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1130 prefix
=$ac_optarg ;;
1132 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1133 |
--program-pre |
--program-pr |
--program-p)
1134 ac_prev
=program_prefix
;;
1135 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1136 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1137 program_prefix
=$ac_optarg ;;
1139 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1140 |
--program-suf |
--program-su |
--program-s)
1141 ac_prev
=program_suffix
;;
1142 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1143 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1144 program_suffix
=$ac_optarg ;;
1146 -program-transform-name |
--program-transform-name \
1147 |
--program-transform-nam |
--program-transform-na \
1148 |
--program-transform-n |
--program-transform- \
1149 |
--program-transform |
--program-transfor \
1150 |
--program-transfo |
--program-transf \
1151 |
--program-trans |
--program-tran \
1152 |
--progr-tra |
--program-tr |
--program-t)
1153 ac_prev
=program_transform_name
;;
1154 -program-transform-name=* |
--program-transform-name=* \
1155 |
--program-transform-nam=* |
--program-transform-na=* \
1156 |
--program-transform-n=* |
--program-transform-=* \
1157 |
--program-transform=* |
--program-transfor=* \
1158 |
--program-transfo=* |
--program-transf=* \
1159 |
--program-trans=* |
--program-tran=* \
1160 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1161 program_transform_name
=$ac_optarg ;;
1163 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1165 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1166 pdfdir
=$ac_optarg ;;
1168 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1170 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1173 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1174 |
-silent |
--silent |
--silen |
--sile |
--sil)
1177 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1179 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1181 sbindir
=$ac_optarg ;;
1183 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1184 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1185 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1187 ac_prev
=sharedstatedir
;;
1188 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1189 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1190 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1192 sharedstatedir
=$ac_optarg ;;
1194 -site |
--site |
--sit)
1196 -site=* |
--site=* |
--sit=*)
1199 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1201 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1202 srcdir
=$ac_optarg ;;
1204 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1205 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1206 ac_prev
=sysconfdir
;;
1207 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1208 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1209 sysconfdir
=$ac_optarg ;;
1211 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1212 ac_prev
=target_alias
;;
1213 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1214 target_alias
=$ac_optarg ;;
1216 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1219 -version |
--version |
--versio |
--versi |
--vers |
-V)
1220 ac_init_version
=: ;;
1223 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1226 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1227 { (exit 1); exit 1; }; }
1228 ac_useropt_orig
=$ac_useropt
1229 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1234 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235 ac_unrecognized_sep
=', ';;
1237 eval with_
$ac_useropt=\
$ac_optarg ;;
1239 -without-* |
--without-*)
1240 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1243 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1244 { (exit 1); exit 1; }; }
1245 ac_useropt_orig
=$ac_useropt
1246 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1251 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep
=', ';;
1254 eval with_
$ac_useropt=no
;;
1257 # Obsolete; use --with-x.
1260 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1261 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1262 ac_prev
=x_includes
;;
1263 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1264 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1265 x_includes
=$ac_optarg ;;
1267 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1268 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1269 ac_prev
=x_libraries
;;
1270 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1271 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1272 x_libraries
=$ac_optarg ;;
1274 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1275 Try \`$0 --help' for more information." >&2
1276 { (exit 1); exit 1; }; }
1280 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1283 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1284 { (exit 1); exit 1; }; }
1285 eval $ac_envvar=\
$ac_optarg
1286 export $ac_envvar ;;
1289 # FIXME: should be removed in autoconf 3.0.
1290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1299 if test -n "$ac_prev"; then
1300 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1301 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1302 { (exit 1); exit 1; }; }
1305 if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1308 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1309 { (exit 1); exit 1; }; } ;;
1310 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1314 # Check all directory arguments for consistency.
1315 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316 datadir sysconfdir sharedstatedir localstatedir includedir \
1317 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1318 libdir localedir mandir
1320 eval ac_val
=\$
$ac_var
1321 # Remove trailing slashes.
1324 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1325 eval $ac_var=\
$ac_val;;
1327 # Be sure to have absolute directory names.
1329 [\\/$
]* | ?
:[\\/]* ) continue;;
1330 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1332 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1333 { (exit 1); exit 1; }; }
1336 # There might be people who depend on the old broken behavior: `$host'
1337 # used to hold the argument of --host etc.
1338 # FIXME: To remove some day.
1341 target
=$target_alias
1343 # FIXME: To remove some day.
1344 if test "x$host_alias" != x
; then
1345 if test "x$build_alias" = x
; then
1346 cross_compiling
=maybe
1347 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1348 If a cross compiler is detected then cross compile mode will be used." >&2
1349 elif test "x$build_alias" != "x$host_alias"; then
1355 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1357 test "$silent" = yes && exec 6>/dev
/null
1360 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1361 ac_ls_di
=`ls -di .` &&
1362 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1363 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1364 { (exit 1); exit 1; }; }
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1367 { (exit 1); exit 1; }; }
1370 # Find the source files, if location was not specified.
1371 if test -z "$srcdir"; then
1372 ac_srcdir_defaulted
=yes
1373 # Try the directory containing this script, then the parent directory.
1374 ac_confdir
=`$as_dirname -- "$as_myself" ||
1375 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1376 X"$as_myself" : 'X\(//\)[^/]' \| \
1377 X"$as_myself" : 'X\(//\)$' \| \
1378 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1379 $as_echo X"$as_myself" |
1380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1402 ac_srcdir_defaulted
=no
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1405 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1406 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1407 { (exit 1); exit 1; }; }
1409 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1411 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1412 { (exit 1); exit 1; }; }
1414 # When building in place, set srcdir=.
1415 if test "$ac_abs_confdir" = "$ac_pwd"; then
1418 # Remove unnecessary trailing slashes from srcdir.
1419 # Double slashes in file names in object file debugging info
1420 # mess up M-x gdb in Emacs.
1422 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 for ac_var
in $ac_precious_vars; do
1425 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1426 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1427 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1428 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1432 # Report the --help message.
1434 if test "$ac_init_help" = "long"; then
1435 # Omit some internal or obsolete options to make the list less imposing.
1436 # This message is too long to be a string in the A/UX 3.1 sh.
1438 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1440 Usage: $0 [OPTION]... [VAR=VALUE]...
1442 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1443 VAR=VALUE. See below for descriptions of some of the useful variables.
1445 Defaults for the options are specified in brackets.
1448 -h, --help display this help and exit
1449 --help=short display options specific to this package
1450 --help=recursive display the short help of all the included packages
1451 -V, --version display version information and exit
1452 -q, --quiet, --silent do not print \`checking...' messages
1453 --cache-file=FILE cache test results in FILE [disabled]
1454 -C, --config-cache alias for \`--cache-file=config.cache'
1455 -n, --no-create do not create output files
1456 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458 Installation directories:
1459 --prefix=PREFIX install architecture-independent files in PREFIX
1460 [$ac_default_prefix]
1461 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1464 By default, \`make install' will install all the files in
1465 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1466 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1467 for instance \`--prefix=\$HOME'.
1469 For better control, use the options below.
1471 Fine tuning of the installation directories:
1472 --bindir=DIR user executables [EPREFIX/bin]
1473 --sbindir=DIR system admin executables [EPREFIX/sbin]
1474 --libexecdir=DIR program executables [EPREFIX/libexec]
1475 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1476 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1477 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1478 --libdir=DIR object code libraries [EPREFIX/lib]
1479 --includedir=DIR C header files [PREFIX/include]
1480 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1481 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1482 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1483 --infodir=DIR info documentation [DATAROOTDIR/info]
1484 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1485 --mandir=DIR man documentation [DATAROOTDIR/man]
1486 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1487 --htmldir=DIR html documentation [DOCDIR]
1488 --dvidir=DIR dvi documentation [DOCDIR]
1489 --pdfdir=DIR pdf documentation [DOCDIR]
1490 --psdir=DIR ps documentation [DOCDIR]
1496 --program-prefix=PREFIX prepend PREFIX to installed program names
1497 --program-suffix=SUFFIX append SUFFIX to installed program names
1498 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1501 --x-includes=DIR X include files are
in DIR
1502 --x-libraries=DIR X library files are
in DIR
1505 --build=BUILD configure
for building on BUILD
[guessed
]
1506 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1510 if test -n "$ac_init_help"; then
1511 case $ac_init_help in
1512 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1517 --disable-option-checking ignore unrecognized
--enable/--with options
1518 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1519 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1520 --disable-ns-self-contained
1521 disable self contained build under NeXTstep
1522 --enable-asserts compile code with asserts enabled
1523 --enable-maintainer-mode
1524 enable make rules and dependencies not useful
(and
1525 sometimes confusing
) to the casual installer
1526 --enable-locallisppath=PATH
1527 directories Emacs should search
for lisp files
1528 specific to this site
1529 --enable-checking[=LIST
]
1530 enable expensive run-time checks. With LIST
, enable
1531 only specific categories of checks. Categories are
:
1532 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1533 stringfreelist
, xmallocoverrun
, conslist
1534 --enable-profiling build emacs with profiling support. This might not
1535 work on all platforms
1536 --enable-autodepend automatically generate dependencies to .h-files.
1537 Requires GNU Make and Gcc. Enabled
if GNU Make and
1539 --disable-largefile omit support
for large files
1542 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1543 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1544 --without-pop don
't support POP mail retrieval with movemail
1545 --with-kerberos support Kerberos-authenticated POP
1546 --with-kerberos5 support Kerberos version 5 authenticated POP
1547 --with-hesiod support Hesiod to get the POP server host
1548 --with-mmdf support MMDF mailboxes
1549 --with-mail-unlink unlink, rather than empty, mail spool after reading
1550 --with-mailhost=HOSTNAME
1551 string giving default POP mail host
1552 --without-sound don't compile with sound support
1553 --without-sync-input process async input synchronously
1554 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1556 --without-xpm don
't compile with XPM image support
1557 --without-jpeg don't compile with JPEG image support
1558 --without-tiff don
't compile with TIFF image support
1559 --without-gif don't compile with GIF image support
1560 --without-png don
't compile with PNG image support
1561 --without-rsvg don't compile with SVG image support
1562 --without-xft don
't use XFT for anti aliased fonts
1563 --without-libotf don't use libotf
for OpenType font support
1564 --without-m17n-flt don
't use m17n-flt for text shaping
1565 --without-toolkit-scroll-bars
1566 don't use Motif or Xaw3d scroll bars
1567 --without-xaw3d don
't use Xaw3d
1568 --without-xim don't use X11 XIM
1569 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1570 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1572 --without-dbus don't compile with D-Bus support
1573 --without-gconf don
't compile with GConf support
1574 --without-selinux don't compile with SELinux support
1575 --without-makeinfo don
't require makeinfo for building manuals
1576 --with-pkg-config-prog=PATH
1577 path to pkg-config for finding GTK and librsvg
1578 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1579 /usr/lib, or /usr/lib64 on some platforms.
1580 --with-gnustep-conf=PATH
1581 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1582 or /etc/GNUstep/GNUstep.conf
1583 --with-x use the X Window System
1585 Some influential environment variables:
1586 CC C compiler command
1587 CFLAGS C compiler flags
1588 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1589 nonstandard directory <lib dir>
1590 LIBS libraries to pass to the linker, e.g. -l<library>
1591 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1592 you have headers in a nonstandard directory <include dir>
1594 XMKMF Path to xmkmf, Makefile generator for X Window System
1596 Use these variables to override the choices made by `configure' or to
help
1597 it to
find libraries and programs with nonstandard names
/locations.
1603 if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
1605 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1606 test -d "$ac_dir" ||
1607 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1612 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1614 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615 # A ".." for each directory in $ac_dir_suffix.
1616 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1619 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1622 ac_abs_top_builddir
=$ac_pwd
1623 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1624 # for backward compatibility:
1625 ac_top_builddir
=$ac_top_build_prefix
1628 .
) # We are building in place.
1630 ac_top_srcdir
=$ac_top_builddir_sub
1631 ac_abs_top_srcdir
=$ac_pwd ;;
1632 [\\/]* | ?
:[\\/]* ) # Absolute name.
1633 ac_srcdir
=$srcdir$ac_dir_suffix;
1634 ac_top_srcdir
=$srcdir
1635 ac_abs_top_srcdir
=$srcdir ;;
1637 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1641 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1643 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1650 $SHELL "$ac_srcdir/configure" --help=recursive
1652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1654 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1658 test -n "$ac_init_help" && exit $ac_status
1659 if $ac_init_version; then
1661 emacs configure
24.0.50
1662 generated by GNU Autoconf
2.62
1664 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1665 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1666 This configure
script is free software
; the Free Software Foundation
1667 gives unlimited permission to copy
, distribute and modify it.
1671 cat >config.log
<<_ACEOF
1672 This file contains any messages produced by compilers while
1673 running configure, to aid debugging if configure makes a mistake.
1675 It was created by emacs $as_me 24.0.50, which was
1676 generated by GNU Autoconf 2.62. Invocation command line was
1688 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1689 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1690 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1691 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1692 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1694 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1695 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1697 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1698 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1699 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1700 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1701 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1702 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1703 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1711 test -z "$as_dir" && as_dir
=.
1712 $as_echo "PATH: $as_dir"
1728 # Keep a trace of the command line.
1729 # Strip out --no-create and --no-recursion so they do not pile up.
1730 # Strip out --silent because we don't want to record it for future runs.
1731 # Also quote any args containing shell meta-characters.
1732 # Make two passes to allow for proper duplicate-argument suppression.
1736 ac_must_keep_next
=false
1742 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1743 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1744 |
-silent |
--silent |
--silen |
--sile |
--sil)
1747 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1750 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1752 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1753 if test $ac_must_keep_next = true
; then
1754 ac_must_keep_next
=false
# Got value, back to normal.
1757 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1758 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1759 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1760 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1761 case "$ac_configure_args0 " in
1762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1765 -* ) ac_must_keep_next
=true
;;
1768 ac_configure_args
="$ac_configure_args '$ac_arg'"
1773 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1774 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1776 # When interrupted or exit'd, cleanup temporary files, and complete
1777 # config.log. We remove comments because anyway the quotes in there
1778 # would cause problems or look ugly.
1779 # WARNING: Use '\'' to represent an apostrophe within the trap.
1780 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1781 trap 'exit_status=$?
1782 # Save into config.log some information that might help in debugging.
1787 ## ---------------- ##
1788 ## Cache variables. ##
1789 ## ---------------- ##
1792 # The following way of writing the cache mishandles newlines in values,
1794 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1795 eval ac_val=\$$ac_var
1799 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1800 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1803 _ | IFS | as_nl) ;; #(
1804 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1805 *) $as_unset $ac_var ;;
1810 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1811 *${as_nl}ac_space=\ *)
1813 "s/'\''/'\''\\\\'\'''\''/g;
1814 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1825 ## ----------------- ##
1826 ## Output variables. ##
1827 ## ----------------- ##
1830 for ac_var in $ac_subst_vars
1832 eval ac_val=\$$ac_var
1834 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836 $as_echo "$ac_var='\''$ac_val'\''"
1840 if test -n "$ac_subst_files"; then
1842 ## ------------------- ##
1843 ## File substitutions. ##
1844 ## ------------------- ##
1847 for ac_var
in $ac_subst_files
1849 eval ac_val
=\$
$ac_var
1851 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1853 $as_echo "$ac_var='\''$ac_val'\''"
1858 if test -s confdefs.h; then
1868 test "$ac_signal" != 0 &&
1869 $as_echo "$as_me: caught signal $ac_signal"
1870 $as_echo "$as_me: exit $exit_status"
1872 rm -f core *.core core.conftest.* &&
1873 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1876 for ac_signal
in 1 2 13 15; do
1877 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1882 rm -f -r conftest
* confdefs.h
1884 # Predefined preprocessor variables.
1886 cat >>confdefs.h
<<_ACEOF
1887 #define PACKAGE_NAME "$PACKAGE_NAME"
1891 cat >>confdefs.h
<<_ACEOF
1892 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896 cat >>confdefs.h
<<_ACEOF
1897 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1901 cat >>confdefs.h
<<_ACEOF
1902 #define PACKAGE_STRING "$PACKAGE_STRING"
1906 cat >>confdefs.h
<<_ACEOF
1907 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911 # Let the site file select an alternate cache file if it wants to.
1912 # Prefer an explicitly selected file to automatically selected ones.
1915 if test -n "$CONFIG_SITE"; then
1916 ac_site_file1
=$CONFIG_SITE
1917 elif test "x$prefix" != xNONE
; then
1918 ac_site_file1
=$prefix/share
/config.site
1919 ac_site_file2
=$prefix/etc
/config.site
1921 ac_site_file1
=$ac_default_prefix/share
/config.site
1922 ac_site_file2
=$ac_default_prefix/etc
/config.site
1924 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1926 test "x$ac_site_file" = xNONE
&& continue
1927 if test -r "$ac_site_file"; then
1928 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1929 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1930 sed 's/^/| /' "$ac_site_file" >&5
1935 if test -r "$cache_file"; then
1936 # Some versions of bash will fail to source /dev/null (special
1937 # files actually), so we avoid doing that.
1938 if test -f "$cache_file"; then
1939 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1940 $as_echo "$as_me: loading cache $cache_file" >&6;}
1942 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1943 *) .
"./$cache_file";;
1947 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1948 $as_echo "$as_me: creating cache $cache_file" >&6;}
1952 ac_header_list
="$ac_header_list sys/time.h"
1953 ac_header_list
="$ac_header_list unistd.h"
1954 ac_func_list
="$ac_func_list alarm"
1955 # Check that the precious variables saved in the cache have kept the same
1957 ac_cache_corrupted
=false
1958 for ac_var
in $ac_precious_vars; do
1959 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1960 eval ac_new_set
=\
$ac_env_${ac_var}_set
1961 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1962 eval ac_new_val
=\
$ac_env_${ac_var}_value
1963 case $ac_old_set,$ac_new_set in
1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967 ac_cache_corrupted
=: ;;
1969 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971 ac_cache_corrupted
=: ;;
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
1975 # differences in whitespace do not lead to failure.
1976 ac_old_val_w
=`echo x $ac_old_val`
1977 ac_new_val_w
=`echo x $ac_new_val`
1978 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1979 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1980 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1981 ac_cache_corrupted
=:
1983 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1984 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1985 eval $ac_var=\
$ac_old_val
1987 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1988 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1989 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1990 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1993 # Pass precious variables to config.status.
1994 if test "$ac_new_set" = set; then
1996 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1997 *) ac_arg
=$ac_var=$ac_new_val ;;
1999 case " $ac_configure_args " in
2000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2001 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2005 if $ac_cache_corrupted; then
2006 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2007 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2008 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2009 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2010 { (exit 1); exit 1; }; }
2038 ac_cpp
='$CPP $CPPFLAGS'
2039 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2044 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2048 test "$program_prefix" != NONE
&&
2049 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2050 # Use a double $ so make ignores it.
2051 test "$program_suffix" != NONE
&&
2052 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2053 # Double any \ or $.
2054 # By default was `s,x,x', remove it if useless.
2055 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2056 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2059 lispdir
='${datadir}/emacs/${version}/lisp'
2060 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2061 '${datadir}/emacs/site-lisp'
2062 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2063 etcdir
='${datadir}/emacs/${version}/etc'
2064 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2065 docdir
='${datadir}/emacs/${version}/etc'
2066 gamedir
='${localstatedir}/games/emacs'
2073 # Check whether --with-pop was given.
2074 if test "${with_pop+set}" = set; then
2080 if test "$with_pop" = yes; then
2081 cat >>confdefs.h
<<\_ACEOF
2082 #define MAIL_USE_POP 1
2089 # Check whether --with-kerberos was given.
2090 if test "${with_kerberos+set}" = set; then
2091 withval
=$with_kerberos;
2096 if test "$with_kerberos" != no
; then
2097 cat >>confdefs.h
<<\_ACEOF
2105 # Check whether --with-kerberos5 was given.
2106 if test "${with_kerberos5+set}" = set; then
2107 withval
=$with_kerberos5;
2112 if test "${with_kerberos5}" != no
; then
2113 if test "${with_kerberos}" = no
; then
2115 cat >>confdefs.h
<<\_ACEOF
2121 cat >>confdefs.h
<<\_ACEOF
2128 # Check whether --with-hesiod was given.
2129 if test "${with_hesiod+set}" = set; then
2130 withval
=$with_hesiod;
2135 if test "$with_hesiod" != no
; then
2137 cat >>confdefs.h
<<\_ACEOF
2144 # Check whether --with-mmdf was given.
2145 if test "${with_mmdf+set}" = set; then
2151 if test "$with_mmdf" != no
; then
2153 cat >>confdefs.h
<<\_ACEOF
2154 #define MAIL_USE_MMDF 1
2160 # Check whether --with-mail-unlink was given.
2161 if test "${with_mail_unlink+set}" = set; then
2162 withval
=$with_mail_unlink;
2167 if test "$with_mail_unlink" != no
; then
2169 cat >>confdefs.h
<<\_ACEOF
2170 #define MAIL_UNLINK_SPOOL 1
2176 # Check whether --with-mailhost was given.
2177 if test "${with_mailhost+set}" = set; then
2178 withval
=$with_mailhost;
2179 cat >>confdefs.h
<<_ACEOF
2180 #define MAILHOST "$withval"
2187 # Check whether --with-sound was given.
2188 if test "${with_sound+set}" = set; then
2189 withval
=$with_sound;
2196 # Check whether --with-sync-input was given.
2197 if test "${with_sync_input+set}" = set; then
2198 withval
=$with_sync_input;
2203 if test "$with_sync_input" = yes; then
2205 cat >>confdefs.h
<<\_ACEOF
2206 #define SYNC_INPUT 1
2212 # Check whether --with-x-toolkit was given.
2213 if test "${with_x_toolkit+set}" = set; then
2214 withval
=$with_x_toolkit; case "${withval}" in
2215 y | ye |
yes ) val
=gtk
;;
2217 l | lu | luc | luci | lucid
) val
=lucid
;;
2218 a |
at | ath | athe | athen | athena
) val
=athena
;;
2219 m | mo | mot | moti | motif
) val
=motif
;;
2220 g | gt | gtk
) val
=gtk
;;
2222 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2223 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2224 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2225 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2226 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2227 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2228 { (exit 1); exit 1; }; }
2237 # Check whether --with-xpm was given.
2238 if test "${with_xpm+set}" = set; then
2245 # Check whether --with-jpeg was given.
2246 if test "${with_jpeg+set}" = set; then
2253 # Check whether --with-tiff was given.
2254 if test "${with_tiff+set}" = set; then
2261 # Check whether --with-gif was given.
2262 if test "${with_gif+set}" = set; then
2269 # Check whether --with-png was given.
2270 if test "${with_png+set}" = set; then
2277 # Check whether --with-rsvg was given.
2278 if test "${with_rsvg+set}" = set; then
2286 # Check whether --with-xft was given.
2287 if test "${with_xft+set}" = set; then
2294 # Check whether --with-libotf was given.
2295 if test "${with_libotf+set}" = set; then
2296 withval
=$with_libotf;
2302 # Check whether --with-m17n-flt was given.
2303 if test "${with_m17n_flt+set}" = set; then
2304 withval
=$with_m17n_flt;
2311 # Check whether --with-toolkit-scroll-bars was given.
2312 if test "${with_toolkit_scroll_bars+set}" = set; then
2313 withval
=$with_toolkit_scroll_bars;
2315 with_toolkit_scroll_bars
=yes
2319 # Check whether --with-xaw3d was given.
2320 if test "${with_xaw3d+set}" = set; then
2321 withval
=$with_xaw3d;
2327 # Check whether --with-xim was given.
2328 if test "${with_xim+set}" = set; then
2335 # Check whether --with-ns was given.
2336 if test "${with_ns+set}" = set; then
2344 # Check whether --with-gpm was given.
2345 if test "${with_gpm+set}" = set; then
2352 # Check whether --with-dbus was given.
2353 if test "${with_dbus+set}" = set; then
2360 # Check whether --with-gconf was given.
2361 if test "${with_gconf+set}" = set; then
2362 withval
=$with_gconf;
2368 # Check whether --with-selinux was given.
2369 if test "${with_selinux+set}" = set; then
2370 withval
=$with_selinux;
2376 ## For the times when you want to build Emacs but don't have
2377 ## a suitable makeinfo, and can live without the manuals.
2379 # Check whether --with-makeinfo was given.
2380 if test "${with_makeinfo+set}" = set; then
2381 withval
=$with_makeinfo;
2388 # Check whether --with-pkg-config-prog was given.
2389 if test "${with_pkg_config_prog+set}" = set; then
2390 withval
=$with_pkg_config_prog;
2393 if test "X${with_pkg_config_prog}" != X
; then
2394 if test "${with_pkg_config_prog}" != yes; then
2395 PKG_CONFIG
="${with_pkg_config_prog}"
2401 # Check whether --with-crt-dir was given.
2402 if test "${with_crt_dir+set}" = set; then
2403 withval
=$with_crt_dir;
2406 CRT_DIR
="${with_crt_dir}"
2409 # Check whether --with-gnustep-conf was given.
2410 if test "${with_gnustep_conf+set}" = set; then
2411 withval
=$with_gnustep_conf;
2414 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2415 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2416 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2417 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2419 # Check whether --enable-ns-self-contained was given.
2420 if test "${enable_ns_self_contained+set}" = set; then
2421 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2423 EN_NS_SELF_CONTAINED
=yes
2427 # Check whether --enable-asserts was given.
2428 if test "${enable_asserts+set}" = set; then
2429 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2435 # Check whether --enable-maintainer-mode was given.
2436 if test "${enable_maintainer_mode+set}" = set; then
2437 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2439 USE_MAINTAINER_MODE
=no
2442 if test $USE_MAINTAINER_MODE = yes; then
2449 # Check whether --enable-locallisppath was given.
2450 if test "${enable_locallisppath+set}" = set; then
2451 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2453 elif test "${enableval}" != "yes"; then
2454 locallisppath
=${enableval}
2459 # Check whether --enable-checking was given.
2460 if test "${enable_checking+set}" = set; then
2461 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2464 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2465 for check
in $ac_checking_flags
2468 # these set all the flags to specific states
2469 yes) ac_enable_checking
=1 ;;
2470 no
) ac_enable_checking
= ;
2471 ac_gc_check_stringbytes
= ;
2472 ac_gc_check_string_overrun
= ;
2473 ac_gc_check_string_free_list
= ;
2474 ac_xmalloc_overrun
= ;
2475 ac_gc_check_cons_list
= ;;
2476 all
) ac_enable_checking
=1 ;
2477 ac_gc_check_stringbytes
=1 ;
2478 ac_gc_check_string_overrun
=1 ;
2479 ac_gc_check_string_free_list
=1 ;
2480 ac_xmalloc_overrun
=1 ;
2481 ac_gc_check_cons_list
=1 ;;
2482 # these enable particular checks
2483 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2484 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2485 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2486 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2487 conslist
) ac_gc_check_cons_list
=1 ;;
2488 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2489 $as_echo "$as_me: error: unknown check category $check" >&2;}
2490 { (exit 1); exit 1; }; } ;;
2495 if test x
$ac_enable_checking != x
; then
2497 cat >>confdefs.h
<<\_ACEOF
2498 #define ENABLE_CHECKING 1
2502 if test x
$ac_gc_check_stringbytes != x
; then
2504 cat >>confdefs.h
<<\_ACEOF
2505 #define GC_CHECK_STRING_BYTES 1
2509 if test x
$ac_gc_check_stringoverrun != x
; then
2511 cat >>confdefs.h
<<\_ACEOF
2512 #define GC_CHECK_STRING_OVERRUN 1
2516 if test x
$ac_gc_check_string_free_list != x
; then
2518 cat >>confdefs.h
<<\_ACEOF
2519 #define GC_CHECK_STRING_FREE_LIST 1
2523 if test x
$ac_xmalloc_overrun != x
; then
2525 cat >>confdefs.h
<<\_ACEOF
2526 #define XMALLOC_OVERRUN_CHECK 1
2530 if test x
$ac_gc_check_cons_list != x
; then
2532 cat >>confdefs.h
<<\_ACEOF
2533 #define GC_CHECK_CONS_LIST 1
2538 # Check whether --enable-profiling was given.
2539 if test "${enable_profiling+set}" = set; then
2540 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2543 if test x
$ac_enable_profiling != x
; then
2544 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2545 PROFILING_LDFLAGS
="-pg"
2551 # Check whether --enable-autodepend was given.
2552 if test "${enable_autodepend+set}" = set; then
2553 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2555 ac_enable_autodepend
=yes
2559 #### Make srcdir absolute, if it isn't already. It's important to
2560 #### avoid running the path through pwd unnecessarily, since pwd can
2561 #### give you automounter prefixes, which can go away. We do all this
2562 #### so Emacs can find its files when run uninstalled.
2563 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2568 ## We may be able to use the $PWD environment variable to make this
2569 ## absolute. But sometimes PWD is inaccurate.
2570 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2571 ## but that tested only for a well-formed and valid PWD,
2572 ## it did not object when PWD was well-formed and valid but just wrong.
2573 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2577 srcdir
="`(cd ${srcdir}; pwd)`"
2580 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2583 #### Check if the source directory already has a configured system in it.
2584 if test `pwd` != `(cd ${srcdir} && pwd)` \
2585 && test -f "${srcdir}/src/config.h" ; then
2586 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2587 as a build directory right now; it has been configured in its own
2588 right. To configure in another directory as well, you MUST
2589 use GNU make. If you do not have GNU make, then you must
2590 now do \`make distclean' in ${srcdir},
2591 and then run $0 again." >&5
2592 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2593 as a build directory right now; it has been configured in its own
2594 right. To configure in another directory as well, you MUST
2595 use GNU make. If you do not have GNU make, then you must
2596 now do \`make distclean' in ${srcdir},
2597 and then run $0 again." >&2;}
2600 #### Given the configuration name, set machfile and opsysfile to the
2601 #### names of the m/*.h and s/*.h files we should use.
2603 ### Canonicalize the configuration name.
2606 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2607 if test -f "$ac_dir/install-sh"; then
2609 ac_install_sh
="$ac_aux_dir/install-sh -c"
2611 elif test -f "$ac_dir/install.sh"; then
2613 ac_install_sh
="$ac_aux_dir/install.sh -c"
2615 elif test -f "$ac_dir/shtool"; then
2617 ac_install_sh
="$ac_aux_dir/shtool install -c"
2621 if test -z "$ac_aux_dir"; then
2622 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2623 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2624 { (exit 1); exit 1; }; }
2627 # These three variables are undocumented and unsupported,
2628 # and are intended to be withdrawn in a future Autoconf release.
2629 # They can cause serious problems if a builder's source tree is in a directory
2630 # whose full name contains unusual characters.
2631 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2632 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2633 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2636 # Make sure we can run config.sub.
2637 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2638 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2639 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2640 { (exit 1); exit 1; }; }
2642 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2643 $as_echo_n "checking build system type... " >&6; }
2644 if test "${ac_cv_build+set}" = set; then
2645 $as_echo_n "(cached) " >&6
2647 ac_build_alias
=$build_alias
2648 test "x$ac_build_alias" = x
&&
2649 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2650 test "x$ac_build_alias" = x
&&
2651 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2652 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2653 { (exit 1); exit 1; }; }
2654 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2655 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2656 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2657 { (exit 1); exit 1; }; }
2660 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2661 $as_echo "$ac_cv_build" >&6; }
2662 case $ac_cv_build in
2664 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2665 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2666 { (exit 1); exit 1; }; };;
2669 ac_save_IFS
=$IFS; IFS
='-'
2675 # Remember, the first character of IFS is used to create $*,
2676 # except with old shells:
2679 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2682 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2683 $as_echo_n "checking host system type... " >&6; }
2684 if test "${ac_cv_host+set}" = set; then
2685 $as_echo_n "(cached) " >&6
2687 if test "x$host_alias" = x
; then
2688 ac_cv_host
=$ac_cv_build
2690 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2691 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2692 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2693 { (exit 1); exit 1; }; }
2697 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2698 $as_echo "$ac_cv_host" >&6; }
2701 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2702 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2703 { (exit 1); exit 1; }; };;
2706 ac_save_IFS
=$IFS; IFS
='-'
2712 # Remember, the first character of IFS is used to create $*,
2713 # except with old shells:
2716 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2720 configuration
=${host_alias-${build_alias-$host}}
2724 ### If you add support for a new configuration, add code to this
2725 ### switch statement to recognize your configuration name and select
2726 ### the appropriate operating system and machine description files.
2728 ### You would hope that you could choose an m/*.h file pretty much
2729 ### based on the machine portion of the configuration name, and an s-
2730 ### file based on the operating system portion. However, it turns out
2731 ### that each m/*.h file is pretty manufacturer-specific - for
2732 ### example mips.h is MIPS
2733 ### So we basically have to have a special case for each
2734 ### configuration name.
2736 ### As far as handling version numbers on operating systems is
2737 ### concerned, make sure things will fail in a fixable way. If
2738 ### /etc/MACHINES doesn't say anything about version numbers, be
2739 ### prepared to handle anything reasonably. If version numbers
2740 ### matter, be sure /etc/MACHINES says something about it.
2742 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2743 ### "System V Release 4"; he writes, "The old convention encouraged
2744 ### confusion between `system' and `release' levels'."
2746 machine
='' opsys
='' unported
=no
2747 case "${canonical}" in
2752 case "${canonical}" in
2753 alpha
*-*-freebsd*) machine
=alpha
;;
2754 arm
*-*-freebsd*) machine
=arm
;;
2755 ia64-
*-freebsd*) machine
=ia64
;;
2756 sparc-
*-freebsd*) machine
=sparc
;;
2757 sparc64-
*-freebsd*) machine
=sparc
;;
2758 powerpc-
*-freebsd*) machine
=macppc
;;
2759 i
[3456]86-*-freebsd*) machine
=intel386
;;
2760 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2764 ## FreeBSD kernel + glibc based userland
2767 case "${canonical}" in
2768 alpha
*-*-kfreebsd*) machine
=alpha
;;
2769 ia64-
*-kfreebsd*) machine
=ia64
;;
2770 sparc-
*-kfreebsd*) machine
=sparc
;;
2771 sparc64-
*-kfreebsd*) machine
=sparc
;;
2772 powerpc-
*-kfreebsd*) machine
=macppc
;;
2773 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2774 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2781 case "${canonical}" in
2782 alpha
*-*-netbsd*) machine
=alpha
;;
2783 i
[3456]86-*-netbsd*) machine
=intel386
;;
2784 mips-
*-netbsd*) machine
=mips
;;
2785 mipsel-
*-netbsd*) machine
=mips
;;
2786 mipseb-
*-netbsd*) machine
=mips
;;
2787 powerpc-
*-netbsd*) machine
=macppc
;;
2788 sparc
*-*-netbsd*) machine
=sparc
;;
2789 vax-
*-netbsd*) machine
=vax
;;
2790 arm-
*-netbsd*) machine
=arm
;;
2791 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2792 hppa-
*-netbsd*) machine
=hp800
;;
2793 m68k-
*-netbsd*) machine
=m68k
;;
2800 case "${canonical}" in
2801 alpha
*-*-openbsd*) machine
=alpha
;;
2802 arm-
*-openbsd*) machine
=arm
;;
2803 i386-
*-openbsd*) machine
=intel386
;;
2804 powerpc-
*-openbsd*) machine
=macppc
;;
2805 sparc
*-*-openbsd*) machine
=sparc
;;
2806 vax-
*-openbsd*) machine
=vax
;;
2807 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2808 hppa-
*-openbsd*) machine
=hp800
;;
2812 alpha
*-*-linux-gnu* )
2813 machine
=alpha opsys
=gnu-linux
2817 machine
=arm opsys
=gnu-linux
2820 ## Apple Darwin / Mac OS X
2822 case "${canonical}" in
2823 i
[3456]86-* ) machine
=intel386
;;
2824 powerpc-
* ) machine
=macppc
;;
2825 x86_64-
* ) machine
=amdx86-64
;;
2829 # Define CPP as follows to make autoconf work correctly.
2830 CPP
="${CC-cc} -E -no-cpp-precomp"
2831 # Use fink packages if available.
2832 if test -d /sw
/include
&& test -d /sw
/lib
; then
2833 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2834 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2835 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2839 ## HP 9000 series 700 and 800, running HP/UX
2840 hppa
*-hp-hpux10.2
* )
2841 machine
=hp800 opsys
=hpux10-20
2843 hppa
*-hp-hpux1[1-9]* )
2844 machine
=hp800 opsys
=hpux11
2845 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2848 hppa
*-*-linux-gnu* )
2849 machine
=hp800 opsys
=gnu-linux
2854 machine
=ibms390 opsys
=gnu-linux
2856 s390x-
*-linux-gnu* )
2857 machine
=ibms390x opsys
=gnu-linux
2859 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2860 machine
=ibmrs6000 opsys
=aix4-2
2862 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2863 machine
=ibmrs6000 opsys
=aix4-2
2865 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2866 machine
=ibmrs6000 opsys
=aix4-2
2868 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2869 machine
=ibmrs6000 opsys
=aix4-2
2872 ## Macintosh PowerPC
2873 powerpc
*-*-linux-gnu* )
2874 machine
=macppc opsys
=gnu-linux
2877 ## Silicon Graphics machines
2880 machine
=iris4d opsys
=irix6-5
2881 # Without defining _LANGUAGE_C, things get masked out in the headers
2882 # so that, for instance, grepping for `free' in stdlib.h fails and
2883 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2884 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2885 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2889 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2890 machine
=sparc opsys
=gnu-linux
2894 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2895 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2896 case "${canonical}" in
2897 i
[3456]86-*-* ) machine
=intel386
;;
2898 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2899 sparc
* ) machine
=sparc
;;
2902 case "${canonical}" in
2903 *-sunos5.6
* |
*-solaris2.6
* )
2905 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2908 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2910 emacs_check_sunpro_c
=yes
2911 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2913 *-sunos5* |
*-solaris* )
2915 emacs_check_sunpro_c
=yes
2916 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2919 ## Watch out for a compiler that we know will not work.
2920 case "${canonical}" in
2921 *-solaris* |
*-sunos5* )
2922 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2923 ## /usr/ucb/cc doesn't work;
2924 ## we should find some other compiler that does work.
2934 machine
=ia64 opsys
=gnu-linux
2937 ## Intel 386 machines where we don't care about the manufacturer
2940 case "${canonical}" in
2941 *-cygwin ) opsys
=cygwin
;;
2942 *-darwin* ) opsys
=darwin
2943 CPP
="${CC-cc} -E -no-cpp-precomp"
2945 *-linux-gnu* ) opsys
=gnu-linux
;;
2946 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2947 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2948 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2949 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2953 ## m68k Linux-based GNU system
2955 machine
=m68k opsys
=gnu-linux
2958 ## Mips Linux-based GNU system
2959 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2960 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2961 machine
=mips opsys
=gnu-linux
2964 ## AMD x86-64 Linux-based GNU system
2965 x86_64-
*-linux-gnu* )
2966 machine
=amdx86-64 opsys
=gnu-linux
2969 ## Tensilica Xtensa Linux-based GNU system
2970 xtensa
*-*-linux-gnu* )
2971 machine
=xtensa opsys
=gnu-linux
2974 ## SuperH Linux-based GNU system
2975 sh
[34]*-*-linux-gnu* )
2976 machine
=sh3 opsys
=gnu-linux
2984 ### If the code above didn't choose an operating system, just choose
2985 ### an operating system based on the configuration name. You really
2986 ### only want to use this when you have no idea what the right
2987 ### operating system is; if you know what operating systems a machine
2988 ### runs, it's cleaner to make it explicit in the case statement
2990 if test x
"${opsys}" = x
; then
2991 case "${canonical}" in
2992 *-gnu* ) opsys
=gnu
;;
3001 if test $unported = yes; then
3002 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3003 Check \`etc/MACHINES' for recognized configuration names." >&5
3004 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3005 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3006 { (exit 1); exit 1; }; }
3009 machfile
="m/${machine}.h"
3010 opsysfile
="s/${opsys}.h"
3013 #### Choose a compiler.
3014 test -n "$CC" && cc_specified
=yes
3016 # Save the value of CFLAGS that the user specified.
3017 SPECIFIED_CFLAGS
="$CFLAGS"
3020 ac_cpp
='$CPP $CPPFLAGS'
3021 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3024 if test -n "$ac_tool_prefix"; then
3025 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3026 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3027 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if test "${ac_cv_prog_CC+set}" = set; then
3030 $as_echo_n "(cached) " >&6
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC
="$CC" # Let the user override the test.
3035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3039 test -z "$as_dir" && as_dir
=.
3040 for ac_exec_ext
in '' $ac_executable_extensions; do
3041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3042 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3043 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3057 { $as_echo "$as_me:$LINENO: result: no" >&5
3058 $as_echo "no" >&6; }
3063 if test -z "$ac_cv_prog_CC"; then
3065 # Extract the first word of "gcc", so it can be a program name with args.
3066 set dummy gcc
; ac_word
=$2
3067 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3070 $as_echo_n "(cached) " >&6
3072 if test -n "$ac_ct_CC"; then
3073 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3079 test -z "$as_dir" && as_dir
=.
3080 for ac_exec_ext
in '' $ac_executable_extensions; do
3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3082 ac_cv_prog_ac_ct_CC
="gcc"
3083 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3093 if test -n "$ac_ct_CC"; then
3094 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3095 $as_echo "$ac_ct_CC" >&6; }
3097 { $as_echo "$as_me:$LINENO: result: no" >&5
3098 $as_echo "no" >&6; }
3101 if test "x$ac_ct_CC" = x
; then
3104 case $cross_compiling:$ac_tool_warned in
3106 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3107 whose name does not start with the host triplet. If you think this
3108 configuration is useful to you, please write to autoconf@gnu.org." >&5
3109 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3110 whose name does not start with the host triplet. If you think this
3111 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3112 ac_tool_warned
=yes ;;
3120 if test -z "$CC"; then
3121 if test -n "$ac_tool_prefix"; then
3122 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3123 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3124 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_CC+set}" = set; then
3127 $as_echo_n "(cached) " >&6
3129 if test -n "$CC"; then
3130 ac_cv_prog_CC
="$CC" # Let the user override the test.
3132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir
=.
3137 for ac_exec_ext
in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3140 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 if test -n "$CC"; then
3151 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3152 $as_echo "$CC" >&6; }
3154 { $as_echo "$as_me:$LINENO: result: no" >&5
3155 $as_echo "no" >&6; }
3161 if test -z "$CC"; then
3162 # Extract the first word of "cc", so it can be a program name with args.
3163 set dummy cc
; ac_word
=$2
3164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_CC+set}" = set; then
3167 $as_echo_n "(cached) " >&6
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC
="$CC" # Let the user override the test.
3173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3177 test -z "$as_dir" && as_dir
=.
3178 for ac_exec_ext
in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3181 ac_prog_rejected
=yes
3185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 if test $ac_prog_rejected = yes; then
3193 # We found a bogon in the path, so make sure we never use it.
3194 set dummy
$ac_cv_prog_CC
3196 if test $# != 0; then
3197 # We chose a different compiler from the bogus one.
3198 # However, it has the same basename, so the bogon will be chosen
3199 # first if we set CC to just the basename; use the full file name.
3201 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3207 if test -n "$CC"; then
3208 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3209 $as_echo "$CC" >&6; }
3211 { $as_echo "$as_me:$LINENO: result: no" >&5
3212 $as_echo "no" >&6; }
3217 if test -z "$CC"; then
3218 if test -n "$ac_tool_prefix"; then
3219 for ac_prog
in cl.exe
3221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3222 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if test "${ac_cv_prog_CC+set}" = set; then
3226 $as_echo_n "(cached) " >&6
3228 if test -n "$CC"; then
3229 ac_cv_prog_CC
="$CC" # Let the user override the test.
3231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3235 test -z "$as_dir" && as_dir
=.
3236 for ac_exec_ext
in '' $ac_executable_extensions; do
3237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3239 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 if test -n "$CC"; then
3250 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3251 $as_echo "$CC" >&6; }
3253 { $as_echo "$as_me:$LINENO: result: no" >&5
3254 $as_echo "no" >&6; }
3258 test -n "$CC" && break
3261 if test -z "$CC"; then
3263 for ac_prog
in cl.exe
3265 # Extract the first word of "$ac_prog", so it can be a program name with args.
3266 set dummy
$ac_prog; ac_word
=$2
3267 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3270 $as_echo_n "(cached) " >&6
3272 if test -n "$ac_ct_CC"; then
3273 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3279 test -z "$as_dir" && as_dir
=.
3280 for ac_exec_ext
in '' $ac_executable_extensions; do
3281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282 ac_cv_prog_ac_ct_CC
="$ac_prog"
3283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3293 if test -n "$ac_ct_CC"; then
3294 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3295 $as_echo "$ac_ct_CC" >&6; }
3297 { $as_echo "$as_me:$LINENO: result: no" >&5
3298 $as_echo "no" >&6; }
3302 test -n "$ac_ct_CC" && break
3305 if test "x$ac_ct_CC" = x
; then
3308 case $cross_compiling:$ac_tool_warned in
3310 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3311 whose name does not start with the host triplet. If you think this
3312 configuration is useful to you, please write to autoconf@gnu.org." >&5
3313 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3314 whose name does not start with the host triplet. If you think this
3315 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3316 ac_tool_warned
=yes ;;
3325 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3326 See \`config.log' for more details." >&5
3327 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3328 See \`config.log' for more details." >&2;}
3329 { (exit 1); exit 1; }; }
3331 # Provide some information about the compiler.
3332 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3335 { (ac_try
="$ac_compiler --version >&5"
3337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3341 $as_echo "$ac_try_echo") >&5
3342 (eval "$ac_compiler --version >&5") 2>&5
3344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }
3346 { (ac_try="$ac_compiler -v >&5"
3348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3349 *) ac_try_echo
=$ac_try;;
3351 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3352 $as_echo "$ac_try_echo") >&5
3353 (eval "$ac_compiler -v >&5") 2>&5
3355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }
3357 { (ac_try
="$ac_compiler -V >&5"
3359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3363 $as_echo "$ac_try_echo") >&5
3364 (eval "$ac_compiler -V >&5") 2>&5
3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3384 ac_clean_files_save=$ac_clean_files
3385 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3386 # Try to create an executable without -o first, disregard a.out.
3387 # It will help us diagnose broken compilers, and finding out an intuition
3389 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3390 $as_echo_n "checking for C compiler default output file name... " >&6; }
3391 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3393 # The possible output files:
3394 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3397 for ac_file in $ac_files
3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3401 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3406 if { (ac_try="$ac_link_default"
3408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3409 *) ac_try_echo
=$ac_try;;
3411 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3412 $as_echo "$ac_try_echo") >&5
3413 (eval "$ac_link_default") 2>&5
3415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; then
3417 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3418 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3419 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3420 # so that the user can short-circuit this test for compilers unknown to
3422 for ac_file
in $ac_files ''
3424 test -f "$ac_file" ||
continue
3426 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3429 # We found the default executable, but exeext='' is most
3433 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3435 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3437 # We set ac_cv_exeext here because the later test for it is not
3438 # safe: cross compilers may not add the suffix if given an `-o'
3439 # argument, so we may need to know it at that point already.
3440 # Even if this section looks crufty: it has the advantage of
3447 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3453 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3454 $as_echo "$ac_file" >&6; }
3455 if test -z "$ac_file"; then
3456 $as_echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.
$ac_ext >&5
3459 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3460 See \`config.log' for more details." >&5
3461 $as_echo "$as_me: error: C compiler cannot create executables
3462 See \`config.log' for more details." >&2;}
3463 { (exit 77); exit 77; }; }
3466 ac_exeext
=$ac_cv_exeext
3468 # Check that the compiler produces executables we can run. If not, either
3469 # the compiler is broken, or we cross compile.
3470 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3471 $as_echo_n "checking whether the C compiler works... " >&6; }
3472 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3473 # If not cross compiling, check that we can run a simple program.
3474 if test "$cross_compiling" != yes; then
3475 if { ac_try
='./$ac_file'
3476 { (case "(($ac_try" in
3477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3481 $as_echo "$ac_try_echo") >&5
3482 (eval "$ac_try") 2>&5
3484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; }; then
3488 if test "$cross_compiling" = maybe; then
3491 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3492 If you meant to cross compile, use \`--host'.
3493 See \`config.log' for more details.
" >&5
3494 $as_echo "$as_me: error
: cannot run C compiled programs.
3495 If you meant to cross compile
, use \
`--host'.
3496 See \`config.log
' for more details." >&2;}
3497 { (exit 1); exit 1; }; }
3501 { $as_echo "$as_me:$LINENO: result: yes" >&5
3502 $as_echo "yes" >&6; }
3504 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3505 ac_clean_files=$ac_clean_files_save
3506 # Check that the compiler produces executables we can run. If not, either
3507 # the compiler is broken, or we cross compile.
3508 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3509 $as_echo_n "checking whether we are cross compiling... " >&6; }
3510 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3511 $as_echo "$cross_compiling" >&6; }
3513 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3514 $as_echo_n "checking for suffix of executables... " >&6; }
3515 if { (ac_try="$ac_link"
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3521 $as_echo "$ac_try_echo") >&5
3522 (eval "$ac_link") 2>&5
3524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; then
3526 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3527 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3528 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3530 for ac_file
in conftest.exe conftest conftest.
*; do
3531 test -f "$ac_file" ||
continue
3533 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3534 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3540 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3541 See \`config.log' for more details." >&5
3542 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3543 See \`config.log' for more details." >&2;}
3544 { (exit 1); exit 1; }; }
3547 rm -f conftest
$ac_cv_exeext
3548 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3549 $as_echo "$ac_cv_exeext" >&6; }
3551 rm -f conftest.
$ac_ext
3552 EXEEXT
=$ac_cv_exeext
3554 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3555 $as_echo_n "checking for suffix of object files... " >&6; }
3556 if test "${ac_cv_objext+set}" = set; then
3557 $as_echo_n "(cached) " >&6
3559 cat >conftest.
$ac_ext <<_ACEOF
3562 cat confdefs.h
>>conftest.
$ac_ext
3563 cat >>conftest.
$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3574 rm -f conftest.o conftest.obj
3575 if { (ac_try
="$ac_compile"
3577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3581 $as_echo "$ac_try_echo") >&5
3582 (eval "$ac_compile") 2>&5
3584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); }; then
3586 for ac_file in conftest.o conftest.obj conftest.*; do
3587 test -f "$ac_file" || continue;
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3590 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3598 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3599 See \`config.log
' for more details." >&5
3600 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3601 See \`config.log' for more details.
" >&2;}
3602 { (exit 1); exit 1; }; }
3605 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3607 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3608 $as_echo "$ac_cv_objext" >&6; }
3609 OBJEXT=$ac_cv_objext
3611 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3612 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3613 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3614 $as_echo_n "(cached
) " >&6
3616 cat >conftest.$ac_ext <<_ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3634 rm -f conftest.$ac_objext
3635 if { (ac_try="$ac_compile"
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3640 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3641 $as_echo "$ac_try_echo") >&5
3642 (eval "$ac_compile") 2>conftest.er1
3644 grep -v '^ *+' conftest.er1 >conftest.err
3646 cat conftest.err >&5
3647 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3648 (exit $ac_status); } && {
3649 test -z "$ac_c_werror_flag" ||
3650 test ! -s conftest.err
3651 } && test -s conftest.$ac_objext; then
3654 $as_echo "$as_me: failed program was
:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3664 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3665 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3666 if test $ac_compiler_gnu = yes; then
3671 ac_test_CFLAGS=${CFLAGS+set}
3672 ac_save_CFLAGS=$CFLAGS
3673 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3674 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3675 if test "${ac_cv_prog_cc_g+set}" = set; then
3676 $as_echo_n "(cached
) " >&6
3678 ac_save_c_werror_flag=$ac_c_werror_flag
3679 ac_c_werror_flag=yes
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3697 rm -f conftest.$ac_objext
3698 if { (ac_try="$ac_compile"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3704 $as_echo "$ac_try_echo") >&5
3705 (eval "$ac_compile") 2>conftest.er1
3707 grep -v '^ *+' conftest.er1 >conftest.err
3709 cat conftest.err >&5
3710 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3711 (exit $ac_status); } && {
3712 test -z "$ac_c_werror_flag" ||
3713 test ! -s conftest.err
3714 } && test -s conftest.$ac_objext; then
3717 $as_echo "$as_me: failed program was
:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3721 cat >conftest.$ac_ext <<_ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h. */
3736 rm -f conftest.$ac_objext
3737 if { (ac_try="$ac_compile"
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3742 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3743 $as_echo "$ac_try_echo") >&5
3744 (eval "$ac_compile") 2>conftest.er1
3746 grep -v '^ *+' conftest.er1 >conftest.err
3748 cat conftest.err >&5
3749 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3750 (exit $ac_status); } && {
3751 test -z "$ac_c_werror_flag" ||
3752 test ! -s conftest.err
3753 } && test -s conftest.$ac_objext; then
3756 $as_echo "$as_me: failed program was
:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3759 ac_c_werror_flag=$ac_save_c_werror_flag
3761 cat >conftest.$ac_ext <<_ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3776 rm -f conftest.$ac_objext
3777 if { (ac_try="$ac_compile"
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3782 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3783 $as_echo "$ac_try_echo") >&5
3784 (eval "$ac_compile") 2>conftest.er1
3786 grep -v '^ *+' conftest.er1 >conftest.err
3788 cat conftest.err >&5
3789 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3790 (exit $ac_status); } && {
3791 test -z "$ac_c_werror_flag" ||
3792 test ! -s conftest.err
3793 } && test -s conftest.$ac_objext; then
3796 $as_echo "$as_me: failed program was
:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_c_werror_flag=$ac_save_c_werror_flag
3811 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3812 $as_echo "$ac_cv_prog_cc_g" >&6; }
3813 if test "$ac_test_CFLAGS" = set; then
3814 CFLAGS=$ac_save_CFLAGS
3815 elif test $ac_cv_prog_cc_g = yes; then
3816 if test "$GCC" = yes; then
3822 if test "$GCC" = yes; then
3828 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3829 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3830 if test "${ac_cv_prog_cc_c89+set}" = set; then
3831 $as_echo_n "(cached
) " >&6
3833 ac_cv_prog_cc_c89=no
3835 cat >conftest.$ac_ext <<_ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3843 #include <sys/types.h>
3844 #include <sys/stat.h>
3845 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3846 struct buf { int x; };
3847 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3848 static char *e (p, i)
3854 static char *f (char * (*g) (char **, int), char **p, ...)
3859 s = g (p, va_arg (v,int));
3864 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3865 function prototypes and stuff, but not '\xHH' hex character constants.
3866 These don't provoke an error unfortunately, instead are silently treated
3867 as 'x'. The following induces an error, until -std is added to get
3868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3869 array size at least. It's necessary to write '\x00'==0 to get something
3870 that's true only with -std. */
3871 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3874 inside strings and character constants. */
3876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3878 int test (int i, double x);
3879 struct s1 {int (*f) (int a);};
3880 struct s2 {int (*f) (double a);};
3881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3895 CC="$ac_save_CC $ac_arg"
3896 rm -f conftest.$ac_objext
3897 if { (ac_try="$ac_compile"
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3902 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3903 $as_echo "$ac_try_echo") >&5
3904 (eval "$ac_compile") 2>conftest.er1
3906 grep -v '^ *+' conftest.er1 >conftest.err
3908 cat conftest.err >&5
3909 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3910 (exit $ac_status); } && {
3911 test -z "$ac_c_werror_flag" ||
3912 test ! -s conftest.err
3913 } && test -s conftest.$ac_objext; then
3914 ac_cv_prog_cc_c89=$ac_arg
3916 $as_echo "$as_me: failed program was
:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3922 rm -f core conftest.err conftest.$ac_objext
3923 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3925 rm -f conftest.$ac_ext
3930 case "x
$ac_cv_prog_cc_c89" in
3932 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3933 $as_echo "none needed
" >&6; } ;;
3935 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3936 $as_echo "unsupported
" >&6; } ;;
3938 CC="$CC $ac_cv_prog_cc_c89"
3939 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3940 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 # On Suns, sometimes $CPP names a directory.
3952 if test -n "$CPP" && test -d "$CPP"; then
3956 ## If not using gcc, and on Solaris, and no CPP specified, see if
3957 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3958 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3959 test x"$CPP" = x; then
3960 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3961 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3963 if test "${emacs_cv_sunpro_c+set}" = set; then
3964 $as_echo_n "(cached
) " >&6
3966 cat >conftest.$ac_ext <<_ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h. */
3984 rm -f conftest.$ac_objext conftest$ac_exeext
3985 if { (ac_try="$ac_link"
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3991 $as_echo "$ac_try_echo") >&5
3992 (eval "$ac_link") 2>conftest.er1
3994 grep -v '^ *+' conftest.er1 >conftest.err
3996 cat conftest.err >&5
3997 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3998 (exit $ac_status); } && {
3999 test -z "$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 } && test -s conftest$ac_exeext && {
4002 test "$cross_compiling" = yes ||
4003 $as_test_x conftest$ac_exeext
4005 emacs_cv_sunpro_c=yes
4007 $as_echo "$as_me: failed program was
:" >&5
4008 sed 's/^/| /' conftest.$ac_ext >&5
4010 emacs_cv_sunpro_c=no
4013 rm -rf conftest.dSYM
4014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4015 conftest$ac_exeext conftest.$ac_ext
4018 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4019 $as_echo "$emacs_cv_sunpro_c" >&6; }
4021 if test x"$emacs_cv_sunpro_c" = xyes; then
4022 NON_GNU_CPP="$CC -E -Xs"
4026 #### Some systems specify a CPP to use unless we are using GCC.
4027 #### Now that we know whether we are using GCC, we can decide whether
4028 #### to use that one.
4029 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4034 #### Some systems specify a CC to use unless we are using GCC.
4035 #### Now that we know whether we are using GCC, we can decide whether
4036 #### to use that one.
4037 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4038 test x$cc_specified != xyes
4043 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4045 CC="$CC $GCC_TEST_OPTIONS"
4048 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4050 CC="$CC $NON_GCC_TEST_OPTIONS"
4054 ac_cpp='$CPP $CPPFLAGS'
4055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4059 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4060 # On Suns, sometimes $CPP names a directory.
4061 if test -n "$CPP" && test -d "$CPP"; then
4064 if test -z "$CPP"; then
4065 if test "${ac_cv_prog_CPP+set}" = set; then
4066 $as_echo_n "(cached
) " >&6
4068 # Double quotes because CPP needs to be expanded
4069 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4072 for ac_c_preproc_warn_flag in '' yes
4074 # Use a header file that comes with gcc, so configuring glibc
4075 # with a fresh cross-compiler works.
4076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4077 # <limits.h> exists even on freestanding compilers.
4078 # On the NeXT, cc -E runs the code through the compiler's parser,
4079 # not just through cpp. "Syntax error
" is here to catch this case.
4080 cat >conftest.$ac_ext <<_ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h. */
4087 # include <limits.h>
4089 # include <assert.h>
4093 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4099 $as_echo "$ac_try_echo") >&5
4100 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4102 grep -v '^ *+' conftest.er1 >conftest.err
4104 cat conftest.err >&5
4105 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4106 (exit $ac_status); } >/dev/null && {
4107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4108 test ! -s conftest.err
4112 $as_echo "$as_me: failed program was
:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4115 # Broken: fails on valid input.
4119 rm -f conftest.err conftest.$ac_ext
4121 # OK, works on sane cases. Now check whether nonexistent headers
4122 # can be detected and how.
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 #include <ac_nonexistent.h>
4131 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4137 $as_echo "$ac_try_echo") >&5
4138 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4140 grep -v '^ *+' conftest.er1 >conftest.err
4142 cat conftest.err >&5
4143 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4144 (exit $ac_status); } >/dev/null && {
4145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4146 test ! -s conftest.err
4148 # Broken: success on invalid input.
4151 $as_echo "$as_me: failed program was
:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4154 # Passes both tests.
4159 rm -f conftest.err conftest.$ac_ext
4162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4163 rm -f conftest.err conftest.$ac_ext
4164 if $ac_preproc_ok; then
4176 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4177 $as_echo "$CPP" >&6; }
4179 for ac_c_preproc_warn_flag in '' yes
4181 # Use a header file that comes with gcc, so configuring glibc
4182 # with a fresh cross-compiler works.
4183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184 # <limits.h> exists even on freestanding compilers.
4185 # On the NeXT, cc -E runs the code through the compiler's parser,
4186 # not just through cpp. "Syntax error
" is here to catch this case.
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4194 # include <limits.h>
4196 # include <assert.h>
4200 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4205 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4206 $as_echo "$ac_try_echo") >&5
4207 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4209 grep -v '^ *+' conftest.er1 >conftest.err
4211 cat conftest.err >&5
4212 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4213 (exit $ac_status); } >/dev/null && {
4214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4219 $as_echo "$as_me: failed program was
:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4222 # Broken: fails on valid input.
4226 rm -f conftest.err conftest.$ac_ext
4228 # OK, works on sane cases. Now check whether nonexistent headers
4229 # can be detected and how.
4230 cat >conftest.$ac_ext <<_ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 #include <ac_nonexistent.h>
4238 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4243 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4244 $as_echo "$ac_try_echo") >&5
4245 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4247 grep -v '^ *+' conftest.er1 >conftest.err
4249 cat conftest.err >&5
4250 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4251 (exit $ac_status); } >/dev/null && {
4252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4253 test ! -s conftest.err
4255 # Broken: success on invalid input.
4258 $as_echo "$as_me: failed program was
:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4261 # Passes both tests.
4266 rm -f conftest.err conftest.$ac_ext
4269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4270 rm -f conftest.err conftest.$ac_ext
4271 if $ac_preproc_ok; then
4274 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4275 See \
`config.log' for more details." >&5
4276 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4277 See \`config.log
' for more details." >&2;}
4278 { (exit 1); exit 1; }; }
4282 ac_cpp='$CPP $CPPFLAGS'
4283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4284 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4289 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4290 if test "${ac_cv_path_GREP+set}" = set; then
4291 $as_echo_n "(cached) " >&6
4293 if test -z "$GREP"; then
4294 ac_path_GREP_found=false
4295 # Loop through the user's path and
test for each of PROGNAME-LIST
4296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4297 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4300 test -z "$as_dir" && as_dir
=.
4301 for ac_prog
in grep ggrep
; do
4302 for ac_exec_ext
in '' $ac_executable_extensions; do
4303 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4304 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4305 # Check for GNU ac_path_GREP and select it if it is found.
4306 # Check for GNU $ac_path_GREP
4307 case `"$ac_path_GREP" --version 2>&1` in
4309 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4312 $as_echo_n 0123456789 >"conftest.in"
4315 cat "conftest.in" "conftest.in" >"conftest.tmp"
4316 mv "conftest.tmp" "conftest.in"
4317 cp "conftest.in" "conftest.nl"
4318 $as_echo 'GREP' >> "conftest.nl"
4319 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4320 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4321 ac_count
=`expr $ac_count + 1`
4322 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4323 # Best one so far, save it but keep looking for a better one
4324 ac_cv_path_GREP
="$ac_path_GREP"
4325 ac_path_GREP_max
=$ac_count
4327 # 10*(2^10) chars as input seems more than enough
4328 test $ac_count -gt 10 && break
4330 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4333 $ac_path_GREP_found && break 3
4338 if test -z "$ac_cv_path_GREP"; then
4339 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4340 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4341 { (exit 1); exit 1; }; }
4344 ac_cv_path_GREP
=$GREP
4348 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4349 $as_echo "$ac_cv_path_GREP" >&6; }
4350 GREP
="$ac_cv_path_GREP"
4353 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4354 $as_echo_n "checking for egrep... " >&6; }
4355 if test "${ac_cv_path_EGREP+set}" = set; then
4356 $as_echo_n "(cached) " >&6
4358 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4359 then ac_cv_path_EGREP
="$GREP -E"
4361 if test -z "$EGREP"; then
4362 ac_path_EGREP_found
=false
4363 # Loop through the user's path and test for each of PROGNAME-LIST
4364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4365 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4368 test -z "$as_dir" && as_dir
=.
4369 for ac_prog
in egrep; do
4370 for ac_exec_ext
in '' $ac_executable_extensions; do
4371 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4372 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4373 # Check for GNU ac_path_EGREP and select it if it is found.
4374 # Check for GNU $ac_path_EGREP
4375 case `"$ac_path_EGREP" --version 2>&1` in
4377 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4380 $as_echo_n 0123456789 >"conftest.in"
4383 cat "conftest.in" "conftest.in" >"conftest.tmp"
4384 mv "conftest.tmp" "conftest.in"
4385 cp "conftest.in" "conftest.nl"
4386 $as_echo 'EGREP' >> "conftest.nl"
4387 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4388 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4389 ac_count
=`expr $ac_count + 1`
4390 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4391 # Best one so far, save it but keep looking for a better one
4392 ac_cv_path_EGREP
="$ac_path_EGREP"
4393 ac_path_EGREP_max
=$ac_count
4395 # 10*(2^10) chars as input seems more than enough
4396 test $ac_count -gt 10 && break
4398 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4401 $ac_path_EGREP_found && break 3
4406 if test -z "$ac_cv_path_EGREP"; then
4407 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4408 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4409 { (exit 1); exit 1; }; }
4412 ac_cv_path_EGREP
=$EGREP
4417 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4418 $as_echo "$ac_cv_path_EGREP" >&6; }
4419 EGREP
="$ac_cv_path_EGREP"
4422 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4423 $as_echo_n "checking for ANSI C header files... " >&6; }
4424 if test "${ac_cv_header_stdc+set}" = set; then
4425 $as_echo_n "(cached) " >&6
4427 cat >conftest.
$ac_ext <<_ACEOF
4430 cat confdefs.h
>>conftest.
$ac_ext
4431 cat >>conftest.
$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4446 rm -f conftest.
$ac_objext
4447 if { (ac_try
="$ac_compile"
4449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4453 $as_echo "$ac_try_echo") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4456 grep -v '^ *+' conftest.er1 >conftest.err
4458 cat conftest.err >&5
4459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest.$ac_objext; then
4464 ac_cv_header_stdc=yes
4466 $as_echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 ac_cv_header_stdc=no
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 if test $ac_cv_header_stdc = yes; then
4475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4476 cat >conftest.$ac_ext <<_ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 $EGREP "memchr" >/dev/null 2>&1; then
4489 ac_cv_header_stdc=no
4495 if test $ac_cv_header_stdc = yes; then
4496 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4497 cat >conftest.$ac_ext <<_ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4507 $EGREP "free" >/dev/null 2>&1; then
4510 ac_cv_header_stdc=no
4516 if test $ac_cv_header_stdc = yes; then
4517 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4518 if test "$cross_compiling" = yes; then
4521 cat >conftest.$ac_ext <<_ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4529 #if ((' ' & 0x0FF) == 0x020)
4530 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4531 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4533 # define ISLOWER(c) \
4534 (('a' <= (c) && (c) <= 'i') \
4535 || ('j' <= (c) && (c) <= 'r') \
4536 || ('s' <= (c) && (c) <= 'z'))
4537 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4540 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4545 for (i = 0; i < 256; i++)
4546 if (XOR (islower (i), ISLOWER (i))
4547 || toupper (i) != TOUPPER (i))
4552 rm -f conftest$ac_exeext
4553 if { (ac_try="$ac_link"
4555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4556 *) ac_try_echo
=$ac_try;;
4558 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4559 $as_echo "$ac_try_echo") >&5
4560 (eval "$ac_link") 2>&5
4562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4564 { (case "(($ac_try" in
4565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4569 $as_echo "$ac_try_echo") >&5
4570 (eval "$ac_try") 2>&5
4572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4576 $as_echo "$as_me: program exited with status $ac_status" >&5
4577 $as_echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4581 ac_cv_header_stdc=no
4583 rm -rf conftest.dSYM
4584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4590 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4591 $as_echo "$ac_cv_header_stdc" >&6; }
4592 if test $ac_cv_header_stdc = yes; then
4594 cat >>confdefs.h <<\_ACEOF
4595 #define STDC_HEADERS 1
4600 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4610 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4611 inttypes.h stdint.h unistd.h
4613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4615 $as_echo_n "checking for $ac_header... " >&6; }
4616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4617 $as_echo_n "(cached) " >&6
4619 cat >conftest.$ac_ext <<_ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 $ac_includes_default
4627 #include <$ac_header>
4629 rm -f conftest.$ac_objext
4630 if { (ac_try="$ac_compile"
4632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4633 *) ac_try_echo
=$ac_try;;
4635 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4636 $as_echo "$ac_try_echo") >&5
4637 (eval "$ac_compile") 2>conftest.er1
4639 grep -v '^ *+' conftest.er1
>conftest.err
4641 cat conftest.err
>&5
4642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } && {
4644 test -z "$ac_c_werror_flag" ||
4645 test ! -s conftest.err
4646 } && test -s conftest.
$ac_objext; then
4647 eval "$as_ac_Header=yes"
4649 $as_echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.
$ac_ext >&5
4652 eval "$as_ac_Header=no"
4655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4657 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4658 $as_echo "$as_val"'`
4659 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4660 $as_echo "$ac_res" >&6; }
4661 if test `eval 'as_val=${'$as_ac_Header'}
4662 $as_echo "$as_val"'` = yes; then
4663 cat >>confdefs.h
<<_ACEOF
4664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4673 if test "${ac_cv_header_minix_config_h+set}" = set; then
4674 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4675 $as_echo_n "checking for minix/config.h... " >&6; }
4676 if test "${ac_cv_header_minix_config_h+set}" = set; then
4677 $as_echo_n "(cached) " >&6
4679 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4680 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4682 # Is the header compilable?
4683 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4684 $as_echo_n "checking minix/config.h usability... " >&6; }
4685 cat >conftest.
$ac_ext <<_ACEOF
4688 cat confdefs.h
>>conftest.
$ac_ext
4689 cat >>conftest.
$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4691 $ac_includes_default
4692 #include <minix/config.h>
4694 rm -f conftest.
$ac_objext
4695 if { (ac_try
="$ac_compile"
4697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4701 $as_echo "$ac_try_echo") >&5
4702 (eval "$ac_compile") 2>conftest.er1
4704 grep -v '^ *+' conftest.er1 >conftest.err
4706 cat conftest.err >&5
4707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } && {
4709 test -z "$ac_c_werror_flag" ||
4710 test ! -s conftest.err
4711 } && test -s conftest.$ac_objext; then
4712 ac_header_compiler=yes
4714 $as_echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4717 ac_header_compiler=no
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4722 $as_echo "$ac_header_compiler" >&6; }
4724 # Is the header present?
4725 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4726 $as_echo_n "checking minix/config.h presence... " >&6; }
4727 cat >conftest.$ac_ext <<_ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 #include <minix/config.h>
4735 if { (ac_try="$ac_cpp conftest.$ac_ext"
4737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4738 *) ac_try_echo
=$ac_try;;
4740 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4741 $as_echo "$ac_try_echo") >&5
4742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4744 grep -v '^ *+' conftest.er1
>conftest.err
4746 cat conftest.err
>&5
4747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } >/dev
/null
&& {
4749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4750 test ! -s conftest.err
4752 ac_header_preproc
=yes
4754 $as_echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.
$ac_ext >&5
4757 ac_header_preproc
=no
4760 rm -f conftest.err conftest.
$ac_ext
4761 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4762 $as_echo "$ac_header_preproc" >&6; }
4764 # So? What about this header?
4765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4767 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4768 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4769 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4770 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4771 ac_header_preproc
=yes
4774 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4775 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4776 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4777 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4778 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4779 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4780 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4781 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4782 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4783 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4784 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4785 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4789 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4790 $as_echo_n "checking for minix/config.h... " >&6; }
4791 if test "${ac_cv_header_minix_config_h+set}" = set; then
4792 $as_echo_n "(cached) " >&6
4794 ac_cv_header_minix_config_h
=$ac_header_preproc
4796 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4797 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4800 if test $ac_cv_header_minix_config_h = yes; then
4807 if test "$MINIX" = yes; then
4809 cat >>confdefs.h
<<\_ACEOF
4810 #define _POSIX_SOURCE 1
4814 cat >>confdefs.h
<<\_ACEOF
4815 #define _POSIX_1_SOURCE 2
4819 cat >>confdefs.h
<<\_ACEOF
4827 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4828 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4829 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4830 $as_echo_n "(cached) " >&6
4832 cat >conftest.
$ac_ext <<_ACEOF
4835 cat confdefs.h
>>conftest.
$ac_ext
4836 cat >>conftest.
$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4839 # define __EXTENSIONS__ 1
4840 $ac_includes_default
4849 rm -f conftest.
$ac_objext
4850 if { (ac_try
="$ac_compile"
4852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857 (eval "$ac_compile") 2>conftest.er1
4859 grep -v '^ *+' conftest.er1 >conftest.err
4861 cat conftest.err >&5
4862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } && {
4864 test -z "$ac_c_werror_flag" ||
4865 test ! -s conftest.err
4866 } && test -s conftest.$ac_objext; then
4867 ac_cv_safe_to_define___extensions__=yes
4869 $as_echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4872 ac_cv_safe_to_define___extensions__=no
4875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4878 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4879 test $ac_cv_safe_to_define___extensions__ = yes &&
4880 cat >>confdefs.h <<\_ACEOF
4881 #define __EXTENSIONS__ 1
4884 cat >>confdefs.h <<\_ACEOF
4885 #define _ALL_SOURCE 1
4888 cat >>confdefs.h <<\_ACEOF
4889 #define _GNU_SOURCE 1
4892 cat >>confdefs.h <<\_ACEOF
4893 #define _POSIX_PTHREAD_SEMANTICS 1
4896 cat >>confdefs.h <<\_ACEOF
4897 #define _TANDEM_SOURCE 1
4902 ### Use -Wno-pointer-sign if the compiler supports it
4903 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4904 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4905 SAVE_CFLAGS="$CFLAGS"
4906 CFLAGS="$CFLAGS -Wno-pointer-sign"
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4922 rm -f conftest.$ac_objext
4923 if { (ac_try="$ac_compile"
4925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4926 *) ac_try_echo
=$ac_try;;
4928 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4929 $as_echo "$ac_try_echo") >&5
4930 (eval "$ac_compile") 2>conftest.er1
4932 grep -v '^ *+' conftest.er1
>conftest.err
4934 cat conftest.err
>&5
4935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } && {
4937 test -z "$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4939 } && test -s conftest.
$ac_objext; then
4942 $as_echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.
$ac_ext >&5
4948 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4949 if test $has_option = yes; then
4950 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4952 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4953 $as_echo "$has_option" >&6; }
4954 CFLAGS
="$SAVE_CFLAGS"
4958 ### Use -Wdeclaration-after-statement if the compiler supports it
4959 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4960 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4961 SAVE_CFLAGS
="$CFLAGS"
4962 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4963 cat >conftest.
$ac_ext <<_ACEOF
4966 cat confdefs.h
>>conftest.
$ac_ext
4967 cat >>conftest.
$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4978 rm -f conftest.
$ac_objext
4979 if { (ac_try
="$ac_compile"
4981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4985 $as_echo "$ac_try_echo") >&5
4986 (eval "$ac_compile") 2>conftest.er1
4988 grep -v '^ *+' conftest.er1 >conftest.err
4990 cat conftest.err >&5
4991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } && {
4993 test -z "$ac_c_werror_flag" ||
4994 test ! -s conftest.err
4995 } && test -s conftest.$ac_objext; then
4998 $as_echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005 if test $has_option = yes; then
5006 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5008 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5009 $as_echo "$has_option" >&6; }
5010 CFLAGS="$SAVE_CFLAGS"
5014 #### Some other nice autoconf tests.
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5021 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5022 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5023 # On Suns, sometimes $CPP names a directory.
5024 if test -n "$CPP" && test -d "$CPP"; then
5027 if test -z "$CPP"; then
5028 if test "${ac_cv_prog_CPP+set}" = set; then
5029 $as_echo_n "(cached) " >&6
5031 # Double quotes because CPP needs to be expanded
5032 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5035 for ac_c_preproc_warn_flag in '' yes
5037 # Use a header file that comes with gcc, so configuring glibc
5038 # with a fresh cross-compiler works.
5039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5040 # <limits.h> exists even on freestanding compilers.
5041 # On the NeXT, cc -E runs the code through the compiler's parser,
5042 # not just through cpp. "Syntax error" is here to catch this case.
5043 cat >conftest.$ac_ext <<_ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5050 # include <limits.h>
5052 # include <assert.h>
5056 if { (ac_try="$ac_cpp conftest.$ac_ext"
5058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5059 *) ac_try_echo
=$ac_try;;
5061 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5062 $as_echo "$ac_try_echo") >&5
5063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5065 grep -v '^ *+' conftest.er1
>conftest.err
5067 cat conftest.err
>&5
5068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } >/dev
/null
&& {
5070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5071 test ! -s conftest.err
5075 $as_echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.
$ac_ext >&5
5078 # Broken: fails on valid input.
5082 rm -f conftest.err conftest.
$ac_ext
5084 # OK, works on sane cases. Now check whether nonexistent headers
5085 # can be detected and how.
5086 cat >conftest.
$ac_ext <<_ACEOF
5089 cat confdefs.h
>>conftest.
$ac_ext
5090 cat >>conftest.
$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #include <ac_nonexistent.h>
5094 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5100 $as_echo "$ac_try_echo") >&5
5101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5103 grep -v '^ *+' conftest.er1 >conftest.err
5105 cat conftest.err >&5
5106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); } >/dev/null && {
5108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5109 test ! -s conftest.err
5111 # Broken: success on invalid input.
5114 $as_echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5117 # Passes both tests.
5122 rm -f conftest.err conftest.$ac_ext
5125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5126 rm -f conftest.err conftest.
$ac_ext
5127 if $ac_preproc_ok; then
5139 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5140 $as_echo "$CPP" >&6; }
5142 for ac_c_preproc_warn_flag
in '' yes
5144 # Use a header file that comes with gcc, so configuring glibc
5145 # with a fresh cross-compiler works.
5146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5147 # <limits.h> exists even on freestanding compilers.
5148 # On the NeXT, cc -E runs the code through the compiler's parser,
5149 # not just through cpp. "Syntax error" is here to catch this case.
5150 cat >conftest.
$ac_ext <<_ACEOF
5153 cat confdefs.h
>>conftest.
$ac_ext
5154 cat >>conftest.
$ac_ext <<_ACEOF
5155 /* end confdefs.h. */
5157 # include <limits.h>
5159 # include <assert.h>
5163 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5169 $as_echo "$ac_try_echo") >&5
5170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5172 grep -v '^ *+' conftest.er1 >conftest.err
5174 cat conftest.err >&5
5175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } >/dev/null && {
5177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5182 $as_echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5185 # Broken: fails on valid input.
5189 rm -f conftest.err conftest.$ac_ext
5191 # OK, works on sane cases. Now check whether nonexistent headers
5192 # can be detected and how.
5193 cat >conftest.$ac_ext <<_ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5199 #include <ac_nonexistent.h>
5201 if { (ac_try="$ac_cpp conftest.$ac_ext"
5203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5204 *) ac_try_echo
=$ac_try;;
5206 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5207 $as_echo "$ac_try_echo") >&5
5208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5210 grep -v '^ *+' conftest.er1
>conftest.err
5212 cat conftest.err
>&5
5213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); } >/dev
/null
&& {
5215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5216 test ! -s conftest.err
5218 # Broken: success on invalid input.
5221 $as_echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.
$ac_ext >&5
5224 # Passes both tests.
5229 rm -f conftest.err conftest.
$ac_ext
5232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5233 rm -f conftest.err conftest.
$ac_ext
5234 if $ac_preproc_ok; then
5237 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5238 See \`config.log' for more details." >&5
5239 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5240 See \`config.log' for more details." >&2;}
5241 { (exit 1); exit 1; }; }
5245 ac_cpp
='$CPP $CPPFLAGS'
5246 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5250 # Find a good install program. We prefer a C program (faster),
5251 # so one script is as good as another. But avoid the broken or
5252 # incompatible versions:
5253 # SysV /etc/install, /usr/sbin/install
5254 # SunOS /usr/etc/install
5255 # IRIX /sbin/install
5257 # AmigaOS /C/install, which installs bootblocks on floppy discs
5258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5261 # OS/2's system install, which has a completely different semantic
5262 # ./install, which can be erroneously created by make from ./install.sh.
5263 # Reject install programs that cannot install multiple files.
5264 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5265 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5266 if test -z "$INSTALL"; then
5267 if test "${ac_cv_path_install+set}" = set; then
5268 $as_echo_n "(cached) " >&6
5270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir
=.
5275 # Account for people who put trailing slashes in PATH elements.
5277 .
/ | .
// |
/cC
/* | \
5278 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5279 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5282 # OSF1 and SCO ODT 3.0 have their own names for install.
5283 # Don't use installbsd from OSF since it installs stuff as root
5285 for ac_prog
in ginstall scoinst
install; do
5286 for ac_exec_ext
in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5288 if test $ac_prog = install &&
5289 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5290 # AIX install. It has an incompatible calling convention.
5292 elif test $ac_prog = install &&
5293 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5294 # program-specific install script used by HP pwplus--don't use.
5297 rm -rf conftest.one conftest.two conftest.dir
5298 echo one
> conftest.one
5299 echo two
> conftest.two
5301 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5302 test -s conftest.one
&& test -s conftest.two
&&
5303 test -s conftest.dir
/conftest.one
&&
5304 test -s conftest.dir
/conftest.two
5306 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5319 rm -rf conftest.one conftest.two conftest.dir
5322 if test "${ac_cv_path_install+set}" = set; then
5323 INSTALL
=$ac_cv_path_install
5325 # As a last resort, use the slow shell script. Don't cache a
5326 # value for INSTALL within a source directory, because that will
5327 # break other packages using the cache if that directory is
5328 # removed, or if the value is a relative name.
5329 INSTALL
=$ac_install_sh
5332 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5333 $as_echo "$INSTALL" >&6; }
5335 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5336 # It thinks the first close brace ends the variable substitution.
5337 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5339 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5341 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5343 if test "x$RANLIB" = x
; then
5344 if test -n "$ac_tool_prefix"; then
5345 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5346 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if test "${ac_cv_prog_RANLIB+set}" = set; then
5350 $as_echo_n "(cached) " >&6
5352 if test -n "$RANLIB"; then
5353 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5359 test -z "$as_dir" && as_dir
=.
5360 for ac_exec_ext
in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 RANLIB
=$ac_cv_prog_RANLIB
5373 if test -n "$RANLIB"; then
5374 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5375 $as_echo "$RANLIB" >&6; }
5377 { $as_echo "$as_me:$LINENO: result: no" >&5
5378 $as_echo "no" >&6; }
5383 if test -z "$ac_cv_prog_RANLIB"; then
5384 ac_ct_RANLIB
=$RANLIB
5385 # Extract the first word of "ranlib", so it can be a program name with args.
5386 set dummy ranlib
; ac_word
=$2
5387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5390 $as_echo_n "(cached) " >&6
5392 if test -n "$ac_ct_RANLIB"; then
5393 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5399 test -z "$as_dir" && as_dir
=.
5400 for ac_exec_ext
in '' $ac_executable_extensions; do
5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5413 if test -n "$ac_ct_RANLIB"; then
5414 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5415 $as_echo "$ac_ct_RANLIB" >&6; }
5417 { $as_echo "$as_me:$LINENO: result: no" >&5
5418 $as_echo "no" >&6; }
5421 if test "x$ac_ct_RANLIB" = x
; then
5424 case $cross_compiling:$ac_tool_warned in
5426 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5427 whose name does not start with the host triplet. If you think this
5428 configuration is useful to you, please write to autoconf@gnu.org." >&5
5429 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5430 whose name does not start with the host triplet. If you think this
5431 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5432 ac_tool_warned
=yes ;;
5434 RANLIB
=$ac_ct_RANLIB
5437 RANLIB
="$ac_cv_prog_RANLIB"
5442 ## Although we're running on an amd64 kernel, we're actually compiling for
5443 ## the x86 architecture. The user should probably have provided an
5444 ## explicit --build to `configure', but if everything else than the kernel
5445 ## is running in i386 mode, we can help them out.
5446 if test "$machine" = "amdx86-64"; then
5447 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5448 $as_echo_n "checking whether i386 is declared... " >&6; }
5449 if test "${ac_cv_have_decl_i386+set}" = set; then
5450 $as_echo_n "(cached) " >&6
5452 cat >conftest.
$ac_ext <<_ACEOF
5455 cat confdefs.h
>>conftest.
$ac_ext
5456 cat >>conftest.
$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 $ac_includes_default
5470 rm -f conftest.
$ac_objext
5471 if { (ac_try
="$ac_compile"
5473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5477 $as_echo "$ac_try_echo") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5480 grep -v '^ *+' conftest.er1 >conftest.err
5482 cat conftest.err >&5
5483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && {
5485 test -z "$ac_c_werror_flag" ||
5486 test ! -s conftest.err
5487 } && test -s conftest.$ac_objext; then
5488 ac_cv_have_decl_i386=yes
5490 $as_echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5493 ac_cv_have_decl_i386=no
5496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5499 $as_echo "$ac_cv_have_decl_i386" >&6; }
5501 if test "$ac_cv_have_decl_i386" = "yes"; then
5502 canonical=`echo "$canonical" |
sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5504 machfile="m/${machine}.h"
5508 # Extract the first word of "install-info", so it can be a program name with args.
5509 set dummy install-info; ac_word=$2
5510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5513 $as_echo_n "(cached) " >&6
5515 case $INSTALL_INFO in
5517 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5539 if test -n "$INSTALL_INFO"; then
5540 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5541 $as_echo "$INSTALL_INFO" >&6; }
5543 { $as_echo "$as_me:$LINENO: result: no" >&5
5544 $as_echo "no" >&6; }
5548 # Extract the first word of "install-info", so it can be a program name with args.
5549 set dummy install-info; ac_word=$2
5550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5553 $as_echo_n "(cached) " >&6
5555 case $INSTALL_INFO in
5557 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in /usr/sbin
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5567 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5568 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5579 if test -n "$INSTALL_INFO"; then
5580 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5581 $as_echo "$INSTALL_INFO" >&6; }
5583 { $as_echo "$as_me:$LINENO: result: no" >&5
5584 $as_echo "no" >&6; }
5588 # Extract the first word of "install-info", so it can be a program name with args.
5589 set dummy install-info; ac_word=$2
5590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5593 $as_echo_n "(cached) " >&6
5595 case $INSTALL_INFO in
5597 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5607 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5608 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5615 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5619 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5620 if test -n "$INSTALL_INFO"; then
5621 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5622 $as_echo "$INSTALL_INFO" >&6; }
5624 { $as_echo "$as_me:$LINENO: result: no" >&5
5625 $as_echo "no" >&6; }
5629 # Extract the first word of "gzip", so it can be a program name with args.
5630 set dummy gzip; ac_word=$2
5631 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5634 $as_echo_n "(cached) " >&6
5638 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5659 GZIP_PROG=$ac_cv_path_GZIP_PROG
5660 if test -n "$GZIP_PROG"; then
5661 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5662 $as_echo "$GZIP_PROG" >&6; }
5664 { $as_echo "$as_me:$LINENO: result: no" >&5
5665 $as_echo "no" >&6; }
5671 ## Need makeinfo >= 4.6 (?) to build the manuals.
5672 # Extract the first word of "makeinfo", so it can be a program name with args.
5673 set dummy makeinfo; ac_word=$2
5674 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5677 $as_echo_n "(cached) " >&6
5681 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5691 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5692 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5703 MAKEINFO=$ac_cv_path_MAKEINFO
5704 if test -n "$MAKEINFO"; then
5705 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5706 $as_echo "$MAKEINFO" >&6; }
5708 { $as_echo "$as_me:$LINENO: result: no" >&5
5709 $as_echo "no" >&6; }
5713 if test "$MAKEINFO" != "no" && \
5714 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
5718 ## Makeinfo is unusual. For a released Emacs, the manuals are
5719 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5720 ## therefore in the category of "special tools" not normally required, which
5721 ## configure does not have to check for (eg autoconf itself).
5722 ## In a Bazaar checkout on the other hand, the manuals are not included.
5723 ## So makeinfo is a requirement to build from Bazaar, and configure
5724 ## should test for it as it does for any other build requirement.
5725 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5726 ## with pre-built manuals, from a Bazaar checkout.
5727 if test "$MAKEINFO" = "no"; then
5728 if test "x${with_makeinfo}" = "xno"; then
5730 elif test ! -e $srcdir/info/emacs; then
5731 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5732 source tree does not seem to have pre-built manuals in the \`info
' directory.
5733 Either install a suitable version of makeinfo, or re-run configure
5734 with the \`--without-makeinfo' option to build without the manuals.
" >&5
5735 $as_echo "$as_me: error
: You
do not seem to have makeinfo
>= 4.6, and your
5736 source tree does not seem to have pre-built manuals
in the \
`info' directory.
5737 Either install a suitable version of makeinfo, or re-run configure
5738 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5739 { (exit 1); exit 1; }; }
5744 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5746 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5749 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5751 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5755 late_LDFLAGS=$LDFLAGS
5756 if test "$GCC" = yes; then
5757 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5759 LDFLAGS="$LDFLAGS -znocombreloc"
5762 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5763 $as_echo_n "checking for -znocombreloc... " >&6; }
5764 cat >conftest.$ac_ext <<_ACEOF
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (ac_try="$ac_link"
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5774 $as_echo "$ac_try_echo") >&5
5775 (eval "$ac_link") 2>conftest.er1
5777 grep -v '^
*+' conftest.er1 >conftest.err
5779 cat conftest.err >&5
5780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } && {
5782 test -z "$ac_c_werror_flag" ||
5783 test ! -s conftest.err
5784 } && test -s conftest$ac_exeext && {
5785 test "$cross_compiling" = yes ||
5786 $as_test_x conftest$ac_exeext
5788 { $as_echo "$as_me:$LINENO: result: yes" >&5
5789 $as_echo "yes" >&6; }
5791 $as_echo "$as_me: failed program was:" >&5
5792 sed 's
/^
/|
/' conftest.$ac_ext >&5
5794 LDFLAGS=$late_LDFLAGS
5795 { $as_echo "$as_me:$LINENO: result: no" >&5
5796 $as_echo "no" >&6; }
5799 rm -rf conftest.dSYM
5800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5801 conftest$ac_exeext conftest.$ac_ext
5803 #### Extract some information from the operating system and machine files.
5805 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5806 - which libraries the lib-src programs will want, and
5807 - whether the GNU malloc routines are usable..." >&5
5808 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5809 - which libraries the lib-src programs will want, and
5810 - whether the GNU malloc routines are usable..." >&6;}
5812 ### First figure out CFLAGS (which we use for running the compiler here)
5813 ### and REAL_CFLAGS (which we use for real compilation).
5814 ### The two are the same except on a few systems, where they are made
5815 ### different to work around various lossages. For example,
5816 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5817 ### as implying static linking.
5819 ### If the CFLAGS env var is specified, we use that value
5820 ### instead of the default.
5822 ### It's not important that this name contain the PID
; you can
't run
5823 ### two configures in the same directory and have anything work
5825 tempcname="conftest.c"
5828 #include "'${srcdir}'/src/'${opsysfile}'"
5829 #include "'${srcdir}'/src/'${machfile}'"
5831 configure___ LIBX
=-lX11
5833 configure___ unexec
=UNEXEC
5836 configure___ cannot_dump
=yes
5838 configure___ cannot_dump
=no
5841 #ifdef SYSTEM_MALLOC
5842 configure___ system_malloc
=yes
5844 configure___ system_malloc
=no
5847 #ifdef USE_MMAP_FOR_BUFFERS
5848 configure___ use_mmap_for_buffers
=yes
5850 configure___ use_mmap_for_buffers
=no
5853 #ifndef C_OPTIMIZE_SWITCH
5855 #define C_OPTIMIZE_SWITCH -O2
5857 #define C_OPTIMIZE_SWITCH -O
5861 #ifndef C_WARNINGS_SWITCH
5862 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5865 #ifdef THIS_IS_CONFIGURE
5867 /* Get the CFLAGS
for tests
in configure.
*/
5869 configure___ CFLAGS
=-g C_OPTIMIZE_SWITCH
'${SPECIFIED_CFLAGS}'
5871 configure___ CFLAGS
='${SPECIFIED_CFLAGS}'
5874 #else /* not THIS_IS_CONFIGURE */
5876 /* Get the CFLAGS
for real compilation.
*/
5878 configure___ REAL_CFLAGS
=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH
${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5880 configure___ REAL_CFLAGS
='${SPECIFIED_CFLAGS}'
5883 #endif /* not THIS_IS_CONFIGURE */
5886 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5888 # The value of CPP is a quoted variable reference, so we need to do this
5889 # to get its actual value...
5890 CPP=`eval "echo $CPP"`
5891 eval `${CPP} -Isrc ${tempcname} \
5892 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5893 if test "x$SPECIFIED_CFLAGS" = x; then
5894 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5895 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5897 REAL_CFLAGS="$CFLAGS"
5908 ## Let `ld' find image libs and similar things
in /usr
/local
/lib.
5909 ## The system compiler, GCC, has apparently been modified to not
5910 ## look there, contrary to what a stock GCC would do.
5911 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5915 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5916 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5920 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5924 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5925 ## otherwise Emacs dumps core on elf systems.
5926 LD_SWITCH_SYSTEM
="-Z"
5931 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5933 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5934 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5935 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5936 ## values in configure and the Makefiles. How helpful.
5937 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5940 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5941 LD_SWITCH_SYSTEM
="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5944 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5945 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5950 if test "$machine" = "alpha"; then
5951 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5952 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5953 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5954 $as_echo_n "(cached) " >&6
5956 cat >conftest.
$ac_ext <<_ACEOF
5959 cat confdefs.h
>>conftest.
$ac_ext
5960 cat >>conftest.
$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5962 $ac_includes_default
5974 rm -f conftest.
$ac_objext
5975 if { (ac_try
="$ac_compile"
5977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5981 $as_echo "$ac_try_echo") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5984 grep -v '^ *+' conftest.er1 >conftest.err
5986 cat conftest.err >&5
5987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest.$ac_objext; then
5992 ac_cv_have_decl___ELF__=yes
5994 $as_echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ac_cv_have_decl___ELF__=no
6000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6003 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6005 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6006 ## With ELF, make sure that all common symbols get allocated to in the
6007 ## data section. Otherwise, the dump of temacs may miss variables in
6008 ## the shared library that have been initialized. For example, with
6009 ## GNU libc, __malloc_initialized would normally be resolved to the
6010 ## shared library's .bss section, which is fatal.
6011 if test "x$GCC" = "xyes"; then
6012 C_SWITCH_MACHINE="-fno-common"
6014 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6015 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6016 { (exit 1); exit 1; }; }
6024 ## Some programs in src produce warnings saying certain subprograms
6025 ## are too complex and need a MAXMEM value greater than 2000 for
6026 ## additional optimization. --nils@exp-math.uni-essen.de
6027 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6028 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6029 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6030 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6036 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6037 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6039 freebsd) LIBS_SYSTEM="-lutil" ;;
6041 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6043 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6045 ## Motif needs -lgen.
6046 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6051 ### Make sure subsequent tests use flags consistent with the build flags.
6053 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6054 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6056 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6061 # Check whether --enable-largefile was given.
6062 if test "${enable_largefile+set}" = set; then
6063 enableval=$enable_largefile;
6066 if test "$enable_largefile" != no; then
6068 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6069 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6070 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6071 $as_echo_n "(cached) " >&6
6073 ac_cv_sys_largefile_CC=no
6074 if test "$GCC" != yes; then
6077 # IRIX 6.2 and later do not support large files by default,
6078 # so use the C compiler's -n32 option if that helps.
6079 cat >conftest.$ac_ext <<_ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #include <sys/types.h>
6086 /* Check that off_t can represent 2**63 - 1 correctly.
6087 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6088 since some C++ compilers masquerading as C compilers
6089 incorrectly reject 9223372036854775807. */
6090 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6091 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6092 && LARGE_OFF_T % 2147483647 == 1)
6102 rm -f conftest.$ac_objext
6103 if { (ac_try="$ac_compile"
6105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6106 *) ac_try_echo
=$ac_try;;
6108 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6109 $as_echo "$ac_try_echo") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6112 grep -v '^ *+' conftest.er1
>conftest.err
6114 cat conftest.err
>&5
6115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.
$ac_objext; then
6122 $as_echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.
$ac_ext >&5
6128 rm -f core conftest.err conftest.
$ac_objext
6130 rm -f conftest.
$ac_objext
6131 if { (ac_try
="$ac_compile"
6133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137 $as_echo "$ac_try_echo") >&5
6138 (eval "$ac_compile") 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } && {
6145 test -z "$ac_c_werror_flag" ||
6146 test ! -s conftest.err
6147 } && test -s conftest.$ac_objext; then
6148 ac_cv_sys_largefile_CC=' -n32'; break
6150 $as_echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6156 rm -f core conftest.err conftest.$ac_objext
6160 rm -f conftest.$ac_ext
6163 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6164 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6165 if test "$ac_cv_sys_largefile_CC" != no; then
6166 CC=$CC$ac_cv_sys_largefile_CC
6169 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6170 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6171 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6175 cat >conftest.$ac_ext <<_ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 #include <sys/types.h>
6182 /* Check that off_t can represent 2**63 - 1 correctly.
6183 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6184 since some C++ compilers masquerading as C compilers
6185 incorrectly reject 9223372036854775807. */
6186 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6188 && LARGE_OFF_T % 2147483647 == 1)
6198 rm -f conftest.$ac_objext
6199 if { (ac_try="$ac_compile"
6201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6202 *) ac_try_echo
=$ac_try;;
6204 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6205 $as_echo "$ac_try_echo") >&5
6206 (eval "$ac_compile") 2>conftest.er1
6208 grep -v '^ *+' conftest.er1
>conftest.err
6210 cat conftest.err
>&5
6211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } && {
6213 test -z "$ac_c_werror_flag" ||
6214 test ! -s conftest.err
6215 } && test -s conftest.
$ac_objext; then
6216 ac_cv_sys_file_offset_bits
=no
; break
6218 $as_echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.
$ac_ext >&5
6224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6225 cat >conftest.
$ac_ext <<_ACEOF
6228 cat confdefs.h
>>conftest.
$ac_ext
6229 cat >>conftest.
$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 #define _FILE_OFFSET_BITS 64
6232 #include <sys/types.h>
6233 /* Check that off_t can represent 2**63 - 1 correctly.
6234 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6235 since some C++ compilers masquerading as C compilers
6236 incorrectly reject 9223372036854775807. */
6237 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6238 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6239 && LARGE_OFF_T % 2147483647 == 1)
6249 rm -f conftest.
$ac_objext
6250 if { (ac_try
="$ac_compile"
6252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6256 $as_echo "$ac_try_echo") >&5
6257 (eval "$ac_compile") 2>conftest.er1
6259 grep -v '^ *+' conftest.er1 >conftest.err
6261 cat conftest.err >&5
6262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest.$ac_objext; then
6267 ac_cv_sys_file_offset_bits=64; break
6269 $as_echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 ac_cv_sys_file_offset_bits=unknown
6280 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6281 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6282 case $ac_cv_sys_file_offset_bits in #(
6285 cat >>confdefs.h <<_ACEOF
6286 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6291 if test $ac_cv_sys_file_offset_bits = unknown; then
6292 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6293 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6294 if test "${ac_cv_sys_large_files+set}" = set; then
6295 $as_echo_n "(cached) " >&6
6298 cat >conftest.$ac_ext <<_ACEOF
6301 cat confdefs.h >>conftest.$ac_ext
6302 cat >>conftest.$ac_ext <<_ACEOF
6303 /* end confdefs.h. */
6304 #include <sys/types.h>
6305 /* Check that off_t can represent 2**63 - 1 correctly.
6306 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6307 since some C++ compilers masquerading as C compilers
6308 incorrectly reject 9223372036854775807. */
6309 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6310 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6311 && LARGE_OFF_T % 2147483647 == 1)
6321 rm -f conftest.$ac_objext
6322 if { (ac_try="$ac_compile"
6324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6325 *) ac_try_echo
=$ac_try;;
6327 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6328 $as_echo "$ac_try_echo") >&5
6329 (eval "$ac_compile") 2>conftest.er1
6331 grep -v '^ *+' conftest.er1
>conftest.err
6333 cat conftest.err
>&5
6334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } && {
6336 test -z "$ac_c_werror_flag" ||
6337 test ! -s conftest.err
6338 } && test -s conftest.
$ac_objext; then
6339 ac_cv_sys_large_files
=no
; break
6341 $as_echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.
$ac_ext >&5
6347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6348 cat >conftest.
$ac_ext <<_ACEOF
6351 cat confdefs.h
>>conftest.
$ac_ext
6352 cat >>conftest.
$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6354 #define _LARGE_FILES 1
6355 #include <sys/types.h>
6356 /* Check that off_t can represent 2**63 - 1 correctly.
6357 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6358 since some C++ compilers masquerading as C compilers
6359 incorrectly reject 9223372036854775807. */
6360 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6361 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6362 && LARGE_OFF_T % 2147483647 == 1)
6372 rm -f conftest.
$ac_objext
6373 if { (ac_try
="$ac_compile"
6375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6379 $as_echo "$ac_try_echo") >&5
6380 (eval "$ac_compile") 2>conftest.er1
6382 grep -v '^ *+' conftest.er1 >conftest.err
6384 cat conftest.err >&5
6385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && {
6387 test -z "$ac_c_werror_flag" ||
6388 test ! -s conftest.err
6389 } && test -s conftest.$ac_objext; then
6390 ac_cv_sys_large_files=1; break
6392 $as_echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 ac_cv_sys_large_files=unknown
6403 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6404 $as_echo "$ac_cv_sys_large_files" >&6; }
6405 case $ac_cv_sys_large_files in #(
6408 cat >>confdefs.h <<_ACEOF
6409 #define _LARGE_FILES $ac_cv_sys_large_files
6419 ## If user specified a crt-dir, use that unconditionally.
6420 if test "X$CRT_DIR" = "X"; then
6422 case "$canonical" in
6423 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6424 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6425 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6426 ## For anything else (eg /usr/lib32), it is up the user to specify
6427 ## the location (bug#5655).
6428 ## Test for crtn.o, not just the directory, because sometimes the
6429 ## directory exists but does not have the relevant files (bug#1287).
6430 ## FIXME better to test for binary compatibility somehow.
6431 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6434 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6438 hpux10-20) CRT_DIR=/lib ;;
6441 ## Default is /usr/lib.
6442 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6446 ## Some platforms don't use any of these files, so it is not
6447 ## appropriate to put this test outside the if block.
6448 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6449 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6450 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6451 { (exit 1); exit 1; }; }
6464 START_FILES='ecrt0.o'
6467 ## Adding -lm confuses the dynamic linker, so omit it.
6469 START_FILES='pre-crt0.o'
6472 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6473 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6475 gnu-linux | gnu-kfreebsd )
6476 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6477 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6479 hpux10-20 | hpux11 )
6481 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6484 if test -f $CRT_DIR/crti.o; then
6485 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6486 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6488 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6489 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6500 if test "${with_sound}" != "no"; then
6501 # Sound support for GNU/Linux and the free BSDs.
6505 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6509 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6510 $as_echo_n "checking for $ac_header... " >&6; }
6511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6512 $as_echo_n "(cached) " >&6
6514 ac_res=`eval 'as_val=${'$as_ac_Header'}
6515 $as_echo "$as_val"'`
6516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6517 $as_echo "$ac_res" >&6; }
6519 # Is the header compilable?
6520 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6521 $as_echo_n "checking $ac_header usability... " >&6; }
6522 cat >conftest.$ac_ext <<_ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 $ac_includes_default
6529 #include <$ac_header>
6531 rm -f conftest.$ac_objext
6532 if { (ac_try="$ac_compile"
6534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6535 *) ac_try_echo
=$ac_try;;
6537 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6538 $as_echo "$ac_try_echo") >&5
6539 (eval "$ac_compile") 2>conftest.er1
6541 grep -v '^ *+' conftest.er1
>conftest.err
6543 cat conftest.err
>&5
6544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest.
$ac_objext; then
6549 ac_header_compiler
=yes
6551 $as_echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.
$ac_ext >&5
6554 ac_header_compiler
=no
6557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6558 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6559 $as_echo "$ac_header_compiler" >&6; }
6561 # Is the header present?
6562 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6563 $as_echo_n "checking $ac_header presence... " >&6; }
6564 cat >conftest.
$ac_ext <<_ACEOF
6567 cat confdefs.h
>>conftest.
$ac_ext
6568 cat >>conftest.
$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 #include <$ac_header>
6572 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6575 *) ac_try_echo=$ac_try;;
6577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6578 $as_echo "$ac_try_echo") >&5
6579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6581 grep -v '^ *+' conftest.er1 >conftest.err
6583 cat conftest.err >&5
6584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } >/dev/null && {
6586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6589 ac_header_preproc=yes
6591 $as_echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 ac_header_preproc=no
6597 rm -f conftest.err conftest.$ac_ext
6598 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6599 $as_echo "$ac_header_preproc" >&6; }
6601 # So? What about this header?
6602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6605 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6607 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6608 ac_header_preproc=yes
6611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6612 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6614 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6616 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6618 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6620 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6622 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6626 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6627 $as_echo_n "checking for $ac_header... " >&6; }
6628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6629 $as_echo_n "(cached) " >&6
6631 eval "$as_ac_Header=\$ac_header_preproc"
6633 ac_res=`eval 'as_val=${'$as_ac_Header'}
6634 $as_echo "$as_val"'`
6635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6636 $as_echo "$ac_res" >&6; }
6639 if test `eval 'as_val=${'$as_ac_Header'}
6640 $as_echo "$as_val"'` = yes; then
6641 cat >>confdefs.h <<_ACEOF
6642 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6649 # Emulation library used on NetBSD.
6650 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6651 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6652 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6653 $as_echo_n "(cached) " >&6
6655 ac_check_lib_save_LIBS=$LIBS
6656 LIBS="-lossaudio $LIBS"
6657 cat >conftest.$ac_ext <<_ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6664 /* Override any GCC internal prototype to avoid an error.
6665 Use char because int might match the return type of a GCC
6666 builtin and then its argument prototype would still apply. */
6674 return _oss_ioctl ();
6679 rm -f conftest.$ac_objext conftest$ac_exeext
6680 if { (ac_try="$ac_link"
6682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6683 *) ac_try_echo
=$ac_try;;
6685 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6686 $as_echo "$ac_try_echo") >&5
6687 (eval "$ac_link") 2>conftest.er1
6689 grep -v '^ *+' conftest.er1
>conftest.err
6691 cat conftest.err
>&5
6692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && {
6694 test -z "$ac_c_werror_flag" ||
6695 test ! -s conftest.err
6696 } && test -s conftest
$ac_exeext && {
6697 test "$cross_compiling" = yes ||
6698 $as_test_x conftest
$ac_exeext
6700 ac_cv_lib_ossaudio__oss_ioctl
=yes
6702 $as_echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.
$ac_ext >&5
6705 ac_cv_lib_ossaudio__oss_ioctl
=no
6708 rm -rf conftest.dSYM
6709 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6710 conftest
$ac_exeext conftest.
$ac_ext
6711 LIBS
=$ac_check_lib_save_LIBS
6713 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6714 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6715 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6724 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6728 # Extract the first word of "pkg-config", so it can be a program name with args.
6729 set dummy pkg-config
; ac_word
=$2
6730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6731 $as_echo_n "checking for $ac_word... " >&6; }
6732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6733 $as_echo_n "(cached) " >&6
6737 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6744 test -z "$as_dir" && as_dir
=.
6745 for ac_exec_ext
in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6759 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6760 if test -n "$PKG_CONFIG"; then
6761 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6762 $as_echo "$PKG_CONFIG" >&6; }
6764 { $as_echo "$as_me:$LINENO: result: no" >&5
6765 $as_echo "no" >&6; }
6770 if test "$PKG_CONFIG" = "no" ; then
6773 PKG_CONFIG_MIN_VERSION
=0.9.0
6774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6775 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6776 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6778 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6779 { $as_echo "$as_me:$LINENO: result: yes" >&5
6780 $as_echo "yes" >&6; }
6783 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6784 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6785 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6786 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6787 $as_echo "$ALSA_CFLAGS" >&6; }
6789 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6790 $as_echo_n "checking ALSA_LIBS... " >&6; }
6791 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6792 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6793 $as_echo "$ALSA_LIBS" >&6; }
6795 { $as_echo "$as_me:$LINENO: result: no" >&5
6796 $as_echo "no" >&6; }
6799 ## If we have a custom action on failure, don't print errors, but
6800 ## do set a variable so people can do so.
6801 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6808 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6809 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6813 if test $succeeded = yes; then
6819 if test $HAVE_ALSA = yes; then
6820 SAVE_CFLAGS
="$CFLAGS"
6821 SAVE_LDFLAGS
="$LDFLAGS"
6822 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6823 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6824 cat >conftest.
$ac_ext <<_ACEOF
6827 cat confdefs.h
>>conftest.
$ac_ext
6828 cat >>conftest.
$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 #include <asoundlib.h>
6834 snd_lib_error_set_handler (0);
6839 rm -f conftest.
$ac_objext
6840 if { (ac_try
="$ac_compile"
6842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6843 *) ac_try_echo=$ac_try;;
6845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6846 $as_echo "$ac_try_echo") >&5
6847 (eval "$ac_compile") 2>conftest.er1
6849 grep -v '^ *+' conftest.er1 >conftest.err
6851 cat conftest.err >&5
6852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } && {
6854 test -z "$ac_c_werror_flag" ||
6855 test ! -s conftest.err
6856 } && test -s conftest.$ac_objext; then
6857 emacs_alsa_normal=yes
6859 $as_echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.$ac_ext >&5
6862 emacs_alsa_normal=no
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6866 if test "$emacs_alsa_normal" != yes; then
6867 cat >conftest.$ac_ext <<_ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6873 #include <alsa/asoundlib.h>
6877 snd_lib_error_set_handler (0);
6882 rm -f conftest.$ac_objext
6883 if { (ac_try="$ac_compile"
6885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6886 *) ac_try_echo
=$ac_try;;
6888 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6889 $as_echo "$ac_try_echo") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6892 grep -v '^ *+' conftest.er1
>conftest.err
6894 cat conftest.err
>&5
6895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.
$ac_objext; then
6900 emacs_alsa_subdir
=yes
6902 $as_echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.
$ac_ext >&5
6905 emacs_alsa_subdir
=no
6908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6909 if test "$emacs_alsa_subdir" != yes; then
6910 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6911 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6912 { (exit 1); exit 1; }; }
6914 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6917 CFLAGS
="$SAVE_CFLAGS"
6918 LDFLAGS
="$SAVE_LDFLAGS"
6919 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6920 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6922 cat >>confdefs.h
<<\_ACEOF
6955 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6956 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6957 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6958 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6959 sys
/utsname.h
pwd.h utmp.h
6961 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6962 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6963 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6964 $as_echo_n "checking for $ac_header... " >&6; }
6965 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6966 $as_echo_n "(cached) " >&6
6968 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6969 $as_echo "$as_val"'`
6970 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6971 $as_echo "$ac_res" >&6; }
6973 # Is the header compilable?
6974 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6975 $as_echo_n "checking $ac_header usability... " >&6; }
6976 cat >conftest.
$ac_ext <<_ACEOF
6979 cat confdefs.h
>>conftest.
$ac_ext
6980 cat >>conftest.
$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6982 $ac_includes_default
6983 #include <$ac_header>
6985 rm -f conftest.
$ac_objext
6986 if { (ac_try
="$ac_compile"
6988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6989 *) ac_try_echo=$ac_try;;
6991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6992 $as_echo "$ac_try_echo") >&5
6993 (eval "$ac_compile") 2>conftest.er1
6995 grep -v '^ *+' conftest.er1 >conftest.err
6997 cat conftest.err >&5
6998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } && {
7000 test -z "$ac_c_werror_flag" ||
7001 test ! -s conftest.err
7002 } && test -s conftest.$ac_objext; then
7003 ac_header_compiler=yes
7005 $as_echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7008 ac_header_compiler=no
7011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7013 $as_echo "$ac_header_compiler" >&6; }
7015 # Is the header present?
7016 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7017 $as_echo_n "checking $ac_header presence... " >&6; }
7018 cat >conftest.$ac_ext <<_ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 #include <$ac_header>
7026 if { (ac_try="$ac_cpp conftest.$ac_ext"
7028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7029 *) ac_try_echo
=$ac_try;;
7031 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7032 $as_echo "$ac_try_echo") >&5
7033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7035 grep -v '^ *+' conftest.er1
>conftest.err
7037 cat conftest.err
>&5
7038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } >/dev
/null
&& {
7040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7041 test ! -s conftest.err
7043 ac_header_preproc
=yes
7045 $as_echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.
$ac_ext >&5
7048 ac_header_preproc
=no
7051 rm -f conftest.err conftest.
$ac_ext
7052 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7053 $as_echo "$ac_header_preproc" >&6; }
7055 # So? What about this header?
7056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7059 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7061 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7062 ac_header_preproc
=yes
7065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7066 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7068 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7069 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7070 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7072 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7076 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7081 $as_echo_n "checking for $ac_header... " >&6; }
7082 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7083 $as_echo_n "(cached) " >&6
7085 eval "$as_ac_Header=\$ac_header_preproc"
7087 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7088 $as_echo "$as_val"'`
7089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7090 $as_echo "$ac_res" >&6; }
7093 if test `eval 'as_val=${'$as_ac_Header'}
7094 $as_echo "$as_val"'` = yes; then
7095 cat >>confdefs.h
<<_ACEOF
7096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7104 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7105 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7106 cat >conftest.
$ac_ext <<_ACEOF
7109 cat confdefs.h
>>conftest.
$ac_ext
7110 cat >>conftest.
$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 #include <sys/personality.h>
7116 personality (PER_LINUX32)
7121 rm -f conftest.
$ac_objext
7122 if { (ac_try
="$ac_compile"
7124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7125 *) ac_try_echo=$ac_try;;
7127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7128 $as_echo "$ac_try_echo") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7131 grep -v '^ *+' conftest.er1 >conftest.err
7133 cat conftest.err >&5
7134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.$ac_objext; then
7139 emacs_cv_personality_linux32=yes
7141 $as_echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7144 emacs_cv_personality_linux32=no
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7149 $as_echo "$emacs_cv_personality_linux32" >&6; }
7151 if test $emacs_cv_personality_linux32 = yes; then
7153 cat >>confdefs.h <<\_ACEOF
7154 #define HAVE_PERSONALITY_LINUX32 1
7160 for ac_header in term.h
7162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7163 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7164 $as_echo_n "checking for $ac_header... " >&6; }
7165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7166 $as_echo_n "(cached) " >&6
7168 cat >conftest.$ac_ext <<_ACEOF
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7174 #include <$ac_header>
7176 if { (ac_try="$ac_cpp conftest.$ac_ext"
7178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7179 *) ac_try_echo
=$ac_try;;
7181 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7182 $as_echo "$ac_try_echo") >&5
7183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7185 grep -v '^ *+' conftest.er1
>conftest.err
7187 cat conftest.err
>&5
7188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); } >/dev
/null
&& {
7190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7191 test ! -s conftest.err
7193 eval "$as_ac_Header=yes"
7195 $as_echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.
$ac_ext >&5
7198 eval "$as_ac_Header=no"
7201 rm -f conftest.err conftest.
$ac_ext
7203 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7204 $as_echo "$as_val"'`
7205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7206 $as_echo "$ac_res" >&6; }
7207 if test `eval 'as_val=${'$as_ac_Header'}
7208 $as_echo "$as_val"'` = yes; then
7209 cat >>confdefs.h
<<_ACEOF
7210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7217 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7218 $as_echo_n "checking for ANSI C header files... " >&6; }
7219 if test "${ac_cv_header_stdc+set}" = set; then
7220 $as_echo_n "(cached) " >&6
7222 cat >conftest.
$ac_ext <<_ACEOF
7225 cat confdefs.h
>>conftest.
$ac_ext
7226 cat >>conftest.
$ac_ext <<_ACEOF
7227 /* end confdefs.h. */
7241 rm -f conftest.
$ac_objext
7242 if { (ac_try
="$ac_compile"
7244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7248 $as_echo "$ac_try_echo") >&5
7249 (eval "$ac_compile") 2>conftest.er1
7251 grep -v '^ *+' conftest.er1 >conftest.err
7253 cat conftest.err >&5
7254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest.$ac_objext; then
7259 ac_cv_header_stdc=yes
7261 $as_echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7264 ac_cv_header_stdc=no
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7269 if test $ac_cv_header_stdc = yes; then
7270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7271 cat >conftest.$ac_ext <<_ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7281 $EGREP "memchr" >/dev/null 2>&1; then
7284 ac_cv_header_stdc=no
7290 if test $ac_cv_header_stdc = yes; then
7291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7292 cat >conftest.$ac_ext <<_ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7302 $EGREP "free" >/dev/null 2>&1; then
7305 ac_cv_header_stdc=no
7311 if test $ac_cv_header_stdc = yes; then
7312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7313 if test "$cross_compiling" = yes; then
7316 cat >conftest.$ac_ext <<_ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7324 #if ((' ' & 0x0FF) == 0x020)
7325 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7326 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7328 # define ISLOWER(c) \
7329 (('a' <= (c) && (c) <= 'i') \
7330 || ('j' <= (c) && (c) <= 'r') \
7331 || ('s' <= (c) && (c) <= 'z'))
7332 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7335 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7340 for (i = 0; i < 256; i++)
7341 if (XOR (islower (i), ISLOWER (i))
7342 || toupper (i) != TOUPPER (i))
7347 rm -f conftest$ac_exeext
7348 if { (ac_try="$ac_link"
7350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7351 *) ac_try_echo
=$ac_try;;
7353 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7354 $as_echo "$ac_try_echo") >&5
7355 (eval "$ac_link") 2>&5
7357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7359 { (case "(($ac_try" in
7360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7364 $as_echo "$ac_try_echo") >&5
7365 (eval "$ac_try") 2>&5
7367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); }; }; then
7371 $as_echo "$as_me: program exited with status $ac_status" >&5
7372 $as_echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7376 ac_cv_header_stdc=no
7378 rm -rf conftest.dSYM
7379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7385 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7386 $as_echo "$ac_cv_header_stdc" >&6; }
7387 if test $ac_cv_header_stdc = yes; then
7389 cat >>confdefs.h <<\_ACEOF
7390 #define STDC_HEADERS 1
7395 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7396 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7397 if test "${ac_cv_header_time+set}" = set; then
7398 $as_echo_n "(cached) " >&6
7400 cat >conftest.$ac_ext <<_ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7406 #include <sys/types.h>
7407 #include <sys/time.h>
7413 if ((struct tm *) 0)
7419 rm -f conftest.$ac_objext
7420 if { (ac_try="$ac_compile"
7422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7423 *) ac_try_echo
=$ac_try;;
7425 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7426 $as_echo "$ac_try_echo") >&5
7427 (eval "$ac_compile") 2>conftest.er1
7429 grep -v '^ *+' conftest.er1
>conftest.err
7431 cat conftest.err
>&5
7432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } && {
7434 test -z "$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7436 } && test -s conftest.
$ac_objext; then
7437 ac_cv_header_time
=yes
7439 $as_echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.
$ac_ext >&5
7442 ac_cv_header_time
=no
7445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7447 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7448 $as_echo "$ac_cv_header_time" >&6; }
7449 if test $ac_cv_header_time = yes; then
7451 cat >>confdefs.h
<<\_ACEOF
7452 #define TIME_WITH_SYS_TIME 1
7457 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7458 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7459 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7460 $as_echo_n "(cached) " >&6
7462 cat >conftest.
$ac_ext <<_ACEOF
7465 cat confdefs.h
>>conftest.
$ac_ext
7466 cat >>conftest.
$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 $ac_includes_default
7480 rm -f conftest.
$ac_objext
7481 if { (ac_try
="$ac_compile"
7483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7487 $as_echo "$ac_try_echo") >&5
7488 (eval "$ac_compile") 2>conftest.er1
7490 grep -v '^ *+' conftest.er1 >conftest.err
7492 cat conftest.err >&5
7493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } && {
7495 test -z "$ac_c_werror_flag" ||
7496 test ! -s conftest.err
7497 } && test -s conftest.$ac_objext; then
7498 ac_cv_have_decl_sys_siglist=yes
7500 $as_echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7503 ac_cv_have_decl_sys_siglist=no
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7509 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7510 if test $ac_cv_have_decl_sys_siglist = yes; then
7512 cat >>confdefs.h <<_ACEOF
7513 #define HAVE_DECL_SYS_SIGLIST 1
7518 cat >>confdefs.h <<_ACEOF
7519 #define HAVE_DECL_SYS_SIGLIST 0
7526 if test $ac_cv_have_decl_sys_siglist != yes; then
7527 # For Tru64, at least:
7528 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7529 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7530 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7531 $as_echo_n "(cached) " >&6
7533 cat >conftest.$ac_ext <<_ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 $ac_includes_default
7543 #ifndef __sys_siglist
7544 (void) __sys_siglist;
7551 rm -f conftest.$ac_objext
7552 if { (ac_try="$ac_compile"
7554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7555 *) ac_try_echo
=$ac_try;;
7557 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7558 $as_echo "$ac_try_echo") >&5
7559 (eval "$ac_compile") 2>conftest.er1
7561 grep -v '^ *+' conftest.er1
>conftest.err
7563 cat conftest.err
>&5
7564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && {
7566 test -z "$ac_c_werror_flag" ||
7567 test ! -s conftest.err
7568 } && test -s conftest.
$ac_objext; then
7569 ac_cv_have_decl___sys_siglist
=yes
7571 $as_echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.
$ac_ext >&5
7574 ac_cv_have_decl___sys_siglist
=no
7577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7579 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7580 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7581 if test $ac_cv_have_decl___sys_siglist = yes; then
7583 cat >>confdefs.h
<<_ACEOF
7584 #define HAVE_DECL___SYS_SIGLIST 1
7589 cat >>confdefs.h
<<_ACEOF
7590 #define HAVE_DECL___SYS_SIGLIST 0
7597 if test $ac_cv_have_decl___sys_siglist = yes; then
7599 cat >>confdefs.h
<<\_ACEOF
7600 #define sys_siglist __sys_siglist
7605 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7606 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7607 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7608 $as_echo_n "(cached) " >&6
7610 cat >conftest.
$ac_ext <<_ACEOF
7613 cat confdefs.h
>>conftest.
$ac_ext
7614 cat >>conftest.
$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 #include <sys/types.h>
7617 #include <sys/wait.h>
7619 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7622 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7630 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7635 rm -f conftest.
$ac_objext
7636 if { (ac_try
="$ac_compile"
7638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7642 $as_echo "$ac_try_echo") >&5
7643 (eval "$ac_compile") 2>conftest.er1
7645 grep -v '^ *+' conftest.er1 >conftest.err
7647 cat conftest.err >&5
7648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } && {
7650 test -z "$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7652 } && test -s conftest.$ac_objext; then
7653 ac_cv_header_sys_wait_h=yes
7655 $as_echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7658 ac_cv_header_sys_wait_h=no
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7664 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7665 if test $ac_cv_header_sys_wait_h = yes; then
7667 cat >>confdefs.h <<\_ACEOF
7668 #define HAVE_SYS_WAIT_H 1
7674 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7675 $as_echo_n "checking for struct utimbuf... " >&6; }
7676 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7677 $as_echo_n "(cached) " >&6
7679 cat >conftest.$ac_ext <<_ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 #ifdef TIME_WITH_SYS_TIME
7686 #include <sys/time.h>
7689 #ifdef HAVE_SYS_TIME_H
7690 #include <sys/time.h>
7701 static struct utimbuf x; x.actime = x.modtime;
7706 rm -f conftest.$ac_objext
7707 if { (ac_try="$ac_compile"
7709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7710 *) ac_try_echo
=$ac_try;;
7712 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7713 $as_echo "$ac_try_echo") >&5
7714 (eval "$ac_compile") 2>conftest.er1
7716 grep -v '^ *+' conftest.er1
>conftest.err
7718 cat conftest.err
>&5
7719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } && {
7721 test -z "$ac_c_werror_flag" ||
7722 test ! -s conftest.err
7723 } && test -s conftest.
$ac_objext; then
7724 emacs_cv_struct_utimbuf
=yes
7726 $as_echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.
$ac_ext >&5
7729 emacs_cv_struct_utimbuf
=no
7732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7734 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7735 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7736 if test $emacs_cv_struct_utimbuf = yes; then
7738 cat >>confdefs.h
<<\_ACEOF
7739 #define HAVE_STRUCT_UTIMBUF 1
7744 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7745 $as_echo_n "checking return type of signal handlers... " >&6; }
7746 if test "${ac_cv_type_signal+set}" = set; then
7747 $as_echo_n "(cached) " >&6
7749 cat >conftest.
$ac_ext <<_ACEOF
7752 cat confdefs.h
>>conftest.
$ac_ext
7753 cat >>conftest.
$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 #include <sys/types.h>
7761 return *(signal (0, 0)) (0) == 1;
7766 rm -f conftest.
$ac_objext
7767 if { (ac_try
="$ac_compile"
7769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7773 $as_echo "$ac_try_echo") >&5
7774 (eval "$ac_compile") 2>conftest.er1
7776 grep -v '^ *+' conftest.er1 >conftest.err
7778 cat conftest.err >&5
7779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } && {
7781 test -z "$ac_c_werror_flag" ||
7782 test ! -s conftest.err
7783 } && test -s conftest.$ac_objext; then
7784 ac_cv_type_signal=int
7786 $as_echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7789 ac_cv_type_signal=void
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7795 $as_echo "$ac_cv_type_signal" >&6; }
7797 cat >>confdefs.h <<_ACEOF
7798 #define RETSIGTYPE $ac_cv_type_signal
7803 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7804 $as_echo_n "checking for speed_t... " >&6; }
7805 if test "${emacs_cv_speed_t+set}" = set; then
7806 $as_echo_n "(cached) " >&6
7808 cat >conftest.$ac_ext <<_ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814 #include <termios.h>
7823 rm -f conftest.$ac_objext
7824 if { (ac_try="$ac_compile"
7826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7827 *) ac_try_echo
=$ac_try;;
7829 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7830 $as_echo "$ac_try_echo") >&5
7831 (eval "$ac_compile") 2>conftest.er1
7833 grep -v '^ *+' conftest.er1
>conftest.err
7835 cat conftest.err
>&5
7836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } && {
7838 test -z "$ac_c_werror_flag" ||
7839 test ! -s conftest.err
7840 } && test -s conftest.
$ac_objext; then
7841 emacs_cv_speed_t
=yes
7843 $as_echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.
$ac_ext >&5
7849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7851 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7852 $as_echo "$emacs_cv_speed_t" >&6; }
7853 if test $emacs_cv_speed_t = yes; then
7855 cat >>confdefs.h
<<\_ACEOF
7856 #define HAVE_SPEED_T 1
7861 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7862 $as_echo_n "checking for struct timeval... " >&6; }
7863 if test "${emacs_cv_struct_timeval+set}" = set; then
7864 $as_echo_n "(cached) " >&6
7866 cat >conftest.
$ac_ext <<_ACEOF
7869 cat confdefs.h
>>conftest.
$ac_ext
7870 cat >>conftest.
$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 #ifdef TIME_WITH_SYS_TIME
7873 #include <sys/time.h>
7876 #ifdef HAVE_SYS_TIME_H
7877 #include <sys/time.h>
7885 static struct timeval x; x.tv_sec = x.tv_usec;
7890 rm -f conftest.
$ac_objext
7891 if { (ac_try
="$ac_compile"
7893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7897 $as_echo "$ac_try_echo") >&5
7898 (eval "$ac_compile") 2>conftest.er1
7900 grep -v '^ *+' conftest.er1 >conftest.err
7902 cat conftest.err >&5
7903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } && {
7905 test -z "$ac_c_werror_flag" ||
7906 test ! -s conftest.err
7907 } && test -s conftest.$ac_objext; then
7908 emacs_cv_struct_timeval=yes
7910 $as_echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7913 emacs_cv_struct_timeval=no
7916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7919 $as_echo "$emacs_cv_struct_timeval" >&6; }
7920 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7921 if test $emacs_cv_struct_timeval = yes; then
7923 cat >>confdefs.h <<\_ACEOF
7924 #define HAVE_TIMEVAL 1
7929 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7930 $as_echo_n "checking for struct exception... " >&6; }
7931 if test "${emacs_cv_struct_exception+set}" = set; then
7932 $as_echo_n "(cached) " >&6
7934 cat >conftest.$ac_ext <<_ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7944 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7949 rm -f conftest.$ac_objext
7950 if { (ac_try="$ac_compile"
7952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7953 *) ac_try_echo
=$ac_try;;
7955 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7956 $as_echo "$ac_try_echo") >&5
7957 (eval "$ac_compile") 2>conftest.er1
7959 grep -v '^ *+' conftest.er1
>conftest.err
7961 cat conftest.err
>&5
7962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } && {
7964 test -z "$ac_c_werror_flag" ||
7965 test ! -s conftest.err
7966 } && test -s conftest.
$ac_objext; then
7967 emacs_cv_struct_exception
=yes
7969 $as_echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.
$ac_ext >&5
7972 emacs_cv_struct_exception
=no
7975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7977 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7978 $as_echo "$emacs_cv_struct_exception" >&6; }
7979 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7980 if test $emacs_cv_struct_exception != yes; then
7982 cat >>confdefs.h
<<\_ACEOF
7983 #define NO_MATHERR 1
7989 for ac_header
in sys
/socket.h
7991 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7992 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7993 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7994 $as_echo_n "checking for $ac_header... " >&6; }
7995 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7996 $as_echo_n "(cached) " >&6
7998 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7999 $as_echo "$as_val"'`
8000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8001 $as_echo "$ac_res" >&6; }
8003 # Is the header compilable?
8004 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8005 $as_echo_n "checking $ac_header usability... " >&6; }
8006 cat >conftest.
$ac_ext <<_ACEOF
8009 cat confdefs.h
>>conftest.
$ac_ext
8010 cat >>conftest.
$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 $ac_includes_default
8013 #include <$ac_header>
8015 rm -f conftest.
$ac_objext
8016 if { (ac_try
="$ac_compile"
8018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8022 $as_echo "$ac_try_echo") >&5
8023 (eval "$ac_compile") 2>conftest.er1
8025 grep -v '^ *+' conftest.er1 >conftest.err
8027 cat conftest.err >&5
8028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029 (exit $ac_status); } && {
8030 test -z "$ac_c_werror_flag" ||
8031 test ! -s conftest.err
8032 } && test -s conftest.$ac_objext; then
8033 ac_header_compiler=yes
8035 $as_echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8038 ac_header_compiler=no
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8043 $as_echo "$ac_header_compiler" >&6; }
8045 # Is the header present?
8046 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8047 $as_echo_n "checking $ac_header presence... " >&6; }
8048 cat >conftest.$ac_ext <<_ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8054 #include <$ac_header>
8056 if { (ac_try="$ac_cpp conftest.$ac_ext"
8058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8059 *) ac_try_echo
=$ac_try;;
8061 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8062 $as_echo "$ac_try_echo") >&5
8063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8065 grep -v '^ *+' conftest.er1
>conftest.err
8067 cat conftest.err
>&5
8068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } >/dev
/null
&& {
8070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8071 test ! -s conftest.err
8073 ac_header_preproc
=yes
8075 $as_echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.
$ac_ext >&5
8078 ac_header_preproc
=no
8081 rm -f conftest.err conftest.
$ac_ext
8082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8083 $as_echo "$ac_header_preproc" >&6; }
8085 # So? What about this header?
8086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8089 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8091 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8092 ac_header_preproc
=yes
8095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8096 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8098 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8100 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8102 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8104 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8106 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8110 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8111 $as_echo_n "checking for $ac_header... " >&6; }
8112 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8113 $as_echo_n "(cached) " >&6
8115 eval "$as_ac_Header=\$ac_header_preproc"
8117 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8118 $as_echo "$as_val"'`
8119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8120 $as_echo "$ac_res" >&6; }
8123 if test `eval 'as_val=${'$as_ac_Header'}
8124 $as_echo "$as_val"'` = yes; then
8125 cat >>confdefs.h
<<_ACEOF
8126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8134 for ac_header
in net
/if.h
8136 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8137 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8138 $as_echo_n "checking for $ac_header... " >&6; }
8139 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8140 $as_echo_n "(cached) " >&6
8142 cat >conftest.
$ac_ext <<_ACEOF
8145 cat confdefs.h
>>conftest.
$ac_ext
8146 cat >>conftest.
$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8148 $ac_includes_default
8149 #if HAVE_SYS_SOCKET_H
8150 #include <sys/socket.h>
8153 #include <$ac_header>
8155 rm -f conftest.
$ac_objext
8156 if { (ac_try
="$ac_compile"
8158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8162 $as_echo "$ac_try_echo") >&5
8163 (eval "$ac_compile") 2>conftest.er1
8165 grep -v '^ *+' conftest.er1 >conftest.err
8167 cat conftest.err >&5
8168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } && {
8170 test -z "$ac_c_werror_flag" ||
8171 test ! -s conftest.err
8172 } && test -s conftest.$ac_objext; then
8173 eval "$as_ac_Header=yes"
8175 $as_echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 eval "$as_ac_Header=no"
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 ac_res=`eval 'as_val=${'$as_ac_Header'}
8184 $as_echo "$as_val"'`
8185 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8186 $as_echo "$ac_res" >&6; }
8187 if test `eval 'as_val=${'$as_ac_Header'}
8188 $as_echo "$as_val"'` = yes; then
8189 cat >>confdefs.h <<_ACEOF
8190 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8198 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8199 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8200 if test "${ac_cv_struct_tm+set}" = set; then
8201 $as_echo_n "(cached) " >&6
8203 cat >conftest.$ac_ext <<_ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 #include <sys/types.h>
8216 int *p = &tm.tm_sec;
8222 rm -f conftest.$ac_objext
8223 if { (ac_try="$ac_compile"
8225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8226 *) ac_try_echo
=$ac_try;;
8228 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8229 $as_echo "$ac_try_echo") >&5
8230 (eval "$ac_compile") 2>conftest.er1
8232 grep -v '^ *+' conftest.er1
>conftest.err
8234 cat conftest.err
>&5
8235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } && {
8237 test -z "$ac_c_werror_flag" ||
8238 test ! -s conftest.err
8239 } && test -s conftest.
$ac_objext; then
8240 ac_cv_struct_tm
=time.h
8242 $as_echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.
$ac_ext >&5
8245 ac_cv_struct_tm
=sys
/time.h
8248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8250 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8251 $as_echo "$ac_cv_struct_tm" >&6; }
8252 if test $ac_cv_struct_tm = sys
/time.h
; then
8254 cat >>confdefs.h
<<\_ACEOF
8255 #define TM_IN_SYS_TIME 1
8260 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8261 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8262 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8263 $as_echo_n "(cached) " >&6
8265 cat >conftest.
$ac_ext <<_ACEOF
8268 cat confdefs.h
>>conftest.
$ac_ext
8269 cat >>conftest.
$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 #include <sys/types.h>
8272 #include <$ac_cv_struct_tm>
8278 static struct tm ac_aggr;
8279 if (ac_aggr.tm_zone)
8285 rm -f conftest.
$ac_objext
8286 if { (ac_try
="$ac_compile"
8288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8292 $as_echo "$ac_try_echo") >&5
8293 (eval "$ac_compile") 2>conftest.er1
8295 grep -v '^ *+' conftest.er1 >conftest.err
8297 cat conftest.err >&5
8298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } && {
8300 test -z "$ac_c_werror_flag" ||
8301 test ! -s conftest.err
8302 } && test -s conftest.$ac_objext; then
8303 ac_cv_member_struct_tm_tm_zone=yes
8305 $as_echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8308 cat >conftest.$ac_ext <<_ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 #include <sys/types.h>
8315 #include <$ac_cv_struct_tm>
8321 static struct tm ac_aggr;
8322 if (sizeof ac_aggr.tm_zone)
8328 rm -f conftest.$ac_objext
8329 if { (ac_try="$ac_compile"
8331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8332 *) ac_try_echo
=$ac_try;;
8334 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8335 $as_echo "$ac_try_echo") >&5
8336 (eval "$ac_compile") 2>conftest.er1
8338 grep -v '^ *+' conftest.er1
>conftest.err
8340 cat conftest.err
>&5
8341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest.
$ac_objext; then
8346 ac_cv_member_struct_tm_tm_zone
=yes
8348 $as_echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.
$ac_ext >&5
8351 ac_cv_member_struct_tm_tm_zone
=no
8354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8359 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8360 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8361 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8363 cat >>confdefs.h
<<_ACEOF
8364 #define HAVE_STRUCT_TM_TM_ZONE 1
8370 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8372 cat >>confdefs.h
<<\_ACEOF
8373 #define HAVE_TM_ZONE 1
8377 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8378 $as_echo_n "checking whether tzname is declared... " >&6; }
8379 if test "${ac_cv_have_decl_tzname+set}" = set; then
8380 $as_echo_n "(cached) " >&6
8382 cat >conftest.
$ac_ext <<_ACEOF
8385 cat confdefs.h
>>conftest.
$ac_ext
8386 cat >>conftest.
$ac_ext <<_ACEOF
8387 /* end confdefs.h. */
8401 rm -f conftest.
$ac_objext
8402 if { (ac_try
="$ac_compile"
8404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8408 $as_echo "$ac_try_echo") >&5
8409 (eval "$ac_compile") 2>conftest.er1
8411 grep -v '^ *+' conftest.er1 >conftest.err
8413 cat conftest.err >&5
8414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } && {
8416 test -z "$ac_c_werror_flag" ||
8417 test ! -s conftest.err
8418 } && test -s conftest.$ac_objext; then
8419 ac_cv_have_decl_tzname=yes
8421 $as_echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 ac_cv_have_decl_tzname=no
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8430 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8431 if test $ac_cv_have_decl_tzname = yes; then
8433 cat >>confdefs.h <<_ACEOF
8434 #define HAVE_DECL_TZNAME 1
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_DECL_TZNAME 0
8447 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8448 $as_echo_n "checking for tzname... " >&6; }
8449 if test "${ac_cv_var_tzname+set}" = set; then
8450 $as_echo_n "(cached) " >&6
8452 cat >conftest.$ac_ext <<_ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8459 #if !HAVE_DECL_TZNAME
8460 extern char *tzname[];
8466 return tzname[0][0];
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (ac_try="$ac_link"
8474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8475 *) ac_try_echo
=$ac_try;;
8477 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8478 $as_echo "$ac_try_echo") >&5
8479 (eval "$ac_link") 2>conftest.er1
8481 grep -v '^ *+' conftest.er1
>conftest.err
8483 cat conftest.err
>&5
8484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_c_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest
$ac_exeext && {
8489 test "$cross_compiling" = yes ||
8490 $as_test_x conftest
$ac_exeext
8492 ac_cv_var_tzname
=yes
8494 $as_echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.
$ac_ext >&5
8500 rm -rf conftest.dSYM
8501 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8502 conftest
$ac_exeext conftest.
$ac_ext
8504 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8505 $as_echo "$ac_cv_var_tzname" >&6; }
8506 if test $ac_cv_var_tzname = yes; then
8508 cat >>confdefs.h
<<\_ACEOF
8509 #define HAVE_TZNAME 1
8515 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8516 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8517 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8518 $as_echo_n "(cached) " >&6
8520 cat >conftest.
$ac_ext <<_ACEOF
8523 cat confdefs.h
>>conftest.
$ac_ext
8524 cat >>conftest.
$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8531 static struct tm ac_aggr;
8532 if (ac_aggr.tm_gmtoff)
8538 rm -f conftest.
$ac_objext
8539 if { (ac_try
="$ac_compile"
8541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8545 $as_echo "$ac_try_echo") >&5
8546 (eval "$ac_compile") 2>conftest.er1
8548 grep -v '^ *+' conftest.er1 >conftest.err
8550 cat conftest.err >&5
8551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } && {
8553 test -z "$ac_c_werror_flag" ||
8554 test ! -s conftest.err
8555 } && test -s conftest.$ac_objext; then
8556 ac_cv_member_struct_tm_tm_gmtoff=yes
8558 $as_echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8561 cat >conftest.$ac_ext <<_ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h. */
8572 static struct tm ac_aggr;
8573 if (sizeof ac_aggr.tm_gmtoff)
8579 rm -f conftest.$ac_objext
8580 if { (ac_try="$ac_compile"
8582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8583 *) ac_try_echo
=$ac_try;;
8585 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8586 $as_echo "$ac_try_echo") >&5
8587 (eval "$ac_compile") 2>conftest.er1
8589 grep -v '^ *+' conftest.er1
>conftest.err
8591 cat conftest.err
>&5
8592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } && {
8594 test -z "$ac_c_werror_flag" ||
8595 test ! -s conftest.err
8596 } && test -s conftest.
$ac_objext; then
8597 ac_cv_member_struct_tm_tm_gmtoff
=yes
8599 $as_echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.
$ac_ext >&5
8602 ac_cv_member_struct_tm_tm_gmtoff
=no
8605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8610 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8611 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8612 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8614 cat >>confdefs.h
<<\_ACEOF
8615 #define HAVE_TM_GMTOFF 1
8620 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8621 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8622 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8623 $as_echo_n "(cached) " >&6
8625 cat >conftest.
$ac_ext <<_ACEOF
8628 cat confdefs.h
>>conftest.
$ac_ext
8629 cat >>conftest.
$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8631 $ac_includes_default
8632 #if HAVE_SYS_SOCKET_H
8633 #include <sys/socket.h>
8642 static struct ifreq ac_aggr;
8643 if (ac_aggr.ifr_flags)
8649 rm -f conftest.
$ac_objext
8650 if { (ac_try
="$ac_compile"
8652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8653 *) ac_try_echo=$ac_try;;
8655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8656 $as_echo "$ac_try_echo") >&5
8657 (eval "$ac_compile") 2>conftest.er1
8659 grep -v '^ *+' conftest.er1 >conftest.err
8661 cat conftest.err >&5
8662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest.$ac_objext; then
8667 ac_cv_member_struct_ifreq_ifr_flags=yes
8669 $as_echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 cat >conftest.$ac_ext <<_ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 $ac_includes_default
8679 #if HAVE_SYS_SOCKET_H
8680 #include <sys/socket.h>
8689 static struct ifreq ac_aggr;
8690 if (sizeof ac_aggr.ifr_flags)
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8700 *) ac_try_echo
=$ac_try;;
8702 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8703 $as_echo "$ac_try_echo") >&5
8704 (eval "$ac_compile") 2>conftest.er1
8706 grep -v '^ *+' conftest.er1
>conftest.err
8708 cat conftest.err
>&5
8709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && {
8711 test -z "$ac_c_werror_flag" ||
8712 test ! -s conftest.err
8713 } && test -s conftest.
$ac_objext; then
8714 ac_cv_member_struct_ifreq_ifr_flags
=yes
8716 $as_echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.
$ac_ext >&5
8719 ac_cv_member_struct_ifreq_ifr_flags
=no
8722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8727 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8728 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8729 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8731 cat >>confdefs.h
<<_ACEOF
8732 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8737 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8738 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8739 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8740 $as_echo_n "(cached) " >&6
8742 cat >conftest.
$ac_ext <<_ACEOF
8745 cat confdefs.h
>>conftest.
$ac_ext
8746 cat >>conftest.
$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8748 $ac_includes_default
8749 #if HAVE_SYS_SOCKET_H
8750 #include <sys/socket.h>
8759 static struct ifreq ac_aggr;
8760 if (ac_aggr.ifr_hwaddr)
8766 rm -f conftest.
$ac_objext
8767 if { (ac_try
="$ac_compile"
8769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8773 $as_echo "$ac_try_echo") >&5
8774 (eval "$ac_compile") 2>conftest.er1
8776 grep -v '^ *+' conftest.er1 >conftest.err
8778 cat conftest.err >&5
8779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && {
8781 test -z "$ac_c_werror_flag" ||
8782 test ! -s conftest.err
8783 } && test -s conftest.$ac_objext; then
8784 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8786 $as_echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 cat >conftest.$ac_ext <<_ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8795 $ac_includes_default
8796 #if HAVE_SYS_SOCKET_H
8797 #include <sys/socket.h>
8806 static struct ifreq ac_aggr;
8807 if (sizeof ac_aggr.ifr_hwaddr)
8813 rm -f conftest.$ac_objext
8814 if { (ac_try="$ac_compile"
8816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8817 *) ac_try_echo
=$ac_try;;
8819 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8820 $as_echo "$ac_try_echo") >&5
8821 (eval "$ac_compile") 2>conftest.er1
8823 grep -v '^ *+' conftest.er1
>conftest.err
8825 cat conftest.err
>&5
8826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } && {
8828 test -z "$ac_c_werror_flag" ||
8829 test ! -s conftest.err
8830 } && test -s conftest.
$ac_objext; then
8831 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8833 $as_echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.
$ac_ext >&5
8836 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8844 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8845 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8846 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8848 cat >>confdefs.h
<<_ACEOF
8849 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8854 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8855 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8856 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8857 $as_echo_n "(cached) " >&6
8859 cat >conftest.
$ac_ext <<_ACEOF
8862 cat confdefs.h
>>conftest.
$ac_ext
8863 cat >>conftest.
$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 $ac_includes_default
8866 #if HAVE_SYS_SOCKET_H
8867 #include <sys/socket.h>
8876 static struct ifreq ac_aggr;
8877 if (ac_aggr.ifr_netmask)
8883 rm -f conftest.
$ac_objext
8884 if { (ac_try
="$ac_compile"
8886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8890 $as_echo "$ac_try_echo") >&5
8891 (eval "$ac_compile") 2>conftest.er1
8893 grep -v '^ *+' conftest.er1 >conftest.err
8895 cat conftest.err >&5
8896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest.$ac_objext; then
8901 ac_cv_member_struct_ifreq_ifr_netmask=yes
8903 $as_echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8906 cat >conftest.$ac_ext <<_ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8912 $ac_includes_default
8913 #if HAVE_SYS_SOCKET_H
8914 #include <sys/socket.h>
8923 static struct ifreq ac_aggr;
8924 if (sizeof ac_aggr.ifr_netmask)
8930 rm -f conftest.$ac_objext
8931 if { (ac_try="$ac_compile"
8933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8934 *) ac_try_echo
=$ac_try;;
8936 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8937 $as_echo "$ac_try_echo") >&5
8938 (eval "$ac_compile") 2>conftest.er1
8940 grep -v '^ *+' conftest.er1
>conftest.err
8942 cat conftest.err
>&5
8943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } && {
8945 test -z "$ac_c_werror_flag" ||
8946 test ! -s conftest.err
8947 } && test -s conftest.
$ac_objext; then
8948 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8950 $as_echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.
$ac_ext >&5
8953 ac_cv_member_struct_ifreq_ifr_netmask
=no
8956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8961 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8962 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8963 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8965 cat >>confdefs.h
<<_ACEOF
8966 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8971 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8972 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8973 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8974 $as_echo_n "(cached) " >&6
8976 cat >conftest.
$ac_ext <<_ACEOF
8979 cat confdefs.h
>>conftest.
$ac_ext
8980 cat >>conftest.
$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 $ac_includes_default
8983 #if HAVE_SYS_SOCKET_H
8984 #include <sys/socket.h>
8993 static struct ifreq ac_aggr;
8994 if (ac_aggr.ifr_broadaddr)
9000 rm -f conftest.
$ac_objext
9001 if { (ac_try
="$ac_compile"
9003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9007 $as_echo "$ac_try_echo") >&5
9008 (eval "$ac_compile") 2>conftest.er1
9010 grep -v '^ *+' conftest.er1 >conftest.err
9012 cat conftest.err >&5
9013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } && {
9015 test -z "$ac_c_werror_flag" ||
9016 test ! -s conftest.err
9017 } && test -s conftest.$ac_objext; then
9018 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9020 $as_echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9023 cat >conftest.$ac_ext <<_ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 $ac_includes_default
9030 #if HAVE_SYS_SOCKET_H
9031 #include <sys/socket.h>
9040 static struct ifreq ac_aggr;
9041 if (sizeof ac_aggr.ifr_broadaddr)
9047 rm -f conftest.$ac_objext
9048 if { (ac_try="$ac_compile"
9050 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9051 *) ac_try_echo
=$ac_try;;
9053 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9054 $as_echo "$ac_try_echo") >&5
9055 (eval "$ac_compile") 2>conftest.er1
9057 grep -v '^ *+' conftest.er1
>conftest.err
9059 cat conftest.err
>&5
9060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } && {
9062 test -z "$ac_c_werror_flag" ||
9063 test ! -s conftest.err
9064 } && test -s conftest.
$ac_objext; then
9065 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
9067 $as_echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.
$ac_ext >&5
9070 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
9073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9078 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9079 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9080 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9082 cat >>confdefs.h
<<_ACEOF
9083 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9088 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9089 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9090 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9091 $as_echo_n "(cached) " >&6
9093 cat >conftest.
$ac_ext <<_ACEOF
9096 cat confdefs.h
>>conftest.
$ac_ext
9097 cat >>conftest.
$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 $ac_includes_default
9100 #if HAVE_SYS_SOCKET_H
9101 #include <sys/socket.h>
9110 static struct ifreq ac_aggr;
9111 if (ac_aggr.ifr_addr)
9117 rm -f conftest.
$ac_objext
9118 if { (ac_try
="$ac_compile"
9120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9121 *) ac_try_echo=$ac_try;;
9123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9124 $as_echo "$ac_try_echo") >&5
9125 (eval "$ac_compile") 2>conftest.er1
9127 grep -v '^ *+' conftest.er1 >conftest.err
9129 cat conftest.err >&5
9130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } && {
9132 test -z "$ac_c_werror_flag" ||
9133 test ! -s conftest.err
9134 } && test -s conftest.$ac_objext; then
9135 ac_cv_member_struct_ifreq_ifr_addr=yes
9137 $as_echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9140 cat >conftest.$ac_ext <<_ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 $ac_includes_default
9147 #if HAVE_SYS_SOCKET_H
9148 #include <sys/socket.h>
9157 static struct ifreq ac_aggr;
9158 if (sizeof ac_aggr.ifr_addr)
9164 rm -f conftest.$ac_objext
9165 if { (ac_try="$ac_compile"
9167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9168 *) ac_try_echo
=$ac_try;;
9170 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9171 $as_echo "$ac_try_echo") >&5
9172 (eval "$ac_compile") 2>conftest.er1
9174 grep -v '^ *+' conftest.er1
>conftest.err
9176 cat conftest.err
>&5
9177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } && {
9179 test -z "$ac_c_werror_flag" ||
9180 test ! -s conftest.err
9181 } && test -s conftest.
$ac_objext; then
9182 ac_cv_member_struct_ifreq_ifr_addr
=yes
9184 $as_echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.
$ac_ext >&5
9187 ac_cv_member_struct_ifreq_ifr_addr
=no
9190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9195 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9196 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9197 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9199 cat >>confdefs.h
<<_ACEOF
9200 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9208 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9209 $as_echo_n "checking for function prototypes... " >&6; }
9210 if test "$ac_cv_prog_cc_c89" != no
; then
9211 { $as_echo "$as_me:$LINENO: result: yes" >&5
9212 $as_echo "yes" >&6; }
9214 cat >>confdefs.h
<<\_ACEOF
9215 #define PROTOTYPES 1
9219 cat >>confdefs.h
<<\_ACEOF
9220 #define __PROTOTYPES 1
9224 { $as_echo "$as_me:$LINENO: result: no" >&5
9225 $as_echo "no" >&6; }
9228 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9229 $as_echo_n "checking for working volatile... " >&6; }
9230 if test "${ac_cv_c_volatile+set}" = set; then
9231 $as_echo_n "(cached) " >&6
9233 cat >conftest.
$ac_ext <<_ACEOF
9236 cat confdefs.h
>>conftest.
$ac_ext
9237 cat >>conftest.
$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9245 int * volatile y = (int *) 0;
9251 rm -f conftest.
$ac_objext
9252 if { (ac_try
="$ac_compile"
9254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9258 $as_echo "$ac_try_echo") >&5
9259 (eval "$ac_compile") 2>conftest.er1
9261 grep -v '^ *+' conftest.er1 >conftest.err
9263 cat conftest.err >&5
9264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } && {
9266 test -z "$ac_c_werror_flag" ||
9267 test ! -s conftest.err
9268 } && test -s conftest.$ac_objext; then
9269 ac_cv_c_volatile=yes
9271 $as_echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9280 $as_echo "$ac_cv_c_volatile" >&6; }
9281 if test $ac_cv_c_volatile = no; then
9283 cat >>confdefs.h <<\_ACEOF
9284 #define volatile /**/
9289 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9290 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9291 if test "${ac_cv_c_const+set}" = set; then
9292 $as_echo_n "(cached) " >&6
9294 cat >conftest.$ac_ext <<_ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9304 /* FIXME: Include the comments suggested by Paul. */
9306 /* Ultrix mips cc rejects this. */
9307 typedef int charset[2];
9309 /* SunOS 4.1.1 cc rejects this. */
9310 char const *const *pcpcc;
9312 /* NEC SVR4.0.2 mips cc rejects this. */
9313 struct point {int x, y;};
9314 static struct point const zero = {0,0};
9315 /* AIX XL C 1.02.0.0 rejects this.
9316 It does not let you subtract one const X* pointer from another in
9317 an arm of an if-expression whose if-part is not a constant
9319 const char *g = "string";
9320 pcpcc = &g + (g ? g-g : 0);
9321 /* HPUX 7.0 cc rejects these. */
9323 ppc = (char**) pcpcc;
9324 pcpcc = (char const *const *) ppc;
9325 { /* SCO 3.2v4 cc rejects this. */
9327 char const *s = 0 ? (char *) 0 : (char const *) 0;
9332 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9334 const int *foo = &x[0];
9337 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9338 typedef const int *iptr;
9342 { /* AIX XL C 1.02.0.0 rejects this saying
9343 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9344 struct s { int j; const int *ap[3]; };
9345 struct s *b; b->j = 5;
9347 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9351 return !cs[0] && !zero.x;
9358 rm -f conftest.$ac_objext
9359 if { (ac_try="$ac_compile"
9361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9362 *) ac_try_echo
=$ac_try;;
9364 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9365 $as_echo "$ac_try_echo") >&5
9366 (eval "$ac_compile") 2>conftest.er1
9368 grep -v '^ *+' conftest.er1
>conftest.err
9370 cat conftest.err
>&5
9371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && {
9373 test -z "$ac_c_werror_flag" ||
9374 test ! -s conftest.err
9375 } && test -s conftest.
$ac_objext; then
9378 $as_echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.
$ac_ext >&5
9384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9386 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9387 $as_echo "$ac_cv_c_const" >&6; }
9388 if test $ac_cv_c_const = no
; then
9390 cat >>confdefs.h
<<\_ACEOF
9396 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9397 $as_echo_n "checking for void * support... " >&6; }
9398 if test "${emacs_cv_void_star+set}" = set; then
9399 $as_echo_n "(cached) " >&6
9401 cat >conftest.
$ac_ext <<_ACEOF
9404 cat confdefs.h
>>conftest.
$ac_ext
9405 cat >>conftest.
$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9416 rm -f conftest.
$ac_objext
9417 if { (ac_try
="$ac_compile"
9419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9423 $as_echo "$ac_try_echo") >&5
9424 (eval "$ac_compile") 2>conftest.er1
9426 grep -v '^ *+' conftest.er1 >conftest.err
9428 cat conftest.err >&5
9429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && {
9431 test -z "$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9433 } && test -s conftest.$ac_objext; then
9434 emacs_cv_void_star=yes
9436 $as_echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 emacs_cv_void_star=no
9442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9444 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9445 $as_echo "$emacs_cv_void_star" >&6; }
9446 if test $emacs_cv_void_star = yes; then
9447 cat >>confdefs.h <<\_ACEOF
9448 #define POINTER_TYPE void
9452 cat >>confdefs.h <<\_ACEOF
9453 #define POINTER_TYPE char
9462 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9463 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9465 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9466 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9467 $as_echo_n "(cached) " >&6
9469 cat >conftest.make <<\_ACEOF
9472 @echo '@@@%%%=$(MAKE)=@@@%%%'
9474 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9475 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9477 eval ac_cv_prog_make_${ac_make}_set=yes;;
9479 eval ac_cv_prog_make_${ac_make}_set=no;;
9483 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9484 { $as_echo "$as_me:$LINENO: result: yes" >&5
9485 $as_echo "yes" >&6; }
9488 { $as_echo "$as_me:$LINENO: result: no" >&5
9489 $as_echo "no" >&6; }
9490 SET_MAKE="MAKE=${MAKE-make}"
9497 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9498 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9499 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9501 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9502 if test "x$testval" != x; then
9505 ac_enable_autodepend=no
9507 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9508 $as_echo "$HAVE_GNU_MAKE" >&6; }
9509 if test $HAVE_GNU_MAKE = yes; then
9510 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9511 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9512 SAVE_CFLAGS="$CFLAGS"
9513 CFLAGS="$CFLAGS -MMD -MF deps.d"
9514 cat >conftest.$ac_ext <<_ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9533 *) ac_try_echo
=$ac_try;;
9535 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9536 $as_echo "$ac_try_echo") >&5
9537 (eval "$ac_compile") 2>conftest.er1
9539 grep -v '^ *+' conftest.er1
>conftest.err
9541 cat conftest.err
>&5
9542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest.
$ac_objext; then
9549 $as_echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.
$ac_ext >&5
9552 ac_enable_autodepend
=no
9555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9556 CFLAGS
="$SAVE_CFLAGS"
9557 test -f deps.d || ac_enable_autodepend
=no
9559 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9560 $as_echo "$ac_enable_autodepend" >&6; }
9562 if test $ac_enable_autodepend = yes; then
9563 DEPFLAGS
='-MMD -MF ${DEPDIR}/$*.d'
9564 ## In parallel builds, another make might create depdir between
9565 ## the first test and mkdir, so stick another test on the end.
9566 ## Or use mkinstalldirs? mkdir -p is not portable.
9567 MKDEPDIR
='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
9568 deps_frag
=autodeps.mk
9571 deps_frag
=$srcdir/src
/$deps_frag
9577 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9578 $as_echo_n "checking for long file names... " >&6; }
9579 if test "${ac_cv_sys_long_file_names+set}" = set; then
9580 $as_echo_n "(cached) " >&6
9582 ac_cv_sys_long_file_names
=yes
9583 # Test for long file names in all the places we know might matter:
9584 # . the current directory, where building will happen
9585 # $prefix/lib where we will be installing things
9586 # $exec_prefix/lib likewise
9587 # $TMPDIR if set, where it might want to write temporary files
9588 # /tmp where it might want to write temporary files
9591 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9592 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9593 # in the usual case where exec_prefix is '${prefix}'.
9595 . |
/* | ?
:[\\/]*) ;; #(
9598 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9599 ac_xdir
=$ac_dir/cf$$
9600 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9601 ac_tf1
=$ac_xdir/conftest9012345
9602 ac_tf2
=$ac_xdir/conftest9012346
9603 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9604 ac_cv_sys_long_file_names
=no
9605 rm -f -r "$ac_xdir" 2>/dev
/null
9606 test $ac_cv_sys_long_file_names = no
&& break
9609 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9610 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9611 if test $ac_cv_sys_long_file_names = yes; then
9613 cat >>confdefs.h
<<\_ACEOF
9614 #define HAVE_LONG_FILE_NAMES 1
9620 #### Choose a window system.
9622 { $as_echo "$as_me:$LINENO: checking for X" >&5
9623 $as_echo_n "checking for X... " >&6; }
9626 # Check whether --with-x was given.
9627 if test "${with_x+set}" = set; then
9631 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9632 if test "x$with_x" = xno
; then
9633 # The user explicitly disabled X.
9636 case $x_includes,$x_libraries in #(
9637 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9638 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9639 { (exit 1); exit 1; }; };; #(
9640 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9641 $as_echo_n "(cached) " >&6
9643 # One or both of the vars are not set, and there is no cached value.
9644 ac_x_includes
=no ac_x_libraries
=no
9645 rm -f -r conftest.dir
9646 if mkdir conftest.dir
; then
9648 cat >Imakefile
<<'_ACEOF'
9650 @echo incroot='${INCROOT}'
9652 @echo usrlibdir='${USRLIBDIR}'
9654 @echo libdir='${LIBDIR}'
9656 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9657 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9658 for ac_var
in incroot usrlibdir libdir
; do
9659 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9661 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9662 for ac_extension
in a so sl dylib la dll
; do
9663 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9664 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9665 ac_im_usrlibdir
=$ac_im_libdir; break
9668 # Screen out bogus values from the imake configuration. They are
9669 # bogus both because they are the default anyway, and because
9670 # using them would break gcc on systems where it needs fixed includes.
9671 case $ac_im_incroot in
9672 /usr
/include
) ac_x_includes
= ;;
9673 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9675 case $ac_im_usrlibdir in
9677 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9681 rm -f -r conftest.dir
9684 # Standard set of common directories for X headers.
9685 # Check X11 before X11Rn because it is often a symlink to the current release.
9697 /usr/local/X11/include
9698 /usr/local/X11R6/include
9699 /usr/local/X11R5/include
9700 /usr/local/X11R4/include
9702 /usr/local/include/X11
9703 /usr/local/include/X11R6
9704 /usr/local/include/X11R5
9705 /usr/local/include/X11R4
9709 /usr/XFree86/include/X11
9713 /usr/unsupported/include
9715 /usr/local/x11r5/include
9716 /usr/lpp/Xamples/include
9718 /usr/openwin/include
9719 /usr/openwin/share/include'
9721 if test "$ac_x_includes" = no
; then
9722 # Guess where to find include files, by looking for Xlib.h.
9723 # First, try using that file with no special directory specified.
9724 cat >conftest.
$ac_ext <<_ACEOF
9727 cat confdefs.h
>>conftest.
$ac_ext
9728 cat >>conftest.
$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 #include <X11/Xlib.h>
9732 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9735 *) ac_try_echo=$ac_try;;
9737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9738 $as_echo "$ac_try_echo") >&5
9739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9741 grep -v '^ *+' conftest.er1 >conftest.err
9743 cat conftest.err >&5
9744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } >/dev/null && {
9746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9747 test ! -s conftest.err
9749 # We can compile using X headers with no special include directory.
9752 $as_echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9755 for ac_dir in $ac_x_header_dirs; do
9756 if test -r "$ac_dir/X11/Xlib.h"; then
9757 ac_x_includes=$ac_dir
9763 rm -f conftest.err conftest.$ac_ext
9764 fi # $ac_x_includes = no
9766 if test "$ac_x_libraries" = no; then
9767 # Check for the libraries.
9768 # See if we find them without any special options.
9769 # Don't add to $LIBS permanently.
9772 cat >conftest.$ac_ext <<_ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9778 #include <X11/Xlib.h>
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (ac_try="$ac_link"
9790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9791 *) ac_try_echo
=$ac_try;;
9793 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9794 $as_echo "$ac_try_echo") >&5
9795 (eval "$ac_link") 2>conftest.er1
9797 grep -v '^ *+' conftest.er1
>conftest.err
9799 cat conftest.err
>&5
9800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } && {
9802 test -z "$ac_c_werror_flag" ||
9803 test ! -s conftest.err
9804 } && test -s conftest
$ac_exeext && {
9805 test "$cross_compiling" = yes ||
9806 $as_test_x conftest
$ac_exeext
9809 # We can link X programs with no special library path.
9812 $as_echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.
$ac_ext >&5
9816 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9818 # Don't even attempt the hair of trying to link an X program!
9819 for ac_extension
in a so sl dylib la dll
; do
9820 if test -r "$ac_dir/libX11.$ac_extension"; then
9821 ac_x_libraries
=$ac_dir
9828 rm -rf conftest.dSYM
9829 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9830 conftest
$ac_exeext conftest.
$ac_ext
9831 fi # $ac_x_libraries = no
9833 case $ac_x_includes,$ac_x_libraries in #(
9835 # Didn't find X, or a directory has "'" in its name.
9836 ac_cv_have_x
="have_x=no";; #(
9838 # Record where we found X for the cache.
9839 ac_cv_have_x
="have_x=yes\
9840 ac_x_includes='$ac_x_includes'\
9841 ac_x_libraries='$ac_x_libraries'"
9847 eval "$ac_cv_have_x"
9850 if test "$have_x" != yes; then
9851 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9852 $as_echo "$have_x" >&6; }
9855 # If each of the values was on the command line, it overrides each guess.
9856 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9857 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9858 # Update the cache value to reflect the command line values.
9859 ac_cv_have_x
="have_x=yes\
9860 ac_x_includes='$x_includes'\
9861 ac_x_libraries='$x_libraries'"
9862 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9863 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9866 if test "$no_x" = yes; then
9872 ## Workaround for bug in autoconf <= 2.62.
9873 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9874 ## No need to do anything special for these standard directories.
9875 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9877 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9881 LD_SWITCH_X_SITE_AUX
=
9882 LD_SWITCH_X_SITE_AUX_RPATH
=
9883 if test "${x_libraries}" != NONE
; then
9884 if test -n "${x_libraries}"; then
9885 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9886 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9887 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9889 x_default_search_path
=""
9890 x_search_path
=${x_libraries}
9891 if test -z "${x_search_path}"; then
9892 x_search_path
=/usr
/lib
9894 for x_library
in `echo ${x_search_path}: | \
9895 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9897 ${x_library}/X11/%L/%T/%N%C%S:\
9898 ${x_library}/X11/%l/%T/%N%C%S:\
9899 ${x_library}/X11/%T/%N%C%S:\
9900 ${x_library}/X11/%L/%T/%N%S:\
9901 ${x_library}/X11/%l/%T/%N%S:\
9902 ${x_library}/X11/%T/%N%S"
9903 if test x
"${x_default_search_path}" = x
; then
9904 x_default_search_path
=${x_search_path}
9906 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9913 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9914 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9917 if test x
"${x_includes}" = x
; then
9918 bitmapdir
=/usr
/include
/X11
/bitmaps
9920 # accumulate include directories that have X11 bitmap subdirectories
9922 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9923 if test -d "${bmd}/X11/bitmaps"; then
9924 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9926 if test -d "${bmd}/bitmaps"; then
9927 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9930 if test ${bmd_acc} != "dummyval"; then
9931 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9938 NS_IMPL_GNUSTEP_INC
=
9939 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
=
9940 tmp_CPPFLAGS
="$CPPFLAGS"
9941 tmp_CFLAGS
="$CFLAGS"
9942 CPPFLAGS
="$CPPFLAGS -x objective-c"
9943 CFLAGS
="$CFLAGS -x objective-c"
9944 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9945 if test "${with_ns}" != no
; then
9946 if test "${opsys}" = darwin
; then
9948 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
9949 ns_appbindir
=${ns_appdir}Contents
/MacOS
/
9950 ns_appresdir
=${ns_appdir}Contents
/Resources
9951 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9952 elif test -f $GNUSTEP_CONFIG_FILE; then
9954 ns_appdir
=`pwd`/nextstep
/Emacs.app
/
9955 ns_appbindir
=${ns_appdir}
9956 ns_appresdir
=${ns_appdir}Resources
9957 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9958 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9959 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9960 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9961 ## Pull in stuff from GNUstep-make.
9962 ## FIXME? Cleaner to use AC_SUBST_FILE for this?
9963 NS_IMPL_GNUSTEP_INC
="FOUNDATION_LIB=gnu
9965 include $GNUSTEP_MAKEFILES/Additional/base.make
9966 include $GNUSTEP_MAKEFILES/Additional/gui.make
9969 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
="-L${GNUSTEP_SYSTEM_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc \${CONFIG_SYSTEM_LIBS} -lpthread"
9970 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9971 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9972 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9973 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9978 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9979 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9980 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9981 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9982 $as_echo_n "(cached) " >&6
9984 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9985 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9987 # Is the header compilable?
9988 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9989 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9990 cat >conftest.
$ac_ext <<_ACEOF
9993 cat confdefs.h
>>conftest.
$ac_ext
9994 cat >>conftest.
$ac_ext <<_ACEOF
9995 /* end confdefs.h. */
9996 $ac_includes_default
9997 #include <AppKit/AppKit.h>
9999 rm -f conftest.
$ac_objext
10000 if { (ac_try
="$ac_compile"
10001 case "(($ac_try" in
10002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10006 $as_echo "$ac_try_echo") >&5
10007 (eval "$ac_compile") 2>conftest.er1
10009 grep -v '^ *+' conftest.er1 >conftest.err
10011 cat conftest.err >&5
10012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } && {
10014 test -z "$ac_c_werror_flag" ||
10015 test ! -s conftest.err
10016 } && test -s conftest.$ac_objext; then
10017 ac_header_compiler=yes
10019 $as_echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10022 ac_header_compiler=no
10025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10026 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10027 $as_echo "$ac_header_compiler" >&6; }
10029 # Is the header present?
10030 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10031 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10032 cat >conftest.$ac_ext <<_ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10038 #include <AppKit/AppKit.h>
10040 if { (ac_try="$ac_cpp conftest.$ac_ext"
10041 case "(($ac_try" in
10042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10043 *) ac_try_echo
=$ac_try;;
10045 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10046 $as_echo "$ac_try_echo") >&5
10047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10049 grep -v '^ *+' conftest.er1
>conftest.err
10051 cat conftest.err
>&5
10052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } >/dev
/null
&& {
10054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10055 test ! -s conftest.err
10057 ac_header_preproc
=yes
10059 $as_echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.
$ac_ext >&5
10062 ac_header_preproc
=no
10065 rm -f conftest.err conftest.
$ac_ext
10066 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10067 $as_echo "$ac_header_preproc" >&6; }
10069 # So? What about this header?
10070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10072 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10073 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10074 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10075 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10076 ac_header_preproc
=yes
10079 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10080 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10081 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10082 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10083 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10084 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10085 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10086 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10087 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10088 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10089 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10090 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10094 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10095 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10096 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10097 $as_echo_n "(cached) " >&6
10099 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
10101 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10102 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10105 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10108 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10109 files are missing or cannot be compiled." >&5
10110 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10111 files are missing or cannot be compiled." >&2;}
10112 { (exit 1); exit 1; }; }
10116 NS_HAVE_NSINTEGER
=yes
10117 cat >conftest.
$ac_ext <<_ACEOF
10120 cat confdefs.h
>>conftest.
$ac_ext
10121 cat >>conftest.
$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 #include <Foundation/NSObjCRuntime.h>
10132 rm -f conftest.
$ac_objext
10133 if { (ac_try
="$ac_compile"
10134 case "(($ac_try" in
10135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10139 $as_echo "$ac_try_echo") >&5
10140 (eval "$ac_compile") 2>conftest.er1
10142 grep -v '^ *+' conftest.er1 >conftest.err
10144 cat conftest.err >&5
10145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && {
10147 test -z "$ac_c_werror_flag" ||
10148 test ! -s conftest.err
10149 } && test -s conftest.$ac_objext; then
10150 ns_have_nsinteger=yes
10152 $as_echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10155 ns_have_nsinteger=no
10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159 if test $ns_have_nsinteger = no; then
10160 NS_HAVE_NSINTEGER=no
10170 if test "${HAVE_NS}" = yes; then
10171 window_system=nextstep
10173 # set up packaging dirs
10174 exec_prefix=${ns_appbindir}
10175 libexecdir=${ns_appbindir}/libexec
10176 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10177 prefix=${ns_appresdir}
10179 ns_frag=$srcdir/src/ns.mk
10180 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10181 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10183 CFLAGS="$tmp_CFLAGS"
10184 CPPFLAGS="$tmp_CPPFLAGS"
10190 case "${window_system}" in
10194 case "${with_x_toolkit}" in
10195 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10196 motif ) USE_X_TOOLKIT=MOTIF ;;
10198 USE_X_TOOLKIT=none ;;
10199 no ) USE_X_TOOLKIT=none ;;
10200 * ) USE_X_TOOLKIT=maybe ;;
10210 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10211 # Extract the first word of "X", so it can be a program name with args.
10212 set dummy X; ac_word=$2
10213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10214 $as_echo_n "checking for $ac_word... " >&6; }
10215 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10216 $as_echo_n "(cached) " >&6
10218 if test -n "$HAVE_XSERVER"; then
10219 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10222 for as_dir in $PATH
10225 test -z "$as_dir" && as_dir=.
10226 for ac_exec_ext in '' $ac_executable_extensions; do
10227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10228 ac_cv_prog_HAVE_XSERVER="true"
10229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10236 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10239 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10240 if test -n "$HAVE_XSERVER"; then
10241 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10242 $as_echo "$HAVE_XSERVER" >&6; }
10244 { $as_echo "$as_me:$LINENO: result: no" >&5
10245 $as_echo "no" >&6; }
10249 if test "$HAVE_XSERVER" = true ||
10250 test -n "$DISPLAY" ||
10251 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
10252 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10253 were found. You should install the relevant development files for X
10254 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10255 sure you have development files for image handling, i.e.
10256 tiff, gif, jpeg, png and xpm.
10257 If you are sure you want Emacs compiled without X window support, pass
10260 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10261 were found. You should install the relevant development files for X
10262 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10263 sure you have development files for image handling, i.e.
10264 tiff, gif, jpeg, png and xpm.
10265 If you are sure you want Emacs compiled without X window support, pass
10267 to configure." >&2;}
10268 { (exit 1); exit 1; }; }
10272 ### If we're using X11, we should use the X menu package.
10274 case ${HAVE_X11} in
10275 yes ) HAVE_MENUS=yes ;;
10278 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10279 # Assume not, until told otherwise.
10281 doug_lea_malloc=yes
10282 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10283 $as_echo_n "checking for malloc_get_state... " >&6; }
10284 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10285 $as_echo_n "(cached) " >&6
10287 cat >conftest.$ac_ext <<_ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10295 #define malloc_get_state innocuous_malloc_get_state
10297 /* System header to define __stub macros and hopefully few prototypes,
10298 which can conflict with char malloc_get_state (); below.
10299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10300 <limits.h> exists even on freestanding compilers. */
10303 # include <limits.h>
10305 # include <assert.h>
10308 #undef malloc_get_state
10310 /* Override any GCC internal prototype to avoid an error.
10311 Use char because int might match the return type of a GCC
10312 builtin and then its argument prototype would still apply. */
10316 char malloc_get_state ();
10317 /* The GNU C library defines this for functions which it implements
10318 to always fail with ENOSYS. Some functions are actually named
10319 something starting with __ and the normal name is an alias. */
10320 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10327 return malloc_get_state ();
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (ac_try="$ac_link"
10334 case "(($ac_try" in
10335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10336 *) ac_try_echo
=$ac_try;;
10338 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10339 $as_echo "$ac_try_echo") >&5
10340 (eval "$ac_link") 2>conftest.er1
10342 grep -v '^ *+' conftest.er1
>conftest.err
10344 cat conftest.err
>&5
10345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } && {
10347 test -z "$ac_c_werror_flag" ||
10348 test ! -s conftest.err
10349 } && test -s conftest
$ac_exeext && {
10350 test "$cross_compiling" = yes ||
10351 $as_test_x conftest
$ac_exeext
10353 ac_cv_func_malloc_get_state
=yes
10355 $as_echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.
$ac_ext >&5
10358 ac_cv_func_malloc_get_state
=no
10361 rm -rf conftest.dSYM
10362 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10363 conftest
$ac_exeext conftest.
$ac_ext
10365 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10366 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10367 if test $ac_cv_func_malloc_get_state = yes; then
10373 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10374 $as_echo_n "checking for malloc_set_state... " >&6; }
10375 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10376 $as_echo_n "(cached) " >&6
10378 cat >conftest.
$ac_ext <<_ACEOF
10381 cat confdefs.h
>>conftest.
$ac_ext
10382 cat >>conftest.
$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10384 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10386 #define malloc_set_state innocuous_malloc_set_state
10388 /* System header to define __stub macros and hopefully few prototypes,
10389 which can conflict with char malloc_set_state (); below.
10390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10391 <limits.h> exists even on freestanding compilers. */
10394 # include <limits.h>
10396 # include <assert.h>
10399 #undef malloc_set_state
10401 /* Override any GCC internal prototype to avoid an error.
10402 Use char because int might match the return type of a GCC
10403 builtin and then its argument prototype would still apply. */
10407 char malloc_set_state ();
10408 /* The GNU C library defines this for functions which it implements
10409 to always fail with ENOSYS. Some functions are actually named
10410 something starting with __ and the normal name is an alias. */
10411 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10418 return malloc_set_state ();
10423 rm -f conftest.
$ac_objext conftest
$ac_exeext
10424 if { (ac_try
="$ac_link"
10425 case "(($ac_try" in
10426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10430 $as_echo "$ac_try_echo") >&5
10431 (eval "$ac_link") 2>conftest.er1
10433 grep -v '^ *+' conftest.er1 >conftest.err
10435 cat conftest.err >&5
10436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } && {
10438 test -z "$ac_c_werror_flag" ||
10439 test ! -s conftest.err
10440 } && test -s conftest$ac_exeext && {
10441 test "$cross_compiling" = yes ||
10442 $as_test_x conftest$ac_exeext
10444 ac_cv_func_malloc_set_state=yes
10446 $as_echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 ac_cv_func_malloc_set_state=no
10452 rm -rf conftest.dSYM
10453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10454 conftest$ac_exeext conftest.$ac_ext
10456 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10457 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10458 if test $ac_cv_func_malloc_set_state = yes; then
10464 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10465 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10466 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10467 $as_echo_n "(cached) " >&6
10469 cat >conftest.$ac_ext <<_ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 extern void (* __after_morecore_hook)();
10479 __after_morecore_hook = 0
10484 rm -f conftest.$ac_objext conftest$ac_exeext
10485 if { (ac_try="$ac_link"
10486 case "(($ac_try" in
10487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10488 *) ac_try_echo
=$ac_try;;
10490 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10491 $as_echo "$ac_try_echo") >&5
10492 (eval "$ac_link") 2>conftest.er1
10494 grep -v '^ *+' conftest.er1
>conftest.err
10496 cat conftest.err
>&5
10497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } && {
10499 test -z "$ac_c_werror_flag" ||
10500 test ! -s conftest.err
10501 } && test -s conftest
$ac_exeext && {
10502 test "$cross_compiling" = yes ||
10503 $as_test_x conftest
$ac_exeext
10505 emacs_cv_var___after_morecore_hook
=yes
10507 $as_echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.
$ac_ext >&5
10510 emacs_cv_var___after_morecore_hook
=no
10513 rm -rf conftest.dSYM
10514 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10515 conftest
$ac_exeext conftest.
$ac_ext
10517 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10518 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10519 if test $emacs_cv_var___after_morecore_hook = no
; then
10523 if test "${system_malloc}" = "yes"; then
10525 GNU_MALLOC_reason
="
10526 (The GNU allocators don't work with this system configuration.)"
10530 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ
=gmalloc.o
10531 VMLIMIT_OBJ
=vm-limit.o
10536 if test "$doug_lea_malloc" = "yes" ; then
10537 if test "$GNU_MALLOC" = yes ; then
10538 GNU_MALLOC_reason
="
10539 (Using Doug Lea's new malloc from the GNU C Library.)"
10542 cat >>confdefs.h
<<\_ACEOF
10543 #define DOUG_LEA_MALLOC 1
10547 ## Use mmap directly for allocating larger buffers.
10548 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
10549 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
10550 ## Does the AC_FUNC_MMAP test below make this check unecessary?
10552 gnu
*) REL_ALLOC
=no
;;
10556 if test x
"${REL_ALLOC}" = x
; then
10557 REL_ALLOC
=${GNU_MALLOC}
10563 for ac_header
in stdlib.h unistd.h
10565 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10566 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10567 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10568 $as_echo_n "checking for $ac_header... " >&6; }
10569 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10570 $as_echo_n "(cached) " >&6
10572 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10573 $as_echo "$as_val"'`
10574 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10575 $as_echo "$ac_res" >&6; }
10577 # Is the header compilable?
10578 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10579 $as_echo_n "checking $ac_header usability... " >&6; }
10580 cat >conftest.
$ac_ext <<_ACEOF
10583 cat confdefs.h
>>conftest.
$ac_ext
10584 cat >>conftest.
$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10586 $ac_includes_default
10587 #include <$ac_header>
10589 rm -f conftest.
$ac_objext
10590 if { (ac_try
="$ac_compile"
10591 case "(($ac_try" in
10592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10596 $as_echo "$ac_try_echo") >&5
10597 (eval "$ac_compile") 2>conftest.er1
10599 grep -v '^ *+' conftest.er1 >conftest.err
10601 cat conftest.err >&5
10602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); } && {
10604 test -z "$ac_c_werror_flag" ||
10605 test ! -s conftest.err
10606 } && test -s conftest.$ac_objext; then
10607 ac_header_compiler=yes
10609 $as_echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10612 ac_header_compiler=no
10615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10616 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10617 $as_echo "$ac_header_compiler" >&6; }
10619 # Is the header present?
10620 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10621 $as_echo_n "checking $ac_header presence... " >&6; }
10622 cat >conftest.$ac_ext <<_ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h. */
10628 #include <$ac_header>
10630 if { (ac_try="$ac_cpp conftest.$ac_ext"
10631 case "(($ac_try" in
10632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10633 *) ac_try_echo
=$ac_try;;
10635 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10636 $as_echo "$ac_try_echo") >&5
10637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10639 grep -v '^ *+' conftest.er1
>conftest.err
10641 cat conftest.err
>&5
10642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } >/dev
/null
&& {
10644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10647 ac_header_preproc
=yes
10649 $as_echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.
$ac_ext >&5
10652 ac_header_preproc
=no
10655 rm -f conftest.err conftest.
$ac_ext
10656 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10657 $as_echo "$ac_header_preproc" >&6; }
10659 # So? What about this header?
10660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10662 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10663 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10664 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10665 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10666 ac_header_preproc
=yes
10669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10670 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10672 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10674 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10676 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10678 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10680 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10684 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10685 $as_echo_n "checking for $ac_header... " >&6; }
10686 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10687 $as_echo_n "(cached) " >&6
10689 eval "$as_ac_Header=\$ac_header_preproc"
10691 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10692 $as_echo "$as_val"'`
10693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10694 $as_echo "$ac_res" >&6; }
10697 if test `eval 'as_val=${'$as_ac_Header'}
10698 $as_echo "$as_val"'` = yes; then
10699 cat >>confdefs.h
<<_ACEOF
10700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10708 for ac_func
in getpagesize
10710 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10711 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10712 $as_echo_n "checking for $ac_func... " >&6; }
10713 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10714 $as_echo_n "(cached) " >&6
10716 cat >conftest.
$ac_ext <<_ACEOF
10719 cat confdefs.h
>>conftest.
$ac_ext
10720 cat >>conftest.
$ac_ext <<_ACEOF
10721 /* end confdefs.h. */
10722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10724 #define $ac_func innocuous_$ac_func
10726 /* System header to define __stub macros and hopefully few prototypes,
10727 which can conflict with char $ac_func (); below.
10728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10729 <limits.h> exists even on freestanding compilers. */
10732 # include <limits.h>
10734 # include <assert.h>
10739 /* Override any GCC internal prototype to avoid an error.
10740 Use char because int might match the return type of a GCC
10741 builtin and then its argument prototype would still apply. */
10746 /* The GNU C library defines this for functions which it implements
10747 to always fail with ENOSYS. Some functions are actually named
10748 something starting with __ and the normal name is an alias. */
10749 #if defined __stub_$ac_func || defined __stub___$ac_func
10756 return $ac_func ();
10761 rm -f conftest.
$ac_objext conftest
$ac_exeext
10762 if { (ac_try
="$ac_link"
10763 case "(($ac_try" in
10764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10768 $as_echo "$ac_try_echo") >&5
10769 (eval "$ac_link") 2>conftest.er1
10771 grep -v '^ *+' conftest.er1 >conftest.err
10773 cat conftest.err >&5
10774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } && {
10776 test -z "$ac_c_werror_flag" ||
10777 test ! -s conftest.err
10778 } && test -s conftest$ac_exeext && {
10779 test "$cross_compiling" = yes ||
10780 $as_test_x conftest$ac_exeext
10782 eval "$as_ac_var=yes"
10784 $as_echo "$as_me: failed program was:" >&5
10785 sed 's/^/| /' conftest.$ac_ext >&5
10787 eval "$as_ac_var=no"
10790 rm -rf conftest.dSYM
10791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10792 conftest$ac_exeext conftest.$ac_ext
10794 ac_res=`eval 'as_val=${'$as_ac_var'}
10795 $as_echo "$as_val"'`
10796 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10797 $as_echo "$ac_res" >&6; }
10798 if test `eval 'as_val=${'$as_ac_var'}
10799 $as_echo "$as_val"'` = yes; then
10800 cat >>confdefs.h <<_ACEOF
10801 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10807 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10808 $as_echo_n "checking for working mmap... " >&6; }
10809 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10810 $as_echo_n "(cached) " >&6
10812 if test "$cross_compiling" = yes; then
10813 ac_cv_func_mmap_fixed_mapped=no
10815 cat >conftest.$ac_ext <<_ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10821 $ac_includes_default
10822 /* malloc might have been renamed as rpl_malloc. */
10825 /* Thanks to Mike Haertel and Jim Avera for this test.
10826 Here is a matrix of mmap possibilities:
10827 mmap private not fixed
10828 mmap private fixed at somewhere currently unmapped
10829 mmap private fixed at somewhere already mapped
10830 mmap shared not fixed
10831 mmap shared fixed at somewhere currently unmapped
10832 mmap shared fixed at somewhere already mapped
10833 For private mappings, we should verify that changes cannot be read()
10834 back from the file, nor mmap's back from the file at a different
10835 address. (There have been systems where private was not correctly
10836 implemented like the infamous i386 svr4.0, and systems where the
10837 VM page cache was not coherent with the file system buffer cache
10838 like early versions of FreeBSD and possibly contemporary NetBSD.)
10839 For shared mappings, we should conversely verify that changes get
10840 propagated back to all the places they're supposed to be.
10842 Grep wants private fixed already mapped.
10843 The main things grep needs to know about mmap are:
10844 * does it exist and is it safe to write into the mmap'd area
10845 * how to use it (BSD variants) */
10848 #include <sys/mman.h>
10850 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10854 /* This mess was copied from the GNU getpagesize.h. */
10855 #ifndef HAVE_GETPAGESIZE
10856 /* Assume that all systems that can run configure have sys/param.h. */
10857 # ifndef HAVE_SYS_PARAM_H
10858 # define HAVE_SYS_PARAM_H 1
10861 # ifdef _SC_PAGESIZE
10862 # define getpagesize() sysconf(_SC_PAGESIZE)
10863 # else /* no _SC_PAGESIZE */
10864 # ifdef HAVE_SYS_PARAM_H
10865 # include <sys/param.h>
10866 # ifdef EXEC_PAGESIZE
10867 # define getpagesize() EXEC_PAGESIZE
10868 # else /* no EXEC_PAGESIZE */
10870 # define getpagesize() NBPG * CLSIZE
10873 # endif /* no CLSIZE */
10874 # else /* no NBPG */
10876 # define getpagesize() NBPC
10877 # else /* no NBPC */
10879 # define getpagesize() PAGESIZE
10880 # endif /* PAGESIZE */
10881 # endif /* no NBPC */
10882 # endif /* no NBPG */
10883 # endif /* no EXEC_PAGESIZE */
10884 # else /* no HAVE_SYS_PARAM_H */
10885 # define getpagesize() 8192 /* punt totally */
10886 # endif /* no HAVE_SYS_PARAM_H */
10887 # endif /* no _SC_PAGESIZE */
10889 #endif /* no HAVE_GETPAGESIZE */
10894 char *data, *data2, *data3;
10898 pagesize = getpagesize ();
10900 /* First, make a file with some known garbage in it. */
10901 data = (char *) malloc (pagesize);
10904 for (i = 0; i < pagesize; ++i)
10905 *(data + i) = rand ();
10907 fd = creat ("conftest.mmap", 0600);
10910 if (write (fd, data, pagesize) != pagesize)
10914 /* Next, try to mmap the file at a fixed address which already has
10915 something else allocated at it. If we can, also make sure that
10916 we see the same garbage. */
10917 fd = open ("conftest.mmap", O_RDWR);
10920 data2 = (char *) malloc (2 * pagesize);
10923 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10924 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10925 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10927 for (i = 0; i < pagesize; ++i)
10928 if (*(data + i) != *(data2 + i))
10931 /* Finally, make sure that changes to the mapped area do not
10932 percolate back to the file as seen by read(). (This is a bug on
10933 some variants of i386 svr4.0.) */
10934 for (i = 0; i < pagesize; ++i)
10935 *(data2 + i) = *(data2 + i) + 1;
10936 data3 = (char *) malloc (pagesize);
10939 if (read (fd, data3, pagesize) != pagesize)
10941 for (i = 0; i < pagesize; ++i)
10942 if (*(data + i) != *(data3 + i))
10948 rm -f conftest$ac_exeext
10949 if { (ac_try="$ac_link"
10950 case "(($ac_try" in
10951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10952 *) ac_try_echo
=$ac_try;;
10954 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10955 $as_echo "$ac_try_echo") >&5
10956 (eval "$ac_link") 2>&5
10958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10960 { (case "(($ac_try" in
10961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10962 *) ac_try_echo=$ac_try;;
10964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10965 $as_echo "$ac_try_echo") >&5
10966 (eval "$ac_try") 2>&5
10968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
10970 ac_cv_func_mmap_fixed_mapped=yes
10972 $as_echo "$as_me: program exited with status $ac_status" >&5
10973 $as_echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10976 ( exit $ac_status )
10977 ac_cv_func_mmap_fixed_mapped=no
10979 rm -rf conftest.dSYM
10980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10985 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10986 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10987 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10989 cat >>confdefs.h <<\_ACEOF
10990 #define HAVE_MMAP 1
10994 rm -f conftest.mmap
10996 if test $use_mmap_for_buffers = yes; then
11000 LIBS="$LIBS_SYSTEM $LIBS"
11003 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11004 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
11005 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11006 $as_echo_n "(cached) " >&6
11008 ac_check_lib_save_LIBS=$LIBS
11009 LIBS="-ldnet $LIBS"
11010 cat >conftest.$ac_ext <<_ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h. */
11017 /* Override any GCC internal prototype to avoid an error.
11018 Use char because int might match the return type of a GCC
11019 builtin and then its argument prototype would still apply. */
11027 return dnet_ntoa ();
11032 rm -f conftest.$ac_objext conftest$ac_exeext
11033 if { (ac_try="$ac_link"
11034 case "(($ac_try" in
11035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11036 *) ac_try_echo
=$ac_try;;
11038 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11039 $as_echo "$ac_try_echo") >&5
11040 (eval "$ac_link") 2>conftest.er1
11042 grep -v '^ *+' conftest.er1
>conftest.err
11044 cat conftest.err
>&5
11045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } && {
11047 test -z "$ac_c_werror_flag" ||
11048 test ! -s conftest.err
11049 } && test -s conftest
$ac_exeext && {
11050 test "$cross_compiling" = yes ||
11051 $as_test_x conftest
$ac_exeext
11053 ac_cv_lib_dnet_dnet_ntoa
=yes
11055 $as_echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.
$ac_ext >&5
11058 ac_cv_lib_dnet_dnet_ntoa
=no
11061 rm -rf conftest.dSYM
11062 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11063 conftest
$ac_exeext conftest.
$ac_ext
11064 LIBS
=$ac_check_lib_save_LIBS
11066 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11067 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11068 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11069 cat >>confdefs.h
<<_ACEOF
11070 #define HAVE_LIBDNET 1
11073 LIBS
="-ldnet $LIBS"
11078 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11079 $as_echo_n "checking for main in -lXbsd... " >&6; }
11080 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11081 $as_echo_n "(cached) " >&6
11083 ac_check_lib_save_LIBS
=$LIBS
11084 LIBS
="-lXbsd $LIBS"
11085 cat >conftest.
$ac_ext <<_ACEOF
11088 cat confdefs.h
>>conftest.
$ac_ext
11089 cat >>conftest.
$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11101 rm -f conftest.
$ac_objext conftest
$ac_exeext
11102 if { (ac_try
="$ac_link"
11103 case "(($ac_try" in
11104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11108 $as_echo "$ac_try_echo") >&5
11109 (eval "$ac_link") 2>conftest.er1
11111 grep -v '^ *+' conftest.er1 >conftest.err
11113 cat conftest.err >&5
11114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } && {
11116 test -z "$ac_c_werror_flag" ||
11117 test ! -s conftest.err
11118 } && test -s conftest$ac_exeext && {
11119 test "$cross_compiling" = yes ||
11120 $as_test_x conftest$ac_exeext
11122 ac_cv_lib_Xbsd_main=yes
11124 $as_echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11127 ac_cv_lib_Xbsd_main=no
11130 rm -rf conftest.dSYM
11131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11132 conftest$ac_exeext conftest.$ac_ext
11133 LIBS=$ac_check_lib_save_LIBS
11135 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11136 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11137 if test $ac_cv_lib_Xbsd_main = yes; then
11138 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11143 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11144 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11145 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11146 $as_echo_n "(cached) " >&6
11148 ac_check_lib_save_LIBS=$LIBS
11149 LIBS="-lpthreads $LIBS"
11150 cat >conftest.$ac_ext <<_ACEOF
11153 cat confdefs.h >>conftest.$ac_ext
11154 cat >>conftest.$ac_ext <<_ACEOF
11155 /* end confdefs.h. */
11157 /* Override any GCC internal prototype to avoid an error.
11158 Use char because int might match the return type of a GCC
11159 builtin and then its argument prototype would still apply. */
11167 return cma_open ();
11172 rm -f conftest.$ac_objext conftest$ac_exeext
11173 if { (ac_try="$ac_link"
11174 case "(($ac_try" in
11175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11176 *) ac_try_echo
=$ac_try;;
11178 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11179 $as_echo "$ac_try_echo") >&5
11180 (eval "$ac_link") 2>conftest.er1
11182 grep -v '^ *+' conftest.er1
>conftest.err
11184 cat conftest.err
>&5
11185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } && {
11187 test -z "$ac_c_werror_flag" ||
11188 test ! -s conftest.err
11189 } && test -s conftest
$ac_exeext && {
11190 test "$cross_compiling" = yes ||
11191 $as_test_x conftest
$ac_exeext
11193 ac_cv_lib_pthreads_cma_open
=yes
11195 $as_echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.
$ac_ext >&5
11198 ac_cv_lib_pthreads_cma_open
=no
11201 rm -rf conftest.dSYM
11202 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11203 conftest
$ac_exeext conftest.
$ac_ext
11204 LIBS
=$ac_check_lib_save_LIBS
11206 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11207 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11208 if test $ac_cv_lib_pthreads_cma_open = yes; then
11209 cat >>confdefs.h
<<_ACEOF
11210 #define HAVE_LIBPTHREADS 1
11213 LIBS
="-lpthreads $LIBS"
11218 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11219 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11220 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11221 ## added to LIBS in configure would never contain the pthreads part,
11222 ## but the value used in Makefiles might. FIXME?
11224 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11225 ## be harmless on older versions of X where it happens to exist.
11226 test "$opsys" = "aix4-2" && \
11227 test $ac_cv_lib_pthreads_cma_open = yes && \
11228 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
11233 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11234 $as_echo_n "checking for -bbigtoc option... " >&6; }
11235 if test "${gdb_cv_bigtoc+set}" = set; then
11236 $as_echo_n "(cached) " >&6
11240 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11241 *) gdb_cv_bigtoc
=-bbigtoc ;;
11244 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11245 cat >conftest.
$ac_ext <<_ACEOF
11248 cat confdefs.h
>>conftest.
$ac_ext
11249 cat >>conftest.
$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11260 rm -f conftest.
$ac_objext conftest
$ac_exeext
11261 if { (ac_try
="$ac_link"
11262 case "(($ac_try" in
11263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11267 $as_echo "$ac_try_echo") >&5
11268 (eval "$ac_link") 2>conftest.er1
11270 grep -v '^ *+' conftest.er1 >conftest.err
11272 cat conftest.err >&5
11273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } && {
11275 test -z "$ac_c_werror_flag" ||
11276 test ! -s conftest.err
11277 } && test -s conftest$ac_exeext && {
11278 test "$cross_compiling" = yes ||
11279 $as_test_x conftest$ac_exeext
11283 $as_echo "$as_me: failed program was:" >&5
11284 sed 's/^/| /' conftest.$ac_ext >&5
11289 rm -rf conftest.dSYM
11290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11291 conftest$ac_exeext conftest.$ac_ext
11294 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11295 $as_echo "$gdb_cv_bigtoc" >&6; }
11299 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11300 # used for the tests that follow. We set them back to REAL_CFLAGS and
11301 # REAL_CPPFLAGS later on.
11303 REAL_CPPFLAGS="$CPPFLAGS"
11305 if test "${HAVE_X11}" = "yes"; then
11306 DEFS="$C_SWITCH_X_SITE $DEFS"
11307 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11309 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11310 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11312 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11313 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11314 # but it's more convenient here to set LD_RUN_PATH
11315 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11316 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11317 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11321 if test "${opsys}" = "gnu-linux"; then
11322 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11323 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11324 cat >conftest.$ac_ext <<_ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11334 XOpenDisplay ("foo");
11339 rm -f conftest.$ac_objext conftest$ac_exeext
11340 if { (ac_try="$ac_link"
11341 case "(($ac_try" in
11342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11343 *) ac_try_echo
=$ac_try;;
11345 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11346 $as_echo "$ac_try_echo") >&5
11347 (eval "$ac_link") 2>conftest.er1
11349 grep -v '^ *+' conftest.er1
>conftest.err
11351 cat conftest.err
>&5
11352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } && {
11354 test -z "$ac_c_werror_flag" ||
11355 test ! -s conftest.err
11356 } && test -s conftest
$ac_exeext && {
11357 test "$cross_compiling" = yes ||
11358 $as_test_x conftest
$ac_exeext
11360 xlinux_first_failure
=no
11362 $as_echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.
$ac_ext >&5
11365 xlinux_first_failure
=yes
11368 rm -rf conftest.dSYM
11369 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11370 conftest
$ac_exeext conftest.
$ac_ext
11371 if test "${xlinux_first_failure}" = "yes"; then
11372 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11373 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11374 OLD_CPPFLAGS
="$CPPFLAGS"
11376 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11377 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11378 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11379 LIBS
="$LIBS -b i486-linuxaout"
11380 cat >conftest.
$ac_ext <<_ACEOF
11383 cat confdefs.h
>>conftest.
$ac_ext
11384 cat >>conftest.
$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11390 XOpenDisplay ("foo");
11395 rm -f conftest.
$ac_objext conftest
$ac_exeext
11396 if { (ac_try
="$ac_link"
11397 case "(($ac_try" in
11398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11402 $as_echo "$ac_try_echo") >&5
11403 (eval "$ac_link") 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest$ac_exeext && {
11413 test "$cross_compiling" = yes ||
11414 $as_test_x conftest$ac_exeext
11416 xlinux_second_failure=no
11418 $as_echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 xlinux_second_failure=yes
11424 rm -rf conftest.dSYM
11425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11426 conftest$ac_exeext conftest.$ac_ext
11427 if test "${xlinux_second_failure}" = "yes"; then
11428 # If we get the same failure with -b, there is no use adding -b.
11429 # So take it out. This plays safe.
11430 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11431 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11432 CPPFLAGS="$OLD_CPPFLAGS"
11434 { $as_echo "$as_me:$LINENO: result: no" >&5
11435 $as_echo "no" >&6; }
11437 { $as_echo "$as_me:$LINENO: result: yes" >&5
11438 $as_echo "yes" >&6; }
11441 { $as_echo "$as_me:$LINENO: result: no" >&5
11442 $as_echo "no" >&6; }
11446 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11447 # header files included from there.
11448 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11449 $as_echo_n "checking for Xkb... " >&6; }
11450 cat >conftest.$ac_ext <<_ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h. */
11456 #include <X11/Xlib.h>
11457 #include <X11/XKBlib.h>
11461 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11466 rm -f conftest.$ac_objext conftest$ac_exeext
11467 if { (ac_try="$ac_link"
11468 case "(($ac_try" in
11469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11470 *) ac_try_echo
=$ac_try;;
11472 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11473 $as_echo "$ac_try_echo") >&5
11474 (eval "$ac_link") 2>conftest.er1
11476 grep -v '^ *+' conftest.er1
>conftest.err
11478 cat conftest.err
>&5
11479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } && {
11481 test -z "$ac_c_werror_flag" ||
11482 test ! -s conftest.err
11483 } && test -s conftest
$ac_exeext && {
11484 test "$cross_compiling" = yes ||
11485 $as_test_x conftest
$ac_exeext
11489 $as_echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.
$ac_ext >&5
11495 rm -rf conftest.dSYM
11496 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11497 conftest
$ac_exeext conftest.
$ac_ext
11498 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11499 $as_echo "$emacs_xkb" >&6; }
11500 if test $emacs_xkb = yes; then
11502 cat >>confdefs.h
<<\_ACEOF
11503 #define HAVE_XKBGETKEYBOARD 1
11512 for ac_func
in XrmSetDatabase XScreenResourceString \
11513 XScreenNumberOfScreen XSetWMProtocols
11515 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11516 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11517 $as_echo_n "checking for $ac_func... " >&6; }
11518 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11519 $as_echo_n "(cached) " >&6
11521 cat >conftest.
$ac_ext <<_ACEOF
11524 cat confdefs.h
>>conftest.
$ac_ext
11525 cat >>conftest.
$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11529 #define $ac_func innocuous_$ac_func
11531 /* System header to define __stub macros and hopefully few prototypes,
11532 which can conflict with char $ac_func (); below.
11533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11534 <limits.h> exists even on freestanding compilers. */
11537 # include <limits.h>
11539 # include <assert.h>
11544 /* Override any GCC internal prototype to avoid an error.
11545 Use char because int might match the return type of a GCC
11546 builtin and then its argument prototype would still apply. */
11551 /* The GNU C library defines this for functions which it implements
11552 to always fail with ENOSYS. Some functions are actually named
11553 something starting with __ and the normal name is an alias. */
11554 #if defined __stub_$ac_func || defined __stub___$ac_func
11561 return $ac_func ();
11566 rm -f conftest.
$ac_objext conftest
$ac_exeext
11567 if { (ac_try
="$ac_link"
11568 case "(($ac_try" in
11569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11573 $as_echo "$ac_try_echo") >&5
11574 (eval "$ac_link") 2>conftest.er1
11576 grep -v '^ *+' conftest.er1 >conftest.err
11578 cat conftest.err >&5
11579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } && {
11581 test -z "$ac_c_werror_flag" ||
11582 test ! -s conftest.err
11583 } && test -s conftest$ac_exeext && {
11584 test "$cross_compiling" = yes ||
11585 $as_test_x conftest$ac_exeext
11587 eval "$as_ac_var=yes"
11589 $as_echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11592 eval "$as_ac_var=no"
11595 rm -rf conftest.dSYM
11596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11597 conftest$ac_exeext conftest.$ac_ext
11599 ac_res=`eval 'as_val=${'$as_ac_var'}
11600 $as_echo "$as_val"'`
11601 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11602 $as_echo "$ac_res" >&6; }
11603 if test `eval 'as_val=${'$as_ac_var'}
11604 $as_echo "$as_val"'` = yes; then
11605 cat >>confdefs.h <<_ACEOF
11606 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11614 if test "${window_system}" = "x11"; then
11615 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11616 $as_echo_n "checking X11 version 6... " >&6; }
11617 if test "${emacs_cv_x11_version_6+set}" = set; then
11618 $as_echo_n "(cached) " >&6
11620 cat >conftest.$ac_ext <<_ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11626 #include <X11/Xlib.h>
11630 #if XlibSpecificationRelease < 6
11638 rm -f conftest.$ac_objext conftest$ac_exeext
11639 if { (ac_try="$ac_link"
11640 case "(($ac_try" in
11641 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11642 *) ac_try_echo
=$ac_try;;
11644 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11645 $as_echo "$ac_try_echo") >&5
11646 (eval "$ac_link") 2>conftest.er1
11648 grep -v '^ *+' conftest.er1
>conftest.err
11650 cat conftest.err
>&5
11651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } && {
11653 test -z "$ac_c_werror_flag" ||
11654 test ! -s conftest.err
11655 } && test -s conftest
$ac_exeext && {
11656 test "$cross_compiling" = yes ||
11657 $as_test_x conftest
$ac_exeext
11659 emacs_cv_x11_version_6
=yes
11661 $as_echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.
$ac_ext >&5
11664 emacs_cv_x11_version_6
=no
11667 rm -rf conftest.dSYM
11668 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11669 conftest
$ac_exeext conftest.
$ac_ext
11672 if test $emacs_cv_x11_version_6 = yes; then
11673 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11674 $as_echo "6 or newer" >&6; }
11676 cat >>confdefs.h
<<\_ACEOF
11677 #define HAVE_X11R6 1
11681 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11682 $as_echo "before 6" >&6; }
11687 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11689 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11690 if test "${with_rsvg}" != "no"; then
11691 RSVG_REQUIRED
=2.11.0
11692 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11697 # Extract the first word of "pkg-config", so it can be a program name with args.
11698 set dummy pkg-config
; ac_word
=$2
11699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11700 $as_echo_n "checking for $ac_word... " >&6; }
11701 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11702 $as_echo_n "(cached) " >&6
11704 case $PKG_CONFIG in
11706 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11710 for as_dir
in $PATH
11713 test -z "$as_dir" && as_dir
=.
11714 for ac_exec_ext
in '' $ac_executable_extensions; do
11715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11716 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11728 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11729 if test -n "$PKG_CONFIG"; then
11730 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11731 $as_echo "$PKG_CONFIG" >&6; }
11733 { $as_echo "$as_me:$LINENO: result: no" >&5
11734 $as_echo "no" >&6; }
11739 if test "$PKG_CONFIG" = "no" ; then
11742 PKG_CONFIG_MIN_VERSION
=0.9.0
11743 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11744 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11745 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11747 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11748 { $as_echo "$as_me:$LINENO: result: yes" >&5
11749 $as_echo "yes" >&6; }
11752 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11753 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11754 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11755 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11756 $as_echo "$RSVG_CFLAGS" >&6; }
11758 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11759 $as_echo_n "checking RSVG_LIBS... " >&6; }
11760 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11761 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11762 $as_echo "$RSVG_LIBS" >&6; }
11764 { $as_echo "$as_me:$LINENO: result: no" >&5
11765 $as_echo "no" >&6; }
11768 ## If we have a custom action on failure, don't print errors, but
11769 ## do set a variable so people can do so.
11770 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11777 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11778 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11782 if test $succeeded = yes; then
11791 if test ".${RSVG_CFLAGS}" != "."; then
11794 cat >>confdefs.h
<<\_ACEOF
11795 #define HAVE_RSVG 1
11798 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11799 LIBS
="$RSVG_LIBS $LIBS"
11806 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11809 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11814 # Extract the first word of "pkg-config", so it can be a program name with args.
11815 set dummy pkg-config
; ac_word
=$2
11816 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11817 $as_echo_n "checking for $ac_word... " >&6; }
11818 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11819 $as_echo_n "(cached) " >&6
11821 case $PKG_CONFIG in
11823 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11827 for as_dir
in $PATH
11830 test -z "$as_dir" && as_dir
=.
11831 for ac_exec_ext
in '' $ac_executable_extensions; do
11832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11833 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11834 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11845 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11846 if test -n "$PKG_CONFIG"; then
11847 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11848 $as_echo "$PKG_CONFIG" >&6; }
11850 { $as_echo "$as_me:$LINENO: result: no" >&5
11851 $as_echo "no" >&6; }
11856 if test "$PKG_CONFIG" = "no" ; then
11859 PKG_CONFIG_MIN_VERSION
=0.9.0
11860 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11861 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11862 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11864 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11865 { $as_echo "$as_me:$LINENO: result: yes" >&5
11866 $as_echo "yes" >&6; }
11869 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11870 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11871 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11872 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11873 $as_echo "$GTK_CFLAGS" >&6; }
11875 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11876 $as_echo_n "checking GTK_LIBS... " >&6; }
11877 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11878 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11879 $as_echo "$GTK_LIBS" >&6; }
11881 { $as_echo "$as_me:$LINENO: result: no" >&5
11882 $as_echo "no" >&6; }
11885 ## If we have a custom action on failure, don't print errors, but
11886 ## do set a variable so people can do so.
11887 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11894 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11895 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11899 if test $succeeded = yes; then
11905 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11906 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11907 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11908 { (exit 1); exit 1; }; }
11914 if test x
"$pkg_check_gtk" = xyes
; then
11918 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11919 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11920 LIBS
="$GTK_LIBS $LIBS"
11923 for ac_func
in gtk_main
11925 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11926 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11927 $as_echo_n "checking for $ac_func... " >&6; }
11928 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11929 $as_echo_n "(cached) " >&6
11931 cat >conftest.
$ac_ext <<_ACEOF
11934 cat confdefs.h
>>conftest.
$ac_ext
11935 cat >>conftest.
$ac_ext <<_ACEOF
11936 /* end confdefs.h. */
11937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11939 #define $ac_func innocuous_$ac_func
11941 /* System header to define __stub macros and hopefully few prototypes,
11942 which can conflict with char $ac_func (); below.
11943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11944 <limits.h> exists even on freestanding compilers. */
11947 # include <limits.h>
11949 # include <assert.h>
11954 /* Override any GCC internal prototype to avoid an error.
11955 Use char because int might match the return type of a GCC
11956 builtin and then its argument prototype would still apply. */
11961 /* The GNU C library defines this for functions which it implements
11962 to always fail with ENOSYS. Some functions are actually named
11963 something starting with __ and the normal name is an alias. */
11964 #if defined __stub_$ac_func || defined __stub___$ac_func
11971 return $ac_func ();
11976 rm -f conftest.
$ac_objext conftest
$ac_exeext
11977 if { (ac_try
="$ac_link"
11978 case "(($ac_try" in
11979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11983 $as_echo "$ac_try_echo") >&5
11984 (eval "$ac_link") 2>conftest.er1
11986 grep -v '^ *+' conftest.er1 >conftest.err
11988 cat conftest.err >&5
11989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } && {
11991 test -z "$ac_c_werror_flag" ||
11992 test ! -s conftest.err
11993 } && test -s conftest$ac_exeext && {
11994 test "$cross_compiling" = yes ||
11995 $as_test_x conftest$ac_exeext
11997 eval "$as_ac_var=yes"
11999 $as_echo "$as_me: failed program was:" >&5
12000 sed 's/^/| /' conftest.$ac_ext >&5
12002 eval "$as_ac_var=no"
12005 rm -rf conftest.dSYM
12006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12007 conftest$ac_exeext conftest.$ac_ext
12009 ac_res=`eval 'as_val=${'$as_ac_var'}
12010 $as_echo "$as_val"'`
12011 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12012 $as_echo "$ac_res" >&6; }
12013 if test `eval 'as_val=${'$as_ac_var'}
12014 $as_echo "$as_val"'` = yes; then
12015 cat >>confdefs.h <<_ACEOF
12016 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12022 if test "${GTK_COMPILES}" != "yes"; then
12023 if test "$USE_X_TOOLKIT" != "maybe"; then
12024 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12025 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12026 { (exit 1); exit 1; }; };
12031 cat >>confdefs.h <<\_ACEOF
12037 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12040 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12041 closing open displays. This is no problem if you just use
12042 one display, but if you use more than one and close one of them
12043 Emacs may crash." >&5
12044 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12045 closing open displays. This is no problem if you just use
12046 one display, but if you use more than one and close one of them
12047 Emacs may crash." >&2;}
12056 if test "${HAVE_GTK}" = "yes"; then
12058 if test "$with_toolkit_scroll_bars" != no; then
12059 with_toolkit_scroll_bars=yes
12062 HAVE_GTK_MULTIDISPLAY=no
12064 for ac_func in gdk_display_open
12066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12067 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12068 $as_echo_n "checking for $ac_func... " >&6; }
12069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12070 $as_echo_n "(cached) " >&6
12072 cat >conftest.$ac_ext <<_ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12080 #define $ac_func innocuous_$ac_func
12082 /* System header to define __stub macros and hopefully few prototypes,
12083 which can conflict with char $ac_func (); below.
12084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12085 <limits.h> exists even on freestanding compilers. */
12088 # include <limits.h>
12090 # include <assert.h>
12095 /* Override any GCC internal prototype to avoid an error.
12096 Use char because int might match the return type of a GCC
12097 builtin and then its argument prototype would still apply. */
12102 /* The GNU C library defines this for functions which it implements
12103 to always fail with ENOSYS. Some functions are actually named
12104 something starting with __ and the normal name is an alias. */
12105 #if defined __stub_$ac_func || defined __stub___$ac_func
12112 return $ac_func ();
12117 rm -f conftest.$ac_objext conftest$ac_exeext
12118 if { (ac_try="$ac_link"
12119 case "(($ac_try" in
12120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12121 *) ac_try_echo
=$ac_try;;
12123 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12124 $as_echo "$ac_try_echo") >&5
12125 (eval "$ac_link") 2>conftest.er1
12127 grep -v '^ *+' conftest.er1
>conftest.err
12129 cat conftest.err
>&5
12130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } && {
12132 test -z "$ac_c_werror_flag" ||
12133 test ! -s conftest.err
12134 } && test -s conftest
$ac_exeext && {
12135 test "$cross_compiling" = yes ||
12136 $as_test_x conftest
$ac_exeext
12138 eval "$as_ac_var=yes"
12140 $as_echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.
$ac_ext >&5
12143 eval "$as_ac_var=no"
12146 rm -rf conftest.dSYM
12147 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12148 conftest
$ac_exeext conftest.
$ac_ext
12150 ac_res
=`eval 'as_val=${'$as_ac_var'}
12151 $as_echo "$as_val"'`
12152 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12153 $as_echo "$ac_res" >&6; }
12154 if test `eval 'as_val=${'$as_ac_var'}
12155 $as_echo "$as_val"'` = yes; then
12156 cat >>confdefs.h
<<_ACEOF
12157 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12159 HAVE_GTK_MULTIDISPLAY
=yes
12163 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12165 cat >>confdefs.h
<<\_ACEOF
12166 #define HAVE_GTK_MULTIDISPLAY 1
12171 HAVE_GTK_FILE_SELECTION
=no
12172 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12173 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12174 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12175 $as_echo_n "(cached) " >&6
12177 cat >conftest.
$ac_ext <<_ACEOF
12180 cat confdefs.h
>>conftest.
$ac_ext
12181 cat >>conftest.
$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 $ac_includes_default
12184 #include <gtk/gtk.h>
12189 #ifndef GTK_TYPE_FILE_SELECTION
12190 (void) GTK_TYPE_FILE_SELECTION;
12197 rm -f conftest.
$ac_objext
12198 if { (ac_try
="$ac_compile"
12199 case "(($ac_try" in
12200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12204 $as_echo "$ac_try_echo") >&5
12205 (eval "$ac_compile") 2>conftest.er1
12207 grep -v '^ *+' conftest.er1 >conftest.err
12209 cat conftest.err >&5
12210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } && {
12212 test -z "$ac_c_werror_flag" ||
12213 test ! -s conftest.err
12214 } && test -s conftest.$ac_objext; then
12215 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12217 $as_echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12220 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12225 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12226 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12227 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12228 HAVE_GTK_FILE_SELECTION=yes
12230 HAVE_GTK_FILE_SELECTION=no
12233 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12235 for ac_func in gtk_file_selection_new
12237 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12238 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12239 $as_echo_n "checking for $ac_func... " >&6; }
12240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12241 $as_echo_n "(cached) " >&6
12243 cat >conftest.$ac_ext <<_ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12251 #define $ac_func innocuous_$ac_func
12253 /* System header to define __stub macros and hopefully few prototypes,
12254 which can conflict with char $ac_func (); below.
12255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12256 <limits.h> exists even on freestanding compilers. */
12259 # include <limits.h>
12261 # include <assert.h>
12266 /* Override any GCC internal prototype to avoid an error.
12267 Use char because int might match the return type of a GCC
12268 builtin and then its argument prototype would still apply. */
12273 /* The GNU C library defines this for functions which it implements
12274 to always fail with ENOSYS. Some functions are actually named
12275 something starting with __ and the normal name is an alias. */
12276 #if defined __stub_$ac_func || defined __stub___$ac_func
12283 return $ac_func ();
12288 rm -f conftest.$ac_objext conftest$ac_exeext
12289 if { (ac_try="$ac_link"
12290 case "(($ac_try" in
12291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12292 *) ac_try_echo
=$ac_try;;
12294 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12295 $as_echo "$ac_try_echo") >&5
12296 (eval "$ac_link") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1
>conftest.err
12300 cat conftest.err
>&5
12301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest
$ac_exeext && {
12306 test "$cross_compiling" = yes ||
12307 $as_test_x conftest
$ac_exeext
12309 eval "$as_ac_var=yes"
12311 $as_echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.
$ac_ext >&5
12314 eval "$as_ac_var=no"
12317 rm -rf conftest.dSYM
12318 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12319 conftest
$ac_exeext conftest.
$ac_ext
12321 ac_res
=`eval 'as_val=${'$as_ac_var'}
12322 $as_echo "$as_val"'`
12323 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12324 $as_echo "$ac_res" >&6; }
12325 if test `eval 'as_val=${'$as_ac_var'}
12326 $as_echo "$as_val"'` = yes; then
12327 cat >>confdefs.h
<<_ACEOF
12328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12330 HAVE_GTK_FILE_SELECTION
=yes
12332 HAVE_GTK_FILE_SELECTION
=no
12338 HAVE_GTK_FILE_CHOOSER
=no
12339 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12340 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12341 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12342 $as_echo_n "(cached) " >&6
12344 cat >conftest.
$ac_ext <<_ACEOF
12347 cat confdefs.h
>>conftest.
$ac_ext
12348 cat >>conftest.
$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 $ac_includes_default
12351 #include <gtk/gtk.h>
12356 #ifndef GTK_TYPE_FILE_CHOOSER
12357 (void) GTK_TYPE_FILE_CHOOSER;
12364 rm -f conftest.
$ac_objext
12365 if { (ac_try
="$ac_compile"
12366 case "(($ac_try" in
12367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12371 $as_echo "$ac_try_echo") >&5
12372 (eval "$ac_compile") 2>conftest.er1
12374 grep -v '^ *+' conftest.er1 >conftest.err
12376 cat conftest.err >&5
12377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } && {
12379 test -z "$ac_c_werror_flag" ||
12380 test ! -s conftest.err
12381 } && test -s conftest.$ac_objext; then
12382 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12384 $as_echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12387 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12392 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12393 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12394 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12395 HAVE_GTK_FILE_CHOOSER=yes
12397 HAVE_GTK_FILE_CHOOSER=no
12400 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12402 for ac_func in gtk_file_chooser_dialog_new
12404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12405 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12406 $as_echo_n "checking for $ac_func... " >&6; }
12407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12408 $as_echo_n "(cached) " >&6
12410 cat >conftest.$ac_ext <<_ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h. */
12416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12418 #define $ac_func innocuous_$ac_func
12420 /* System header to define __stub macros and hopefully few prototypes,
12421 which can conflict with char $ac_func (); below.
12422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12423 <limits.h> exists even on freestanding compilers. */
12426 # include <limits.h>
12428 # include <assert.h>
12433 /* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12440 /* The GNU C library defines this for functions which it implements
12441 to always fail with ENOSYS. Some functions are actually named
12442 something starting with __ and the normal name is an alias. */
12443 #if defined __stub_$ac_func || defined __stub___$ac_func
12450 return $ac_func ();
12455 rm -f conftest.$ac_objext conftest$ac_exeext
12456 if { (ac_try="$ac_link"
12457 case "(($ac_try" in
12458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12459 *) ac_try_echo
=$ac_try;;
12461 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12462 $as_echo "$ac_try_echo") >&5
12463 (eval "$ac_link") 2>conftest.er1
12465 grep -v '^ *+' conftest.er1
>conftest.err
12467 cat conftest.err
>&5
12468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); } && {
12470 test -z "$ac_c_werror_flag" ||
12471 test ! -s conftest.err
12472 } && test -s conftest
$ac_exeext && {
12473 test "$cross_compiling" = yes ||
12474 $as_test_x conftest
$ac_exeext
12476 eval "$as_ac_var=yes"
12478 $as_echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.
$ac_ext >&5
12481 eval "$as_ac_var=no"
12484 rm -rf conftest.dSYM
12485 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12486 conftest
$ac_exeext conftest.
$ac_ext
12488 ac_res
=`eval 'as_val=${'$as_ac_var'}
12489 $as_echo "$as_val"'`
12490 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12491 $as_echo "$ac_res" >&6; }
12492 if test `eval 'as_val=${'$as_ac_var'}
12493 $as_echo "$as_val"'` = yes; then
12494 cat >>confdefs.h
<<_ACEOF
12495 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12497 HAVE_GTK_FILE_CHOOSER
=yes
12499 HAVE_GTK_FILE_CHOOSER
=no
12505 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12506 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12508 cat >>confdefs.h
<<\_ACEOF
12509 #define HAVE_GTK_FILE_BOTH 1
12514 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12515 HAVE_GTK_AND_PTHREAD
=no
12517 for ac_header
in pthread.h
12519 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12520 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12521 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12522 $as_echo_n "checking for $ac_header... " >&6; }
12523 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12524 $as_echo_n "(cached) " >&6
12526 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12527 $as_echo "$as_val"'`
12528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12529 $as_echo "$ac_res" >&6; }
12531 # Is the header compilable?
12532 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12533 $as_echo_n "checking $ac_header usability... " >&6; }
12534 cat >conftest.
$ac_ext <<_ACEOF
12537 cat confdefs.h
>>conftest.
$ac_ext
12538 cat >>conftest.
$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12540 $ac_includes_default
12541 #include <$ac_header>
12543 rm -f conftest.
$ac_objext
12544 if { (ac_try
="$ac_compile"
12545 case "(($ac_try" in
12546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12550 $as_echo "$ac_try_echo") >&5
12551 (eval "$ac_compile") 2>conftest.er1
12553 grep -v '^ *+' conftest.er1 >conftest.err
12555 cat conftest.err >&5
12556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } && {
12558 test -z "$ac_c_werror_flag" ||
12559 test ! -s conftest.err
12560 } && test -s conftest.$ac_objext; then
12561 ac_header_compiler=yes
12563 $as_echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12566 ac_header_compiler=no
12569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12571 $as_echo "$ac_header_compiler" >&6; }
12573 # Is the header present?
12574 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12575 $as_echo_n "checking $ac_header presence... " >&6; }
12576 cat >conftest.$ac_ext <<_ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 #include <$ac_header>
12584 if { (ac_try="$ac_cpp conftest.$ac_ext"
12585 case "(($ac_try" in
12586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12587 *) ac_try_echo
=$ac_try;;
12589 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12590 $as_echo "$ac_try_echo") >&5
12591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12593 grep -v '^ *+' conftest.er1
>conftest.err
12595 cat conftest.err
>&5
12596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } >/dev
/null
&& {
12598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12599 test ! -s conftest.err
12601 ac_header_preproc
=yes
12603 $as_echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.
$ac_ext >&5
12606 ac_header_preproc
=no
12609 rm -f conftest.err conftest.
$ac_ext
12610 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12611 $as_echo "$ac_header_preproc" >&6; }
12613 # So? What about this header?
12614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12617 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12619 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12620 ac_header_preproc
=yes
12623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12624 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12626 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12628 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12630 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12632 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12634 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12639 $as_echo_n "checking for $ac_header... " >&6; }
12640 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12641 $as_echo_n "(cached) " >&6
12643 eval "$as_ac_Header=\$ac_header_preproc"
12645 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12646 $as_echo "$as_val"'`
12647 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12648 $as_echo "$ac_res" >&6; }
12651 if test `eval 'as_val=${'$as_ac_Header'}
12652 $as_echo "$as_val"'` = yes; then
12653 cat >>confdefs.h
<<_ACEOF
12654 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12661 if test "$ac_cv_header_pthread_h"; then
12662 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12663 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12664 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12665 $as_echo_n "(cached) " >&6
12667 ac_check_lib_save_LIBS
=$LIBS
12668 LIBS
="-lpthread $LIBS"
12669 cat >conftest.
$ac_ext <<_ACEOF
12672 cat confdefs.h
>>conftest.
$ac_ext
12673 cat >>conftest.
$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12676 /* Override any GCC internal prototype to avoid an error.
12677 Use char because int might match the return type of a GCC
12678 builtin and then its argument prototype would still apply. */
12682 char pthread_self ();
12686 return pthread_self ();
12691 rm -f conftest.
$ac_objext conftest
$ac_exeext
12692 if { (ac_try
="$ac_link"
12693 case "(($ac_try" in
12694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12698 $as_echo "$ac_try_echo") >&5
12699 (eval "$ac_link") 2>conftest.er1
12701 grep -v '^ *+' conftest.er1 >conftest.err
12703 cat conftest.err >&5
12704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } && {
12706 test -z "$ac_c_werror_flag" ||
12707 test ! -s conftest.err
12708 } && test -s conftest$ac_exeext && {
12709 test "$cross_compiling" = yes ||
12710 $as_test_x conftest$ac_exeext
12712 ac_cv_lib_pthread_pthread_self=yes
12714 $as_echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12717 ac_cv_lib_pthread_pthread_self=no
12720 rm -rf conftest.dSYM
12721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12722 conftest$ac_exeext conftest.$ac_ext
12723 LIBS=$ac_check_lib_save_LIBS
12725 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12726 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12727 if test $ac_cv_lib_pthread_pthread_self = yes; then
12728 HAVE_GTK_AND_PTHREAD=yes
12732 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12733 case "${canonical}" in
12735 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12738 cat >>confdefs.h <<\_ACEOF
12739 #define HAVE_GTK_AND_PTHREAD 1
12748 if test "${with_dbus}" = "yes"; then
12752 # Extract the first word of "pkg-config", so it can be a program name with args.
12753 set dummy pkg-config; ac_word=$2
12754 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12755 $as_echo_n "checking for $ac_word... " >&6; }
12756 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12757 $as_echo_n "(cached) " >&6
12759 case $PKG_CONFIG in
12761 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12765 for as_dir in $PATH
12768 test -z "$as_dir" && as_dir=.
12769 for ac_exec_ext in '' $ac_executable_extensions; do
12770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12771 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12772 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12779 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12783 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12784 if test -n "$PKG_CONFIG"; then
12785 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12786 $as_echo "$PKG_CONFIG" >&6; }
12788 { $as_echo "$as_me:$LINENO: result: no" >&5
12789 $as_echo "no" >&6; }
12794 if test "$PKG_CONFIG" = "no" ; then
12797 PKG_CONFIG_MIN_VERSION=0.9.0
12798 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12799 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12800 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12802 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12803 { $as_echo "$as_me:$LINENO: result: yes" >&5
12804 $as_echo "yes" >&6; }
12807 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12808 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12809 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12810 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12811 $as_echo "$DBUS_CFLAGS" >&6; }
12813 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12814 $as_echo_n "checking DBUS_LIBS... " >&6; }
12815 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12816 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12817 $as_echo "$DBUS_LIBS" >&6; }
12819 { $as_echo "$as_me:$LINENO: result: no" >&5
12820 $as_echo "no" >&6; }
12823 ## If we have a custom action on failure, don't print errors, but
12824 ## do set a variable so people can do so.
12825 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12832 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12833 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12837 if test $succeeded = yes; then
12843 if test "$HAVE_DBUS" = yes; then
12844 LIBS="$LIBS $DBUS_LIBS"
12846 cat >>confdefs.h <<\_ACEOF
12847 #define HAVE_DBUS 1
12851 for ac_func in dbus_watch_get_unix_fd
12853 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12854 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12855 $as_echo_n "checking for $ac_func... " >&6; }
12856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12857 $as_echo_n "(cached) " >&6
12859 cat >conftest.$ac_ext <<_ACEOF
12862 cat confdefs.h >>conftest.$ac_ext
12863 cat >>conftest.$ac_ext <<_ACEOF
12864 /* end confdefs.h. */
12865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12867 #define $ac_func innocuous_$ac_func
12869 /* System header to define __stub macros and hopefully few prototypes,
12870 which can conflict with char $ac_func (); below.
12871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12872 <limits.h> exists even on freestanding compilers. */
12875 # include <limits.h>
12877 # include <assert.h>
12882 /* Override any GCC internal prototype to avoid an error.
12883 Use char because int might match the return type of a GCC
12884 builtin and then its argument prototype would still apply. */
12889 /* The GNU C library defines this for functions which it implements
12890 to always fail with ENOSYS. Some functions are actually named
12891 something starting with __ and the normal name is an alias. */
12892 #if defined __stub_$ac_func || defined __stub___$ac_func
12899 return $ac_func ();
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (ac_try="$ac_link"
12906 case "(($ac_try" in
12907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12908 *) ac_try_echo
=$ac_try;;
12910 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12911 $as_echo "$ac_try_echo") >&5
12912 (eval "$ac_link") 2>conftest.er1
12914 grep -v '^ *+' conftest.er1
>conftest.err
12916 cat conftest.err
>&5
12917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } && {
12919 test -z "$ac_c_werror_flag" ||
12920 test ! -s conftest.err
12921 } && test -s conftest
$ac_exeext && {
12922 test "$cross_compiling" = yes ||
12923 $as_test_x conftest
$ac_exeext
12925 eval "$as_ac_var=yes"
12927 $as_echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.
$ac_ext >&5
12930 eval "$as_ac_var=no"
12933 rm -rf conftest.dSYM
12934 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12935 conftest
$ac_exeext conftest.
$ac_ext
12937 ac_res
=`eval 'as_val=${'$as_ac_var'}
12938 $as_echo "$as_val"'`
12939 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12940 $as_echo "$ac_res" >&6; }
12941 if test `eval 'as_val=${'$as_ac_var'}
12942 $as_echo "$as_val"'` = yes; then
12943 cat >>confdefs.h
<<_ACEOF
12944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12950 DBUS_OBJ
=dbusbind.o
12956 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12960 # Extract the first word of "pkg-config", so it can be a program name with args.
12961 set dummy pkg-config
; ac_word
=$2
12962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12963 $as_echo_n "checking for $ac_word... " >&6; }
12964 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12965 $as_echo_n "(cached) " >&6
12967 case $PKG_CONFIG in
12969 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12973 for as_dir
in $PATH
12976 test -z "$as_dir" && as_dir
=.
12977 for ac_exec_ext
in '' $ac_executable_extensions; do
12978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12979 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12987 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12991 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12992 if test -n "$PKG_CONFIG"; then
12993 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12994 $as_echo "$PKG_CONFIG" >&6; }
12996 { $as_echo "$as_me:$LINENO: result: no" >&5
12997 $as_echo "no" >&6; }
13002 if test "$PKG_CONFIG" = "no" ; then
13005 PKG_CONFIG_MIN_VERSION
=0.9.0
13006 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13007 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
13008 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
13010 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
13011 { $as_echo "$as_me:$LINENO: result: yes" >&5
13012 $as_echo "yes" >&6; }
13015 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
13016 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
13017 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13018 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
13019 $as_echo "$GCONF_CFLAGS" >&6; }
13021 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
13022 $as_echo_n "checking GCONF_LIBS... " >&6; }
13023 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13024 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
13025 $as_echo "$GCONF_LIBS" >&6; }
13027 { $as_echo "$as_me:$LINENO: result: no" >&5
13028 $as_echo "no" >&6; }
13031 ## If we have a custom action on failure, don't print errors, but
13032 ## do set a variable so people can do so.
13033 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13040 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13041 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13045 if test $succeeded = yes; then
13051 if test "$HAVE_GCONF" = yes; then
13053 cat >>confdefs.h
<<\_ACEOF
13054 #define HAVE_GCONF 1
13062 if test "${with_selinux}" = "yes"; then
13063 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13064 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13065 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13066 $as_echo_n "(cached) " >&6
13068 ac_check_lib_save_LIBS
=$LIBS
13069 LIBS
="-lselinux $LIBS"
13070 cat >conftest.
$ac_ext <<_ACEOF
13073 cat confdefs.h
>>conftest.
$ac_ext
13074 cat >>conftest.
$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13077 /* Override any GCC internal prototype to avoid an error.
13078 Use char because int might match the return type of a GCC
13079 builtin and then its argument prototype would still apply. */
13083 char lgetfilecon ();
13087 return lgetfilecon ();
13092 rm -f conftest.
$ac_objext conftest
$ac_exeext
13093 if { (ac_try
="$ac_link"
13094 case "(($ac_try" in
13095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13099 $as_echo "$ac_try_echo") >&5
13100 (eval "$ac_link") 2>conftest.er1
13102 grep -v '^ *+' conftest.er1 >conftest.err
13104 cat conftest.err >&5
13105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } && {
13107 test -z "$ac_c_werror_flag" ||
13108 test ! -s conftest.err
13109 } && test -s conftest$ac_exeext && {
13110 test "$cross_compiling" = yes ||
13111 $as_test_x conftest$ac_exeext
13113 ac_cv_lib_selinux_lgetfilecon=yes
13115 $as_echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13118 ac_cv_lib_selinux_lgetfilecon=no
13121 rm -rf conftest.dSYM
13122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13123 conftest$ac_exeext conftest.$ac_ext
13124 LIBS=$ac_check_lib_save_LIBS
13126 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13127 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13128 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13129 HAVE_LIBSELINUX=yes
13134 if test "$HAVE_LIBSELINUX" = yes; then
13136 cat >>confdefs.h <<\_ACEOF
13137 #define HAVE_LIBSELINUX 1
13140 LIBSELINUX_LIBS=-lselinux
13147 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13148 if test "$with_xaw3d" != no; then
13149 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13150 $as_echo_n "checking for xaw3d... " >&6; }
13151 if test "${emacs_cv_xaw3d+set}" = set; then
13152 $as_echo_n "(cached) " >&6
13154 cat >conftest.$ac_ext <<_ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h. */
13161 #include <X11/Intrinsic.h>
13162 #include <X11/Xaw3d/Simple.h>
13171 rm -f conftest.$ac_objext conftest$ac_exeext
13172 if { (ac_try="$ac_link"
13173 case "(($ac_try" in
13174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13175 *) ac_try_echo
=$ac_try;;
13177 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13178 $as_echo "$ac_try_echo") >&5
13179 (eval "$ac_link") 2>conftest.er1
13181 grep -v '^ *+' conftest.er1
>conftest.err
13183 cat conftest.err
>&5
13184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } && {
13186 test -z "$ac_c_werror_flag" ||
13187 test ! -s conftest.err
13188 } && test -s conftest
$ac_exeext && {
13189 test "$cross_compiling" = yes ||
13190 $as_test_x conftest
$ac_exeext
13194 $as_echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.
$ac_ext >&5
13200 rm -rf conftest.dSYM
13201 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13202 conftest
$ac_exeext conftest.
$ac_ext
13208 if test $emacs_cv_xaw3d = yes; then
13209 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13210 $as_echo "yes; using Lucid toolkit" >&6; }
13211 USE_X_TOOLKIT
=LUCID
13215 cat >>confdefs.h
<<\_ACEOF
13216 #define HAVE_XAW3D 1
13220 { $as_echo "$as_me:$LINENO: result: no" >&5
13221 $as_echo "no" >&6; }
13222 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13223 $as_echo_n "checking for libXaw... " >&6; }
13224 if test "${emacs_cv_xaw+set}" = set; then
13225 $as_echo_n "(cached) " >&6
13227 cat >conftest.
$ac_ext <<_ACEOF
13230 cat confdefs.h
>>conftest.
$ac_ext
13231 cat >>conftest.
$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13234 #include <X11/Intrinsic.h>
13235 #include <X11/Xaw/Simple.h>
13244 rm -f conftest.
$ac_objext conftest
$ac_exeext
13245 if { (ac_try
="$ac_link"
13246 case "(($ac_try" in
13247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13251 $as_echo "$ac_try_echo") >&5
13252 (eval "$ac_link") 2>conftest.er1
13254 grep -v '^ *+' conftest.er1 >conftest.err
13256 cat conftest.err >&5
13257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); } && {
13259 test -z "$ac_c_werror_flag" ||
13260 test ! -s conftest.err
13261 } && test -s conftest$ac_exeext && {
13262 test "$cross_compiling" = yes ||
13263 $as_test_x conftest$ac_exeext
13267 $as_echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13273 rm -rf conftest.dSYM
13274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13275 conftest$ac_exeext conftest.$ac_ext
13278 if test $emacs_cv_xaw = yes; then
13279 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13280 $as_echo "yes; using Lucid toolkit" >&6; }
13281 USE_X_TOOLKIT=LUCID
13283 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13284 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13285 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13286 { (exit 1); exit 1; }; }
13288 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13289 $as_echo "no; do not use toolkit by default" >&6; }
13295 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13298 if test "${USE_X_TOOLKIT}" != "none"; then
13299 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13300 $as_echo_n "checking X11 toolkit version... " >&6; }
13301 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13302 $as_echo_n "(cached) " >&6
13304 cat >conftest.$ac_ext <<_ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h. */
13310 #include <X11/Intrinsic.h>
13314 #if XtSpecificationRelease < 6
13322 rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (ac_try="$ac_link"
13324 case "(($ac_try" in
13325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13326 *) ac_try_echo
=$ac_try;;
13328 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13329 $as_echo "$ac_try_echo") >&5
13330 (eval "$ac_link") 2>conftest.er1
13332 grep -v '^ *+' conftest.er1
>conftest.err
13334 cat conftest.err
>&5
13335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } && {
13337 test -z "$ac_c_werror_flag" ||
13338 test ! -s conftest.err
13339 } && test -s conftest
$ac_exeext && {
13340 test "$cross_compiling" = yes ||
13341 $as_test_x conftest
$ac_exeext
13343 emacs_cv_x11_toolkit_version_6
=yes
13345 $as_echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.
$ac_ext >&5
13348 emacs_cv_x11_toolkit_version_6
=no
13351 rm -rf conftest.dSYM
13352 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13353 conftest
$ac_exeext conftest.
$ac_ext
13356 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
13357 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13358 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13359 $as_echo "6 or newer" >&6; }
13361 cat >>confdefs.h
<<\_ACEOF
13362 #define HAVE_X11XTR6 1
13365 LIBXTR6
="-lSM -lICE"
13367 ## Use libw.a along with X11R6 Xt.
13368 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
13371 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13372 $as_echo "before 6" >&6; }
13376 if test x
$HAVE_X11XTR6 = xyes
; then
13377 LIBS
="-lXt -lSM -lICE $LIBS"
13382 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13383 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13384 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13385 $as_echo_n "(cached) " >&6
13387 ac_check_lib_save_LIBS
=$LIBS
13389 cat >conftest.
$ac_ext <<_ACEOF
13392 cat confdefs.h
>>conftest.
$ac_ext
13393 cat >>conftest.
$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13396 /* Override any GCC internal prototype to avoid an error.
13397 Use char because int might match the return type of a GCC
13398 builtin and then its argument prototype would still apply. */
13402 char XmuConvertStandardSelection ();
13406 return XmuConvertStandardSelection ();
13411 rm -f conftest.
$ac_objext conftest
$ac_exeext
13412 if { (ac_try
="$ac_link"
13413 case "(($ac_try" in
13414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13418 $as_echo "$ac_try_echo") >&5
13419 (eval "$ac_link") 2>conftest.er1
13421 grep -v '^ *+' conftest.er1 >conftest.err
13423 cat conftest.err >&5
13424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } && {
13426 test -z "$ac_c_werror_flag" ||
13427 test ! -s conftest.err
13428 } && test -s conftest$ac_exeext && {
13429 test "$cross_compiling" = yes ||
13430 $as_test_x conftest$ac_exeext
13432 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13434 $as_echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13437 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13440 rm -rf conftest.dSYM
13441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13442 conftest$ac_exeext conftest.$ac_ext
13443 LIBS=$ac_check_lib_save_LIBS
13445 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13446 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13447 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13448 cat >>confdefs.h <<_ACEOF
13449 #define HAVE_LIBXMU 1
13456 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13462 ## These machines don't supply Xmu.
13464 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13469 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13470 if test "${HAVE_X11}" = "yes"; then
13471 if test "${USE_X_TOOLKIT}" != "none"; then
13473 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13474 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13475 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13476 $as_echo_n "(cached) " >&6
13478 ac_check_lib_save_LIBS=$LIBS
13479 LIBS="-lXext $LIBS"
13480 cat >conftest.$ac_ext <<_ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13487 /* Override any GCC internal prototype to avoid an error.
13488 Use char because int might match the return type of a GCC
13489 builtin and then its argument prototype would still apply. */
13493 char XShapeQueryExtension ();
13497 return XShapeQueryExtension ();
13502 rm -f conftest.$ac_objext conftest$ac_exeext
13503 if { (ac_try="$ac_link"
13504 case "(($ac_try" in
13505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13506 *) ac_try_echo
=$ac_try;;
13508 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13509 $as_echo "$ac_try_echo") >&5
13510 (eval "$ac_link") 2>conftest.er1
13512 grep -v '^ *+' conftest.er1
>conftest.err
13514 cat conftest.err
>&5
13515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } && {
13517 test -z "$ac_c_werror_flag" ||
13518 test ! -s conftest.err
13519 } && test -s conftest
$ac_exeext && {
13520 test "$cross_compiling" = yes ||
13521 $as_test_x conftest
$ac_exeext
13523 ac_cv_lib_Xext_XShapeQueryExtension
=yes
13525 $as_echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.
$ac_ext >&5
13528 ac_cv_lib_Xext_XShapeQueryExtension
=no
13531 rm -rf conftest.dSYM
13532 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13533 conftest
$ac_exeext conftest.
$ac_ext
13534 LIBS
=$ac_check_lib_save_LIBS
13536 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13537 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13538 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13539 cat >>confdefs.h
<<_ACEOF
13540 #define HAVE_LIBXEXT 1
13543 LIBS
="-lXext $LIBS"
13551 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13552 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13553 $as_echo_n "checking for Motif version 2.1... " >&6; }
13554 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13555 $as_echo_n "(cached) " >&6
13557 cat >conftest.
$ac_ext <<_ACEOF
13560 cat confdefs.h
>>conftest.
$ac_ext
13561 cat >>conftest.
$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13567 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13570 Motif version prior to 2.1.
13576 rm -f conftest.
$ac_objext
13577 if { (ac_try
="$ac_compile"
13578 case "(($ac_try" in
13579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13583 $as_echo "$ac_try_echo") >&5
13584 (eval "$ac_compile") 2>conftest.er1
13586 grep -v '^ *+' conftest.er1 >conftest.err
13588 cat conftest.err >&5
13589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); } && {
13591 test -z "$ac_c_werror_flag" ||
13592 test ! -s conftest.err
13593 } && test -s conftest.$ac_objext; then
13594 emacs_cv_motif_version_2_1=yes
13596 $as_echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 emacs_cv_motif_version_2_1=no
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13605 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13606 if test $emacs_cv_motif_version_2_1 = yes; then
13607 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13608 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13609 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13610 $as_echo_n "(cached) " >&6
13612 ac_check_lib_save_LIBS=$LIBS
13614 cat >conftest.$ac_ext <<_ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13621 /* Override any GCC internal prototype to avoid an error.
13622 Use char because int might match the return type of a GCC
13623 builtin and then its argument prototype would still apply. */
13627 char XpCreateContext ();
13631 return XpCreateContext ();
13636 rm -f conftest.$ac_objext conftest$ac_exeext
13637 if { (ac_try="$ac_link"
13638 case "(($ac_try" in
13639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13640 *) ac_try_echo
=$ac_try;;
13642 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13643 $as_echo "$ac_try_echo") >&5
13644 (eval "$ac_link") 2>conftest.er1
13646 grep -v '^ *+' conftest.er1
>conftest.err
13648 cat conftest.err
>&5
13649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } && {
13651 test -z "$ac_c_werror_flag" ||
13652 test ! -s conftest.err
13653 } && test -s conftest
$ac_exeext && {
13654 test "$cross_compiling" = yes ||
13655 $as_test_x conftest
$ac_exeext
13657 ac_cv_lib_Xp_XpCreateContext
=yes
13659 $as_echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.
$ac_ext >&5
13662 ac_cv_lib_Xp_XpCreateContext
=no
13665 rm -rf conftest.dSYM
13666 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13667 conftest
$ac_exeext conftest.
$ac_ext
13668 LIBS
=$ac_check_lib_save_LIBS
13670 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13671 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13672 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13677 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13678 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13679 if test "${emacs_cv_lesstif+set}" = set; then
13680 $as_echo_n "(cached) " >&6
13682 # We put this in CFLAGS temporarily to precede other -I options
13683 # that might be in CFLAGS temporarily.
13684 # We put this in CPPFLAGS where it precedes the other -I options.
13685 OLD_CPPFLAGS
=$CPPFLAGS
13687 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13688 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13689 cat >conftest.
$ac_ext <<_ACEOF
13692 cat confdefs.h
>>conftest.
$ac_ext
13693 cat >>conftest.
$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13695 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13704 rm -f conftest.
$ac_objext
13705 if { (ac_try
="$ac_compile"
13706 case "(($ac_try" in
13707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13708 *) ac_try_echo=$ac_try;;
13710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13711 $as_echo "$ac_try_echo") >&5
13712 (eval "$ac_compile") 2>conftest.er1
13714 grep -v '^ *+' conftest.er1 >conftest.err
13716 cat conftest.err >&5
13717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } && {
13719 test -z "$ac_c_werror_flag" ||
13720 test ! -s conftest.err
13721 } && test -s conftest.$ac_objext; then
13722 emacs_cv_lesstif=yes
13724 $as_echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13727 emacs_cv_lesstif=no
13730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13733 $as_echo "$emacs_cv_lesstif" >&6; }
13734 if test $emacs_cv_lesstif = yes; then
13735 # Make sure this -I option remains in CPPFLAGS after it is set
13736 # back to REAL_CPPFLAGS.
13737 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13738 # have those other -I options anyway. Ultimately, having this
13739 # directory ultimately in CPPFLAGS will be enough.
13740 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13741 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13744 CPPFLAGS=$OLD_CPPFLAGS
13751 USE_TOOLKIT_SCROLL_BARS=no
13752 if test "${with_toolkit_scroll_bars}" != "no"; then
13753 if test "${USE_X_TOOLKIT}" != "none"; then
13754 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13755 cat >>confdefs.h <<\_ACEOF
13756 #define USE_TOOLKIT_SCROLL_BARS 1
13760 USE_TOOLKIT_SCROLL_BARS=yes
13761 elif test "${HAVE_XAW3D}" = "yes"; then
13762 cat >>confdefs.h <<\_ACEOF
13763 #define USE_TOOLKIT_SCROLL_BARS 1
13766 USE_TOOLKIT_SCROLL_BARS=yes
13768 elif test "${HAVE_GTK}" = "yes"; then
13769 cat >>confdefs.h <<\_ACEOF
13770 #define USE_TOOLKIT_SCROLL_BARS 1
13773 USE_TOOLKIT_SCROLL_BARS=yes
13774 elif test "${HAVE_NS}" = "yes"; then
13775 cat >>confdefs.h <<\_ACEOF
13776 #define USE_TOOLKIT_SCROLL_BARS 1
13779 USE_TOOLKIT_SCROLL_BARS=yes
13783 cat >conftest.$ac_ext <<_ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h. */
13790 #include <X11/Xlib.h>
13791 #include <X11/Xresource.h>
13800 rm -f conftest.$ac_objext
13801 if { (ac_try="$ac_compile"
13802 case "(($ac_try" in
13803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13804 *) ac_try_echo
=$ac_try;;
13806 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13807 $as_echo "$ac_try_echo") >&5
13808 (eval "$ac_compile") 2>conftest.er1
13810 grep -v '^ *+' conftest.er1
>conftest.err
13812 cat conftest.err
>&5
13813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } && {
13815 test -z "$ac_c_werror_flag" ||
13816 test ! -s conftest.err
13817 } && test -s conftest.
$ac_objext; then
13820 cat >>confdefs.h
<<\_ACEOF
13825 $as_echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.
$ac_ext >&5
13831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13834 if test "${with_xim}" != "no"; then
13836 cat >>confdefs.h
<<\_ACEOF
13843 if test "${HAVE_XIM}" != "no"; then
13844 late_CFLAGS
=$CFLAGS
13845 if test "$GCC" = yes; then
13846 CFLAGS
="$CFLAGS --pedantic-errors"
13848 cat >conftest.
$ac_ext <<_ACEOF
13851 cat confdefs.h
>>conftest.
$ac_ext
13852 cat >>conftest.
$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13855 #include <X11/Xlib.h>
13856 #include <X11/Xresource.h>
13865 XPointer *client_data;
13867 /* If we're not using GCC, it's probably not XFree86, and this is
13868 probably right, but we can't use something like --pedantic-errors. */
13869 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13870 char*, XIMProc, XPointer*);
13872 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13878 rm -f conftest.
$ac_objext
13879 if { (ac_try
="$ac_compile"
13880 case "(($ac_try" in
13881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13885 $as_echo "$ac_try_echo") >&5
13886 (eval "$ac_compile") 2>conftest.er1
13888 grep -v '^ *+' conftest.er1 >conftest.err
13890 cat conftest.err >&5
13891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } && {
13893 test -z "$ac_c_werror_flag" ||
13894 test ! -s conftest.err
13895 } && test -s conftest.$ac_objext; then
13896 emacs_cv_arg6_star=yes
13898 $as_echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13906 if test "$emacs_cv_arg6_star" = yes; then
13907 cat >>confdefs.h <<\_ACEOF
13908 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13912 cat >>confdefs.h <<\_ACEOF
13913 #define XRegisterIMInstantiateCallback_arg6 XPointer
13917 CFLAGS=$late_CFLAGS
13920 ### Start of font-backend (under any platform) section.
13921 # (nothing here yet -- this is a placeholder)
13922 ### End of font-backend (under any platform) section.
13924 ### Start of font-backend (under X11) section.
13925 if test "${HAVE_X11}" = "yes"; then
13929 # Extract the first word of "pkg-config", so it can be a program name with args.
13930 set dummy pkg-config; ac_word=$2
13931 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13932 $as_echo_n "checking for $ac_word... " >&6; }
13933 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13934 $as_echo_n "(cached) " >&6
13936 case $PKG_CONFIG in
13938 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942 for as_dir in $PATH
13945 test -z "$as_dir" && as_dir=.
13946 for ac_exec_ext in '' $ac_executable_extensions; do
13947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13948 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13956 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13960 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13961 if test -n "$PKG_CONFIG"; then
13962 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13963 $as_echo "$PKG_CONFIG" >&6; }
13965 { $as_echo "$as_me:$LINENO: result: no" >&5
13966 $as_echo "no" >&6; }
13971 if test "$PKG_CONFIG" = "no" ; then
13974 PKG_CONFIG_MIN_VERSION=0.9.0
13975 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13976 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13977 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13979 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13980 { $as_echo "$as_me:$LINENO: result: yes" >&5
13981 $as_echo "yes" >&6; }
13984 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13985 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13986 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13987 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13988 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13990 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13991 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13992 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13993 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13994 $as_echo "$FONTCONFIG_LIBS" >&6; }
13996 { $as_echo "$as_me:$LINENO: result: no" >&5
13997 $as_echo "no" >&6; }
13998 FONTCONFIG_CFLAGS=""
14000 ## If we have a custom action on failure, don't print errors, but
14001 ## do set a variable so people can do so.
14002 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
14009 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14010 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14014 if test $succeeded = yes; then
14021 ## Use -lXft if available, unless `--with-xft=no
'.
14023 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
14026 if test "x${with_xft}" != "xno"; then
14031 # Extract the first word of "pkg-config", so it can be a program name with args.
14032 set dummy pkg-config; ac_word=$2
14033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14034 $as_echo_n "checking for $ac_word... " >&6; }
14035 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14036 $as_echo_n "(cached) " >&6
14038 case $PKG_CONFIG in
14040 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14044 for as_dir in $PATH
14047 test -z "$as_dir" && as_dir=.
14048 for ac_exec_ext in '' $ac_executable_extensions; do
14049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14050 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14058 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14062 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14063 if test -n "$PKG_CONFIG"; then
14064 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14065 $as_echo "$PKG_CONFIG" >&6; }
14067 { $as_echo "$as_me:$LINENO: result: no" >&5
14068 $as_echo "no" >&6; }
14073 if test "$PKG_CONFIG" = "no" ; then
14076 PKG_CONFIG_MIN_VERSION=0.9.0
14077 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14078 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14079 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14081 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14082 { $as_echo "$as_me:$LINENO: result: yes" >&5
14083 $as_echo "yes" >&6; }
14086 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14087 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14088 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14089 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14090 $as_echo "$XFT_CFLAGS" >&6; }
14092 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14093 $as_echo_n "checking XFT_LIBS... " >&6; }
14094 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14095 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14096 $as_echo "$XFT_LIBS" >&6; }
14098 { $as_echo "$as_me:$LINENO: result: no" >&5
14099 $as_echo "no" >&6; }
14102 ## If we have a custom action on failure, don't print errors
, but
14103 ## do set a variable so people can do so.
14104 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14111 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14112 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14116 if test $succeeded = yes; then
14122 ## Because xftfont.c uses XRenderQueryExtension, we also
14123 ## need to link to -lXrender.
14125 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14126 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14127 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14128 $as_echo_n "(cached) " >&6
14130 ac_check_lib_save_LIBS
=$LIBS
14131 LIBS
="-lXrender $LIBS"
14132 cat >conftest.
$ac_ext <<_ACEOF
14135 cat confdefs.h
>>conftest.
$ac_ext
14136 cat >>conftest.
$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14139 /* Override any GCC internal prototype to avoid an error.
14140 Use char because int might match the return type of a GCC
14141 builtin and then its argument prototype would still apply. */
14145 char XRenderQueryExtension ();
14149 return XRenderQueryExtension ();
14154 rm -f conftest.
$ac_objext conftest
$ac_exeext
14155 if { (ac_try
="$ac_link"
14156 case "(($ac_try" in
14157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14158 *) ac_try_echo=$ac_try;;
14160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14161 $as_echo "$ac_try_echo") >&5
14162 (eval "$ac_link") 2>conftest.er1
14164 grep -v '^ *+' conftest.er1 >conftest.err
14166 cat conftest.err >&5
14167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } && {
14169 test -z "$ac_c_werror_flag" ||
14170 test ! -s conftest.err
14171 } && test -s conftest$ac_exeext && {
14172 test "$cross_compiling" = yes ||
14173 $as_test_x conftest$ac_exeext
14175 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14177 $as_echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14180 ac_cv_lib_Xrender_XRenderQueryExtension=no
14183 rm -rf conftest.dSYM
14184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14185 conftest$ac_exeext conftest.$ac_ext
14186 LIBS=$ac_check_lib_save_LIBS
14188 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14189 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14190 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14194 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14195 OLD_CPPFLAGS="$CPPFLAGS"
14196 OLD_CFLAGS="$CFLAGS"
14198 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14199 CFLAGS="$CFLAGS $XFT_CFLAGS"
14200 XFT_LIBS="-lXrender $XFT_LIBS"
14201 LIBS="$XFT_LIBS $LIBS"
14202 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14203 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14204 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14205 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14206 $as_echo_n "(cached) " >&6
14208 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14209 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14211 # Is the header compilable?
14212 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14213 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14214 cat >conftest.$ac_ext <<_ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14220 $ac_includes_default
14221 #include <X11/Xft/Xft.h>
14223 rm -f conftest.$ac_objext
14224 if { (ac_try="$ac_compile"
14225 case "(($ac_try" in
14226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14227 *) ac_try_echo
=$ac_try;;
14229 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14230 $as_echo "$ac_try_echo") >&5
14231 (eval "$ac_compile") 2>conftest.er1
14233 grep -v '^ *+' conftest.er1
>conftest.err
14235 cat conftest.err
>&5
14236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } && {
14238 test -z "$ac_c_werror_flag" ||
14239 test ! -s conftest.err
14240 } && test -s conftest.
$ac_objext; then
14241 ac_header_compiler
=yes
14243 $as_echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.
$ac_ext >&5
14246 ac_header_compiler
=no
14249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14250 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14251 $as_echo "$ac_header_compiler" >&6; }
14253 # Is the header present?
14254 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14255 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14256 cat >conftest.
$ac_ext <<_ACEOF
14259 cat confdefs.h
>>conftest.
$ac_ext
14260 cat >>conftest.
$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14262 #include <X11/Xft/Xft.h>
14264 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14265 case "(($ac_try" in
14266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14270 $as_echo "$ac_try_echo") >&5
14271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14273 grep -v '^ *+' conftest.er1 >conftest.err
14275 cat conftest.err >&5
14276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } >/dev/null && {
14278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14279 test ! -s conftest.err
14281 ac_header_preproc=yes
14283 $as_echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14286 ac_header_preproc=no
14289 rm -f conftest.err conftest.$ac_ext
14290 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14291 $as_echo "$ac_header_preproc" >&6; }
14293 # So? What about this header?
14294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14296 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14297 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14298 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14299 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14300 ac_header_preproc=yes
14303 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14304 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14305 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14306 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14307 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14308 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14309 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14310 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14311 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14312 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14313 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14314 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14318 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14319 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14320 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14321 $as_echo_n "(cached) " >&6
14323 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14325 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14326 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14329 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14330 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14331 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14332 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14333 $as_echo_n "(cached) " >&6
14335 ac_check_lib_save_LIBS=$LIBS
14336 LIBS="-lXft $XFT_LIBS $LIBS"
14337 cat >conftest.$ac_ext <<_ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14344 /* Override any GCC internal prototype to avoid an error.
14345 Use char because int might match the return type of a GCC
14346 builtin and then its argument prototype would still apply. */
14350 char XftFontOpen ();
14354 return XftFontOpen ();
14359 rm -f conftest.$ac_objext conftest$ac_exeext
14360 if { (ac_try="$ac_link"
14361 case "(($ac_try" in
14362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14363 *) ac_try_echo
=$ac_try;;
14365 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14366 $as_echo "$ac_try_echo") >&5
14367 (eval "$ac_link") 2>conftest.er1
14369 grep -v '^ *+' conftest.er1
>conftest.err
14371 cat conftest.err
>&5
14372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); } && {
14374 test -z "$ac_c_werror_flag" ||
14375 test ! -s conftest.err
14376 } && test -s conftest
$ac_exeext && {
14377 test "$cross_compiling" = yes ||
14378 $as_test_x conftest
$ac_exeext
14380 ac_cv_lib_Xft_XftFontOpen
=yes
14382 $as_echo "$as_me: failed program was:" >&5
14383 sed 's/^/| /' conftest.
$ac_ext >&5
14385 ac_cv_lib_Xft_XftFontOpen
=no
14388 rm -rf conftest.dSYM
14389 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14390 conftest
$ac_exeext conftest.
$ac_ext
14391 LIBS
=$ac_check_lib_save_LIBS
14393 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14394 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14395 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14403 if test "${HAVE_XFT}" = "yes"; then
14405 cat >>confdefs.h
<<\_ACEOF
14410 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14412 CPPFLAGS
="$OLD_CPPFLAGS"
14413 CFLAGS
="$OLD_CFLAGS"
14415 fi # "${HAVE_XFT}" = "yes"
14416 fi # "$HAVE_XFT" != no
14417 fi # "x${with_xft}" != "xno"
14419 if test "$HAVE_XFT" != "yes"; then
14425 ## We used to allow building with FreeType and without Xft.
14426 ## However, the ftx font backend driver is not in good shape.
14427 if test "${HAVE_XFT}" = "yes"; then
14434 if test "${HAVE_FREETYPE}" = "yes"; then
14436 cat >>confdefs.h
<<\_ACEOF
14437 #define HAVE_FREETYPE 1
14440 if test "${with_libotf}" != "no"; then
14444 # Extract the first word of "pkg-config", so it can be a program name with args.
14445 set dummy pkg-config
; ac_word
=$2
14446 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14447 $as_echo_n "checking for $ac_word... " >&6; }
14448 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14449 $as_echo_n "(cached) " >&6
14451 case $PKG_CONFIG in
14453 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14457 for as_dir
in $PATH
14460 test -z "$as_dir" && as_dir
=.
14461 for ac_exec_ext
in '' $ac_executable_extensions; do
14462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14463 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14471 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14475 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14476 if test -n "$PKG_CONFIG"; then
14477 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14478 $as_echo "$PKG_CONFIG" >&6; }
14480 { $as_echo "$as_me:$LINENO: result: no" >&5
14481 $as_echo "no" >&6; }
14486 if test "$PKG_CONFIG" = "no" ; then
14489 PKG_CONFIG_MIN_VERSION
=0.9.0
14490 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14491 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14492 $as_echo_n "checking for libotf... " >&6; }
14494 if $PKG_CONFIG --exists "libotf" 2>&5; then
14495 { $as_echo "$as_me:$LINENO: result: yes" >&5
14496 $as_echo "yes" >&6; }
14499 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14500 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14501 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14502 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14503 $as_echo "$LIBOTF_CFLAGS" >&6; }
14505 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14506 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14507 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14508 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14509 $as_echo "$LIBOTF_LIBS" >&6; }
14511 { $as_echo "$as_me:$LINENO: result: no" >&5
14512 $as_echo "no" >&6; }
14515 ## If we have a custom action on failure, don't print errors, but
14516 ## do set a variable so people can do so.
14517 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14524 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14525 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14529 if test $succeeded = yes; then
14535 if test "$HAVE_LIBOTF" = "yes"; then
14537 cat >>confdefs.h
<<\_ACEOF
14538 #define HAVE_LIBOTF 1
14541 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14542 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14543 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14544 $as_echo_n "(cached) " >&6
14546 ac_check_lib_save_LIBS
=$LIBS
14548 cat >conftest.
$ac_ext <<_ACEOF
14551 cat confdefs.h
>>conftest.
$ac_ext
14552 cat >>conftest.
$ac_ext <<_ACEOF
14553 /* end confdefs.h. */
14555 /* Override any GCC internal prototype to avoid an error.
14556 Use char because int might match the return type of a GCC
14557 builtin and then its argument prototype would still apply. */
14561 char OTF_get_variation_glyphs ();
14565 return OTF_get_variation_glyphs ();
14570 rm -f conftest.
$ac_objext conftest
$ac_exeext
14571 if { (ac_try
="$ac_link"
14572 case "(($ac_try" in
14573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14574 *) ac_try_echo=$ac_try;;
14576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14577 $as_echo "$ac_try_echo") >&5
14578 (eval "$ac_link") 2>conftest.er1
14580 grep -v '^ *+' conftest.er1 >conftest.err
14582 cat conftest.err >&5
14583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } && {
14585 test -z "$ac_c_werror_flag" ||
14586 test ! -s conftest.err
14587 } && test -s conftest$ac_exeext && {
14588 test "$cross_compiling" = yes ||
14589 $as_test_x conftest$ac_exeext
14591 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14593 $as_echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14596 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14599 rm -rf conftest.dSYM
14600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14601 conftest$ac_exeext conftest.$ac_ext
14602 LIBS=$ac_check_lib_save_LIBS
14604 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14605 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14606 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14607 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14609 HAVE_OTF_GET_VARIATION_GLYPHS=no
14612 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14614 cat >>confdefs.h <<\_ACEOF
14615 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14624 if test "${HAVE_LIBOTF}" = yes; then
14625 if test "${with_m17n_flt}" != "no"; then
14629 # Extract the first word of "pkg-config", so it can be a program name with args.
14630 set dummy pkg-config; ac_word=$2
14631 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14632 $as_echo_n "checking for $ac_word... " >&6; }
14633 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14634 $as_echo_n "(cached) " >&6
14636 case $PKG_CONFIG in
14638 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14642 for as_dir in $PATH
14645 test -z "$as_dir" && as_dir=.
14646 for ac_exec_ext in '' $ac_executable_extensions; do
14647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14648 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14656 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14660 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14661 if test -n "$PKG_CONFIG"; then
14662 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14663 $as_echo "$PKG_CONFIG" >&6; }
14665 { $as_echo "$as_me:$LINENO: result: no" >&5
14666 $as_echo "no" >&6; }
14671 if test "$PKG_CONFIG" = "no" ; then
14674 PKG_CONFIG_MIN_VERSION=0.9.0
14675 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14676 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14677 $as_echo_n "checking for m17n-flt... " >&6; }
14679 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14680 { $as_echo "$as_me:$LINENO: result: yes" >&5
14681 $as_echo "yes" >&6; }
14684 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14685 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14686 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14687 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14688 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14690 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14691 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14692 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14693 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14694 $as_echo "$M17N_FLT_LIBS" >&6; }
14696 { $as_echo "$as_me:$LINENO: result: no" >&5
14697 $as_echo "no" >&6; }
14700 ## If we have a custom action on failure, don't print errors, but
14701 ## do set a variable so people can do so.
14702 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14709 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14710 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14714 if test $succeeded = yes; then
14720 if test "$HAVE_M17N_FLT" = "yes"; then
14722 cat >>confdefs.h <<\_ACEOF
14723 #define HAVE_M17N_FLT 1
14736 ### End of font-backend (under X11) section.
14747 ### Use -lXpm if available, unless `--with-xpm=no
'.
14750 if test "${HAVE_X11}" = "yes"; then
14751 if test "${with_xpm}" != "no"; then
14752 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14753 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14754 $as_echo_n "checking for X11/xpm.h... " >&6; }
14755 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14756 $as_echo_n "(cached) " >&6
14758 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14759 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14761 # Is the header compilable?
14762 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14763 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14764 cat >conftest.$ac_ext <<_ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h. */
14770 $ac_includes_default
14771 #include <X11/xpm.h>
14773 rm -f conftest.$ac_objext
14774 if { (ac_try="$ac_compile"
14775 case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14780 $as_echo "$ac_try_echo") >&5
14781 (eval "$ac_compile") 2>conftest.er1
14783 grep -v '^
*+' conftest.er1 >conftest.err
14785 cat conftest.err >&5
14786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); } && {
14788 test -z "$ac_c_werror_flag" ||
14789 test ! -s conftest.err
14790 } && test -s conftest.$ac_objext; then
14791 ac_header_compiler=yes
14793 $as_echo "$as_me: failed program was:" >&5
14794 sed 's
/^
/|
/' conftest.$ac_ext >&5
14796 ac_header_compiler=no
14799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14800 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14801 $as_echo "$ac_header_compiler" >&6; }
14803 # Is the header present?
14804 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14805 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14806 cat >conftest.$ac_ext <<_ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14812 #include <X11/xpm.h>
14814 if { (ac_try="$ac_cpp conftest.$ac_ext"
14815 case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14820 $as_echo "$ac_try_echo") >&5
14821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14823 grep -v '^
*+' conftest.er1 >conftest.err
14825 cat conftest.err >&5
14826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } >/dev/null && {
14828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14829 test ! -s conftest.err
14831 ac_header_preproc=yes
14833 $as_echo "$as_me: failed program was:" >&5
14834 sed 's
/^
/|
/' conftest.$ac_ext >&5
14836 ac_header_preproc=no
14839 rm -f conftest.err conftest.$ac_ext
14840 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14841 $as_echo "$ac_header_preproc" >&6; }
14843 # So? What about this header?
14844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14846 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14847 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14848 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14849 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14850 ac_header_preproc=yes
14853 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14854 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14855 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14856 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14857 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14858 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14859 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14860 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14861 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14862 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14863 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14864 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14868 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14869 $as_echo_n "checking for X11/xpm.h... " >&6; }
14870 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14871 $as_echo_n "(cached) " >&6
14873 ac_cv_header_X11_xpm_h=$ac_header_preproc
14875 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14876 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14879 if test $ac_cv_header_X11_xpm_h = yes; then
14880 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14881 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14882 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14883 $as_echo_n "(cached) " >&6
14885 ac_check_lib_save_LIBS=$LIBS
14886 LIBS="-lXpm -lX11 $LIBS"
14887 cat >conftest.$ac_ext <<_ACEOF
14890 cat confdefs.h >>conftest.$ac_ext
14891 cat >>conftest.$ac_ext <<_ACEOF
14892 /* end confdefs.h. */
14894 /* Override any GCC internal prototype to avoid an error.
14895 Use char because int might match the return type of a GCC
14896 builtin and then its argument prototype would still apply. */
14900 char XpmReadFileToPixmap ();
14904 return XpmReadFileToPixmap ();
14909 rm -f conftest.$ac_objext conftest$ac_exeext
14910 if { (ac_try="$ac_link"
14911 case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14916 $as_echo "$ac_try_echo") >&5
14917 (eval "$ac_link") 2>conftest.er1
14919 grep -v '^
*+' conftest.er1 >conftest.err
14921 cat conftest.err >&5
14922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } && {
14924 test -z "$ac_c_werror_flag" ||
14925 test ! -s conftest.err
14926 } && test -s conftest$ac_exeext && {
14927 test "$cross_compiling" = yes ||
14928 $as_test_x conftest$ac_exeext
14930 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14932 $as_echo "$as_me: failed program was:" >&5
14933 sed 's
/^
/|
/' conftest.$ac_ext >&5
14935 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14938 rm -rf conftest.dSYM
14939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14940 conftest$ac_exeext conftest.$ac_ext
14941 LIBS=$ac_check_lib_save_LIBS
14943 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14944 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14945 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14952 if test "${HAVE_XPM}" = "yes"; then
14953 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14954 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14955 cat >conftest.$ac_ext <<_ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 #include "X11/xpm.h"
14962 #ifndef XpmReturnAllocPixels
14963 no_return_alloc_pixels
14967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14968 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14976 if test "${HAVE_XPM}" = "yes"; then
14977 { $as_echo "$as_me:$LINENO: result: yes" >&5
14978 $as_echo "yes" >&6; }
14980 { $as_echo "$as_me:$LINENO: result: no" >&5
14981 $as_echo "no" >&6; }
14986 if test "${HAVE_XPM}" = "yes"; then
14988 cat >>confdefs.h <<\_ACEOF
14997 ### Use -ljpeg if available, unless `--with-jpeg=no'.
15000 if test "${HAVE_X11}" = "yes"; then
15001 if test "${with_jpeg}" != "no"; then
15002 if test "${ac_cv_header_jerror_h+set}" = set; then
15003 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15004 $as_echo_n "checking for jerror.h... " >&6; }
15005 if test "${ac_cv_header_jerror_h+set}" = set; then
15006 $as_echo_n "(cached) " >&6
15008 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15009 $as_echo "$ac_cv_header_jerror_h" >&6; }
15011 # Is the header compilable?
15012 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
15013 $as_echo_n "checking jerror.h usability... " >&6; }
15014 cat >conftest.
$ac_ext <<_ACEOF
15017 cat confdefs.h
>>conftest.
$ac_ext
15018 cat >>conftest.
$ac_ext <<_ACEOF
15019 /* end confdefs.h. */
15020 $ac_includes_default
15021 #include <jerror.h>
15023 rm -f conftest.
$ac_objext
15024 if { (ac_try
="$ac_compile"
15025 case "(($ac_try" in
15026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15030 $as_echo "$ac_try_echo") >&5
15031 (eval "$ac_compile") 2>conftest.er1
15033 grep -v '^ *+' conftest.er1 >conftest.err
15035 cat conftest.err >&5
15036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest.$ac_objext; then
15041 ac_header_compiler=yes
15043 $as_echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 ac_header_compiler=no
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15050 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15051 $as_echo "$ac_header_compiler" >&6; }
15053 # Is the header present?
15054 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15055 $as_echo_n "checking jerror.h presence... " >&6; }
15056 cat >conftest.$ac_ext <<_ACEOF
15059 cat confdefs.h >>conftest.$ac_ext
15060 cat >>conftest.$ac_ext <<_ACEOF
15061 /* end confdefs.h. */
15062 #include <jerror.h>
15064 if { (ac_try="$ac_cpp conftest.$ac_ext"
15065 case "(($ac_try" in
15066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15067 *) ac_try_echo
=$ac_try;;
15069 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15070 $as_echo "$ac_try_echo") >&5
15071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15073 grep -v '^ *+' conftest.er1
>conftest.err
15075 cat conftest.err
>&5
15076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); } >/dev
/null
&& {
15078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15079 test ! -s conftest.err
15081 ac_header_preproc
=yes
15083 $as_echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.
$ac_ext >&5
15086 ac_header_preproc
=no
15089 rm -f conftest.err conftest.
$ac_ext
15090 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15091 $as_echo "$ac_header_preproc" >&6; }
15093 # So? What about this header?
15094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15096 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15097 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15098 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15099 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15100 ac_header_preproc
=yes
15103 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15104 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15105 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15106 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15107 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15108 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15109 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15110 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15111 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15112 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15113 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15114 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15118 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15119 $as_echo_n "checking for jerror.h... " >&6; }
15120 if test "${ac_cv_header_jerror_h+set}" = set; then
15121 $as_echo_n "(cached) " >&6
15123 ac_cv_header_jerror_h
=$ac_header_preproc
15125 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15126 $as_echo "$ac_cv_header_jerror_h" >&6; }
15129 if test $ac_cv_header_jerror_h = yes; then
15130 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15131 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15132 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15133 $as_echo_n "(cached) " >&6
15135 ac_check_lib_save_LIBS
=$LIBS
15136 LIBS
="-ljpeg $LIBS"
15137 cat >conftest.
$ac_ext <<_ACEOF
15140 cat confdefs.h
>>conftest.
$ac_ext
15141 cat >>conftest.
$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15144 /* Override any GCC internal prototype to avoid an error.
15145 Use char because int might match the return type of a GCC
15146 builtin and then its argument prototype would still apply. */
15150 char jpeg_destroy_compress ();
15154 return jpeg_destroy_compress ();
15159 rm -f conftest.
$ac_objext conftest
$ac_exeext
15160 if { (ac_try
="$ac_link"
15161 case "(($ac_try" in
15162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15166 $as_echo "$ac_try_echo") >&5
15167 (eval "$ac_link") 2>conftest.er1
15169 grep -v '^ *+' conftest.er1 >conftest.err
15171 cat conftest.err >&5
15172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } && {
15174 test -z "$ac_c_werror_flag" ||
15175 test ! -s conftest.err
15176 } && test -s conftest$ac_exeext && {
15177 test "$cross_compiling" = yes ||
15178 $as_test_x conftest$ac_exeext
15180 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15182 $as_echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15185 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15188 rm -rf conftest.dSYM
15189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15190 conftest$ac_exeext conftest.$ac_ext
15191 LIBS=$ac_check_lib_save_LIBS
15193 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15194 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15195 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15205 if test "${HAVE_JPEG}" = "yes"; then
15206 cat >>confdefs.h <<\_ACEOF
15207 #define HAVE_JPEG 1
15210 cat >conftest.$ac_ext <<_ACEOF
15213 cat confdefs.h >>conftest.$ac_ext
15214 cat >>conftest.$ac_ext <<_ACEOF
15215 /* end confdefs.h. */
15216 #include <jpeglib.h>
15217 version=JPEG_LIB_VERSION
15220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15221 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15222 cat >>confdefs.h <<\_ACEOF
15223 #define HAVE_JPEG 1
15227 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15228 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15234 if test "${HAVE_JPEG}" = "yes"; then
15240 ### Use -lpng if available, unless `--with-png=no
'.
15243 if test "${HAVE_X11}" = "yes"; then
15244 if test "${with_png}" != "no"; then
15245 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15246 # in /usr/include/libpng.
15249 for ac_header in png.h libpng/png.h
15251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15253 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15254 $as_echo_n "checking for $ac_header... " >&6; }
15255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15256 $as_echo_n "(cached) " >&6
15258 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15259 $as_echo "$as_val"'`
15260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15261 $as_echo "$ac_res" >&6; }
15263 # Is the header compilable?
15264 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15265 $as_echo_n "checking $ac_header usability... " >&6; }
15266 cat >conftest.$ac_ext <<_ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h. */
15272 $ac_includes_default
15273 #include <$ac_header>
15275 rm -f conftest.$ac_objext
15276 if { (ac_try="$ac_compile"
15277 case "(($ac_try" in
15278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15279 *) ac_try_echo=$ac_try;;
15281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15282 $as_echo "$ac_try_echo") >&5
15283 (eval "$ac_compile") 2>conftest.er1
15285 grep -v '^
*+' conftest.er1 >conftest.err
15287 cat conftest.err >&5
15288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } && {
15290 test -z "$ac_c_werror_flag" ||
15291 test ! -s conftest.err
15292 } && test -s conftest.$ac_objext; then
15293 ac_header_compiler=yes
15295 $as_echo "$as_me: failed program was:" >&5
15296 sed 's
/^
/|
/' conftest.$ac_ext >&5
15298 ac_header_compiler=no
15301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15302 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15303 $as_echo "$ac_header_compiler" >&6; }
15305 # Is the header present?
15306 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15307 $as_echo_n "checking $ac_header presence... " >&6; }
15308 cat >conftest.$ac_ext <<_ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15314 #include <$ac_header>
15316 if { (ac_try="$ac_cpp conftest.$ac_ext"
15317 case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15322 $as_echo "$ac_try_echo") >&5
15323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15325 grep -v '^
*+' conftest.er1 >conftest.err
15327 cat conftest.err >&5
15328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } >/dev/null && {
15330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15331 test ! -s conftest.err
15333 ac_header_preproc=yes
15335 $as_echo "$as_me: failed program was:" >&5
15336 sed 's
/^
/|
/' conftest.$ac_ext >&5
15338 ac_header_preproc=no
15341 rm -f conftest.err conftest.$ac_ext
15342 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15343 $as_echo "$ac_header_preproc" >&6; }
15345 # So? What about this header?
15346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15349 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
15351 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
15352 ac_header_preproc=yes
15355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15356 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15358 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15360 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15362 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
15364 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
15365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15366 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15370 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15371 $as_echo_n "checking for $ac_header... " >&6; }
15372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15373 $as_echo_n "(cached) " >&6
15375 eval "$as_ac_Header=\$ac_header_preproc"
15377 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15378 $as_echo "$as_val"'`
15379 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15380 $as_echo "$ac_res" >&6; }
15383 if test `eval 'as_val
=${'$as_ac_Header'}
15384 $as_echo "$as_val"'` = yes; then
15385 cat >>confdefs.h <<_ACEOF
15386 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15393 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15394 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15395 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15396 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15397 $as_echo_n "(cached) " >&6
15399 ac_check_lib_save_LIBS=$LIBS
15400 LIBS="-lpng -lz -lm $LIBS"
15401 cat >conftest.$ac_ext <<_ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h. */
15408 /* Override any GCC internal prototype to avoid an error.
15409 Use char because int might match the return type of a GCC
15410 builtin and then its argument prototype would still apply. */
15414 char png_get_channels ();
15418 return png_get_channels ();
15423 rm -f conftest.$ac_objext conftest$ac_exeext
15424 if { (ac_try="$ac_link"
15425 case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15430 $as_echo "$ac_try_echo") >&5
15431 (eval "$ac_link") 2>conftest.er1
15433 grep -v '^
*+' conftest.er1 >conftest.err
15435 cat conftest.err >&5
15436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } && {
15438 test -z "$ac_c_werror_flag" ||
15439 test ! -s conftest.err
15440 } && test -s conftest$ac_exeext && {
15441 test "$cross_compiling" = yes ||
15442 $as_test_x conftest$ac_exeext
15444 ac_cv_lib_png_png_get_channels=yes
15446 $as_echo "$as_me: failed program was:" >&5
15447 sed 's
/^
/|
/' conftest.$ac_ext >&5
15449 ac_cv_lib_png_png_get_channels=no
15452 rm -rf conftest.dSYM
15453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15454 conftest$ac_exeext conftest.$ac_ext
15455 LIBS=$ac_check_lib_save_LIBS
15457 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15458 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15459 if test $ac_cv_lib_png_png_get_channels = yes; then
15466 if test "${HAVE_PNG}" = "yes"; then
15468 cat >>confdefs.h <<\_ACEOF
15472 LIBPNG="-lpng -lz -lm"
15477 ### Use -ltiff if available, unless `--with-tiff=no'.
15480 if test "${HAVE_X11}" = "yes"; then
15481 if test "${with_tiff}" != "no"; then
15482 if test "${ac_cv_header_tiffio_h+set}" = set; then
15483 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15484 $as_echo_n "checking for tiffio.h... " >&6; }
15485 if test "${ac_cv_header_tiffio_h+set}" = set; then
15486 $as_echo_n "(cached) " >&6
15488 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15489 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15491 # Is the header compilable?
15492 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15493 $as_echo_n "checking tiffio.h usability... " >&6; }
15494 cat >conftest.
$ac_ext <<_ACEOF
15497 cat confdefs.h
>>conftest.
$ac_ext
15498 cat >>conftest.
$ac_ext <<_ACEOF
15499 /* end confdefs.h. */
15500 $ac_includes_default
15501 #include <tiffio.h>
15503 rm -f conftest.
$ac_objext
15504 if { (ac_try
="$ac_compile"
15505 case "(($ac_try" in
15506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15510 $as_echo "$ac_try_echo") >&5
15511 (eval "$ac_compile") 2>conftest.er1
15513 grep -v '^ *+' conftest.er1 >conftest.err
15515 cat conftest.err >&5
15516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } && {
15518 test -z "$ac_c_werror_flag" ||
15519 test ! -s conftest.err
15520 } && test -s conftest.$ac_objext; then
15521 ac_header_compiler=yes
15523 $as_echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 ac_header_compiler=no
15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15531 $as_echo "$ac_header_compiler" >&6; }
15533 # Is the header present?
15534 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15535 $as_echo_n "checking tiffio.h presence... " >&6; }
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 #include <tiffio.h>
15544 if { (ac_try="$ac_cpp conftest.$ac_ext"
15545 case "(($ac_try" in
15546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15547 *) ac_try_echo
=$ac_try;;
15549 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15550 $as_echo "$ac_try_echo") >&5
15551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15553 grep -v '^ *+' conftest.er1
>conftest.err
15555 cat conftest.err
>&5
15556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } >/dev
/null
&& {
15558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15559 test ! -s conftest.err
15561 ac_header_preproc
=yes
15563 $as_echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.
$ac_ext >&5
15566 ac_header_preproc
=no
15569 rm -f conftest.err conftest.
$ac_ext
15570 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15571 $as_echo "$ac_header_preproc" >&6; }
15573 # So? What about this header?
15574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15576 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15577 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15578 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15579 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15580 ac_header_preproc
=yes
15583 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15584 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15585 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15586 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15587 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15588 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15589 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15590 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15591 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15592 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15593 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15594 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15598 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15599 $as_echo_n "checking for tiffio.h... " >&6; }
15600 if test "${ac_cv_header_tiffio_h+set}" = set; then
15601 $as_echo_n "(cached) " >&6
15603 ac_cv_header_tiffio_h
=$ac_header_preproc
15605 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15606 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15609 if test $ac_cv_header_tiffio_h = yes; then
15611 # At least one tiff package requires the jpeg library.
15612 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15613 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15614 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15615 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15616 $as_echo_n "(cached) " >&6
15618 ac_check_lib_save_LIBS
=$LIBS
15619 LIBS
="-ltiff $tifflibs $LIBS"
15620 cat >conftest.
$ac_ext <<_ACEOF
15623 cat confdefs.h
>>conftest.
$ac_ext
15624 cat >>conftest.
$ac_ext <<_ACEOF
15625 /* end confdefs.h. */
15627 /* Override any GCC internal prototype to avoid an error.
15628 Use char because int might match the return type of a GCC
15629 builtin and then its argument prototype would still apply. */
15633 char TIFFGetVersion ();
15637 return TIFFGetVersion ();
15642 rm -f conftest.
$ac_objext conftest
$ac_exeext
15643 if { (ac_try
="$ac_link"
15644 case "(($ac_try" in
15645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15649 $as_echo "$ac_try_echo") >&5
15650 (eval "$ac_link") 2>conftest.er1
15652 grep -v '^ *+' conftest.er1 >conftest.err
15654 cat conftest.err >&5
15655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } && {
15657 test -z "$ac_c_werror_flag" ||
15658 test ! -s conftest.err
15659 } && test -s conftest$ac_exeext && {
15660 test "$cross_compiling" = yes ||
15661 $as_test_x conftest$ac_exeext
15663 ac_cv_lib_tiff_TIFFGetVersion=yes
15665 $as_echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15668 ac_cv_lib_tiff_TIFFGetVersion=no
15671 rm -rf conftest.dSYM
15672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15673 conftest$ac_exeext conftest.$ac_ext
15674 LIBS=$ac_check_lib_save_LIBS
15676 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15677 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15678 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15687 if test "${HAVE_TIFF}" = "yes"; then
15689 cat >>confdefs.h <<\_ACEOF
15690 #define HAVE_TIFF 1
15698 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15701 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15702 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15703 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15704 $as_echo_n "checking for gif_lib.h... " >&6; }
15705 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15706 $as_echo_n "(cached) " >&6
15708 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15709 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15711 # Is the header compilable?
15712 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15713 $as_echo_n "checking gif_lib.h usability... " >&6; }
15714 cat >conftest.$ac_ext <<_ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 $ac_includes_default
15721 #include <gif_lib.h>
15723 rm -f conftest.$ac_objext
15724 if { (ac_try="$ac_compile"
15725 case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15730 $as_echo "$ac_try_echo") >&5
15731 (eval "$ac_compile") 2>conftest.er1
15733 grep -v '^
*+' conftest.er1 >conftest.err
15735 cat conftest.err >&5
15736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } && {
15738 test -z "$ac_c_werror_flag" ||
15739 test ! -s conftest.err
15740 } && test -s conftest.$ac_objext; then
15741 ac_header_compiler=yes
15743 $as_echo "$as_me: failed program was:" >&5
15744 sed 's
/^
/|
/' conftest.$ac_ext >&5
15746 ac_header_compiler=no
15749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15750 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15751 $as_echo "$ac_header_compiler" >&6; }
15753 # Is the header present?
15754 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15755 $as_echo_n "checking gif_lib.h presence... " >&6; }
15756 cat >conftest.$ac_ext <<_ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 #include <gif_lib.h>
15764 if { (ac_try="$ac_cpp conftest.$ac_ext"
15765 case "(($ac_try" in
15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15767 *) ac_try_echo=$ac_try;;
15769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15770 $as_echo "$ac_try_echo") >&5
15771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15773 grep -v '^
*+' conftest.er1 >conftest.err
15775 cat conftest.err >&5
15776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } >/dev/null && {
15778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15779 test ! -s conftest.err
15781 ac_header_preproc=yes
15783 $as_echo "$as_me: failed program was:" >&5
15784 sed 's
/^
/|
/' conftest.$ac_ext >&5
15786 ac_header_preproc=no
15789 rm -f conftest.err conftest.$ac_ext
15790 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15791 $as_echo "$ac_header_preproc" >&6; }
15793 # So? What about this header?
15794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15796 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15797 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15798 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15799 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15800 ac_header_preproc=yes
15803 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15804 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15805 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15806 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15807 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15808 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15809 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15810 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15811 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15812 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15813 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15814 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15818 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15819 $as_echo_n "checking for gif_lib.h... " >&6; }
15820 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15821 $as_echo_n "(cached) " >&6
15823 ac_cv_header_gif_lib_h=$ac_header_preproc
15825 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15826 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15829 if test $ac_cv_header_gif_lib_h = yes; then
15830 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15831 # Earlier versions can crash Emacs.
15832 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15833 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15834 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15835 $as_echo_n "(cached) " >&6
15837 ac_check_lib_save_LIBS=$LIBS
15839 cat >conftest.$ac_ext <<_ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15846 /* Override any GCC internal prototype to avoid an error.
15847 Use char because int might match the return type of a GCC
15848 builtin and then its argument prototype would still apply. */
15852 char EGifPutExtensionLast ();
15856 return EGifPutExtensionLast ();
15861 rm -f conftest.$ac_objext conftest$ac_exeext
15862 if { (ac_try="$ac_link"
15863 case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15868 $as_echo "$ac_try_echo") >&5
15869 (eval "$ac_link") 2>conftest.er1
15871 grep -v '^
*+' conftest.er1 >conftest.err
15873 cat conftest.err >&5
15874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } && {
15876 test -z "$ac_c_werror_flag" ||
15877 test ! -s conftest.err
15878 } && test -s conftest$ac_exeext && {
15879 test "$cross_compiling" = yes ||
15880 $as_test_x conftest$ac_exeext
15882 ac_cv_lib_gif_EGifPutExtensionLast=yes
15884 $as_echo "$as_me: failed program was:" >&5
15885 sed 's
/^
/|
/' conftest.$ac_ext >&5
15887 ac_cv_lib_gif_EGifPutExtensionLast=no
15890 rm -rf conftest.dSYM
15891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15892 conftest$ac_exeext conftest.$ac_ext
15893 LIBS=$ac_check_lib_save_LIBS
15895 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15896 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15897 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15907 if test "$HAVE_GIF" = yes; then
15909 elif test "$HAVE_GIF" = maybe; then
15910 # If gif_lib.h but no libgif, try libungif.
15911 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15912 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15913 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15914 $as_echo_n "(cached) " >&6
15916 ac_check_lib_save_LIBS=$LIBS
15917 LIBS="-lungif $LIBS"
15918 cat >conftest.$ac_ext <<_ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15925 /* Override any GCC internal prototype to avoid an error.
15926 Use char because int might match the return type of a GCC
15927 builtin and then its argument prototype would still apply. */
15931 char EGifPutExtensionLast ();
15935 return EGifPutExtensionLast ();
15940 rm -f conftest.$ac_objext conftest$ac_exeext
15941 if { (ac_try="$ac_link"
15942 case "(($ac_try" in
15943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15944 *) ac_try_echo=$ac_try;;
15946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15947 $as_echo "$ac_try_echo") >&5
15948 (eval "$ac_link") 2>conftest.er1
15950 grep -v '^
*+' conftest.er1 >conftest.err
15952 cat conftest.err >&5
15953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); } && {
15955 test -z "$ac_c_werror_flag" ||
15956 test ! -s conftest.err
15957 } && test -s conftest$ac_exeext && {
15958 test "$cross_compiling" = yes ||
15959 $as_test_x conftest$ac_exeext
15961 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15963 $as_echo "$as_me: failed program was:" >&5
15964 sed 's
/^
/|
/' conftest.$ac_ext >&5
15966 ac_cv_lib_ungif_EGifPutExtensionLast=no
15969 rm -rf conftest.dSYM
15970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15971 conftest$ac_exeext conftest.$ac_ext
15972 LIBS=$ac_check_lib_save_LIBS
15974 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15975 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15976 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15982 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15985 if test "${HAVE_GIF}" = "yes"; then
15987 cat >>confdefs.h <<\_ACEOF
15995 if test "${HAVE_X11}" = "yes"; then
15998 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15999 MISSING="libXpm" && WITH_NO="--with-xpm=no"
16000 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
16001 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
16002 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
16003 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
16004 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
16005 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
16006 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
16007 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
16009 if test "X${MISSING}" != X; then
16010 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
16012 Maybe some development libraries/packages are missing?
16013 If you don't want to link with them give
16015 as options to configure
" >&5
16016 $as_echo "$as_me: error
: The following required libraries were not found
:
16018 Maybe some development libraries
/packages are missing?
16019 If you don
't want to link with them give
16021 as options to configure" >&2;}
16022 { (exit 1); exit 1; }; }
16026 ### Use -lgpm if available, unless `--with-gpm=no'.
16030 if test "${with_gpm}" != "no"; then
16031 if test "${ac_cv_header_gpm_h+set}" = set; then
16032 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16033 $as_echo_n "checking for gpm.h... " >&6; }
16034 if test "${ac_cv_header_gpm_h+set}" = set; then
16035 $as_echo_n "(cached) " >&6
16037 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16038 $as_echo "$ac_cv_header_gpm_h" >&6; }
16040 # Is the header compilable?
16041 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16042 $as_echo_n "checking gpm.h usability... " >&6; }
16043 cat >conftest.
$ac_ext <<_ACEOF
16046 cat confdefs.h
>>conftest.
$ac_ext
16047 cat >>conftest.
$ac_ext <<_ACEOF
16048 /* end confdefs.h. */
16049 $ac_includes_default
16052 rm -f conftest.
$ac_objext
16053 if { (ac_try
="$ac_compile"
16054 case "(($ac_try" in
16055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16056 *) ac_try_echo=$ac_try;;
16058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16059 $as_echo "$ac_try_echo") >&5
16060 (eval "$ac_compile") 2>conftest.er1
16062 grep -v '^ *+' conftest.er1 >conftest.err
16064 cat conftest.err >&5
16065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); } && {
16067 test -z "$ac_c_werror_flag" ||
16068 test ! -s conftest.err
16069 } && test -s conftest.$ac_objext; then
16070 ac_header_compiler=yes
16072 $as_echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16075 ac_header_compiler=no
16078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16080 $as_echo "$ac_header_compiler" >&6; }
16082 # Is the header present?
16083 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16084 $as_echo_n "checking gpm.h presence... " >&6; }
16085 cat >conftest.$ac_ext <<_ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16093 if { (ac_try="$ac_cpp conftest.$ac_ext"
16094 case "(($ac_try" in
16095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16096 *) ac_try_echo
=$ac_try;;
16098 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16099 $as_echo "$ac_try_echo") >&5
16100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16102 grep -v '^ *+' conftest.er1
>conftest.err
16104 cat conftest.err
>&5
16105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } >/dev
/null
&& {
16107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16108 test ! -s conftest.err
16110 ac_header_preproc
=yes
16112 $as_echo "$as_me: failed program was:" >&5
16113 sed 's/^/| /' conftest.
$ac_ext >&5
16115 ac_header_preproc
=no
16118 rm -f conftest.err conftest.
$ac_ext
16119 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16120 $as_echo "$ac_header_preproc" >&6; }
16122 # So? What about this header?
16123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16125 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16126 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16127 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16128 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16129 ac_header_preproc
=yes
16132 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16133 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16134 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16135 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16136 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16137 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16138 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16139 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16140 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16141 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16142 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16143 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16147 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16148 $as_echo_n "checking for gpm.h... " >&6; }
16149 if test "${ac_cv_header_gpm_h+set}" = set; then
16150 $as_echo_n "(cached) " >&6
16152 ac_cv_header_gpm_h
=$ac_header_preproc
16154 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16155 $as_echo "$ac_cv_header_gpm_h" >&6; }
16158 if test $ac_cv_header_gpm_h = yes; then
16159 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16160 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16161 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16162 $as_echo_n "(cached) " >&6
16164 ac_check_lib_save_LIBS
=$LIBS
16166 cat >conftest.
$ac_ext <<_ACEOF
16169 cat confdefs.h
>>conftest.
$ac_ext
16170 cat >>conftest.
$ac_ext <<_ACEOF
16171 /* end confdefs.h. */
16173 /* Override any GCC internal prototype to avoid an error.
16174 Use char because int might match the return type of a GCC
16175 builtin and then its argument prototype would still apply. */
16183 return Gpm_Open ();
16188 rm -f conftest.
$ac_objext conftest
$ac_exeext
16189 if { (ac_try
="$ac_link"
16190 case "(($ac_try" in
16191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16195 $as_echo "$ac_try_echo") >&5
16196 (eval "$ac_link") 2>conftest.er1
16198 grep -v '^ *+' conftest.er1 >conftest.err
16200 cat conftest.err >&5
16201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202 (exit $ac_status); } && {
16203 test -z "$ac_c_werror_flag" ||
16204 test ! -s conftest.err
16205 } && test -s conftest$ac_exeext && {
16206 test "$cross_compiling" = yes ||
16207 $as_test_x conftest$ac_exeext
16209 ac_cv_lib_gpm_Gpm_Open=yes
16211 $as_echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 ac_cv_lib_gpm_Gpm_Open=no
16217 rm -rf conftest.dSYM
16218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16219 conftest$ac_exeext conftest.$ac_ext
16220 LIBS=$ac_check_lib_save_LIBS
16222 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16223 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16224 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16232 if test "${HAVE_GPM}" = "yes"; then
16234 cat >>confdefs.h <<\_ACEOF
16239 ## May be reset below.
16240 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
16245 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16246 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16247 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16248 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16249 $as_echo_n "(cached) " >&6
16251 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16252 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16254 # Is the header compilable?
16255 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16256 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16257 cat >conftest.$ac_ext <<_ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16263 $ac_includes_default
16264 #include <malloc/malloc.h>
16266 rm -f conftest.$ac_objext
16267 if { (ac_try="$ac_compile"
16268 case "(($ac_try" in
16269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16270 *) ac_try_echo
=$ac_try;;
16272 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16273 $as_echo "$ac_try_echo") >&5
16274 (eval "$ac_compile") 2>conftest.er1
16276 grep -v '^ *+' conftest.er1
>conftest.err
16278 cat conftest.err
>&5
16279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } && {
16281 test -z "$ac_c_werror_flag" ||
16282 test ! -s conftest.err
16283 } && test -s conftest.
$ac_objext; then
16284 ac_header_compiler
=yes
16286 $as_echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.
$ac_ext >&5
16289 ac_header_compiler
=no
16292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16293 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16294 $as_echo "$ac_header_compiler" >&6; }
16296 # Is the header present?
16297 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16298 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16299 cat >conftest.
$ac_ext <<_ACEOF
16302 cat confdefs.h
>>conftest.
$ac_ext
16303 cat >>conftest.
$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305 #include <malloc/malloc.h>
16307 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16308 case "(($ac_try" in
16309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16310 *) ac_try_echo=$ac_try;;
16312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16313 $as_echo "$ac_try_echo") >&5
16314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16316 grep -v '^ *+' conftest.er1 >conftest.err
16318 cat conftest.err >&5
16319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } >/dev/null && {
16321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16322 test ! -s conftest.err
16324 ac_header_preproc=yes
16326 $as_echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16329 ac_header_preproc=no
16332 rm -f conftest.err conftest.$ac_ext
16333 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16334 $as_echo "$ac_header_preproc" >&6; }
16336 # So? What about this header?
16337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16339 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16340 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16341 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16342 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16343 ac_header_preproc=yes
16346 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16347 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16348 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16349 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16350 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16351 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16352 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16353 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16354 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16355 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16356 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16357 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16361 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16362 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16363 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16364 $as_echo_n "(cached) " >&6
16366 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16368 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16369 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16372 if test $ac_cv_header_malloc_malloc_h = yes; then
16374 cat >>confdefs.h <<\_ACEOF
16375 #define HAVE_MALLOC_MALLOC_H 1
16383 ### Use NeXTstep API to implement GUI.
16384 if test "${HAVE_NS}" = "yes"; then
16386 cat >>confdefs.h <<\_ACEOF
16390 if test "${NS_IMPL_COCOA}" = "yes"; then
16392 cat >>confdefs.h <<\_ACEOF
16393 #define NS_IMPL_COCOA 1
16398 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16400 cat >>confdefs.h <<\_ACEOF
16401 #define NS_IMPL_GNUSTEP 1
16404 # See also .m.o rule in Makefile.in */
16405 # FIXME: are all these flags really needed? Document here why. */
16406 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16407 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16409 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16411 cat >>confdefs.h <<\_ACEOF
16412 #define NS_HAVE_NSINTEGER 1
16416 # We also have mouse menus.
16422 ### Use session management (-lSM -lICE) if available
16425 if test "${HAVE_X11}" = "yes"; then
16426 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16427 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16428 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16429 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16430 $as_echo_n "(cached) " >&6
16432 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16433 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16435 # Is the header compilable?
16436 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16437 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16438 cat >conftest.$ac_ext <<_ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h. */
16444 $ac_includes_default
16445 #include <X11/SM/SMlib.h>
16447 rm -f conftest.$ac_objext
16448 if { (ac_try="$ac_compile"
16449 case "(($ac_try" in
16450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16451 *) ac_try_echo
=$ac_try;;
16453 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16454 $as_echo "$ac_try_echo") >&5
16455 (eval "$ac_compile") 2>conftest.er1
16457 grep -v '^ *+' conftest.er1
>conftest.err
16459 cat conftest.err
>&5
16460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } && {
16462 test -z "$ac_c_werror_flag" ||
16463 test ! -s conftest.err
16464 } && test -s conftest.
$ac_objext; then
16465 ac_header_compiler
=yes
16467 $as_echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.
$ac_ext >&5
16470 ac_header_compiler
=no
16473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16474 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16475 $as_echo "$ac_header_compiler" >&6; }
16477 # Is the header present?
16478 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16479 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16480 cat >conftest.
$ac_ext <<_ACEOF
16483 cat confdefs.h
>>conftest.
$ac_ext
16484 cat >>conftest.
$ac_ext <<_ACEOF
16485 /* end confdefs.h. */
16486 #include <X11/SM/SMlib.h>
16488 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16489 case "(($ac_try" in
16490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16494 $as_echo "$ac_try_echo") >&5
16495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16497 grep -v '^ *+' conftest.er1 >conftest.err
16499 cat conftest.err >&5
16500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); } >/dev/null && {
16502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16503 test ! -s conftest.err
16505 ac_header_preproc=yes
16507 $as_echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16510 ac_header_preproc=no
16513 rm -f conftest.err conftest.$ac_ext
16514 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16515 $as_echo "$ac_header_preproc" >&6; }
16517 # So? What about this header?
16518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16520 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16521 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16522 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16523 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16524 ac_header_preproc=yes
16527 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16528 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16529 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16530 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16531 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16532 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16533 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16534 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16535 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16536 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16537 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16538 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16542 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16543 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16544 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16545 $as_echo_n "(cached) " >&6
16547 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16549 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16550 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16553 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16554 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16555 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16556 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16557 $as_echo_n "(cached) " >&6
16559 ac_check_lib_save_LIBS=$LIBS
16560 LIBS="-lSM -lICE $LIBS"
16561 cat >conftest.$ac_ext <<_ACEOF
16564 cat confdefs.h >>conftest.$ac_ext
16565 cat >>conftest.$ac_ext <<_ACEOF
16566 /* end confdefs.h. */
16568 /* Override any GCC internal prototype to avoid an error.
16569 Use char because int might match the return type of a GCC
16570 builtin and then its argument prototype would still apply. */
16574 char SmcOpenConnection ();
16578 return SmcOpenConnection ();
16583 rm -f conftest.$ac_objext conftest$ac_exeext
16584 if { (ac_try="$ac_link"
16585 case "(($ac_try" in
16586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16587 *) ac_try_echo
=$ac_try;;
16589 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16590 $as_echo "$ac_try_echo") >&5
16591 (eval "$ac_link") 2>conftest.er1
16593 grep -v '^ *+' conftest.er1
>conftest.err
16595 cat conftest.err
>&5
16596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); } && {
16598 test -z "$ac_c_werror_flag" ||
16599 test ! -s conftest.err
16600 } && test -s conftest
$ac_exeext && {
16601 test "$cross_compiling" = yes ||
16602 $as_test_x conftest
$ac_exeext
16604 ac_cv_lib_SM_SmcOpenConnection
=yes
16606 $as_echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.
$ac_ext >&5
16609 ac_cv_lib_SM_SmcOpenConnection
=no
16612 rm -rf conftest.dSYM
16613 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16614 conftest
$ac_exeext conftest.
$ac_ext
16615 LIBS
=$ac_check_lib_save_LIBS
16617 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16618 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16619 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16627 if test "${HAVE_X_SM}" = "yes"; then
16629 cat >>confdefs.h
<<\_ACEOF
16630 #define HAVE_X_SM 1
16633 LIBXSM
="-lSM -lICE"
16636 *) LIBS
="$LIBXSM $LIBS" ;;
16642 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16643 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16644 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16645 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16646 $as_echo_n "(cached) " >&6
16648 cat >conftest.
$ac_ext <<_ACEOF
16651 cat confdefs.h
>>conftest.
$ac_ext
16652 cat >>conftest.
$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16663 rm -f conftest.
$ac_objext conftest
$ac_exeext
16664 if { (ac_try
="$ac_link"
16665 case "(($ac_try" in
16666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16670 $as_echo "$ac_try_echo") >&5
16671 (eval "$ac_link") 2>conftest.er1
16673 grep -v '^ *+' conftest.er1 >conftest.err
16675 cat conftest.err >&5
16676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); } && {
16678 test -z "$ac_c_werror_flag" ||
16679 test ! -s conftest.err
16680 } && test -s conftest$ac_exeext && {
16681 test "$cross_compiling" = yes ||
16682 $as_test_x conftest$ac_exeext
16684 emacs_cv_netdb_declares_h_errno=yes
16686 $as_echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16689 emacs_cv_netdb_declares_h_errno=no
16692 rm -rf conftest.dSYM
16693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16694 conftest$ac_exeext conftest.$ac_ext
16696 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16697 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16698 if test $emacs_cv_netdb_declares_h_errno = yes; then
16700 cat >>confdefs.h <<\_ACEOF
16701 #define HAVE_H_ERRNO 1
16706 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16707 # for constant arguments. Useless!
16708 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16709 $as_echo_n "checking for working alloca.h... " >&6; }
16710 if test "${ac_cv_working_alloca_h+set}" = set; then
16711 $as_echo_n "(cached) " >&6
16713 cat >conftest.$ac_ext <<_ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16719 #include <alloca.h>
16723 char *p = (char *) alloca (2 * sizeof (int));
16729 rm -f conftest.$ac_objext conftest$ac_exeext
16730 if { (ac_try="$ac_link"
16731 case "(($ac_try" in
16732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16733 *) ac_try_echo
=$ac_try;;
16735 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16736 $as_echo "$ac_try_echo") >&5
16737 (eval "$ac_link") 2>conftest.er1
16739 grep -v '^ *+' conftest.er1
>conftest.err
16741 cat conftest.err
>&5
16742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } && {
16744 test -z "$ac_c_werror_flag" ||
16745 test ! -s conftest.err
16746 } && test -s conftest
$ac_exeext && {
16747 test "$cross_compiling" = yes ||
16748 $as_test_x conftest
$ac_exeext
16750 ac_cv_working_alloca_h
=yes
16752 $as_echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.
$ac_ext >&5
16755 ac_cv_working_alloca_h
=no
16758 rm -rf conftest.dSYM
16759 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16760 conftest
$ac_exeext conftest.
$ac_ext
16762 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16763 $as_echo "$ac_cv_working_alloca_h" >&6; }
16764 if test $ac_cv_working_alloca_h = yes; then
16766 cat >>confdefs.h
<<\_ACEOF
16767 #define HAVE_ALLOCA_H 1
16772 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16773 $as_echo_n "checking for alloca... " >&6; }
16774 if test "${ac_cv_func_alloca_works+set}" = set; then
16775 $as_echo_n "(cached) " >&6
16777 cat >conftest.
$ac_ext <<_ACEOF
16780 cat confdefs.h
>>conftest.
$ac_ext
16781 cat >>conftest.
$ac_ext <<_ACEOF
16782 /* end confdefs.h. */
16784 # define alloca __builtin_alloca
16787 # include <malloc.h>
16788 # define alloca _alloca
16790 # ifdef HAVE_ALLOCA_H
16791 # include <alloca.h>
16796 # ifndef alloca /* predefined by HP cc +Olibcalls */
16807 char *p = (char *) alloca (1);
16813 rm -f conftest.
$ac_objext conftest
$ac_exeext
16814 if { (ac_try
="$ac_link"
16815 case "(($ac_try" in
16816 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16820 $as_echo "$ac_try_echo") >&5
16821 (eval "$ac_link") 2>conftest.er1
16823 grep -v '^ *+' conftest.er1 >conftest.err
16825 cat conftest.err >&5
16826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } && {
16828 test -z "$ac_c_werror_flag" ||
16829 test ! -s conftest.err
16830 } && test -s conftest$ac_exeext && {
16831 test "$cross_compiling" = yes ||
16832 $as_test_x conftest$ac_exeext
16834 ac_cv_func_alloca_works=yes
16836 $as_echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ac_cv_func_alloca_works=no
16842 rm -rf conftest.dSYM
16843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16844 conftest$ac_exeext conftest.$ac_ext
16846 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16847 $as_echo "$ac_cv_func_alloca_works" >&6; }
16849 if test $ac_cv_func_alloca_works = yes; then
16851 cat >>confdefs.h <<\_ACEOF
16852 #define HAVE_ALLOCA 1
16856 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16857 # that cause trouble. Some versions do not even contain alloca or
16858 # contain a buggy version. If you still want to use their alloca,
16859 # use ar to extract alloca.o from them instead of compiling alloca.c.
16861 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16863 cat >>confdefs.h <<\_ACEOF
16868 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16869 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16870 if test "${ac_cv_os_cray+set}" = set; then
16871 $as_echo_n "(cached
) " >&6
16873 cat >conftest.$ac_ext <<_ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16879 #if defined CRAY && ! defined CRAY2
16886 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16887 $EGREP "webecray
" >/dev/null 2>&1; then
16895 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16896 $as_echo "$ac_cv_os_cray" >&6; }
16897 if test $ac_cv_os_cray = yes; then
16898 for ac_func in _getb67 GETB67 getb67; do
16899 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16900 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16901 $as_echo_n "checking
for $ac_func...
" >&6; }
16902 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16903 $as_echo_n "(cached
) " >&6
16905 cat >conftest.$ac_ext <<_ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16913 #define $ac_func innocuous_$ac_func
16915 /* System header to define __stub macros and hopefully few prototypes,
16916 which can conflict with char $ac_func (); below.
16917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16918 <limits.h> exists even on freestanding compilers. */
16921 # include <limits.h>
16923 # include <assert.h>
16928 /* Override any GCC internal prototype to avoid an error.
16929 Use char because int might match the return type of a GCC
16930 builtin and then its argument prototype would still apply. */
16935 /* The GNU C library defines this for functions which it implements
16936 to always fail with ENOSYS. Some functions are actually named
16937 something starting with __ and the normal name is an alias. */
16938 #if defined __stub_$ac_func || defined __stub___$ac_func
16945 return $ac_func ();
16950 rm -f conftest.$ac_objext conftest$ac_exeext
16951 if { (ac_try="$ac_link"
16952 case "(($ac_try" in
16953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954 *) ac_try_echo=$ac_try;;
16956 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16957 $as_echo "$ac_try_echo") >&5
16958 (eval "$ac_link") 2>conftest.er1
16960 grep -v '^ *+' conftest.er1 >conftest.err
16962 cat conftest.err >&5
16963 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16964 (exit $ac_status); } && {
16965 test -z "$ac_c_werror_flag" ||
16966 test ! -s conftest.err
16967 } && test -s conftest$ac_exeext && {
16968 test "$cross_compiling" = yes ||
16969 $as_test_x conftest$ac_exeext
16971 eval "$as_ac_var=yes"
16973 $as_echo "$as_me: failed program was
:" >&5
16974 sed 's/^/| /' conftest.$ac_ext >&5
16976 eval "$as_ac_var=no
"
16979 rm -rf conftest.dSYM
16980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16981 conftest$ac_exeext conftest.$ac_ext
16983 ac_res=`eval 'as_val=${'$as_ac_var'}
16984 $as_echo "$as_val"'`
16985 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16986 $as_echo "$ac_res" >&6; }
16987 if test `eval 'as_val=${'$as_ac_var'}
16988 $as_echo "$as_val"'` = yes; then
16990 cat >>confdefs.h <<_ACEOF
16991 #define CRAY_STACKSEG_END $ac_func
17000 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
17001 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
17002 if test "${ac_cv_c_stack_direction+set}" = set; then
17003 $as_echo_n "(cached
) " >&6
17005 if test "$cross_compiling" = yes; then
17006 ac_cv_c_stack_direction=0
17008 cat >conftest.$ac_ext <<_ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014 $ac_includes_default
17016 find_stack_direction ()
17018 static char *addr = 0;
17023 return find_stack_direction ();
17026 return (&dummy > addr) ? 1 : -1;
17032 return find_stack_direction () < 0;
17035 rm -f conftest$ac_exeext
17036 if { (ac_try="$ac_link"
17037 case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17041 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17042 $as_echo "$ac_try_echo") >&5
17043 (eval "$ac_link") 2>&5
17045 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17047 { (case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17051 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17052 $as_echo "$ac_try_echo") >&5
17053 (eval "$ac_try") 2>&5
17055 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 ac_cv_c_stack_direction=1
17059 $as_echo "$as_me: program exited with status
$ac_status" >&5
17060 $as_echo "$as_me: failed program was
:" >&5
17061 sed 's/^/| /' conftest.$ac_ext >&5
17063 ( exit $ac_status )
17064 ac_cv_c_stack_direction=-1
17066 rm -rf conftest.dSYM
17067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17072 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
17073 $as_echo "$ac_cv_c_stack_direction" >&6; }
17075 cat >>confdefs.h <<_ACEOF
17076 #define STACK_DIRECTION $ac_cv_c_stack_direction
17083 if test x"$ac_cv_func_alloca_works" != xyes; then
17084 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
17085 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
17086 { (exit 1); exit 1; }; }
17089 # fmod, logb, and frexp are found in -lm on most systems.
17090 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17092 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
17093 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
17094 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17095 $as_echo_n "(cached
) " >&6
17097 ac_check_lib_save_LIBS=$LIBS
17099 cat >conftest.$ac_ext <<_ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17106 /* Override any GCC internal prototype to avoid an error.
17107 Use char because int might match the return type of a GCC
17108 builtin and then its argument prototype would still apply. */
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (ac_try="$ac_link"
17123 case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17127 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17128 $as_echo "$ac_try_echo") >&5
17129 (eval "$ac_link") 2>conftest.er1
17131 grep -v '^ *+' conftest.er1 >conftest.err
17133 cat conftest.err >&5
17134 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17135 (exit $ac_status); } && {
17136 test -z "$ac_c_werror_flag" ||
17137 test ! -s conftest.err
17138 } && test -s conftest$ac_exeext && {
17139 test "$cross_compiling" = yes ||
17140 $as_test_x conftest$ac_exeext
17142 ac_cv_lib_m_sqrt=yes
17144 $as_echo "$as_me: failed program was
:" >&5
17145 sed 's/^/| /' conftest.$ac_ext >&5
17147 ac_cv_lib_m_sqrt=no
17150 rm -rf conftest.dSYM
17151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17152 conftest$ac_exeext conftest.$ac_ext
17153 LIBS=$ac_check_lib_save_LIBS
17155 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
17156 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17157 if test $ac_cv_lib_m_sqrt = yes; then
17158 cat >>confdefs.h <<_ACEOF
17159 #define HAVE_LIBM 1
17167 # Check for mail-locking functions in a "mail" library. Probably this should
17168 # have the same check as for liblockfile below.
17169 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
17170 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
17171 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17172 $as_echo_n "(cached
) " >&6
17174 ac_check_lib_save_LIBS=$LIBS
17175 LIBS="-lmail $LIBS"
17176 cat >conftest.$ac_ext <<_ACEOF
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h. */
17183 /* Override any GCC internal prototype to avoid an error.
17184 Use char because int might match the return type of a GCC
17185 builtin and then its argument prototype would still apply. */
17193 return maillock ();
17198 rm -f conftest.$ac_objext conftest$ac_exeext
17199 if { (ac_try="$ac_link"
17200 case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17204 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17205 $as_echo "$ac_try_echo") >&5
17206 (eval "$ac_link") 2>conftest.er1
17208 grep -v '^ *+' conftest.er1 >conftest.err
17210 cat conftest.err >&5
17211 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17212 (exit $ac_status); } && {
17213 test -z "$ac_c_werror_flag" ||
17214 test ! -s conftest.err
17215 } && test -s conftest$ac_exeext && {
17216 test "$cross_compiling" = yes ||
17217 $as_test_x conftest$ac_exeext
17219 ac_cv_lib_mail_maillock=yes
17221 $as_echo "$as_me: failed program was
:" >&5
17222 sed 's/^/| /' conftest.$ac_ext >&5
17224 ac_cv_lib_mail_maillock=no
17227 rm -rf conftest.dSYM
17228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17229 conftest$ac_exeext conftest.$ac_ext
17230 LIBS=$ac_check_lib_save_LIBS
17232 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
17233 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17234 if test $ac_cv_lib_mail_maillock = yes; then
17240 if test $have_mail = yes; then
17242 LIBS="$LIBS_MAIL $LIBS"
17244 cat >>confdefs.h <<\_ACEOF
17245 #define HAVE_LIBMAIL 1
17251 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
17252 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
17253 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17254 $as_echo_n "(cached
) " >&6
17256 ac_check_lib_save_LIBS=$LIBS
17257 LIBS="-llockfile $LIBS"
17258 cat >conftest.$ac_ext <<_ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h. */
17265 /* Override any GCC internal prototype to avoid an error.
17266 Use char because int might match the return type of a GCC
17267 builtin and then its argument prototype would still apply. */
17275 return maillock ();
17280 rm -f conftest.$ac_objext conftest$ac_exeext
17281 if { (ac_try="$ac_link"
17282 case "(($ac_try" in
17283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284 *) ac_try_echo=$ac_try;;
17286 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17287 $as_echo "$ac_try_echo") >&5
17288 (eval "$ac_link") 2>conftest.er1
17290 grep -v '^ *+' conftest.er1 >conftest.err
17292 cat conftest.err >&5
17293 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17294 (exit $ac_status); } && {
17295 test -z "$ac_c_werror_flag" ||
17296 test ! -s conftest.err
17297 } && test -s conftest$ac_exeext && {
17298 test "$cross_compiling" = yes ||
17299 $as_test_x conftest$ac_exeext
17301 ac_cv_lib_lockfile_maillock=yes
17303 $as_echo "$as_me: failed program was
:" >&5
17304 sed 's/^/| /' conftest.$ac_ext >&5
17306 ac_cv_lib_lockfile_maillock=no
17309 rm -rf conftest.dSYM
17310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17311 conftest$ac_exeext conftest.$ac_ext
17312 LIBS=$ac_check_lib_save_LIBS
17314 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
17315 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17316 if test $ac_cv_lib_lockfile_maillock = yes; then
17322 if test $have_lockfile = yes; then
17323 LIBS_MAIL=-llockfile
17324 LIBS="$LIBS_MAIL $LIBS"
17326 cat >>confdefs.h <<\_ACEOF
17327 #define HAVE_LIBLOCKFILE 1
17331 # If we have the shared liblockfile, assume we must use it for mail
17332 # locking (e.g. Debian). If we couldn't link against liblockfile
17333 # (no liblockfile.a installed), ensure that we don't need to.
17334 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
17335 set dummy liblockfile.so; ac_word=$2
17336 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
17337 $as_echo_n "checking
for $ac_word...
" >&6; }
17338 if test "${ac_cv_prog_liblockfile+set}" = set; then
17339 $as_echo_n "(cached
) " >&6
17341 if test -n "$liblockfile"; then
17342 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17345 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
17346 for as_dir in $as_dummy
17349 test -z "$as_dir" && as_dir=.
17350 for ac_exec_ext in '' $ac_executable_extensions; do
17351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17352 ac_cv_prog_liblockfile="yes"
17353 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17360 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
17363 liblockfile=$ac_cv_prog_liblockfile
17364 if test -n "$liblockfile"; then
17365 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
17366 $as_echo "$liblockfile" >&6; }
17368 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17369 $as_echo "no
" >&6; }
17373 if test $ac_cv_prog_liblockfile = yes; then
17374 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
17375 This probably means that movemail could lose mail.
17376 There may be a \`development' package to
install containing liblockfile.
" >&5
17377 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
17378 This probably means that movemail could lose mail.
17379 There may be a \`development' package to
install containing liblockfile.
" >&2;}
17380 { (exit 1); exit 1; }; }
17384 for ac_func in touchlock
17386 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17387 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17388 $as_echo_n "checking
for $ac_func...
" >&6; }
17389 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17390 $as_echo_n "(cached
) " >&6
17392 cat >conftest.$ac_ext <<_ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17400 #define $ac_func innocuous_$ac_func
17402 /* System header to define __stub macros and hopefully few prototypes,
17403 which can conflict with char $ac_func (); below.
17404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17405 <limits.h> exists even on freestanding compilers. */
17408 # include <limits.h>
17410 # include <assert.h>
17415 /* Override any GCC internal prototype to avoid an error.
17416 Use char because int might match the return type of a GCC
17417 builtin and then its argument prototype would still apply. */
17422 /* The GNU C library defines this for functions which it implements
17423 to always fail with ENOSYS. Some functions are actually named
17424 something starting with __ and the normal name is an alias. */
17425 #if defined __stub_$ac_func || defined __stub___$ac_func
17432 return $ac_func ();
17437 rm -f conftest.$ac_objext conftest$ac_exeext
17438 if { (ac_try="$ac_link"
17439 case "(($ac_try" in
17440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441 *) ac_try_echo=$ac_try;;
17443 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17444 $as_echo "$ac_try_echo") >&5
17445 (eval "$ac_link") 2>conftest.er1
17447 grep -v '^ *+' conftest.er1 >conftest.err
17449 cat conftest.err >&5
17450 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17451 (exit $ac_status); } && {
17452 test -z "$ac_c_werror_flag" ||
17453 test ! -s conftest.err
17454 } && test -s conftest$ac_exeext && {
17455 test "$cross_compiling" = yes ||
17456 $as_test_x conftest$ac_exeext
17458 eval "$as_ac_var=yes"
17460 $as_echo "$as_me: failed program was
:" >&5
17461 sed 's/^/| /' conftest.$ac_ext >&5
17463 eval "$as_ac_var=no
"
17466 rm -rf conftest.dSYM
17467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17468 conftest$ac_exeext conftest.$ac_ext
17470 ac_res=`eval 'as_val=${'$as_ac_var'}
17471 $as_echo "$as_val"'`
17472 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17473 $as_echo "$ac_res" >&6; }
17474 if test `eval 'as_val=${'$as_ac_var'}
17475 $as_echo "$as_val"'` = yes; then
17476 cat >>confdefs.h <<_ACEOF
17477 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17484 for ac_header in maillock.h
17486 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17487 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17488 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17489 $as_echo_n "checking
for $ac_header...
" >&6; }
17490 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17491 $as_echo_n "(cached
) " >&6
17493 ac_res=`eval 'as_val=${'$as_ac_Header'}
17494 $as_echo "$as_val"'`
17495 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17496 $as_echo "$ac_res" >&6; }
17498 # Is the header compilable?
17499 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17500 $as_echo_n "checking
$ac_header usability...
" >&6; }
17501 cat >conftest.$ac_ext <<_ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17507 $ac_includes_default
17508 #include <$ac_header>
17510 rm -f conftest.$ac_objext
17511 if { (ac_try="$ac_compile"
17512 case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17517 $as_echo "$ac_try_echo") >&5
17518 (eval "$ac_compile") 2>conftest.er1
17520 grep -v '^ *+' conftest.er1 >conftest.err
17522 cat conftest.err >&5
17523 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17524 (exit $ac_status); } && {
17525 test -z "$ac_c_werror_flag" ||
17526 test ! -s conftest.err
17527 } && test -s conftest.$ac_objext; then
17528 ac_header_compiler=yes
17530 $as_echo "$as_me: failed program was
:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17533 ac_header_compiler=no
17536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17537 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17538 $as_echo "$ac_header_compiler" >&6; }
17540 # Is the header present?
17541 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17542 $as_echo_n "checking
$ac_header presence...
" >&6; }
17543 cat >conftest.$ac_ext <<_ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h. */
17549 #include <$ac_header>
17551 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17552 case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17556 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17557 $as_echo "$ac_try_echo") >&5
17558 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17560 grep -v '^ *+' conftest.er1 >conftest.err
17562 cat conftest.err >&5
17563 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17564 (exit $ac_status); } >/dev/null && {
17565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17566 test ! -s conftest.err
17568 ac_header_preproc=yes
17570 $as_echo "$as_me: failed program was
:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17573 ac_header_preproc=no
17576 rm -f conftest.err conftest.$ac_ext
17577 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17578 $as_echo "$ac_header_preproc" >&6; }
17580 # So? What about this header?
17581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17583 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17584 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17585 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17586 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17587 ac_header_preproc=yes
17590 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17591 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17592 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17593 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17594 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17595 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17596 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17597 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17598 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17599 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17600 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17601 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17605 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17606 $as_echo_n "checking
for $ac_header...
" >&6; }
17607 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17608 $as_echo_n "(cached
) " >&6
17610 eval "$as_ac_Header=\
$ac_header_preproc"
17612 ac_res=`eval 'as_val=${'$as_ac_Header'}
17613 $as_echo "$as_val"'`
17614 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17615 $as_echo "$ac_res" >&6; }
17618 if test `eval 'as_val=${'$as_ac_Header'}
17619 $as_echo "$as_val"'` = yes; then
17620 cat >>confdefs.h <<_ACEOF
17621 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17630 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17631 ## interlock access to the mail spool. The alternative is a lock file named
17632 ## /usr/spool/mail/$USER.lock.
17635 aix4-2) mail_lock="lockf
" ;;
17637 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock
" ;;
17639 ## On GNU/Linux systems, both methods are used by various mail programs.
17640 ## I assume most people are using newer mailers that have heard of flock.
17641 ## Change this if you need to.
17642 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17643 ## configure gets the right answers, and that means *NOT* using flock.
17644 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17645 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17646 ## Debian maintainer hasn't provided a clean fix for Emacs.
17647 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17648 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17649 ## correct logic. -- fx
17650 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17651 ## liblockfile is a Free Software replacement for libmail, used on
17652 ## Debian systems and elsewhere. -rfr.
17655 if test $have_mail = yes || test $have_lockfile = yes; then
17656 test $ac_cv_header_maillock_h = yes && mail_lock=no
17662 case "$mail_lock" in
17664 cat >>confdefs.h <<\_ACEOF
17665 #define MAIL_USE_FLOCK 1
17670 cat >>confdefs.h <<\_ACEOF
17671 #define MAIL_USE_LOCKF 1
17675 *) BLESSMAIL_TARGET="need-blessmail
" ;;
17753 for ac_func in gethostname getdomainname dup2 \
17754 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17755 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17756 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17757 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17758 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17759 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17760 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17761 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17762 cfmakeraw cfsetspeed isnan copysign
17764 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17765 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17766 $as_echo_n "checking
for $ac_func...
" >&6; }
17767 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17768 $as_echo_n "(cached
) " >&6
17770 cat >conftest.$ac_ext <<_ACEOF
17773 cat confdefs.h >>conftest.$ac_ext
17774 cat >>conftest.$ac_ext <<_ACEOF
17775 /* end confdefs.h. */
17776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17778 #define $ac_func innocuous_$ac_func
17780 /* System header to define __stub macros and hopefully few prototypes,
17781 which can conflict with char $ac_func (); below.
17782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17783 <limits.h> exists even on freestanding compilers. */
17786 # include <limits.h>
17788 # include <assert.h>
17793 /* Override any GCC internal prototype to avoid an error.
17794 Use char because int might match the return type of a GCC
17795 builtin and then its argument prototype would still apply. */
17800 /* The GNU C library defines this for functions which it implements
17801 to always fail with ENOSYS. Some functions are actually named
17802 something starting with __ and the normal name is an alias. */
17803 #if defined __stub_$ac_func || defined __stub___$ac_func
17810 return $ac_func ();
17815 rm -f conftest.$ac_objext conftest$ac_exeext
17816 if { (ac_try="$ac_link"
17817 case "(($ac_try" in
17818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17821 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17822 $as_echo "$ac_try_echo") >&5
17823 (eval "$ac_link") 2>conftest.er1
17825 grep -v '^ *+' conftest.er1 >conftest.err
17827 cat conftest.err >&5
17828 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17829 (exit $ac_status); } && {
17830 test -z "$ac_c_werror_flag" ||
17831 test ! -s conftest.err
17832 } && test -s conftest$ac_exeext && {
17833 test "$cross_compiling" = yes ||
17834 $as_test_x conftest$ac_exeext
17836 eval "$as_ac_var=yes"
17838 $as_echo "$as_me: failed program was
:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17841 eval "$as_ac_var=no
"
17844 rm -rf conftest.dSYM
17845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17846 conftest$ac_exeext conftest.$ac_ext
17848 ac_res=`eval 'as_val=${'$as_ac_var'}
17849 $as_echo "$as_val"'`
17850 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17851 $as_echo "$ac_res" >&6; }
17852 if test `eval 'as_val=${'$as_ac_var'}
17853 $as_echo "$as_val"'` = yes; then
17854 cat >>confdefs.h <<_ACEOF
17855 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17863 for ac_header in sys/un.h
17865 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17866 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17867 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17868 $as_echo_n "checking
for $ac_header...
" >&6; }
17869 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17870 $as_echo_n "(cached
) " >&6
17872 ac_res=`eval 'as_val=${'$as_ac_Header'}
17873 $as_echo "$as_val"'`
17874 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17875 $as_echo "$ac_res" >&6; }
17877 # Is the header compilable?
17878 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17879 $as_echo_n "checking
$ac_header usability...
" >&6; }
17880 cat >conftest.$ac_ext <<_ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 $ac_includes_default
17887 #include <$ac_header>
17889 rm -f conftest.$ac_objext
17890 if { (ac_try="$ac_compile"
17891 case "(($ac_try" in
17892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893 *) ac_try_echo=$ac_try;;
17895 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17896 $as_echo "$ac_try_echo") >&5
17897 (eval "$ac_compile") 2>conftest.er1
17899 grep -v '^ *+' conftest.er1 >conftest.err
17901 cat conftest.err >&5
17902 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17903 (exit $ac_status); } && {
17904 test -z "$ac_c_werror_flag" ||
17905 test ! -s conftest.err
17906 } && test -s conftest.$ac_objext; then
17907 ac_header_compiler=yes
17909 $as_echo "$as_me: failed program was
:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17912 ac_header_compiler=no
17915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17917 $as_echo "$ac_header_compiler" >&6; }
17919 # Is the header present?
17920 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17921 $as_echo_n "checking
$ac_header presence...
" >&6; }
17922 cat >conftest.$ac_ext <<_ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17928 #include <$ac_header>
17930 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17931 case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17935 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17936 $as_echo "$ac_try_echo") >&5
17937 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17939 grep -v '^ *+' conftest.er1 >conftest.err
17941 cat conftest.err >&5
17942 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17943 (exit $ac_status); } >/dev/null && {
17944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17945 test ! -s conftest.err
17947 ac_header_preproc=yes
17949 $as_echo "$as_me: failed program was
:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17952 ac_header_preproc=no
17955 rm -f conftest.err conftest.$ac_ext
17956 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17957 $as_echo "$ac_header_preproc" >&6; }
17959 # So? What about this header?
17960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17962 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17963 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17964 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17965 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17966 ac_header_preproc=yes
17969 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17970 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17971 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17972 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17973 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17974 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17975 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17976 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17977 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17978 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17979 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17980 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17984 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17985 $as_echo_n "checking
for $ac_header...
" >&6; }
17986 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17987 $as_echo_n "(cached
) " >&6
17989 eval "$as_ac_Header=\
$ac_header_preproc"
17991 ac_res=`eval 'as_val=${'$as_ac_Header'}
17992 $as_echo "$as_val"'`
17993 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17994 $as_echo "$ac_res" >&6; }
17997 if test `eval 'as_val=${'$as_ac_Header'}
17998 $as_echo "$as_val"'` = yes; then
17999 cat >>confdefs.h <<_ACEOF
18000 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18012 for ac_header in $ac_header_list
18014 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18015 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18016 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
18017 $as_echo_n "checking
for $ac_header...
" >&6; }
18018 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18019 $as_echo_n "(cached
) " >&6
18021 ac_res=`eval 'as_val=${'$as_ac_Header'}
18022 $as_echo "$as_val"'`
18023 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18024 $as_echo "$ac_res" >&6; }
18026 # Is the header compilable?
18027 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18028 $as_echo_n "checking
$ac_header usability...
" >&6; }
18029 cat >conftest.$ac_ext <<_ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18035 $ac_includes_default
18036 #include <$ac_header>
18038 rm -f conftest.$ac_objext
18039 if { (ac_try="$ac_compile"
18040 case "(($ac_try" in
18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042 *) ac_try_echo=$ac_try;;
18044 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18045 $as_echo "$ac_try_echo") >&5
18046 (eval "$ac_compile") 2>conftest.er1
18048 grep -v '^ *+' conftest.er1 >conftest.err
18050 cat conftest.err >&5
18051 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18052 (exit $ac_status); } && {
18053 test -z "$ac_c_werror_flag" ||
18054 test ! -s conftest.err
18055 } && test -s conftest.$ac_objext; then
18056 ac_header_compiler=yes
18058 $as_echo "$as_me: failed program was
:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18061 ac_header_compiler=no
18064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18065 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18066 $as_echo "$ac_header_compiler" >&6; }
18068 # Is the header present?
18069 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18070 $as_echo_n "checking
$ac_header presence...
" >&6; }
18071 cat >conftest.$ac_ext <<_ACEOF
18074 cat confdefs.h >>conftest.$ac_ext
18075 cat >>conftest.$ac_ext <<_ACEOF
18076 /* end confdefs.h. */
18077 #include <$ac_header>
18079 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18080 case "(($ac_try" in
18081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18082 *) ac_try_echo=$ac_try;;
18084 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18085 $as_echo "$ac_try_echo") >&5
18086 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18088 grep -v '^ *+' conftest.er1 >conftest.err
18090 cat conftest.err >&5
18091 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18092 (exit $ac_status); } >/dev/null && {
18093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18094 test ! -s conftest.err
18096 ac_header_preproc=yes
18098 $as_echo "$as_me: failed program was
:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18101 ac_header_preproc=no
18104 rm -f conftest.err conftest.$ac_ext
18105 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18106 $as_echo "$ac_header_preproc" >&6; }
18108 # So? What about this header?
18109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18111 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18112 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18113 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18114 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18115 ac_header_preproc=yes
18118 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18119 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18120 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18121 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18122 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18123 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18124 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18125 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18126 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18127 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18128 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18129 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18133 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
18134 $as_echo_n "checking
for $ac_header...
" >&6; }
18135 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18136 $as_echo_n "(cached
) " >&6
18138 eval "$as_ac_Header=\
$ac_header_preproc"
18140 ac_res=`eval 'as_val=${'$as_ac_Header'}
18141 $as_echo "$as_val"'`
18142 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18143 $as_echo "$ac_res" >&6; }
18146 if test `eval 'as_val=${'$as_ac_Header'}
18147 $as_echo "$as_val"'` = yes; then
18148 cat >>confdefs.h <<_ACEOF
18149 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18164 for ac_func in $ac_func_list
18166 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18167 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18168 $as_echo_n "checking
for $ac_func...
" >&6; }
18169 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18170 $as_echo_n "(cached
) " >&6
18172 cat >conftest.$ac_ext <<_ACEOF
18175 cat confdefs.h >>conftest.$ac_ext
18176 cat >>conftest.$ac_ext <<_ACEOF
18177 /* end confdefs.h. */
18178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18180 #define $ac_func innocuous_$ac_func
18182 /* System header to define __stub macros and hopefully few prototypes,
18183 which can conflict with char $ac_func (); below.
18184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18185 <limits.h> exists even on freestanding compilers. */
18188 # include <limits.h>
18190 # include <assert.h>
18195 /* Override any GCC internal prototype to avoid an error.
18196 Use char because int might match the return type of a GCC
18197 builtin and then its argument prototype would still apply. */
18202 /* The GNU C library defines this for functions which it implements
18203 to always fail with ENOSYS. Some functions are actually named
18204 something starting with __ and the normal name is an alias. */
18205 #if defined __stub_$ac_func || defined __stub___$ac_func
18212 return $ac_func ();
18217 rm -f conftest.$ac_objext conftest$ac_exeext
18218 if { (ac_try="$ac_link"
18219 case "(($ac_try" in
18220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221 *) ac_try_echo=$ac_try;;
18223 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18224 $as_echo "$ac_try_echo") >&5
18225 (eval "$ac_link") 2>conftest.er1
18227 grep -v '^ *+' conftest.er1 >conftest.err
18229 cat conftest.err >&5
18230 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18231 (exit $ac_status); } && {
18232 test -z "$ac_c_werror_flag" ||
18233 test ! -s conftest.err
18234 } && test -s conftest$ac_exeext && {
18235 test "$cross_compiling" = yes ||
18236 $as_test_x conftest$ac_exeext
18238 eval "$as_ac_var=yes"
18240 $as_echo "$as_me: failed program was
:" >&5
18241 sed 's/^/| /' conftest.$ac_ext >&5
18243 eval "$as_ac_var=no
"
18246 rm -rf conftest.dSYM
18247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18248 conftest$ac_exeext conftest.$ac_ext
18250 ac_res=`eval 'as_val=${'$as_ac_var'}
18251 $as_echo "$as_val"'`
18252 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18253 $as_echo "$ac_res" >&6; }
18254 if test `eval 'as_val=${'$as_ac_var'}
18255 $as_echo "$as_val"'` = yes; then
18256 cat >>confdefs.h <<_ACEOF
18257 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18279 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
18280 $as_echo_n "checking
for working mktime...
" >&6; }
18281 if test "${ac_cv_func_working_mktime+set}" = set; then
18282 $as_echo_n "(cached
) " >&6
18284 if test "$cross_compiling" = yes; then
18285 ac_cv_func_working_mktime=no
18287 cat >conftest.$ac_ext <<_ACEOF
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h. */
18293 /* Test program from Paul Eggert and Tony Leneis. */
18294 #ifdef TIME_WITH_SYS_TIME
18295 # include <sys/time.h>
18298 # ifdef HAVE_SYS_TIME_H
18299 # include <sys/time.h>
18305 #include <limits.h>
18306 #include <stdlib.h>
18308 #ifdef HAVE_UNISTD_H
18309 # include <unistd.h>
18313 # define alarm(X) /* empty */
18316 /* Work around redefinition to rpl_putenv by other config tests. */
18319 static time_t time_t_max;
18320 static time_t time_t_min;
18322 /* Values we'll use to set the TZ environment variable. */
18323 static char *tz_strings[] = {
18324 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
18325 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
18327 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18329 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18330 Based on a problem report from Andreas Jaeger. */
18332 spring_forward_gap ()
18334 /* glibc (up to about 1998-10-07) failed this test. */
18337 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18338 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18339 on systems that don't support the Olson extension, or don't have the
18340 full zoneinfo tables installed. */
18341 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18350 return mktime (&tm) != (time_t) -1;
18358 return ! (lt = localtime (&now)) || mktime (lt) == now;
18365 return (mktime_test1 (now)
18366 && mktime_test1 ((time_t) (time_t_max - now))
18367 && mktime_test1 ((time_t) (time_t_min + now)));
18373 /* Based on code from Ariel Faigon. */
18383 return tm.tm_mon == 2 && tm.tm_mday == 31;
18392 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18393 now = mktime (&tm);
18394 if (now != (time_t) -1)
18396 struct tm *lt = localtime (&now);
18398 && lt->tm_year == tm.tm_year
18399 && lt->tm_mon == tm.tm_mon
18400 && lt->tm_mday == tm.tm_mday
18401 && lt->tm_hour == tm.tm_hour
18402 && lt->tm_min == tm.tm_min
18403 && lt->tm_sec == tm.tm_sec
18404 && lt->tm_yday == tm.tm_yday
18405 && lt->tm_wday == tm.tm_wday
18406 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18407 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18416 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18417 ignoring leap seconds. */
18418 unsigned long int answer = 2527315200UL;
18422 tm.tm_year = 2050 - 1900;
18425 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18428 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18429 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18430 on systems that don't support the Olson extension, or don't have the
18431 full zoneinfo tables installed. */
18432 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18436 /* Check that the result is either a failure, or close enough
18437 to the correct answer that we can assume the discrepancy is
18438 due to leap seconds. */
18439 return (t == (time_t) -1
18440 || (0 < t && answer - 120 <= t && t <= answer + 120));
18449 /* This test makes some buggy mktime implementations loop.
18450 Give up after 60 seconds; a mktime slower than that
18451 isn't worth using anyway. */
18456 t = (time_t_max << 1) + 1;
18457 if (t <= time_t_max)
18461 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18463 delta = time_t_max / 997; /* a suitable prime number */
18464 for (i = 0; i < N_STRINGS; i++)
18467 putenv (tz_strings[i]);
18469 for (t = 0; t <= time_t_max - delta; t += delta)
18470 if (! mktime_test (t))
18472 if (! (mktime_test ((time_t) 1)
18473 && mktime_test ((time_t) (60 * 60))
18474 && mktime_test ((time_t) (60 * 60 * 24))))
18477 for (j = 1; ; j <<= 1)
18478 if (! bigtime_test (j))
18480 else if (INT_MAX / 2 < j)
18482 if (! bigtime_test (INT_MAX))
18485 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18488 rm -f conftest$ac_exeext
18489 if { (ac_try="$ac_link"
18490 case "(($ac_try" in
18491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18492 *) ac_try_echo=$ac_try;;
18494 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18495 $as_echo "$ac_try_echo") >&5
18496 (eval "$ac_link") 2>&5
18498 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18500 { (case "(($ac_try" in
18501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502 *) ac_try_echo=$ac_try;;
18504 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18505 $as_echo "$ac_try_echo") >&5
18506 (eval "$ac_try") 2>&5
18508 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18509 (exit $ac_status); }; }; then
18510 ac_cv_func_working_mktime=yes
18512 $as_echo "$as_me: program exited with status
$ac_status" >&5
18513 $as_echo "$as_me: failed program was
:" >&5
18514 sed 's/^/| /' conftest.$ac_ext >&5
18516 ( exit $ac_status )
18517 ac_cv_func_working_mktime=no
18519 rm -rf conftest.dSYM
18520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18525 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
18526 $as_echo "$ac_cv_func_working_mktime" >&6; }
18527 if test $ac_cv_func_working_mktime = no; then
18528 case " $LIBOBJS " in
18529 *" mktime.
$ac_objext "* ) ;;
18530 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
18536 if test "$ac_cv_func_working_mktime" = no; then
18538 cat >>confdefs.h <<\_ACEOF
18539 #define BROKEN_MKTIME 1
18544 ac_have_func=no # yes means we've found a way to get the load average.
18546 # Make sure getloadavg.c is where it belongs, at configure-time.
18547 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18548 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18549 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18550 { (exit 1); exit 1; }; }
18554 # Check for getloadavg, but be sure not to touch the cache variable.
18555 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18556 $as_echo_n "checking
for getloadavg...
" >&6; }
18557 if test "${ac_cv_func_getloadavg+set}" = set; then
18558 $as_echo_n "(cached
) " >&6
18560 cat >conftest.$ac_ext <<_ACEOF
18563 cat confdefs.h >>conftest.$ac_ext
18564 cat >>conftest.$ac_ext <<_ACEOF
18565 /* end confdefs.h. */
18566 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18568 #define getloadavg innocuous_getloadavg
18570 /* System header to define __stub macros and hopefully few prototypes,
18571 which can conflict with char getloadavg (); below.
18572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18573 <limits.h> exists even on freestanding compilers. */
18576 # include <limits.h>
18578 # include <assert.h>
18583 /* Override any GCC internal prototype to avoid an error.
18584 Use char because int might match the return type of a GCC
18585 builtin and then its argument prototype would still apply. */
18589 char getloadavg ();
18590 /* The GNU C library defines this for functions which it implements
18591 to always fail with ENOSYS. Some functions are actually named
18592 something starting with __ and the normal name is an alias. */
18593 #if defined __stub_getloadavg || defined __stub___getloadavg
18600 return getloadavg ();
18605 rm -f conftest.$ac_objext conftest$ac_exeext
18606 if { (ac_try="$ac_link"
18607 case "(($ac_try" in
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609 *) ac_try_echo=$ac_try;;
18611 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18612 $as_echo "$ac_try_echo") >&5
18613 (eval "$ac_link") 2>conftest.er1
18615 grep -v '^ *+' conftest.er1 >conftest.err
18617 cat conftest.err >&5
18618 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18619 (exit $ac_status); } && {
18620 test -z "$ac_c_werror_flag" ||
18621 test ! -s conftest.err
18622 } && test -s conftest$ac_exeext && {
18623 test "$cross_compiling" = yes ||
18624 $as_test_x conftest$ac_exeext
18626 ac_cv_func_getloadavg=yes
18628 $as_echo "$as_me: failed program was
:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18631 ac_cv_func_getloadavg=no
18634 rm -rf conftest.dSYM
18635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18636 conftest$ac_exeext conftest.$ac_ext
18638 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18639 $as_echo "$ac_cv_func_getloadavg" >&6; }
18640 if test $ac_cv_func_getloadavg = yes; then
18645 ) && ac_have_func=yes
18647 # On HPUX9, an unprivileged user can get load averages through this function.
18649 for ac_func in pstat_getdynamic
18651 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18652 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18653 $as_echo_n "checking
for $ac_func...
" >&6; }
18654 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18655 $as_echo_n "(cached
) " >&6
18657 cat >conftest.$ac_ext <<_ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18665 #define $ac_func innocuous_$ac_func
18667 /* System header to define __stub macros and hopefully few prototypes,
18668 which can conflict with char $ac_func (); below.
18669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18670 <limits.h> exists even on freestanding compilers. */
18673 # include <limits.h>
18675 # include <assert.h>
18680 /* Override any GCC internal prototype to avoid an error.
18681 Use char because int might match the return type of a GCC
18682 builtin and then its argument prototype would still apply. */
18687 /* The GNU C library defines this for functions which it implements
18688 to always fail with ENOSYS. Some functions are actually named
18689 something starting with __ and the normal name is an alias. */
18690 #if defined __stub_$ac_func || defined __stub___$ac_func
18697 return $ac_func ();
18702 rm -f conftest.$ac_objext conftest$ac_exeext
18703 if { (ac_try="$ac_link"
18704 case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18708 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18709 $as_echo "$ac_try_echo") >&5
18710 (eval "$ac_link") 2>conftest.er1
18712 grep -v '^ *+' conftest.er1 >conftest.err
18714 cat conftest.err >&5
18715 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18716 (exit $ac_status); } && {
18717 test -z "$ac_c_werror_flag" ||
18718 test ! -s conftest.err
18719 } && test -s conftest$ac_exeext && {
18720 test "$cross_compiling" = yes ||
18721 $as_test_x conftest$ac_exeext
18723 eval "$as_ac_var=yes"
18725 $as_echo "$as_me: failed program was
:" >&5
18726 sed 's/^/| /' conftest.$ac_ext >&5
18728 eval "$as_ac_var=no
"
18731 rm -rf conftest.dSYM
18732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18733 conftest$ac_exeext conftest.$ac_ext
18735 ac_res=`eval 'as_val=${'$as_ac_var'}
18736 $as_echo "$as_val"'`
18737 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18738 $as_echo "$ac_res" >&6; }
18739 if test `eval 'as_val=${'$as_ac_var'}
18740 $as_echo "$as_val"'` = yes; then
18741 cat >>confdefs.h <<_ACEOF
18742 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18749 # Solaris has libkstat which does not require root.
18751 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18752 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18753 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18754 $as_echo_n "(cached
) " >&6
18756 ac_check_lib_save_LIBS=$LIBS
18757 LIBS="-lkstat $LIBS"
18758 cat >conftest.$ac_ext <<_ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18765 /* Override any GCC internal prototype to avoid an error.
18766 Use char because int might match the return type of a GCC
18767 builtin and then its argument prototype would still apply. */
18771 char kstat_open ();
18775 return kstat_open ();
18780 rm -f conftest.$ac_objext conftest$ac_exeext
18781 if { (ac_try="$ac_link"
18782 case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18786 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18787 $as_echo "$ac_try_echo") >&5
18788 (eval "$ac_link") 2>conftest.er1
18790 grep -v '^ *+' conftest.er1 >conftest.err
18792 cat conftest.err >&5
18793 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18794 (exit $ac_status); } && {
18795 test -z "$ac_c_werror_flag" ||
18796 test ! -s conftest.err
18797 } && test -s conftest$ac_exeext && {
18798 test "$cross_compiling" = yes ||
18799 $as_test_x conftest$ac_exeext
18801 ac_cv_lib_kstat_kstat_open=yes
18803 $as_echo "$as_me: failed program was
:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_cv_lib_kstat_kstat_open=no
18809 rm -rf conftest.dSYM
18810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18811 conftest$ac_exeext conftest.$ac_ext
18812 LIBS=$ac_check_lib_save_LIBS
18814 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18815 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18816 if test $ac_cv_lib_kstat_kstat_open = yes; then
18817 cat >>confdefs.h <<_ACEOF
18818 #define HAVE_LIBKSTAT 1
18821 LIBS="-lkstat $LIBS"
18825 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18827 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18828 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18829 # to get the right answer into the cache.
18830 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18831 if test $ac_have_func = no; then
18832 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18833 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18834 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18835 $as_echo_n "(cached
) " >&6
18837 ac_check_lib_save_LIBS=$LIBS
18839 cat >conftest.$ac_ext <<_ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h. */
18846 /* Override any GCC internal prototype to avoid an error.
18847 Use char because int might match the return type of a GCC
18848 builtin and then its argument prototype would still apply. */
18856 return elf_begin ();
18861 rm -f conftest.$ac_objext conftest$ac_exeext
18862 if { (ac_try="$ac_link"
18863 case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18867 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18868 $as_echo "$ac_try_echo") >&5
18869 (eval "$ac_link") 2>conftest.er1
18871 grep -v '^ *+' conftest.er1 >conftest.err
18873 cat conftest.err >&5
18874 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18875 (exit $ac_status); } && {
18876 test -z "$ac_c_werror_flag" ||
18877 test ! -s conftest.err
18878 } && test -s conftest$ac_exeext && {
18879 test "$cross_compiling" = yes ||
18880 $as_test_x conftest$ac_exeext
18882 ac_cv_lib_elf_elf_begin=yes
18884 $as_echo "$as_me: failed program was
:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18887 ac_cv_lib_elf_elf_begin=no
18890 rm -rf conftest.dSYM
18891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18892 conftest$ac_exeext conftest.$ac_ext
18893 LIBS=$ac_check_lib_save_LIBS
18895 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18896 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18897 if test $ac_cv_lib_elf_elf_begin = yes; then
18902 if test $ac_have_func = no; then
18903 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18904 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18905 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18906 $as_echo_n "(cached
) " >&6
18908 ac_check_lib_save_LIBS=$LIBS
18910 cat >conftest.$ac_ext <<_ACEOF
18913 cat confdefs.h >>conftest.$ac_ext
18914 cat >>conftest.$ac_ext <<_ACEOF
18915 /* end confdefs.h. */
18917 /* Override any GCC internal prototype to avoid an error.
18918 Use char because int might match the return type of a GCC
18919 builtin and then its argument prototype would still apply. */
18927 return kvm_open ();
18932 rm -f conftest.$ac_objext conftest$ac_exeext
18933 if { (ac_try="$ac_link"
18934 case "(($ac_try" in
18935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936 *) ac_try_echo=$ac_try;;
18938 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18939 $as_echo "$ac_try_echo") >&5
18940 (eval "$ac_link") 2>conftest.er1
18942 grep -v '^ *+' conftest.er1 >conftest.err
18944 cat conftest.err >&5
18945 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18946 (exit $ac_status); } && {
18947 test -z "$ac_c_werror_flag" ||
18948 test ! -s conftest.err
18949 } && test -s conftest$ac_exeext && {
18950 test "$cross_compiling" = yes ||
18951 $as_test_x conftest$ac_exeext
18953 ac_cv_lib_kvm_kvm_open=yes
18955 $as_echo "$as_me: failed program was
:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18958 ac_cv_lib_kvm_kvm_open=no
18961 rm -rf conftest.dSYM
18962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18963 conftest$ac_exeext conftest.$ac_ext
18964 LIBS=$ac_check_lib_save_LIBS
18966 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18967 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18968 if test $ac_cv_lib_kvm_kvm_open = yes; then
18972 # Check for the 4.4BSD definition of getloadavg.
18973 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18974 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18975 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18976 $as_echo_n "(cached
) " >&6
18978 ac_check_lib_save_LIBS=$LIBS
18979 LIBS="-lutil $LIBS"
18980 cat >conftest.$ac_ext <<_ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h. */
18987 /* Override any GCC internal prototype to avoid an error.
18988 Use char because int might match the return type of a GCC
18989 builtin and then its argument prototype would still apply. */
18993 char getloadavg ();
18997 return getloadavg ();
19002 rm -f conftest.$ac_objext conftest$ac_exeext
19003 if { (ac_try="$ac_link"
19004 case "(($ac_try" in
19005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19008 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19009 $as_echo "$ac_try_echo") >&5
19010 (eval "$ac_link") 2>conftest.er1
19012 grep -v '^ *+' conftest.er1 >conftest.err
19014 cat conftest.err >&5
19015 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19016 (exit $ac_status); } && {
19017 test -z "$ac_c_werror_flag" ||
19018 test ! -s conftest.err
19019 } && test -s conftest$ac_exeext && {
19020 test "$cross_compiling" = yes ||
19021 $as_test_x conftest$ac_exeext
19023 ac_cv_lib_util_getloadavg=yes
19025 $as_echo "$as_me: failed program was
:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19028 ac_cv_lib_util_getloadavg=no
19031 rm -rf conftest.dSYM
19032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19033 conftest$ac_exeext conftest.$ac_ext
19034 LIBS=$ac_check_lib_save_LIBS
19036 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
19037 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19038 if test $ac_cv_lib_util_getloadavg = yes; then
19039 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19044 if test $ac_have_func = no; then
19045 # There is a commonly available library for RS/6000 AIX.
19046 # Since it is not a standard part of AIX, it might be installed locally.
19047 ac_getloadavg_LIBS=$LIBS
19048 LIBS="-L/usr
/local
/lib
$LIBS"
19049 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
19050 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
19051 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19052 $as_echo_n "(cached
) " >&6
19054 ac_check_lib_save_LIBS=$LIBS
19055 LIBS="-lgetloadavg $LIBS"
19056 cat >conftest.$ac_ext <<_ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h. */
19063 /* Override any GCC internal prototype to avoid an error.
19064 Use char because int might match the return type of a GCC
19065 builtin and then its argument prototype would still apply. */
19069 char getloadavg ();
19073 return getloadavg ();
19078 rm -f conftest.$ac_objext conftest$ac_exeext
19079 if { (ac_try="$ac_link"
19080 case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19084 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19085 $as_echo "$ac_try_echo") >&5
19086 (eval "$ac_link") 2>conftest.er1
19088 grep -v '^ *+' conftest.er1 >conftest.err
19090 cat conftest.err >&5
19091 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19092 (exit $ac_status); } && {
19093 test -z "$ac_c_werror_flag" ||
19094 test ! -s conftest.err
19095 } && test -s conftest$ac_exeext && {
19096 test "$cross_compiling" = yes ||
19097 $as_test_x conftest$ac_exeext
19099 ac_cv_lib_getloadavg_getloadavg=yes
19101 $as_echo "$as_me: failed program was
:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19104 ac_cv_lib_getloadavg_getloadavg=no
19107 rm -rf conftest.dSYM
19108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19109 conftest$ac_exeext conftest.$ac_ext
19110 LIBS=$ac_check_lib_save_LIBS
19112 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
19113 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19114 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19115 LIBS="-lgetloadavg $LIBS"
19117 LIBS=$ac_getloadavg_LIBS
19122 # Make sure it is really in the library, if we think we found it,
19123 # otherwise set up the replacement function.
19125 for ac_func in getloadavg
19127 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19128 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19129 $as_echo_n "checking
for $ac_func...
" >&6; }
19130 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19131 $as_echo_n "(cached
) " >&6
19133 cat >conftest.$ac_ext <<_ACEOF
19136 cat confdefs.h >>conftest.$ac_ext
19137 cat >>conftest.$ac_ext <<_ACEOF
19138 /* end confdefs.h. */
19139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19141 #define $ac_func innocuous_$ac_func
19143 /* System header to define __stub macros and hopefully few prototypes,
19144 which can conflict with char $ac_func (); below.
19145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19146 <limits.h> exists even on freestanding compilers. */
19149 # include <limits.h>
19151 # include <assert.h>
19156 /* Override any GCC internal prototype to avoid an error.
19157 Use char because int might match the return type of a GCC
19158 builtin and then its argument prototype would still apply. */
19163 /* The GNU C library defines this for functions which it implements
19164 to always fail with ENOSYS. Some functions are actually named
19165 something starting with __ and the normal name is an alias. */
19166 #if defined __stub_$ac_func || defined __stub___$ac_func
19173 return $ac_func ();
19178 rm -f conftest.$ac_objext conftest$ac_exeext
19179 if { (ac_try="$ac_link"
19180 case "(($ac_try" in
19181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19182 *) ac_try_echo=$ac_try;;
19184 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19185 $as_echo "$ac_try_echo") >&5
19186 (eval "$ac_link") 2>conftest.er1
19188 grep -v '^ *+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19192 (exit $ac_status); } && {
19193 test -z "$ac_c_werror_flag" ||
19194 test ! -s conftest.err
19195 } && test -s conftest$ac_exeext && {
19196 test "$cross_compiling" = yes ||
19197 $as_test_x conftest$ac_exeext
19199 eval "$as_ac_var=yes"
19201 $as_echo "$as_me: failed program was
:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19204 eval "$as_ac_var=no
"
19207 rm -rf conftest.dSYM
19208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19209 conftest$ac_exeext conftest.$ac_ext
19211 ac_res=`eval 'as_val=${'$as_ac_var'}
19212 $as_echo "$as_val"'`
19213 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19214 $as_echo "$ac_res" >&6; }
19215 if test `eval 'as_val=${'$as_ac_var'}
19216 $as_echo "$as_val"'` = yes; then
19217 cat >>confdefs.h <<_ACEOF
19218 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19222 case " $LIBOBJS " in
19223 *" getloadavg.
$ac_objext "* ) ;;
19224 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
19229 cat >>confdefs.h <<\_ACEOF
19230 #define C_GETLOADAVG 1
19233 # Figure out what our getloadavg.c needs.
19235 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19236 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19237 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19238 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19239 $as_echo_n "(cached
) " >&6
19241 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19242 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19244 # Is the header compilable?
19245 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
19246 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
19247 cat >conftest.$ac_ext <<_ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19253 $ac_includes_default
19254 #include <sys/dg_sys_info.h>
19256 rm -f conftest.$ac_objext
19257 if { (ac_try="$ac_compile"
19258 case "(($ac_try" in
19259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260 *) ac_try_echo=$ac_try;;
19262 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19263 $as_echo "$ac_try_echo") >&5
19264 (eval "$ac_compile") 2>conftest.er1
19266 grep -v '^ *+' conftest.er1 >conftest.err
19268 cat conftest.err >&5
19269 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19270 (exit $ac_status); } && {
19271 test -z "$ac_c_werror_flag" ||
19272 test ! -s conftest.err
19273 } && test -s conftest.$ac_objext; then
19274 ac_header_compiler=yes
19276 $as_echo "$as_me: failed program was
:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19279 ac_header_compiler=no
19282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19283 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19284 $as_echo "$ac_header_compiler" >&6; }
19286 # Is the header present?
19287 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
19288 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
19289 cat >conftest.$ac_ext <<_ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19295 #include <sys/dg_sys_info.h>
19297 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19298 case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19302 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19303 $as_echo "$ac_try_echo") >&5
19304 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19306 grep -v '^ *+' conftest.er1 >conftest.err
19308 cat conftest.err >&5
19309 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19310 (exit $ac_status); } >/dev/null && {
19311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19312 test ! -s conftest.err
19314 ac_header_preproc=yes
19316 $as_echo "$as_me: failed program was
:" >&5
19317 sed 's/^/| /' conftest.$ac_ext >&5
19319 ac_header_preproc=no
19322 rm -f conftest.err conftest.$ac_ext
19323 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19324 $as_echo "$ac_header_preproc" >&6; }
19326 # So? What about this header?
19327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19329 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19330 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19331 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
19332 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
19333 ac_header_preproc=yes
19336 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
19337 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
19338 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
19339 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
19340 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
19341 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
19342 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19343 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19344 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
19345 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
19346 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
19347 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
19351 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19352 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19353 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19354 $as_echo_n "(cached
) " >&6
19356 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19358 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19359 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19362 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19365 cat >>confdefs.h <<\_ACEOF
19370 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
19371 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
19372 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19373 $as_echo_n "(cached
) " >&6
19375 ac_check_lib_save_LIBS=$LIBS
19377 cat >conftest.$ac_ext <<_ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h. */
19384 /* Override any GCC internal prototype to avoid an error.
19385 Use char because int might match the return type of a GCC
19386 builtin and then its argument prototype would still apply. */
19390 char dg_sys_info ();
19394 return dg_sys_info ();
19399 rm -f conftest.$ac_objext conftest$ac_exeext
19400 if { (ac_try="$ac_link"
19401 case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19405 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19406 $as_echo "$ac_try_echo") >&5
19407 (eval "$ac_link") 2>conftest.er1
19409 grep -v '^ *+' conftest.er1 >conftest.err
19411 cat conftest.err >&5
19412 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19413 (exit $ac_status); } && {
19414 test -z "$ac_c_werror_flag" ||
19415 test ! -s conftest.err
19416 } && test -s conftest$ac_exeext && {
19417 test "$cross_compiling" = yes ||
19418 $as_test_x conftest$ac_exeext
19420 ac_cv_lib_dgc_dg_sys_info=yes
19422 $as_echo "$as_me: failed program was
:" >&5
19423 sed 's/^/| /' conftest.$ac_ext >&5
19425 ac_cv_lib_dgc_dg_sys_info=no
19428 rm -rf conftest.dSYM
19429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19430 conftest$ac_exeext conftest.$ac_ext
19431 LIBS=$ac_check_lib_save_LIBS
19433 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
19434 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19435 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19436 cat >>confdefs.h <<_ACEOF
19437 #define HAVE_LIBDGC 1
19448 if test "${ac_cv_header_locale_h+set}" = set; then
19449 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19450 $as_echo_n "checking
for locale.h...
" >&6; }
19451 if test "${ac_cv_header_locale_h+set}" = set; then
19452 $as_echo_n "(cached
) " >&6
19454 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19455 $as_echo "$ac_cv_header_locale_h" >&6; }
19457 # Is the header compilable?
19458 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19459 $as_echo_n "checking locale.h usability...
" >&6; }
19460 cat >conftest.$ac_ext <<_ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19466 $ac_includes_default
19467 #include <locale.h>
19469 rm -f conftest.$ac_objext
19470 if { (ac_try="$ac_compile"
19471 case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19475 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19476 $as_echo "$ac_try_echo") >&5
19477 (eval "$ac_compile") 2>conftest.er1
19479 grep -v '^ *+' conftest.er1 >conftest.err
19481 cat conftest.err >&5
19482 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19483 (exit $ac_status); } && {
19484 test -z "$ac_c_werror_flag" ||
19485 test ! -s conftest.err
19486 } && test -s conftest.$ac_objext; then
19487 ac_header_compiler=yes
19489 $as_echo "$as_me: failed program was
:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19492 ac_header_compiler=no
19495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19496 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19497 $as_echo "$ac_header_compiler" >&6; }
19499 # Is the header present?
19500 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19501 $as_echo_n "checking locale.h presence...
" >&6; }
19502 cat >conftest.$ac_ext <<_ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h. */
19508 #include <locale.h>
19510 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19515 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19516 $as_echo "$ac_try_echo") >&5
19517 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19519 grep -v '^ *+' conftest.er1 >conftest.err
19521 cat conftest.err >&5
19522 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19523 (exit $ac_status); } >/dev/null && {
19524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19525 test ! -s conftest.err
19527 ac_header_preproc=yes
19529 $as_echo "$as_me: failed program was
:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19532 ac_header_preproc=no
19535 rm -f conftest.err conftest.$ac_ext
19536 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19537 $as_echo "$ac_header_preproc" >&6; }
19539 # So? What about this header?
19540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19542 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19543 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19544 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19545 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19546 ac_header_preproc=yes
19549 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19550 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19551 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19552 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19553 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19554 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19555 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19556 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19557 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19558 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19559 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19560 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19564 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19565 $as_echo_n "checking
for locale.h...
" >&6; }
19566 if test "${ac_cv_header_locale_h+set}" = set; then
19567 $as_echo_n "(cached
) " >&6
19569 ac_cv_header_locale_h=$ac_header_preproc
19571 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19572 $as_echo "$ac_cv_header_locale_h" >&6; }
19578 for ac_func in setlocale
19580 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19581 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19582 $as_echo_n "checking
for $ac_func...
" >&6; }
19583 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19584 $as_echo_n "(cached
) " >&6
19586 cat >conftest.$ac_ext <<_ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19594 #define $ac_func innocuous_$ac_func
19596 /* System header to define __stub macros and hopefully few prototypes,
19597 which can conflict with char $ac_func (); below.
19598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19599 <limits.h> exists even on freestanding compilers. */
19602 # include <limits.h>
19604 # include <assert.h>
19609 /* Override any GCC internal prototype to avoid an error.
19610 Use char because int might match the return type of a GCC
19611 builtin and then its argument prototype would still apply. */
19616 /* The GNU C library defines this for functions which it implements
19617 to always fail with ENOSYS. Some functions are actually named
19618 something starting with __ and the normal name is an alias. */
19619 #if defined __stub_$ac_func || defined __stub___$ac_func
19626 return $ac_func ();
19631 rm -f conftest.$ac_objext conftest$ac_exeext
19632 if { (ac_try="$ac_link"
19633 case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19637 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19638 $as_echo "$ac_try_echo") >&5
19639 (eval "$ac_link") 2>conftest.er1
19641 grep -v '^ *+' conftest.er1 >conftest.err
19643 cat conftest.err >&5
19644 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19645 (exit $ac_status); } && {
19646 test -z "$ac_c_werror_flag" ||
19647 test ! -s conftest.err
19648 } && test -s conftest$ac_exeext && {
19649 test "$cross_compiling" = yes ||
19650 $as_test_x conftest$ac_exeext
19652 eval "$as_ac_var=yes"
19654 $as_echo "$as_me: failed program was
:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19657 eval "$as_ac_var=no
"
19660 rm -rf conftest.dSYM
19661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19662 conftest$ac_exeext conftest.$ac_ext
19664 ac_res=`eval 'as_val=${'$as_ac_var'}
19665 $as_echo "$as_val"'`
19666 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19667 $as_echo "$ac_res" >&6; }
19668 if test `eval 'as_val=${'$as_ac_var'}
19669 $as_echo "$as_val"'` = yes; then
19670 cat >>confdefs.h <<_ACEOF
19671 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19678 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19679 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19680 # Irix 4.0.5F has the header but not the library.
19681 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19684 cat >>confdefs.h <<\_ACEOF
19690 if test $ac_have_func = no; then
19691 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19692 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19693 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19694 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19695 $as_echo_n "(cached
) " >&6
19697 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19698 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19700 # Is the header compilable?
19701 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19702 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19703 cat >conftest.$ac_ext <<_ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h. */
19709 $ac_includes_default
19710 #include <inq_stats/cpustats.h>
19712 rm -f conftest.$ac_objext
19713 if { (ac_try="$ac_compile"
19714 case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19718 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19719 $as_echo "$ac_try_echo") >&5
19720 (eval "$ac_compile") 2>conftest.er1
19722 grep -v '^ *+' conftest.er1 >conftest.err
19724 cat conftest.err >&5
19725 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19726 (exit $ac_status); } && {
19727 test -z "$ac_c_werror_flag" ||
19728 test ! -s conftest.err
19729 } && test -s conftest.$ac_objext; then
19730 ac_header_compiler=yes
19732 $as_echo "$as_me: failed program was
:" >&5
19733 sed 's/^/| /' conftest.$ac_ext >&5
19735 ac_header_compiler=no
19738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19739 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19740 $as_echo "$ac_header_compiler" >&6; }
19742 # Is the header present?
19743 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19744 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19745 cat >conftest.$ac_ext <<_ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h. */
19751 #include <inq_stats/cpustats.h>
19753 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19754 case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19758 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19759 $as_echo "$ac_try_echo") >&5
19760 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19762 grep -v '^ *+' conftest.er1 >conftest.err
19764 cat conftest.err >&5
19765 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19766 (exit $ac_status); } >/dev/null && {
19767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19768 test ! -s conftest.err
19770 ac_header_preproc=yes
19772 $as_echo "$as_me: failed program was
:" >&5
19773 sed 's/^/| /' conftest.$ac_ext >&5
19775 ac_header_preproc=no
19778 rm -f conftest.err conftest.$ac_ext
19779 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19780 $as_echo "$ac_header_preproc" >&6; }
19782 # So? What about this header?
19783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19785 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19786 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19787 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19788 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19789 ac_header_preproc=yes
19792 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19793 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19794 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19795 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19796 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19797 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19798 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19799 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19800 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19801 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19802 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19803 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19807 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19808 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19809 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19810 $as_echo_n "(cached
) " >&6
19812 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19814 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19815 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19818 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19821 cat >>confdefs.h <<\_ACEOF
19826 cat >>confdefs.h <<\_ACEOF
19835 if test $ac_have_func = no; then
19836 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19837 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19838 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19839 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19840 $as_echo_n "(cached
) " >&6
19842 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19843 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19845 # Is the header compilable?
19846 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19847 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19848 cat >conftest.$ac_ext <<_ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854 $ac_includes_default
19855 #include <sys/cpustats.h>
19857 rm -f conftest.$ac_objext
19858 if { (ac_try="$ac_compile"
19859 case "(($ac_try" in
19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861 *) ac_try_echo=$ac_try;;
19863 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19864 $as_echo "$ac_try_echo") >&5
19865 (eval "$ac_compile") 2>conftest.er1
19867 grep -v '^ *+' conftest.er1 >conftest.err
19869 cat conftest.err >&5
19870 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19871 (exit $ac_status); } && {
19872 test -z "$ac_c_werror_flag" ||
19873 test ! -s conftest.err
19874 } && test -s conftest.$ac_objext; then
19875 ac_header_compiler=yes
19877 $as_echo "$as_me: failed program was
:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19880 ac_header_compiler=no
19883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19884 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19885 $as_echo "$ac_header_compiler" >&6; }
19887 # Is the header present?
19888 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19889 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19890 cat >conftest.$ac_ext <<_ACEOF
19893 cat confdefs.h >>conftest.$ac_ext
19894 cat >>conftest.$ac_ext <<_ACEOF
19895 /* end confdefs.h. */
19896 #include <sys/cpustats.h>
19898 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19899 case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19903 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19904 $as_echo "$ac_try_echo") >&5
19905 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19907 grep -v '^ *+' conftest.er1 >conftest.err
19909 cat conftest.err >&5
19910 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19911 (exit $ac_status); } >/dev/null && {
19912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19913 test ! -s conftest.err
19915 ac_header_preproc=yes
19917 $as_echo "$as_me: failed program was
:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19920 ac_header_preproc=no
19923 rm -f conftest.err conftest.$ac_ext
19924 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19925 $as_echo "$ac_header_preproc" >&6; }
19927 # So? What about this header?
19928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19930 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19931 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19932 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19933 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19934 ac_header_preproc=yes
19937 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19938 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19939 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19940 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19941 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19942 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19943 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19944 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19945 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19946 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19947 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19948 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19952 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19953 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19954 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19955 $as_echo_n "(cached
) " >&6
19957 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19959 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19960 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19963 if test $ac_cv_header_sys_cpustats_h = yes; then
19964 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19973 if test $ac_have_func = no; then
19975 for ac_header in mach/mach.h
19977 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19978 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19979 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19980 $as_echo_n "checking
for $ac_header...
" >&6; }
19981 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19982 $as_echo_n "(cached
) " >&6
19984 ac_res=`eval 'as_val=${'$as_ac_Header'}
19985 $as_echo "$as_val"'`
19986 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19987 $as_echo "$ac_res" >&6; }
19989 # Is the header compilable?
19990 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19991 $as_echo_n "checking
$ac_header usability...
" >&6; }
19992 cat >conftest.$ac_ext <<_ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 $ac_includes_default
19999 #include <$ac_header>
20001 rm -f conftest.$ac_objext
20002 if { (ac_try="$ac_compile"
20003 case "(($ac_try" in
20004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20005 *) ac_try_echo=$ac_try;;
20007 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20008 $as_echo "$ac_try_echo") >&5
20009 (eval "$ac_compile") 2>conftest.er1
20011 grep -v '^ *+' conftest.er1 >conftest.err
20013 cat conftest.err >&5
20014 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20015 (exit $ac_status); } && {
20016 test -z "$ac_c_werror_flag" ||
20017 test ! -s conftest.err
20018 } && test -s conftest.$ac_objext; then
20019 ac_header_compiler=yes
20021 $as_echo "$as_me: failed program was
:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20024 ac_header_compiler=no
20027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20028 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20029 $as_echo "$ac_header_compiler" >&6; }
20031 # Is the header present?
20032 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20033 $as_echo_n "checking
$ac_header presence...
" >&6; }
20034 cat >conftest.$ac_ext <<_ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h. */
20040 #include <$ac_header>
20042 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20043 case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20047 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20048 $as_echo "$ac_try_echo") >&5
20049 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20051 grep -v '^ *+' conftest.er1 >conftest.err
20053 cat conftest.err >&5
20054 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20055 (exit $ac_status); } >/dev/null && {
20056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20057 test ! -s conftest.err
20059 ac_header_preproc=yes
20061 $as_echo "$as_me: failed program was
:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20064 ac_header_preproc=no
20067 rm -f conftest.err conftest.$ac_ext
20068 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20069 $as_echo "$ac_header_preproc" >&6; }
20071 # So? What about this header?
20072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20074 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20075 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20076 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20077 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20078 ac_header_preproc=yes
20081 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20082 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20083 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20084 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20085 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20086 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20087 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20088 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20089 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20090 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20091 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20092 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20096 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20097 $as_echo_n "checking
for $ac_header...
" >&6; }
20098 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20099 $as_echo_n "(cached
) " >&6
20101 eval "$as_ac_Header=\
$ac_header_preproc"
20103 ac_res=`eval 'as_val=${'$as_ac_Header'}
20104 $as_echo "$as_val"'`
20105 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20106 $as_echo "$ac_res" >&6; }
20109 if test `eval 'as_val=${'$as_ac_Header'}
20110 $as_echo "$as_val"'` = yes; then
20111 cat >>confdefs.h <<_ACEOF
20112 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20122 for ac_header in nlist.h
20124 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20125 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20126 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20127 $as_echo_n "checking
for $ac_header...
" >&6; }
20128 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20129 $as_echo_n "(cached
) " >&6
20131 ac_res=`eval 'as_val=${'$as_ac_Header'}
20132 $as_echo "$as_val"'`
20133 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20134 $as_echo "$ac_res" >&6; }
20136 # Is the header compilable?
20137 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20138 $as_echo_n "checking
$ac_header usability...
" >&6; }
20139 cat >conftest.$ac_ext <<_ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h. */
20145 $ac_includes_default
20146 #include <$ac_header>
20148 rm -f conftest.$ac_objext
20149 if { (ac_try="$ac_compile"
20150 case "(($ac_try" in
20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152 *) ac_try_echo=$ac_try;;
20154 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20155 $as_echo "$ac_try_echo") >&5
20156 (eval "$ac_compile") 2>conftest.er1
20158 grep -v '^ *+' conftest.er1 >conftest.err
20160 cat conftest.err >&5
20161 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20162 (exit $ac_status); } && {
20163 test -z "$ac_c_werror_flag" ||
20164 test ! -s conftest.err
20165 } && test -s conftest.$ac_objext; then
20166 ac_header_compiler=yes
20168 $as_echo "$as_me: failed program was
:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20171 ac_header_compiler=no
20174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20175 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20176 $as_echo "$ac_header_compiler" >&6; }
20178 # Is the header present?
20179 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20180 $as_echo_n "checking
$ac_header presence...
" >&6; }
20181 cat >conftest.$ac_ext <<_ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h. */
20187 #include <$ac_header>
20189 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20190 case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20194 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20195 $as_echo "$ac_try_echo") >&5
20196 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20198 grep -v '^ *+' conftest.er1 >conftest.err
20200 cat conftest.err >&5
20201 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20202 (exit $ac_status); } >/dev/null && {
20203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20204 test ! -s conftest.err
20206 ac_header_preproc=yes
20208 $as_echo "$as_me: failed program was
:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20211 ac_header_preproc=no
20214 rm -f conftest.err conftest.$ac_ext
20215 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20216 $as_echo "$ac_header_preproc" >&6; }
20218 # So? What about this header?
20219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20221 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20222 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20223 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20224 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20225 ac_header_preproc=yes
20228 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20229 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20230 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20231 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20232 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20233 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20234 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20235 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20236 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20237 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20238 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20239 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20243 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20244 $as_echo_n "checking
for $ac_header...
" >&6; }
20245 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20246 $as_echo_n "(cached
) " >&6
20248 eval "$as_ac_Header=\
$ac_header_preproc"
20250 ac_res=`eval 'as_val=${'$as_ac_Header'}
20251 $as_echo "$as_val"'`
20252 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20253 $as_echo "$ac_res" >&6; }
20256 if test `eval 'as_val=${'$as_ac_Header'}
20257 $as_echo "$as_val"'` = yes; then
20258 cat >>confdefs.h <<_ACEOF
20259 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20261 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
20262 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
20263 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20264 $as_echo_n "(cached
) " >&6
20266 cat >conftest.$ac_ext <<_ACEOF
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h. */
20277 static struct nlist ac_aggr;
20278 if (ac_aggr.n_un.n_name)
20284 rm -f conftest.$ac_objext
20285 if { (ac_try="$ac_compile"
20286 case "(($ac_try" in
20287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20288 *) ac_try_echo=$ac_try;;
20290 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20291 $as_echo "$ac_try_echo") >&5
20292 (eval "$ac_compile") 2>conftest.er1
20294 grep -v '^ *+' conftest.er1 >conftest.err
20296 cat conftest.err >&5
20297 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20298 (exit $ac_status); } && {
20299 test -z "$ac_c_werror_flag" ||
20300 test ! -s conftest.err
20301 } && test -s conftest.$ac_objext; then
20302 ac_cv_member_struct_nlist_n_un_n_name=yes
20304 $as_echo "$as_me: failed program was
:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20307 cat >conftest.$ac_ext <<_ACEOF
20310 cat confdefs.h >>conftest.$ac_ext
20311 cat >>conftest.$ac_ext <<_ACEOF
20312 /* end confdefs.h. */
20318 static struct nlist ac_aggr;
20319 if (sizeof ac_aggr.n_un.n_name)
20325 rm -f conftest.$ac_objext
20326 if { (ac_try="$ac_compile"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20331 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20332 $as_echo "$ac_try_echo") >&5
20333 (eval "$ac_compile") 2>conftest.er1
20335 grep -v '^ *+' conftest.er1 >conftest.err
20337 cat conftest.err >&5
20338 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20339 (exit $ac_status); } && {
20340 test -z "$ac_c_werror_flag" ||
20341 test ! -s conftest.err
20342 } && test -s conftest.$ac_objext; then
20343 ac_cv_member_struct_nlist_n_un_n_name=yes
20345 $as_echo "$as_me: failed program was
:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 ac_cv_member_struct_nlist_n_un_n_name=no
20351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20356 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20357 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20358 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20360 cat >>confdefs.h <<_ACEOF
20361 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20365 cat >>confdefs.h <<\_ACEOF
20366 #define NLIST_NAME_UNION 1
20380 # Some definitions of getloadavg require that the program be installed setgid.
20381 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
20382 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
20383 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20384 $as_echo_n "(cached
) " >&6
20386 cat >conftest.$ac_ext <<_ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h. */
20392 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
20393 #ifdef LDAV_PRIVILEGED
20394 Yowza Am I SETGID yet
20397 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
20398 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
20399 ac_cv_func_getloadavg_setgid=yes
20401 ac_cv_func_getloadavg_setgid=no
20406 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
20407 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20408 if test $ac_cv_func_getloadavg_setgid = yes; then
20411 cat >>confdefs.h <<\_ACEOF
20412 #define GETLOADAVG_PRIVILEGED 1
20419 if test $ac_cv_func_getloadavg_setgid = yes; then
20420 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
20421 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
20422 if test "${ac_cv_group_kmem+set}" = set; then
20423 $as_echo_n "(cached
) " >&6
20425 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20426 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20427 # If we got an error (system does not support symlinks), try without -L.
20428 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20429 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20430 | sed -ne 's/[ ][ ]*/ /g;
20431 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20435 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
20436 $as_echo "$ac_cv_group_kmem" >&6; }
20437 KMEM_GROUP=$ac_cv_group_kmem
20439 if test "x
$ac_save_LIBS" = x; then
20440 GETLOADAVG_LIBS=$LIBS
20442 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
20448 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
20449 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
20450 if test "${ac_cv_sys_largefile_source+set}" = set; then
20451 $as_echo_n "(cached
) " >&6
20454 cat >conftest.$ac_ext <<_ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20460 #include <sys/types.h> /* for off_t */
20465 int (*fp) (FILE *, off_t, int) = fseeko;
20466 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20471 rm -f conftest.$ac_objext conftest$ac_exeext
20472 if { (ac_try="$ac_link"
20473 case "(($ac_try" in
20474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475 *) ac_try_echo=$ac_try;;
20477 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20478 $as_echo "$ac_try_echo") >&5
20479 (eval "$ac_link") 2>conftest.er1
20481 grep -v '^ *+' conftest.er1 >conftest.err
20483 cat conftest.err >&5
20484 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20485 (exit $ac_status); } && {
20486 test -z "$ac_c_werror_flag" ||
20487 test ! -s conftest.err
20488 } && test -s conftest$ac_exeext && {
20489 test "$cross_compiling" = yes ||
20490 $as_test_x conftest$ac_exeext
20492 ac_cv_sys_largefile_source=no; break
20494 $as_echo "$as_me: failed program was
:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20500 rm -rf conftest.dSYM
20501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20502 conftest$ac_exeext conftest.$ac_ext
20503 cat >conftest.$ac_ext <<_ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h. */
20509 #define _LARGEFILE_SOURCE 1
20510 #include <sys/types.h> /* for off_t */
20515 int (*fp) (FILE *, off_t, int) = fseeko;
20516 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20521 rm -f conftest.$ac_objext conftest$ac_exeext
20522 if { (ac_try="$ac_link"
20523 case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20527 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20528 $as_echo "$ac_try_echo") >&5
20529 (eval "$ac_link") 2>conftest.er1
20531 grep -v '^ *+' conftest.er1 >conftest.err
20533 cat conftest.err >&5
20534 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20535 (exit $ac_status); } && {
20536 test -z "$ac_c_werror_flag" ||
20537 test ! -s conftest.err
20538 } && test -s conftest$ac_exeext && {
20539 test "$cross_compiling" = yes ||
20540 $as_test_x conftest$ac_exeext
20542 ac_cv_sys_largefile_source=1; break
20544 $as_echo "$as_me: failed program was
:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20550 rm -rf conftest.dSYM
20551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20552 conftest$ac_exeext conftest.$ac_ext
20553 ac_cv_sys_largefile_source=unknown
20557 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20558 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20559 case $ac_cv_sys_largefile_source in #(
20562 cat >>confdefs.h <<_ACEOF
20563 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20569 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20570 # in glibc 2.1.3, but that breaks too many other things.
20571 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20572 if test $ac_cv_sys_largefile_source != unknown; then
20574 cat >>confdefs.h <<\_ACEOF
20575 #define HAVE_FSEEKO 1
20581 # Configure getopt.
20582 # getopt.m4 serial 10
20584 # The getopt module assume you want GNU getopt, with getopt_long etc,
20585 # rather than vanilla POSIX getopt. This means your your code should
20586 # always include <getopt.h> for the getopt prototypes.
20598 # Prerequisites of lib/getopt*.
20605 for ac_header in getopt.h
20607 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20608 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20609 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20610 $as_echo_n "checking
for $ac_header...
" >&6; }
20611 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20612 $as_echo_n "(cached
) " >&6
20614 ac_res=`eval 'as_val=${'$as_ac_Header'}
20615 $as_echo "$as_val"'`
20616 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20617 $as_echo "$ac_res" >&6; }
20619 # Is the header compilable?
20620 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20621 $as_echo_n "checking
$ac_header usability...
" >&6; }
20622 cat >conftest.$ac_ext <<_ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20628 $ac_includes_default
20629 #include <$ac_header>
20631 rm -f conftest.$ac_objext
20632 if { (ac_try="$ac_compile"
20633 case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20637 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20638 $as_echo "$ac_try_echo") >&5
20639 (eval "$ac_compile") 2>conftest.er1
20641 grep -v '^ *+' conftest.er1 >conftest.err
20643 cat conftest.err >&5
20644 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20645 (exit $ac_status); } && {
20646 test -z "$ac_c_werror_flag" ||
20647 test ! -s conftest.err
20648 } && test -s conftest.$ac_objext; then
20649 ac_header_compiler=yes
20651 $as_echo "$as_me: failed program was
:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654 ac_header_compiler=no
20657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20658 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20659 $as_echo "$ac_header_compiler" >&6; }
20661 # Is the header present?
20662 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20663 $as_echo_n "checking
$ac_header presence...
" >&6; }
20664 cat >conftest.$ac_ext <<_ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h. */
20670 #include <$ac_header>
20672 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20673 case "(($ac_try" in
20674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20677 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20678 $as_echo "$ac_try_echo") >&5
20679 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20681 grep -v '^ *+' conftest.er1 >conftest.err
20683 cat conftest.err >&5
20684 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20685 (exit $ac_status); } >/dev/null && {
20686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20687 test ! -s conftest.err
20689 ac_header_preproc=yes
20691 $as_echo "$as_me: failed program was
:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20694 ac_header_preproc=no
20697 rm -f conftest.err conftest.$ac_ext
20698 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20699 $as_echo "$ac_header_preproc" >&6; }
20701 # So? What about this header?
20702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20704 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20705 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20706 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20707 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20708 ac_header_preproc=yes
20711 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20712 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20713 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20714 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20715 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20716 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20717 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20718 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20719 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20720 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20721 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20722 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20726 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20727 $as_echo_n "checking
for $ac_header...
" >&6; }
20728 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20729 $as_echo_n "(cached
) " >&6
20731 eval "$as_ac_Header=\
$ac_header_preproc"
20733 ac_res=`eval 'as_val=${'$as_ac_Header'}
20734 $as_echo "$as_val"'`
20735 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20736 $as_echo "$ac_res" >&6; }
20739 if test `eval 'as_val=${'$as_ac_Header'}
20740 $as_echo "$as_val"'` = yes; then
20741 cat >>confdefs.h <<_ACEOF
20742 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20751 if test -z "$GETOPT_H"; then
20753 for ac_func in getopt_long_only
20755 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20756 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20757 $as_echo_n "checking
for $ac_func...
" >&6; }
20758 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20759 $as_echo_n "(cached
) " >&6
20761 cat >conftest.$ac_ext <<_ACEOF
20764 cat confdefs.h >>conftest.$ac_ext
20765 cat >>conftest.$ac_ext <<_ACEOF
20766 /* end confdefs.h. */
20767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20769 #define $ac_func innocuous_$ac_func
20771 /* System header to define __stub macros and hopefully few prototypes,
20772 which can conflict with char $ac_func (); below.
20773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20774 <limits.h> exists even on freestanding compilers. */
20777 # include <limits.h>
20779 # include <assert.h>
20784 /* Override any GCC internal prototype to avoid an error.
20785 Use char because int might match the return type of a GCC
20786 builtin and then its argument prototype would still apply. */
20791 /* The GNU C library defines this for functions which it implements
20792 to always fail with ENOSYS. Some functions are actually named
20793 something starting with __ and the normal name is an alias. */
20794 #if defined __stub_$ac_func || defined __stub___$ac_func
20801 return $ac_func ();
20806 rm -f conftest.$ac_objext conftest$ac_exeext
20807 if { (ac_try="$ac_link"
20808 case "(($ac_try" in
20809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810 *) ac_try_echo=$ac_try;;
20812 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20813 $as_echo "$ac_try_echo") >&5
20814 (eval "$ac_link") 2>conftest.er1
20816 grep -v '^ *+' conftest.er1 >conftest.err
20818 cat conftest.err >&5
20819 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20820 (exit $ac_status); } && {
20821 test -z "$ac_c_werror_flag" ||
20822 test ! -s conftest.err
20823 } && test -s conftest$ac_exeext && {
20824 test "$cross_compiling" = yes ||
20825 $as_test_x conftest$ac_exeext
20827 eval "$as_ac_var=yes"
20829 $as_echo "$as_me: failed program was
:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20832 eval "$as_ac_var=no
"
20835 rm -rf conftest.dSYM
20836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20837 conftest$ac_exeext conftest.$ac_ext
20839 ac_res=`eval 'as_val=${'$as_ac_var'}
20840 $as_echo "$as_val"'`
20841 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20842 $as_echo "$ac_res" >&6; }
20843 if test `eval 'as_val=${'$as_ac_var'}
20844 $as_echo "$as_val"'` = yes; then
20845 cat >>confdefs.h <<_ACEOF
20846 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20856 if test -z "$GETOPT_H"; then
20857 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20858 $as_echo_n "checking whether optreset is declared...
" >&6; }
20859 if test "${ac_cv_have_decl_optreset+set}" = set; then
20860 $as_echo_n "(cached
) " >&6
20862 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 #include <getopt.h>
20881 rm -f conftest.$ac_objext
20882 if { (ac_try="$ac_compile"
20883 case "(($ac_try" in
20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885 *) ac_try_echo=$ac_try;;
20887 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20888 $as_echo "$ac_try_echo") >&5
20889 (eval "$ac_compile") 2>conftest.er1
20891 grep -v '^ *+' conftest.er1 >conftest.err
20893 cat conftest.err >&5
20894 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20895 (exit $ac_status); } && {
20896 test -z "$ac_c_werror_flag" ||
20897 test ! -s conftest.err
20898 } && test -s conftest.$ac_objext; then
20899 ac_cv_have_decl_optreset=yes
20901 $as_echo "$as_me: failed program was
:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20904 ac_cv_have_decl_optreset=no
20907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20909 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20910 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20911 if test $ac_cv_have_decl_optreset = yes; then
20917 if test -z "$GETOPT_H"; then
20918 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20919 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20920 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20921 $as_echo_n "(cached
) " >&6
20923 if test "$cross_compiling" = yes; then
20924 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20925 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20926 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20927 $as_echo_n "(cached
) " >&6
20929 cat >conftest.$ac_ext <<_ACEOF
20932 cat confdefs.h >>conftest.$ac_ext
20933 cat >>conftest.$ac_ext <<_ACEOF
20934 /* end confdefs.h. */
20935 #include <getopt.h>
20940 #ifndef getopt_clip
20941 (void) getopt_clip;
20948 rm -f conftest.$ac_objext
20949 if { (ac_try="$ac_compile"
20950 case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20954 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20955 $as_echo "$ac_try_echo") >&5
20956 (eval "$ac_compile") 2>conftest.er1
20958 grep -v '^ *+' conftest.er1 >conftest.err
20960 cat conftest.err >&5
20961 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20962 (exit $ac_status); } && {
20963 test -z "$ac_c_werror_flag" ||
20964 test ! -s conftest.err
20965 } && test -s conftest.$ac_objext; then
20966 ac_cv_have_decl_getopt_clip=yes
20968 $as_echo "$as_me: failed program was
:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20971 ac_cv_have_decl_getopt_clip=no
20974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20976 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20977 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20978 if test $ac_cv_have_decl_getopt_clip = yes; then
20979 gl_cv_func_gnu_getopt=no
20981 gl_cv_func_gnu_getopt=yes
20985 cat >conftest.$ac_ext <<_ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h. */
20991 #include <getopt.h>
20997 myargv[0] = "conftest
";
21000 return getopt (2, myargv, "+a
") != '?';
21006 rm -f conftest$ac_exeext
21007 if { (ac_try="$ac_link"
21008 case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21012 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21013 $as_echo "$ac_try_echo") >&5
21014 (eval "$ac_link") 2>&5
21016 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21018 { (case "(($ac_try" in
21019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020 *) ac_try_echo=$ac_try;;
21022 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21023 $as_echo "$ac_try_echo") >&5
21024 (eval "$ac_try") 2>&5
21026 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21027 (exit $ac_status); }; }; then
21028 gl_cv_func_gnu_getopt=yes
21030 $as_echo "$as_me: program exited with status
$ac_status" >&5
21031 $as_echo "$as_me: failed program was
:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 ( exit $ac_status )
21035 gl_cv_func_gnu_getopt=no
21037 rm -rf conftest.dSYM
21038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21043 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
21044 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21045 if test "$gl_cv_func_gnu_getopt" = "no
"; then
21052 if test -n "$GETOPT_H"; then
21057 cat >>confdefs.h <<\_ACEOF
21058 #define __GETOPT_PREFIX rpl_
21064 GETOPTOBJS='getopt.o getopt1.o'
21071 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
21072 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
21073 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21074 $as_echo_n "(cached
) " >&6
21076 # Use it with a single arg.
21077 cat >conftest.$ac_ext <<_ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21083 $ac_includes_default
21092 rm -f conftest.$ac_objext
21093 if { (ac_try="$ac_compile"
21094 case "(($ac_try" in
21095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096 *) ac_try_echo=$ac_try;;
21098 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21099 $as_echo "$ac_try_echo") >&5
21100 (eval "$ac_compile") 2>conftest.er1
21102 grep -v '^ *+' conftest.er1 >conftest.err
21104 cat conftest.err >&5
21105 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21106 (exit $ac_status); } && {
21107 test -z "$ac_c_werror_flag" ||
21108 test ! -s conftest.err
21109 } && test -s conftest.$ac_objext; then
21110 ac_cv_func_getpgrp_void=no
21112 $as_echo "$as_me: failed program was
:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21115 ac_cv_func_getpgrp_void=yes
21118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21121 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
21122 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21123 if test $ac_cv_func_getpgrp_void = yes; then
21125 cat >>confdefs.h <<\_ACEOF
21126 #define GETPGRP_VOID 1
21133 for ac_func in strftime
21135 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21136 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21137 $as_echo_n "checking
for $ac_func...
" >&6; }
21138 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21139 $as_echo_n "(cached
) " >&6
21141 cat >conftest.$ac_ext <<_ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21149 #define $ac_func innocuous_$ac_func
21151 /* System header to define __stub macros and hopefully few prototypes,
21152 which can conflict with char $ac_func (); below.
21153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21154 <limits.h> exists even on freestanding compilers. */
21157 # include <limits.h>
21159 # include <assert.h>
21164 /* Override any GCC internal prototype to avoid an error.
21165 Use char because int might match the return type of a GCC
21166 builtin and then its argument prototype would still apply. */
21171 /* The GNU C library defines this for functions which it implements
21172 to always fail with ENOSYS. Some functions are actually named
21173 something starting with __ and the normal name is an alias. */
21174 #if defined __stub_$ac_func || defined __stub___$ac_func
21181 return $ac_func ();
21186 rm -f conftest.$ac_objext conftest$ac_exeext
21187 if { (ac_try="$ac_link"
21188 case "(($ac_try" in
21189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21190 *) ac_try_echo=$ac_try;;
21192 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21193 $as_echo "$ac_try_echo") >&5
21194 (eval "$ac_link") 2>conftest.er1
21196 grep -v '^ *+' conftest.er1 >conftest.err
21198 cat conftest.err >&5
21199 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21200 (exit $ac_status); } && {
21201 test -z "$ac_c_werror_flag" ||
21202 test ! -s conftest.err
21203 } && test -s conftest$ac_exeext && {
21204 test "$cross_compiling" = yes ||
21205 $as_test_x conftest$ac_exeext
21207 eval "$as_ac_var=yes"
21209 $as_echo "$as_me: failed program was
:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21212 eval "$as_ac_var=no
"
21215 rm -rf conftest.dSYM
21216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21217 conftest$ac_exeext conftest.$ac_ext
21219 ac_res=`eval 'as_val=${'$as_ac_var'}
21220 $as_echo "$as_val"'`
21221 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21222 $as_echo "$ac_res" >&6; }
21223 if test `eval 'as_val=${'$as_ac_var'}
21224 $as_echo "$as_val"'` = yes; then
21225 cat >>confdefs.h <<_ACEOF
21226 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21230 # strftime is in -lintl on SCO UNIX.
21231 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
21232 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
21233 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21234 $as_echo_n "(cached
) " >&6
21236 ac_check_lib_save_LIBS=$LIBS
21237 LIBS="-lintl $LIBS"
21238 cat >conftest.$ac_ext <<_ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21245 /* Override any GCC internal prototype to avoid an error.
21246 Use char because int might match the return type of a GCC
21247 builtin and then its argument prototype would still apply. */
21255 return strftime ();
21260 rm -f conftest.$ac_objext conftest$ac_exeext
21261 if { (ac_try="$ac_link"
21262 case "(($ac_try" in
21263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264 *) ac_try_echo=$ac_try;;
21266 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21267 $as_echo "$ac_try_echo") >&5
21268 (eval "$ac_link") 2>conftest.er1
21270 grep -v '^ *+' conftest.er1 >conftest.err
21272 cat conftest.err >&5
21273 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21274 (exit $ac_status); } && {
21275 test -z "$ac_c_werror_flag" ||
21276 test ! -s conftest.err
21277 } && test -s conftest$ac_exeext && {
21278 test "$cross_compiling" = yes ||
21279 $as_test_x conftest$ac_exeext
21281 ac_cv_lib_intl_strftime=yes
21283 $as_echo "$as_me: failed program was
:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 ac_cv_lib_intl_strftime=no
21289 rm -rf conftest.dSYM
21290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21291 conftest$ac_exeext conftest.$ac_ext
21292 LIBS=$ac_check_lib_save_LIBS
21294 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
21295 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21296 if test $ac_cv_lib_intl_strftime = yes; then
21297 cat >>confdefs.h <<\_ACEOF
21298 #define HAVE_STRFTIME 1
21301 LIBS="-lintl $LIBS"
21310 for ac_func in grantpt
21312 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21313 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21314 $as_echo_n "checking
for $ac_func...
" >&6; }
21315 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21316 $as_echo_n "(cached
) " >&6
21318 cat >conftest.$ac_ext <<_ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21326 #define $ac_func innocuous_$ac_func
21328 /* System header to define __stub macros and hopefully few prototypes,
21329 which can conflict with char $ac_func (); below.
21330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21331 <limits.h> exists even on freestanding compilers. */
21334 # include <limits.h>
21336 # include <assert.h>
21341 /* Override any GCC internal prototype to avoid an error.
21342 Use char because int might match the return type of a GCC
21343 builtin and then its argument prototype would still apply. */
21348 /* The GNU C library defines this for functions which it implements
21349 to always fail with ENOSYS. Some functions are actually named
21350 something starting with __ and the normal name is an alias. */
21351 #if defined __stub_$ac_func || defined __stub___$ac_func
21358 return $ac_func ();
21363 rm -f conftest.$ac_objext conftest$ac_exeext
21364 if { (ac_try="$ac_link"
21365 case "(($ac_try" in
21366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21367 *) ac_try_echo=$ac_try;;
21369 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21370 $as_echo "$ac_try_echo") >&5
21371 (eval "$ac_link") 2>conftest.er1
21373 grep -v '^ *+' conftest.er1 >conftest.err
21375 cat conftest.err >&5
21376 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21377 (exit $ac_status); } && {
21378 test -z "$ac_c_werror_flag" ||
21379 test ! -s conftest.err
21380 } && test -s conftest$ac_exeext && {
21381 test "$cross_compiling" = yes ||
21382 $as_test_x conftest$ac_exeext
21384 eval "$as_ac_var=yes"
21386 $as_echo "$as_me: failed program was
:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21389 eval "$as_ac_var=no
"
21392 rm -rf conftest.dSYM
21393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21394 conftest$ac_exeext conftest.$ac_ext
21396 ac_res=`eval 'as_val=${'$as_ac_var'}
21397 $as_echo "$as_val"'`
21398 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21399 $as_echo "$ac_res" >&6; }
21400 if test `eval 'as_val=${'$as_ac_var'}
21401 $as_echo "$as_val"'` = yes; then
21402 cat >>confdefs.h <<_ACEOF
21403 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21410 # PTY-related GNU extensions.
21412 for ac_func in getpt
21414 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21415 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21416 $as_echo_n "checking
for $ac_func...
" >&6; }
21417 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21418 $as_echo_n "(cached
) " >&6
21420 cat >conftest.$ac_ext <<_ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21428 #define $ac_func innocuous_$ac_func
21430 /* System header to define __stub macros and hopefully few prototypes,
21431 which can conflict with char $ac_func (); below.
21432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21433 <limits.h> exists even on freestanding compilers. */
21436 # include <limits.h>
21438 # include <assert.h>
21443 /* Override any GCC internal prototype to avoid an error.
21444 Use char because int might match the return type of a GCC
21445 builtin and then its argument prototype would still apply. */
21450 /* The GNU C library defines this for functions which it implements
21451 to always fail with ENOSYS. Some functions are actually named
21452 something starting with __ and the normal name is an alias. */
21453 #if defined __stub_$ac_func || defined __stub___$ac_func
21460 return $ac_func ();
21465 rm -f conftest.$ac_objext conftest$ac_exeext
21466 if { (ac_try="$ac_link"
21467 case "(($ac_try" in
21468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469 *) ac_try_echo=$ac_try;;
21471 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21472 $as_echo "$ac_try_echo") >&5
21473 (eval "$ac_link") 2>conftest.er1
21475 grep -v '^ *+' conftest.er1 >conftest.err
21477 cat conftest.err >&5
21478 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21479 (exit $ac_status); } && {
21480 test -z "$ac_c_werror_flag" ||
21481 test ! -s conftest.err
21482 } && test -s conftest$ac_exeext && {
21483 test "$cross_compiling" = yes ||
21484 $as_test_x conftest$ac_exeext
21486 eval "$as_ac_var=yes"
21488 $as_echo "$as_me: failed program was
:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21491 eval "$as_ac_var=no
"
21494 rm -rf conftest.dSYM
21495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21496 conftest$ac_exeext conftest.$ac_ext
21498 ac_res=`eval 'as_val=${'$as_ac_var'}
21499 $as_echo "$as_val"'`
21500 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21501 $as_echo "$ac_res" >&6; }
21502 if test `eval 'as_val=${'$as_ac_var'}
21503 $as_echo "$as_val"'` = yes; then
21504 cat >>confdefs.h <<_ACEOF
21505 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21512 # Check this now, so that we will NOT find the above functions in ncurses.
21513 # That is because we have not set up to link ncurses in lib-src.
21514 # It's better to believe a function is not available
21515 # than to expect to find it in ncurses.
21516 # Also we need tputs and friends to be able to build at all.
21517 have_tputs_et_al=true
21518 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21519 $as_echo_n "checking
for library containing tputs...
" >&6; }
21520 if test "${ac_cv_search_tputs+set}" = set; then
21521 $as_echo_n "(cached
) " >&6
21523 ac_func_search_save_LIBS=$LIBS
21524 cat >conftest.$ac_ext <<_ACEOF
21527 cat confdefs.h >>conftest.$ac_ext
21528 cat >>conftest.$ac_ext <<_ACEOF
21529 /* end confdefs.h. */
21531 /* Override any GCC internal prototype to avoid an error.
21532 Use char because int might match the return type of a GCC
21533 builtin and then its argument prototype would still apply. */
21546 for ac_lib in '' ncurses terminfo termcap; do
21547 if test -z "$ac_lib"; then
21548 ac_res="none required
"
21551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21553 rm -f conftest.$ac_objext conftest$ac_exeext
21554 if { (ac_try="$ac_link"
21555 case "(($ac_try" in
21556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557 *) ac_try_echo=$ac_try;;
21559 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21560 $as_echo "$ac_try_echo") >&5
21561 (eval "$ac_link") 2>conftest.er1
21563 grep -v '^ *+' conftest.er1 >conftest.err
21565 cat conftest.err >&5
21566 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21567 (exit $ac_status); } && {
21568 test -z "$ac_c_werror_flag" ||
21569 test ! -s conftest.err
21570 } && test -s conftest$ac_exeext && {
21571 test "$cross_compiling" = yes ||
21572 $as_test_x conftest$ac_exeext
21574 ac_cv_search_tputs=$ac_res
21576 $as_echo "$as_me: failed program was
:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21582 rm -rf conftest.dSYM
21583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21585 if test "${ac_cv_search_tputs+set}" = set; then
21589 if test "${ac_cv_search_tputs+set}" = set; then
21592 ac_cv_search_tputs=no
21594 rm conftest.$ac_ext
21595 LIBS=$ac_func_search_save_LIBS
21597 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21598 $as_echo "$ac_cv_search_tputs" >&6; }
21599 ac_res=$ac_cv_search_tputs
21600 if test "$ac_res" != no; then
21601 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21604 have_tputs_et_al=false
21607 if test "$have_tputs_et_al" != true; then
21608 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21609 Maybe some development libraries/packages are missing? Try installing
21610 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21611 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21612 Maybe some development libraries
/packages are missing? Try installing
21613 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21614 { (exit 1); exit 1; }; }
21616 # Must define this when any termcap library is found.
21618 cat >>confdefs.h <<\_ACEOF
21619 #define HAVE_LIBNCURSES 1
21622 ## FIXME This was the cpp logic, but I am not sure it is right.
21623 ## The above test has not necessarily found libncurses.
21624 HAVE_LIBNCURSES=yes
21626 ## Use terminfo instead of termcap?
21627 ## Note only system files NOT using terminfo are:
21628 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
21629 ## darwin|gnu without ncurses.
21633 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21634 ## hpux10-20: Use the system provided termcap(3) library.
21635 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21636 ## is necessary. Otherwise Emacs dumps core when run -nw.
21637 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
21639 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21640 ## The ncurses library has been moved out of the System framework in
21641 ## Mac OS X 10.2. So if configure detects it, set the command-line
21642 ## option to use it.
21644 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21645 if test "x
$HAVE_LIBNCURSES" = "xyes
"; then
21647 LIBS_TERMCAP="-lncurses"
21652 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo
" >&5
21653 $as_echo_n "checking whether FreeBSD is new enough to use terminfo...
" >&6; }
21654 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21655 $as_echo_n "(cached
) " >&6
21657 cat >conftest.$ac_ext <<_ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21663 #include <osreldate.h>
21667 #if __FreeBSD_version < 400000
21675 rm -f conftest.$ac_objext conftest$ac_exeext
21676 if { (ac_try="$ac_link"
21677 case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21681 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21682 $as_echo "$ac_try_echo") >&5
21683 (eval "$ac_link") 2>conftest.er1
21685 grep -v '^ *+' conftest.er1 >conftest.err
21687 cat conftest.err >&5
21688 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21689 (exit $ac_status); } && {
21690 test -z "$ac_c_werror_flag" ||
21691 test ! -s conftest.err
21692 } && test -s conftest$ac_exeext && {
21693 test "$cross_compiling" = yes ||
21694 $as_test_x conftest$ac_exeext
21696 emacs_cv_freebsd_terminfo=yes
21698 $as_echo "$as_me: failed program was
:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21701 emacs_cv_freebsd_terminfo=no
21704 rm -rf conftest.dSYM
21705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21706 conftest$ac_exeext conftest.$ac_ext
21710 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_freebsd_terminfo" >&5
21711 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21713 if test $emacs_cv_freebsd_terminfo = yes; then
21715 LIBS_TERMCAP="-lncurses"
21717 LIBS_TERMCAP="-ltermcap"
21722 if test $ac_cv_search_tputs = -lterminfo; then
21724 LIBS_TERMCAP="-lterminfo"
21726 LIBS_TERMCAP="-ltermcap"
21733 ## hpux: Make sure we get select from libc rather than from libcurses
21734 ## because libcurses on HPUX 10.10 has a broken version of select.
21735 ## We used to use -lc -lcurses, but this may be cleaner.
21736 hpux*) LIBS_TERMCAP="-ltermcap" ;;
21738 openbsd) LIBS_TERMCAP="-lncurses" ;;
21740 ## Must use system termcap, if we use any termcap. It does special things.
21741 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21744 TERMCAP_OBJ=tparam.o
21745 if test $TERMINFO = yes; then
21747 cat >>confdefs.h <<\_ACEOF
21752 ## Default used to be -ltermcap. Add a case above if need something else.
21753 test "x
$LIBS_TERMCAP" = "x
" && LIBS_TERMCAP="-lcurses"
21755 TERMCAP_OBJ=terminfo.o
21761 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21763 cat >conftest.$ac_ext <<_ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h. */
21769 #include <netinet/in.h>
21770 #include <arpa/nameser.h>
21771 #include <resolv.h>
21780 rm -f conftest.$ac_objext conftest$ac_exeext
21781 if { (ac_try="$ac_link"
21782 case "(($ac_try" in
21783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21784 *) ac_try_echo=$ac_try;;
21786 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21787 $as_echo "$ac_try_echo") >&5
21788 (eval "$ac_link") 2>conftest.er1
21790 grep -v '^ *+' conftest.er1 >conftest.err
21792 cat conftest.err >&5
21793 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21794 (exit $ac_status); } && {
21795 test -z "$ac_c_werror_flag" ||
21796 test ! -s conftest.err
21797 } && test -s conftest$ac_exeext && {
21798 test "$cross_compiling" = yes ||
21799 $as_test_x conftest$ac_exeext
21803 $as_echo "$as_me: failed program was
:" >&5
21804 sed 's/^/| /' conftest.$ac_ext >&5
21809 rm -rf conftest.dSYM
21810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21811 conftest$ac_exeext conftest.$ac_ext
21812 if test "$have_res_init" = no; then
21814 LIBS="$LIBS -lresolv"
21815 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21816 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21817 cat >conftest.$ac_ext <<_ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h. */
21823 #include <netinet/in.h>
21824 #include <arpa/nameser.h>
21825 #include <resolv.h>
21834 rm -f conftest.$ac_objext conftest$ac_exeext
21835 if { (ac_try="$ac_link"
21836 case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21840 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21841 $as_echo "$ac_try_echo") >&5
21842 (eval "$ac_link") 2>conftest.er1
21844 grep -v '^ *+' conftest.er1 >conftest.err
21846 cat conftest.err >&5
21847 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21848 (exit $ac_status); } && {
21849 test -z "$ac_c_werror_flag" ||
21850 test ! -s conftest.err
21851 } && test -s conftest$ac_exeext && {
21852 test "$cross_compiling" = yes ||
21853 $as_test_x conftest$ac_exeext
21857 $as_echo "$as_me: failed program was
:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21863 rm -rf conftest.dSYM
21864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21865 conftest$ac_exeext conftest.$ac_ext
21866 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21867 $as_echo "$have_res_init" >&6; }
21868 if test "$have_res_init" = yes ; then
21874 if test "$have_res_init" = yes; then
21876 cat >>confdefs.h <<\_ACEOF
21877 #define HAVE_RES_INIT 1
21882 # Do we need the Hesiod library to provide the support routines?
21884 if test "$with_hesiod" != no ; then
21885 # Don't set $LIBS here -- see comments above. FIXME which comments?
21886 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21887 $as_echo_n "checking
for res_send...
" >&6; }
21888 if test "${ac_cv_func_res_send+set}" = set; then
21889 $as_echo_n "(cached
) " >&6
21891 cat >conftest.$ac_ext <<_ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h. */
21897 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21899 #define res_send innocuous_res_send
21901 /* System header to define __stub macros and hopefully few prototypes,
21902 which can conflict with char res_send (); below.
21903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21904 <limits.h> exists even on freestanding compilers. */
21907 # include <limits.h>
21909 # include <assert.h>
21914 /* Override any GCC internal prototype to avoid an error.
21915 Use char because int might match the return type of a GCC
21916 builtin and then its argument prototype would still apply. */
21921 /* The GNU C library defines this for functions which it implements
21922 to always fail with ENOSYS. Some functions are actually named
21923 something starting with __ and the normal name is an alias. */
21924 #if defined __stub_res_send || defined __stub___res_send
21931 return res_send ();
21936 rm -f conftest.$ac_objext conftest$ac_exeext
21937 if { (ac_try="$ac_link"
21938 case "(($ac_try" in
21939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940 *) ac_try_echo=$ac_try;;
21942 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21943 $as_echo "$ac_try_echo") >&5
21944 (eval "$ac_link") 2>conftest.er1
21946 grep -v '^ *+' conftest.er1 >conftest.err
21948 cat conftest.err >&5
21949 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21950 (exit $ac_status); } && {
21951 test -z "$ac_c_werror_flag" ||
21952 test ! -s conftest.err
21953 } && test -s conftest$ac_exeext && {
21954 test "$cross_compiling" = yes ||
21955 $as_test_x conftest$ac_exeext
21957 ac_cv_func_res_send=yes
21959 $as_echo "$as_me: failed program was
:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21962 ac_cv_func_res_send=no
21965 rm -rf conftest.dSYM
21966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21967 conftest$ac_exeext conftest.$ac_ext
21969 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21970 $as_echo "$ac_cv_func_res_send" >&6; }
21971 if test $ac_cv_func_res_send = yes; then
21974 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21975 $as_echo_n "checking
for __res_send...
" >&6; }
21976 if test "${ac_cv_func___res_send+set}" = set; then
21977 $as_echo_n "(cached
) " >&6
21979 cat >conftest.$ac_ext <<_ACEOF
21982 cat confdefs.h >>conftest.$ac_ext
21983 cat >>conftest.$ac_ext <<_ACEOF
21984 /* end confdefs.h. */
21985 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21987 #define __res_send innocuous___res_send
21989 /* System header to define __stub macros and hopefully few prototypes,
21990 which can conflict with char __res_send (); below.
21991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21992 <limits.h> exists even on freestanding compilers. */
21995 # include <limits.h>
21997 # include <assert.h>
22002 /* Override any GCC internal prototype to avoid an error.
22003 Use char because int might match the return type of a GCC
22004 builtin and then its argument prototype would still apply. */
22008 char __res_send ();
22009 /* The GNU C library defines this for functions which it implements
22010 to always fail with ENOSYS. Some functions are actually named
22011 something starting with __ and the normal name is an alias. */
22012 #if defined __stub___res_send || defined __stub_____res_send
22019 return __res_send ();
22024 rm -f conftest.$ac_objext conftest$ac_exeext
22025 if { (ac_try="$ac_link"
22026 case "(($ac_try" in
22027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22028 *) ac_try_echo=$ac_try;;
22030 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22031 $as_echo "$ac_try_echo") >&5
22032 (eval "$ac_link") 2>conftest.er1
22034 grep -v '^ *+' conftest.er1 >conftest.err
22036 cat conftest.err >&5
22037 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22038 (exit $ac_status); } && {
22039 test -z "$ac_c_werror_flag" ||
22040 test ! -s conftest.err
22041 } && test -s conftest$ac_exeext && {
22042 test "$cross_compiling" = yes ||
22043 $as_test_x conftest$ac_exeext
22045 ac_cv_func___res_send=yes
22047 $as_echo "$as_me: failed program was
:" >&5
22048 sed 's/^/| /' conftest.$ac_ext >&5
22050 ac_cv_func___res_send=no
22053 rm -rf conftest.dSYM
22054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22055 conftest$ac_exeext conftest.$ac_ext
22057 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
22058 $as_echo "$ac_cv_func___res_send" >&6; }
22059 if test $ac_cv_func___res_send = yes; then
22062 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
22063 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
22064 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22065 $as_echo_n "(cached
) " >&6
22067 ac_check_lib_save_LIBS=$LIBS
22068 LIBS="-lresolv $LIBS"
22069 cat >conftest.$ac_ext <<_ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h. */
22076 /* Override any GCC internal prototype to avoid an error.
22077 Use char because int might match the return type of a GCC
22078 builtin and then its argument prototype would still apply. */
22086 return res_send ();
22091 rm -f conftest.$ac_objext conftest$ac_exeext
22092 if { (ac_try="$ac_link"
22093 case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22097 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22098 $as_echo "$ac_try_echo") >&5
22099 (eval "$ac_link") 2>conftest.er1
22101 grep -v '^ *+' conftest.er1 >conftest.err
22103 cat conftest.err >&5
22104 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22105 (exit $ac_status); } && {
22106 test -z "$ac_c_werror_flag" ||
22107 test ! -s conftest.err
22108 } && test -s conftest$ac_exeext && {
22109 test "$cross_compiling" = yes ||
22110 $as_test_x conftest$ac_exeext
22112 ac_cv_lib_resolv_res_send=yes
22114 $as_echo "$as_me: failed program was
:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22117 ac_cv_lib_resolv_res_send=no
22120 rm -rf conftest.dSYM
22121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22122 conftest$ac_exeext conftest.$ac_ext
22123 LIBS=$ac_check_lib_save_LIBS
22125 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
22126 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22127 if test $ac_cv_lib_resolv_res_send = yes; then
22130 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
22131 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
22132 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22133 $as_echo_n "(cached
) " >&6
22135 ac_check_lib_save_LIBS=$LIBS
22136 LIBS="-lresolv $LIBS"
22137 cat >conftest.$ac_ext <<_ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22144 /* Override any GCC internal prototype to avoid an error.
22145 Use char because int might match the return type of a GCC
22146 builtin and then its argument prototype would still apply. */
22150 char __res_send ();
22154 return __res_send ();
22159 rm -f conftest.$ac_objext conftest$ac_exeext
22160 if { (ac_try="$ac_link"
22161 case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22165 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22166 $as_echo "$ac_try_echo") >&5
22167 (eval "$ac_link") 2>conftest.er1
22169 grep -v '^ *+' conftest.er1 >conftest.err
22171 cat conftest.err >&5
22172 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22173 (exit $ac_status); } && {
22174 test -z "$ac_c_werror_flag" ||
22175 test ! -s conftest.err
22176 } && test -s conftest$ac_exeext && {
22177 test "$cross_compiling" = yes ||
22178 $as_test_x conftest$ac_exeext
22180 ac_cv_lib_resolv___res_send=yes
22182 $as_echo "$as_me: failed program was
:" >&5
22183 sed 's/^/| /' conftest.$ac_ext >&5
22185 ac_cv_lib_resolv___res_send=no
22188 rm -rf conftest.dSYM
22189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22190 conftest$ac_exeext conftest.$ac_ext
22191 LIBS=$ac_check_lib_save_LIBS
22193 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
22194 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22195 if test $ac_cv_lib_resolv___res_send = yes; then
22205 if test "$resolv" = yes ; then
22210 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
22211 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
22212 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22213 $as_echo_n "(cached
) " >&6
22215 cat >conftest.$ac_ext <<_ACEOF
22218 cat confdefs.h >>conftest.$ac_ext
22219 cat >>conftest.$ac_ext <<_ACEOF
22220 /* end confdefs.h. */
22221 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22223 #define hes_getmailhost innocuous_hes_getmailhost
22225 /* System header to define __stub macros and hopefully few prototypes,
22226 which can conflict with char hes_getmailhost (); below.
22227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22228 <limits.h> exists even on freestanding compilers. */
22231 # include <limits.h>
22233 # include <assert.h>
22236 #undef hes_getmailhost
22238 /* Override any GCC internal prototype to avoid an error.
22239 Use char because int might match the return type of a GCC
22240 builtin and then its argument prototype would still apply. */
22244 char hes_getmailhost ();
22245 /* The GNU C library defines this for functions which it implements
22246 to always fail with ENOSYS. Some functions are actually named
22247 something starting with __ and the normal name is an alias. */
22248 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22255 return hes_getmailhost ();
22260 rm -f conftest.$ac_objext conftest$ac_exeext
22261 if { (ac_try="$ac_link"
22262 case "(($ac_try" in
22263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264 *) ac_try_echo=$ac_try;;
22266 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22267 $as_echo "$ac_try_echo") >&5
22268 (eval "$ac_link") 2>conftest.er1
22270 grep -v '^ *+' conftest.er1 >conftest.err
22272 cat conftest.err >&5
22273 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22274 (exit $ac_status); } && {
22275 test -z "$ac_c_werror_flag" ||
22276 test ! -s conftest.err
22277 } && test -s conftest$ac_exeext && {
22278 test "$cross_compiling" = yes ||
22279 $as_test_x conftest$ac_exeext
22281 ac_cv_func_hes_getmailhost=yes
22283 $as_echo "$as_me: failed program was
:" >&5
22284 sed 's/^/| /' conftest.$ac_ext >&5
22286 ac_cv_func_hes_getmailhost=no
22289 rm -rf conftest.dSYM
22290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22291 conftest$ac_exeext conftest.$ac_ext
22293 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
22294 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22295 if test $ac_cv_func_hes_getmailhost = yes; then
22298 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
22299 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
22300 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22301 $as_echo_n "(cached
) " >&6
22303 ac_check_lib_save_LIBS=$LIBS
22304 LIBS="-lhesiod $RESOLVLIB $LIBS"
22305 cat >conftest.$ac_ext <<_ACEOF
22308 cat confdefs.h >>conftest.$ac_ext
22309 cat >>conftest.$ac_ext <<_ACEOF
22310 /* end confdefs.h. */
22312 /* Override any GCC internal prototype to avoid an error.
22313 Use char because int might match the return type of a GCC
22314 builtin and then its argument prototype would still apply. */
22318 char hes_getmailhost ();
22322 return hes_getmailhost ();
22327 rm -f conftest.$ac_objext conftest$ac_exeext
22328 if { (ac_try="$ac_link"
22329 case "(($ac_try" in
22330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22331 *) ac_try_echo=$ac_try;;
22333 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22334 $as_echo "$ac_try_echo") >&5
22335 (eval "$ac_link") 2>conftest.er1
22337 grep -v '^ *+' conftest.er1 >conftest.err
22339 cat conftest.err >&5
22340 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22341 (exit $ac_status); } && {
22342 test -z "$ac_c_werror_flag" ||
22343 test ! -s conftest.err
22344 } && test -s conftest$ac_exeext && {
22345 test "$cross_compiling" = yes ||
22346 $as_test_x conftest$ac_exeext
22348 ac_cv_lib_hesiod_hes_getmailhost=yes
22350 $as_echo "$as_me: failed program was
:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ac_cv_lib_hesiod_hes_getmailhost=no
22356 rm -rf conftest.dSYM
22357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22358 conftest$ac_exeext conftest.$ac_ext
22359 LIBS=$ac_check_lib_save_LIBS
22361 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22362 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22363 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
22372 if test x"$hesiod" = xyes; then
22374 cat >>confdefs.h <<\_ACEOF
22375 #define HAVE_LIBHESIOD 1
22383 # Do we need libresolv (due to res_init or Hesiod)?
22384 if test "$resolv" = yes ; then
22386 cat >>confdefs.h <<\_ACEOF
22387 #define HAVE_LIBRESOLV 1
22396 # These tell us which Kerberos-related libraries to use.
22403 if test "${with_kerberos}" != no; then
22404 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
22405 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
22406 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22407 $as_echo_n "(cached
) " >&6
22409 ac_check_lib_save_LIBS=$LIBS
22410 LIBS="-lcom_err $LIBS"
22411 cat >conftest.$ac_ext <<_ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22418 /* Override any GCC internal prototype to avoid an error.
22419 Use char because int might match the return type of a GCC
22420 builtin and then its argument prototype would still apply. */
22433 rm -f conftest.$ac_objext conftest$ac_exeext
22434 if { (ac_try="$ac_link"
22435 case "(($ac_try" in
22436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437 *) ac_try_echo=$ac_try;;
22439 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22440 $as_echo "$ac_try_echo") >&5
22441 (eval "$ac_link") 2>conftest.er1
22443 grep -v '^ *+' conftest.er1 >conftest.err
22445 cat conftest.err >&5
22446 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22447 (exit $ac_status); } && {
22448 test -z "$ac_c_werror_flag" ||
22449 test ! -s conftest.err
22450 } && test -s conftest$ac_exeext && {
22451 test "$cross_compiling" = yes ||
22452 $as_test_x conftest$ac_exeext
22454 ac_cv_lib_com_err_com_err=yes
22456 $as_echo "$as_me: failed program was
:" >&5
22457 sed 's/^/| /' conftest.$ac_ext >&5
22459 ac_cv_lib_com_err_com_err=no
22462 rm -rf conftest.dSYM
22463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22464 conftest$ac_exeext conftest.$ac_ext
22465 LIBS=$ac_check_lib_save_LIBS
22467 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
22468 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22469 if test $ac_cv_lib_com_err_com_err = yes; then
22475 if test $have_com_err = yes; then
22476 COM_ERRLIB=-lcom_err
22477 LIBS="$COM_ERRLIB $LIBS"
22479 cat >>confdefs.h <<\_ACEOF
22480 #define HAVE_LIBCOM_ERR 1
22484 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
22485 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
22486 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22487 $as_echo_n "(cached
) " >&6
22489 ac_check_lib_save_LIBS=$LIBS
22490 LIBS="-lcrypto $LIBS"
22491 cat >conftest.$ac_ext <<_ACEOF
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h. */
22498 /* Override any GCC internal prototype to avoid an error.
22499 Use char because int might match the return type of a GCC
22500 builtin and then its argument prototype would still apply. */
22504 char mit_des_cbc_encrypt ();
22508 return mit_des_cbc_encrypt ();
22513 rm -f conftest.$ac_objext conftest$ac_exeext
22514 if { (ac_try="$ac_link"
22515 case "(($ac_try" in
22516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517 *) ac_try_echo=$ac_try;;
22519 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22520 $as_echo "$ac_try_echo") >&5
22521 (eval "$ac_link") 2>conftest.er1
22523 grep -v '^ *+' conftest.er1 >conftest.err
22525 cat conftest.err >&5
22526 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22527 (exit $ac_status); } && {
22528 test -z "$ac_c_werror_flag" ||
22529 test ! -s conftest.err
22530 } && test -s conftest$ac_exeext && {
22531 test "$cross_compiling" = yes ||
22532 $as_test_x conftest$ac_exeext
22534 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22536 $as_echo "$as_me: failed program was
:" >&5
22537 sed 's/^/| /' conftest.$ac_ext >&5
22539 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22542 rm -rf conftest.dSYM
22543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22544 conftest$ac_exeext conftest.$ac_ext
22545 LIBS=$ac_check_lib_save_LIBS
22547 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22548 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22549 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22555 if test $have_crypto = yes; then
22557 LIBS="$CRYPTOLIB $LIBS"
22559 cat >>confdefs.h <<\_ACEOF
22560 #define HAVE_LIBCRYPTO 1
22564 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
22565 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
22566 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22567 $as_echo_n "(cached
) " >&6
22569 ac_check_lib_save_LIBS=$LIBS
22570 LIBS="-lk5crypto $LIBS"
22571 cat >conftest.$ac_ext <<_ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22578 /* Override any GCC internal prototype to avoid an error.
22579 Use char because int might match the return type of a GCC
22580 builtin and then its argument prototype would still apply. */
22584 char mit_des_cbc_encrypt ();
22588 return mit_des_cbc_encrypt ();
22593 rm -f conftest.$ac_objext conftest$ac_exeext
22594 if { (ac_try="$ac_link"
22595 case "(($ac_try" in
22596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597 *) ac_try_echo=$ac_try;;
22599 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22600 $as_echo "$ac_try_echo") >&5
22601 (eval "$ac_link") 2>conftest.er1
22603 grep -v '^ *+' conftest.er1 >conftest.err
22605 cat conftest.err >&5
22606 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22607 (exit $ac_status); } && {
22608 test -z "$ac_c_werror_flag" ||
22609 test ! -s conftest.err
22610 } && test -s conftest$ac_exeext && {
22611 test "$cross_compiling" = yes ||
22612 $as_test_x conftest$ac_exeext
22614 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22616 $as_echo "$as_me: failed program was
:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22619 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22622 rm -rf conftest.dSYM
22623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22624 conftest$ac_exeext conftest.$ac_ext
22625 LIBS=$ac_check_lib_save_LIBS
22627 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22628 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22629 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22635 if test $have_k5crypto = yes; then
22636 CRYPTOLIB=-lk5crypto
22637 LIBS="$CRYPTOLIB $LIBS"
22639 cat >>confdefs.h <<\_ACEOF
22640 #define HAVE_LIBK5CRYPTO 1
22644 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22645 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22646 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22647 $as_echo_n "(cached
) " >&6
22649 ac_check_lib_save_LIBS=$LIBS
22650 LIBS="-lkrb5 $LIBS"
22651 cat >conftest.$ac_ext <<_ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h. */
22658 /* Override any GCC internal prototype to avoid an error.
22659 Use char because int might match the return type of a GCC
22660 builtin and then its argument prototype would still apply. */
22664 char krb5_init_context ();
22668 return krb5_init_context ();
22673 rm -f conftest.$ac_objext conftest$ac_exeext
22674 if { (ac_try="$ac_link"
22675 case "(($ac_try" in
22676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22677 *) ac_try_echo=$ac_try;;
22679 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22680 $as_echo "$ac_try_echo") >&5
22681 (eval "$ac_link") 2>conftest.er1
22683 grep -v '^ *+' conftest.er1 >conftest.err
22685 cat conftest.err >&5
22686 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22687 (exit $ac_status); } && {
22688 test -z "$ac_c_werror_flag" ||
22689 test ! -s conftest.err
22690 } && test -s conftest$ac_exeext && {
22691 test "$cross_compiling" = yes ||
22692 $as_test_x conftest$ac_exeext
22694 ac_cv_lib_krb5_krb5_init_context=yes
22696 $as_echo "$as_me: failed program was
:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22699 ac_cv_lib_krb5_krb5_init_context=no
22702 rm -rf conftest.dSYM
22703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22704 conftest$ac_exeext conftest.$ac_ext
22705 LIBS=$ac_check_lib_save_LIBS
22707 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22708 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22709 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22715 if test $have_krb5=yes; then
22717 LIBS="$KRB5LIB $LIBS"
22719 cat >>confdefs.h <<\_ACEOF
22720 #define HAVE_LIBKRB5 1
22724 if test "${with_kerberos5}" = no; then
22725 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22726 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22727 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22728 $as_echo_n "(cached
) " >&6
22730 ac_check_lib_save_LIBS=$LIBS
22731 LIBS="-ldes425 $LIBS"
22732 cat >conftest.$ac_ext <<_ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h. */
22739 /* Override any GCC internal prototype to avoid an error.
22740 Use char because int might match the return type of a GCC
22741 builtin and then its argument prototype would still apply. */
22745 char des_cbc_encrypt ();
22749 return des_cbc_encrypt ();
22754 rm -f conftest.$ac_objext conftest$ac_exeext
22755 if { (ac_try="$ac_link"
22756 case "(($ac_try" in
22757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22758 *) ac_try_echo=$ac_try;;
22760 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22761 $as_echo "$ac_try_echo") >&5
22762 (eval "$ac_link") 2>conftest.er1
22764 grep -v '^ *+' conftest.er1 >conftest.err
22766 cat conftest.err >&5
22767 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22768 (exit $ac_status); } && {
22769 test -z "$ac_c_werror_flag" ||
22770 test ! -s conftest.err
22771 } && test -s conftest$ac_exeext && {
22772 test "$cross_compiling" = yes ||
22773 $as_test_x conftest$ac_exeext
22775 ac_cv_lib_des425_des_cbc_encrypt=yes
22777 $as_echo "$as_me: failed program was
:" >&5
22778 sed 's/^/| /' conftest.$ac_ext >&5
22780 ac_cv_lib_des425_des_cbc_encrypt=no
22783 rm -rf conftest.dSYM
22784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22785 conftest$ac_exeext conftest.$ac_ext
22786 LIBS=$ac_check_lib_save_LIBS
22788 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22789 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22790 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22796 if test $have_des425 = yes; then
22798 LIBS="$DESLIB $LIBS"
22800 cat >>confdefs.h <<\_ACEOF
22801 #define HAVE_LIBDES425 1
22805 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22806 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22807 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22808 $as_echo_n "(cached
) " >&6
22810 ac_check_lib_save_LIBS=$LIBS
22812 cat >conftest.$ac_ext <<_ACEOF
22815 cat confdefs.h >>conftest.$ac_ext
22816 cat >>conftest.$ac_ext <<_ACEOF
22817 /* end confdefs.h. */
22819 /* Override any GCC internal prototype to avoid an error.
22820 Use char because int might match the return type of a GCC
22821 builtin and then its argument prototype would still apply. */
22825 char des_cbc_encrypt ();
22829 return des_cbc_encrypt ();
22834 rm -f conftest.$ac_objext conftest$ac_exeext
22835 if { (ac_try="$ac_link"
22836 case "(($ac_try" in
22837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22838 *) ac_try_echo=$ac_try;;
22840 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22841 $as_echo "$ac_try_echo") >&5
22842 (eval "$ac_link") 2>conftest.er1
22844 grep -v '^ *+' conftest.er1 >conftest.err
22846 cat conftest.err >&5
22847 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22848 (exit $ac_status); } && {
22849 test -z "$ac_c_werror_flag" ||
22850 test ! -s conftest.err
22851 } && test -s conftest$ac_exeext && {
22852 test "$cross_compiling" = yes ||
22853 $as_test_x conftest$ac_exeext
22855 ac_cv_lib_des_des_cbc_encrypt=yes
22857 $as_echo "$as_me: failed program was
:" >&5
22858 sed 's/^/| /' conftest.$ac_ext >&5
22860 ac_cv_lib_des_des_cbc_encrypt=no
22863 rm -rf conftest.dSYM
22864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22865 conftest$ac_exeext conftest.$ac_ext
22866 LIBS=$ac_check_lib_save_LIBS
22868 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22869 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22870 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22876 if test $have_des = yes; then
22878 LIBS="$DESLIB $LIBS"
22880 cat >>confdefs.h <<\_ACEOF
22881 #define HAVE_LIBDES 1
22886 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22887 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22888 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22889 $as_echo_n "(cached
) " >&6
22891 ac_check_lib_save_LIBS=$LIBS
22892 LIBS="-lkrb4 $LIBS"
22893 cat >conftest.$ac_ext <<_ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22900 /* Override any GCC internal prototype to avoid an error.
22901 Use char because int might match the return type of a GCC
22902 builtin and then its argument prototype would still apply. */
22906 char krb_get_cred ();
22910 return krb_get_cred ();
22915 rm -f conftest.$ac_objext conftest$ac_exeext
22916 if { (ac_try="$ac_link"
22917 case "(($ac_try" in
22918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919 *) ac_try_echo=$ac_try;;
22921 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22922 $as_echo "$ac_try_echo") >&5
22923 (eval "$ac_link") 2>conftest.er1
22925 grep -v '^ *+' conftest.er1 >conftest.err
22927 cat conftest.err >&5
22928 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22929 (exit $ac_status); } && {
22930 test -z "$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 } && test -s conftest$ac_exeext && {
22933 test "$cross_compiling" = yes ||
22934 $as_test_x conftest$ac_exeext
22936 ac_cv_lib_krb4_krb_get_cred=yes
22938 $as_echo "$as_me: failed program was
:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22941 ac_cv_lib_krb4_krb_get_cred=no
22944 rm -rf conftest.dSYM
22945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22946 conftest$ac_exeext conftest.$ac_ext
22947 LIBS=$ac_check_lib_save_LIBS
22949 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22950 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22951 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22957 if test $have_krb4 = yes; then
22959 LIBS="$KRB4LIB $LIBS"
22961 cat >>confdefs.h <<\_ACEOF
22962 #define HAVE_LIBKRB4 1
22966 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22967 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22968 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22969 $as_echo_n "(cached
) " >&6
22971 ac_check_lib_save_LIBS=$LIBS
22973 cat >conftest.$ac_ext <<_ACEOF
22976 cat confdefs.h >>conftest.$ac_ext
22977 cat >>conftest.$ac_ext <<_ACEOF
22978 /* end confdefs.h. */
22980 /* Override any GCC internal prototype to avoid an error.
22981 Use char because int might match the return type of a GCC
22982 builtin and then its argument prototype would still apply. */
22986 char krb_get_cred ();
22990 return krb_get_cred ();
22995 rm -f conftest.$ac_objext conftest$ac_exeext
22996 if { (ac_try="$ac_link"
22997 case "(($ac_try" in
22998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999 *) ac_try_echo=$ac_try;;
23001 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23002 $as_echo "$ac_try_echo") >&5
23003 (eval "$ac_link") 2>conftest.er1
23005 grep -v '^ *+' conftest.er1 >conftest.err
23007 cat conftest.err >&5
23008 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23009 (exit $ac_status); } && {
23010 test -z "$ac_c_werror_flag" ||
23011 test ! -s conftest.err
23012 } && test -s conftest$ac_exeext && {
23013 test "$cross_compiling" = yes ||
23014 $as_test_x conftest$ac_exeext
23016 ac_cv_lib_krb_krb_get_cred=yes
23018 $as_echo "$as_me: failed program was
:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23021 ac_cv_lib_krb_krb_get_cred=no
23024 rm -rf conftest.dSYM
23025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23026 conftest$ac_exeext conftest.$ac_ext
23027 LIBS=$ac_check_lib_save_LIBS
23029 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
23030 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23031 if test $ac_cv_lib_krb_krb_get_cred = yes; then
23037 if test $have_krb = yes; then
23039 LIBS="$KRB4LIB $LIBS"
23041 cat >>confdefs.h <<\_ACEOF
23042 #define HAVE_LIBKRB 1
23049 if test "${with_kerberos5}" != no; then
23051 for ac_header in krb5.h
23053 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23054 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23055 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23056 $as_echo_n "checking
for $ac_header...
" >&6; }
23057 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23058 $as_echo_n "(cached
) " >&6
23060 ac_res=`eval 'as_val=${'$as_ac_Header'}
23061 $as_echo "$as_val"'`
23062 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23063 $as_echo "$ac_res" >&6; }
23065 # Is the header compilable?
23066 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23067 $as_echo_n "checking
$ac_header usability...
" >&6; }
23068 cat >conftest.$ac_ext <<_ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h. */
23074 $ac_includes_default
23075 #include <$ac_header>
23077 rm -f conftest.$ac_objext
23078 if { (ac_try="$ac_compile"
23079 case "(($ac_try" in
23080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23081 *) ac_try_echo=$ac_try;;
23083 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23084 $as_echo "$ac_try_echo") >&5
23085 (eval "$ac_compile") 2>conftest.er1
23087 grep -v '^ *+' conftest.er1 >conftest.err
23089 cat conftest.err >&5
23090 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23091 (exit $ac_status); } && {
23092 test -z "$ac_c_werror_flag" ||
23093 test ! -s conftest.err
23094 } && test -s conftest.$ac_objext; then
23095 ac_header_compiler=yes
23097 $as_echo "$as_me: failed program was
:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23100 ac_header_compiler=no
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23105 $as_echo "$ac_header_compiler" >&6; }
23107 # Is the header present?
23108 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23109 $as_echo_n "checking
$ac_header presence...
" >&6; }
23110 cat >conftest.$ac_ext <<_ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h. */
23116 #include <$ac_header>
23118 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23119 case "(($ac_try" in
23120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121 *) ac_try_echo=$ac_try;;
23123 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23124 $as_echo "$ac_try_echo") >&5
23125 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23127 grep -v '^ *+' conftest.er1 >conftest.err
23129 cat conftest.err >&5
23130 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23131 (exit $ac_status); } >/dev/null && {
23132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23133 test ! -s conftest.err
23135 ac_header_preproc=yes
23137 $as_echo "$as_me: failed program was
:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23140 ac_header_preproc=no
23143 rm -f conftest.err conftest.$ac_ext
23144 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23145 $as_echo "$ac_header_preproc" >&6; }
23147 # So? What about this header?
23148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23150 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23151 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23152 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23154 ac_header_preproc=yes
23157 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23158 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23159 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23160 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23161 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23162 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23163 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23164 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23165 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23166 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23167 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23168 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23172 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23173 $as_echo_n "checking
for $ac_header...
" >&6; }
23174 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23175 $as_echo_n "(cached
) " >&6
23177 eval "$as_ac_Header=\
$ac_header_preproc"
23179 ac_res=`eval 'as_val=${'$as_ac_Header'}
23180 $as_echo "$as_val"'`
23181 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23182 $as_echo "$ac_res" >&6; }
23185 if test `eval 'as_val=${'$as_ac_Header'}
23186 $as_echo "$as_val"'` = yes; then
23187 cat >>confdefs.h <<_ACEOF
23188 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23190 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
23191 $as_echo_n "checking
for krb5_error.text...
" >&6; }
23192 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23193 $as_echo_n "(cached
) " >&6
23195 cat >conftest.$ac_ext <<_ACEOF
23198 cat confdefs.h >>conftest.$ac_ext
23199 cat >>conftest.$ac_ext <<_ACEOF
23200 /* end confdefs.h. */
23206 static krb5_error ac_aggr;
23213 rm -f conftest.$ac_objext
23214 if { (ac_try="$ac_compile"
23215 case "(($ac_try" in
23216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217 *) ac_try_echo=$ac_try;;
23219 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23220 $as_echo "$ac_try_echo") >&5
23221 (eval "$ac_compile") 2>conftest.er1
23223 grep -v '^ *+' conftest.er1 >conftest.err
23225 cat conftest.err >&5
23226 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23227 (exit $ac_status); } && {
23228 test -z "$ac_c_werror_flag" ||
23229 test ! -s conftest.err
23230 } && test -s conftest.$ac_objext; then
23231 ac_cv_member_krb5_error_text=yes
23233 $as_echo "$as_me: failed program was
:" >&5
23234 sed 's/^/| /' conftest.$ac_ext >&5
23236 cat >conftest.$ac_ext <<_ACEOF
23239 cat confdefs.h >>conftest.$ac_ext
23240 cat >>conftest.$ac_ext <<_ACEOF
23241 /* end confdefs.h. */
23247 static krb5_error ac_aggr;
23248 if (sizeof ac_aggr.text)
23254 rm -f conftest.$ac_objext
23255 if { (ac_try="$ac_compile"
23256 case "(($ac_try" in
23257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23258 *) ac_try_echo=$ac_try;;
23260 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23261 $as_echo "$ac_try_echo") >&5
23262 (eval "$ac_compile") 2>conftest.er1
23264 grep -v '^ *+' conftest.er1 >conftest.err
23266 cat conftest.err >&5
23267 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23268 (exit $ac_status); } && {
23269 test -z "$ac_c_werror_flag" ||
23270 test ! -s conftest.err
23271 } && test -s conftest.$ac_objext; then
23272 ac_cv_member_krb5_error_text=yes
23274 $as_echo "$as_me: failed program was
:" >&5
23275 sed 's/^/| /' conftest.$ac_ext >&5
23277 ac_cv_member_krb5_error_text=no
23280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23285 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
23286 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23287 if test $ac_cv_member_krb5_error_text = yes; then
23289 cat >>confdefs.h <<_ACEOF
23290 #define HAVE_KRB5_ERROR_TEXT 1
23295 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
23296 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
23297 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23298 $as_echo_n "(cached
) " >&6
23300 cat >conftest.$ac_ext <<_ACEOF
23303 cat confdefs.h >>conftest.$ac_ext
23304 cat >>conftest.$ac_ext <<_ACEOF
23305 /* end confdefs.h. */
23311 static krb5_error ac_aggr;
23312 if (ac_aggr.e_text)
23318 rm -f conftest.$ac_objext
23319 if { (ac_try="$ac_compile"
23320 case "(($ac_try" in
23321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322 *) ac_try_echo=$ac_try;;
23324 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23325 $as_echo "$ac_try_echo") >&5
23326 (eval "$ac_compile") 2>conftest.er1
23328 grep -v '^ *+' conftest.er1 >conftest.err
23330 cat conftest.err >&5
23331 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23332 (exit $ac_status); } && {
23333 test -z "$ac_c_werror_flag" ||
23334 test ! -s conftest.err
23335 } && test -s conftest.$ac_objext; then
23336 ac_cv_member_krb5_error_e_text=yes
23338 $as_echo "$as_me: failed program was
:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23341 cat >conftest.$ac_ext <<_ACEOF
23344 cat confdefs.h >>conftest.$ac_ext
23345 cat >>conftest.$ac_ext <<_ACEOF
23346 /* end confdefs.h. */
23352 static krb5_error ac_aggr;
23353 if (sizeof ac_aggr.e_text)
23359 rm -f conftest.$ac_objext
23360 if { (ac_try="$ac_compile"
23361 case "(($ac_try" in
23362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23363 *) ac_try_echo=$ac_try;;
23365 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23366 $as_echo "$ac_try_echo") >&5
23367 (eval "$ac_compile") 2>conftest.er1
23369 grep -v '^ *+' conftest.er1 >conftest.err
23371 cat conftest.err >&5
23372 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23373 (exit $ac_status); } && {
23374 test -z "$ac_c_werror_flag" ||
23375 test ! -s conftest.err
23376 } && test -s conftest.$ac_objext; then
23377 ac_cv_member_krb5_error_e_text=yes
23379 $as_echo "$as_me: failed program was
:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23382 ac_cv_member_krb5_error_e_text=no
23385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23390 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
23391 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23392 if test $ac_cv_member_krb5_error_e_text = yes; then
23394 cat >>confdefs.h <<_ACEOF
23395 #define HAVE_KRB5_ERROR_E_TEXT 1
23407 for ac_header in des.h
23409 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23410 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23411 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23412 $as_echo_n "checking
for $ac_header...
" >&6; }
23413 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23414 $as_echo_n "(cached
) " >&6
23416 ac_res=`eval 'as_val=${'$as_ac_Header'}
23417 $as_echo "$as_val"'`
23418 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23419 $as_echo "$ac_res" >&6; }
23421 # Is the header compilable?
23422 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23423 $as_echo_n "checking
$ac_header usability...
" >&6; }
23424 cat >conftest.$ac_ext <<_ACEOF
23427 cat confdefs.h >>conftest.$ac_ext
23428 cat >>conftest.$ac_ext <<_ACEOF
23429 /* end confdefs.h. */
23430 $ac_includes_default
23431 #include <$ac_header>
23433 rm -f conftest.$ac_objext
23434 if { (ac_try="$ac_compile"
23435 case "(($ac_try" in
23436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23437 *) ac_try_echo=$ac_try;;
23439 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23440 $as_echo "$ac_try_echo") >&5
23441 (eval "$ac_compile") 2>conftest.er1
23443 grep -v '^ *+' conftest.er1 >conftest.err
23445 cat conftest.err >&5
23446 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23447 (exit $ac_status); } && {
23448 test -z "$ac_c_werror_flag" ||
23449 test ! -s conftest.err
23450 } && test -s conftest.$ac_objext; then
23451 ac_header_compiler=yes
23453 $as_echo "$as_me: failed program was
:" >&5
23454 sed 's/^/| /' conftest.$ac_ext >&5
23456 ac_header_compiler=no
23459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23460 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23461 $as_echo "$ac_header_compiler" >&6; }
23463 # Is the header present?
23464 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23465 $as_echo_n "checking
$ac_header presence...
" >&6; }
23466 cat >conftest.$ac_ext <<_ACEOF
23469 cat confdefs.h >>conftest.$ac_ext
23470 cat >>conftest.$ac_ext <<_ACEOF
23471 /* end confdefs.h. */
23472 #include <$ac_header>
23474 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23475 case "(($ac_try" in
23476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23477 *) ac_try_echo=$ac_try;;
23479 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23480 $as_echo "$ac_try_echo") >&5
23481 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23483 grep -v '^ *+' conftest.er1 >conftest.err
23485 cat conftest.err >&5
23486 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23487 (exit $ac_status); } >/dev/null && {
23488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23489 test ! -s conftest.err
23491 ac_header_preproc=yes
23493 $as_echo "$as_me: failed program was
:" >&5
23494 sed 's/^/| /' conftest.$ac_ext >&5
23496 ac_header_preproc=no
23499 rm -f conftest.err conftest.$ac_ext
23500 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23501 $as_echo "$ac_header_preproc" >&6; }
23503 # So? What about this header?
23504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23506 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23507 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23508 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23509 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23510 ac_header_preproc=yes
23513 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23514 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23515 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23516 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23517 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23518 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23519 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23520 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23521 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23522 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23523 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23524 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23528 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23529 $as_echo_n "checking
for $ac_header...
" >&6; }
23530 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23531 $as_echo_n "(cached
) " >&6
23533 eval "$as_ac_Header=\
$ac_header_preproc"
23535 ac_res=`eval 'as_val=${'$as_ac_Header'}
23536 $as_echo "$as_val"'`
23537 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23538 $as_echo "$ac_res" >&6; }
23541 if test `eval 'as_val=${'$as_ac_Header'}
23542 $as_echo "$as_val"'` = yes; then
23543 cat >>confdefs.h <<_ACEOF
23544 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23549 for ac_header in kerberosIV/des.h
23551 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23552 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23553 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23554 $as_echo_n "checking
for $ac_header...
" >&6; }
23555 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23556 $as_echo_n "(cached
) " >&6
23558 ac_res=`eval 'as_val=${'$as_ac_Header'}
23559 $as_echo "$as_val"'`
23560 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23561 $as_echo "$ac_res" >&6; }
23563 # Is the header compilable?
23564 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23565 $as_echo_n "checking
$ac_header usability...
" >&6; }
23566 cat >conftest.$ac_ext <<_ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23572 $ac_includes_default
23573 #include <$ac_header>
23575 rm -f conftest.$ac_objext
23576 if { (ac_try="$ac_compile"
23577 case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23581 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23582 $as_echo "$ac_try_echo") >&5
23583 (eval "$ac_compile") 2>conftest.er1
23585 grep -v '^ *+' conftest.er1 >conftest.err
23587 cat conftest.err >&5
23588 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23589 (exit $ac_status); } && {
23590 test -z "$ac_c_werror_flag" ||
23591 test ! -s conftest.err
23592 } && test -s conftest.$ac_objext; then
23593 ac_header_compiler=yes
23595 $as_echo "$as_me: failed program was
:" >&5
23596 sed 's/^/| /' conftest.$ac_ext >&5
23598 ac_header_compiler=no
23601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23602 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23603 $as_echo "$ac_header_compiler" >&6; }
23605 # Is the header present?
23606 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23607 $as_echo_n "checking
$ac_header presence...
" >&6; }
23608 cat >conftest.$ac_ext <<_ACEOF
23611 cat confdefs.h >>conftest.$ac_ext
23612 cat >>conftest.$ac_ext <<_ACEOF
23613 /* end confdefs.h. */
23614 #include <$ac_header>
23616 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23617 case "(($ac_try" in
23618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23619 *) ac_try_echo=$ac_try;;
23621 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23622 $as_echo "$ac_try_echo") >&5
23623 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23625 grep -v '^ *+' conftest.er1 >conftest.err
23627 cat conftest.err >&5
23628 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23629 (exit $ac_status); } >/dev/null && {
23630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23631 test ! -s conftest.err
23633 ac_header_preproc=yes
23635 $as_echo "$as_me: failed program was
:" >&5
23636 sed 's/^/| /' conftest.$ac_ext >&5
23638 ac_header_preproc=no
23641 rm -f conftest.err conftest.$ac_ext
23642 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23643 $as_echo "$ac_header_preproc" >&6; }
23645 # So? What about this header?
23646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23648 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23649 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23650 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23651 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23652 ac_header_preproc=yes
23655 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23656 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23657 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23658 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23659 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23660 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23661 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23662 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23663 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23664 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23665 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23666 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23670 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23671 $as_echo_n "checking
for $ac_header...
" >&6; }
23672 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23673 $as_echo_n "(cached
) " >&6
23675 eval "$as_ac_Header=\
$ac_header_preproc"
23677 ac_res=`eval 'as_val=${'$as_ac_Header'}
23678 $as_echo "$as_val"'`
23679 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23680 $as_echo "$ac_res" >&6; }
23683 if test `eval 'as_val=${'$as_ac_Header'}
23684 $as_echo "$as_val"'` = yes; then
23685 cat >>confdefs.h <<_ACEOF
23686 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23691 for ac_header in kerberos/des.h
23693 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23694 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23695 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23696 $as_echo_n "checking
for $ac_header...
" >&6; }
23697 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23698 $as_echo_n "(cached
) " >&6
23700 ac_res=`eval 'as_val=${'$as_ac_Header'}
23701 $as_echo "$as_val"'`
23702 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23703 $as_echo "$ac_res" >&6; }
23705 # Is the header compilable?
23706 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23707 $as_echo_n "checking
$ac_header usability...
" >&6; }
23708 cat >conftest.$ac_ext <<_ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h. */
23714 $ac_includes_default
23715 #include <$ac_header>
23717 rm -f conftest.$ac_objext
23718 if { (ac_try="$ac_compile"
23719 case "(($ac_try" in
23720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721 *) ac_try_echo=$ac_try;;
23723 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23724 $as_echo "$ac_try_echo") >&5
23725 (eval "$ac_compile") 2>conftest.er1
23727 grep -v '^ *+' conftest.er1 >conftest.err
23729 cat conftest.err >&5
23730 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23731 (exit $ac_status); } && {
23732 test -z "$ac_c_werror_flag" ||
23733 test ! -s conftest.err
23734 } && test -s conftest.$ac_objext; then
23735 ac_header_compiler=yes
23737 $as_echo "$as_me: failed program was
:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23740 ac_header_compiler=no
23743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23744 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23745 $as_echo "$ac_header_compiler" >&6; }
23747 # Is the header present?
23748 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23749 $as_echo_n "checking
$ac_header presence...
" >&6; }
23750 cat >conftest.$ac_ext <<_ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h. */
23756 #include <$ac_header>
23758 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23759 case "(($ac_try" in
23760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761 *) ac_try_echo=$ac_try;;
23763 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23764 $as_echo "$ac_try_echo") >&5
23765 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23767 grep -v '^ *+' conftest.er1 >conftest.err
23769 cat conftest.err >&5
23770 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23771 (exit $ac_status); } >/dev/null && {
23772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23773 test ! -s conftest.err
23775 ac_header_preproc=yes
23777 $as_echo "$as_me: failed program was
:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23780 ac_header_preproc=no
23783 rm -f conftest.err conftest.$ac_ext
23784 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23785 $as_echo "$ac_header_preproc" >&6; }
23787 # So? What about this header?
23788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23790 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23791 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23792 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23793 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23794 ac_header_preproc=yes
23797 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23798 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23799 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23800 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23801 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23802 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23803 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23804 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23805 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23806 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23807 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23808 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23812 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23813 $as_echo_n "checking
for $ac_header...
" >&6; }
23814 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23815 $as_echo_n "(cached
) " >&6
23817 eval "$as_ac_Header=\
$ac_header_preproc"
23819 ac_res=`eval 'as_val=${'$as_ac_Header'}
23820 $as_echo "$as_val"'`
23821 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23822 $as_echo "$ac_res" >&6; }
23825 if test `eval 'as_val=${'$as_ac_Header'}
23826 $as_echo "$as_val"'` = yes; then
23827 cat >>confdefs.h <<_ACEOF
23828 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23844 for ac_header in krb.h
23846 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23847 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23848 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23849 $as_echo_n "checking
for $ac_header...
" >&6; }
23850 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23851 $as_echo_n "(cached
) " >&6
23853 ac_res=`eval 'as_val=${'$as_ac_Header'}
23854 $as_echo "$as_val"'`
23855 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23856 $as_echo "$ac_res" >&6; }
23858 # Is the header compilable?
23859 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23860 $as_echo_n "checking
$ac_header usability...
" >&6; }
23861 cat >conftest.$ac_ext <<_ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h. */
23867 $ac_includes_default
23868 #include <$ac_header>
23870 rm -f conftest.$ac_objext
23871 if { (ac_try="$ac_compile"
23872 case "(($ac_try" in
23873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874 *) ac_try_echo=$ac_try;;
23876 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23877 $as_echo "$ac_try_echo") >&5
23878 (eval "$ac_compile") 2>conftest.er1
23880 grep -v '^ *+' conftest.er1 >conftest.err
23882 cat conftest.err >&5
23883 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23884 (exit $ac_status); } && {
23885 test -z "$ac_c_werror_flag" ||
23886 test ! -s conftest.err
23887 } && test -s conftest.$ac_objext; then
23888 ac_header_compiler=yes
23890 $as_echo "$as_me: failed program was
:" >&5
23891 sed 's/^/| /' conftest.$ac_ext >&5
23893 ac_header_compiler=no
23896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23897 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23898 $as_echo "$ac_header_compiler" >&6; }
23900 # Is the header present?
23901 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23902 $as_echo_n "checking
$ac_header presence...
" >&6; }
23903 cat >conftest.$ac_ext <<_ACEOF
23906 cat confdefs.h >>conftest.$ac_ext
23907 cat >>conftest.$ac_ext <<_ACEOF
23908 /* end confdefs.h. */
23909 #include <$ac_header>
23911 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23912 case "(($ac_try" in
23913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23914 *) ac_try_echo=$ac_try;;
23916 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23917 $as_echo "$ac_try_echo") >&5
23918 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23920 grep -v '^ *+' conftest.er1 >conftest.err
23922 cat conftest.err >&5
23923 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23924 (exit $ac_status); } >/dev/null && {
23925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23926 test ! -s conftest.err
23928 ac_header_preproc=yes
23930 $as_echo "$as_me: failed program was
:" >&5
23931 sed 's/^/| /' conftest.$ac_ext >&5
23933 ac_header_preproc=no
23936 rm -f conftest.err conftest.$ac_ext
23937 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23938 $as_echo "$ac_header_preproc" >&6; }
23940 # So? What about this header?
23941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23943 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23944 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23945 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23946 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23947 ac_header_preproc=yes
23950 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23951 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23952 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23953 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23954 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23955 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23956 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23957 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23958 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23959 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23960 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23961 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23965 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23966 $as_echo_n "checking
for $ac_header...
" >&6; }
23967 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23968 $as_echo_n "(cached
) " >&6
23970 eval "$as_ac_Header=\
$ac_header_preproc"
23972 ac_res=`eval 'as_val=${'$as_ac_Header'}
23973 $as_echo "$as_val"'`
23974 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23975 $as_echo "$ac_res" >&6; }
23978 if test `eval 'as_val=${'$as_ac_Header'}
23979 $as_echo "$as_val"'` = yes; then
23980 cat >>confdefs.h <<_ACEOF
23981 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23986 for ac_header in kerberosIV/krb.h
23988 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23989 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23990 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23991 $as_echo_n "checking
for $ac_header...
" >&6; }
23992 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23993 $as_echo_n "(cached
) " >&6
23995 ac_res=`eval 'as_val=${'$as_ac_Header'}
23996 $as_echo "$as_val"'`
23997 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23998 $as_echo "$ac_res" >&6; }
24000 # Is the header compilable?
24001 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24002 $as_echo_n "checking
$ac_header usability...
" >&6; }
24003 cat >conftest.$ac_ext <<_ACEOF
24006 cat confdefs.h >>conftest.$ac_ext
24007 cat >>conftest.$ac_ext <<_ACEOF
24008 /* end confdefs.h. */
24009 $ac_includes_default
24010 #include <$ac_header>
24012 rm -f conftest.$ac_objext
24013 if { (ac_try="$ac_compile"
24014 case "(($ac_try" in
24015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24016 *) ac_try_echo=$ac_try;;
24018 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24019 $as_echo "$ac_try_echo") >&5
24020 (eval "$ac_compile") 2>conftest.er1
24022 grep -v '^ *+' conftest.er1 >conftest.err
24024 cat conftest.err >&5
24025 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24026 (exit $ac_status); } && {
24027 test -z "$ac_c_werror_flag" ||
24028 test ! -s conftest.err
24029 } && test -s conftest.$ac_objext; then
24030 ac_header_compiler=yes
24032 $as_echo "$as_me: failed program was
:" >&5
24033 sed 's/^/| /' conftest.$ac_ext >&5
24035 ac_header_compiler=no
24038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24039 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24040 $as_echo "$ac_header_compiler" >&6; }
24042 # Is the header present?
24043 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24044 $as_echo_n "checking
$ac_header presence...
" >&6; }
24045 cat >conftest.$ac_ext <<_ACEOF
24048 cat confdefs.h >>conftest.$ac_ext
24049 cat >>conftest.$ac_ext <<_ACEOF
24050 /* end confdefs.h. */
24051 #include <$ac_header>
24053 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24054 case "(($ac_try" in
24055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24056 *) ac_try_echo=$ac_try;;
24058 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24059 $as_echo "$ac_try_echo") >&5
24060 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24062 grep -v '^ *+' conftest.er1 >conftest.err
24064 cat conftest.err >&5
24065 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24066 (exit $ac_status); } >/dev/null && {
24067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24068 test ! -s conftest.err
24070 ac_header_preproc=yes
24072 $as_echo "$as_me: failed program was
:" >&5
24073 sed 's/^/| /' conftest.$ac_ext >&5
24075 ac_header_preproc=no
24078 rm -f conftest.err conftest.$ac_ext
24079 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24080 $as_echo "$ac_header_preproc" >&6; }
24082 # So? What about this header?
24083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24085 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24086 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24087 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24088 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24089 ac_header_preproc=yes
24092 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24093 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24094 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24095 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24096 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24097 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24098 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24099 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24100 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24101 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24102 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24103 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24107 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24108 $as_echo_n "checking
for $ac_header...
" >&6; }
24109 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24110 $as_echo_n "(cached
) " >&6
24112 eval "$as_ac_Header=\
$ac_header_preproc"
24114 ac_res=`eval 'as_val=${'$as_ac_Header'}
24115 $as_echo "$as_val"'`
24116 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24117 $as_echo "$ac_res" >&6; }
24120 if test `eval 'as_val=${'$as_ac_Header'}
24121 $as_echo "$as_val"'` = yes; then
24122 cat >>confdefs.h <<_ACEOF
24123 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24128 for ac_header in kerberos/krb.h
24130 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24131 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24132 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24133 $as_echo_n "checking
for $ac_header...
" >&6; }
24134 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24135 $as_echo_n "(cached
) " >&6
24137 ac_res=`eval 'as_val=${'$as_ac_Header'}
24138 $as_echo "$as_val"'`
24139 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24140 $as_echo "$ac_res" >&6; }
24142 # Is the header compilable?
24143 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24144 $as_echo_n "checking
$ac_header usability...
" >&6; }
24145 cat >conftest.$ac_ext <<_ACEOF
24148 cat confdefs.h >>conftest.$ac_ext
24149 cat >>conftest.$ac_ext <<_ACEOF
24150 /* end confdefs.h. */
24151 $ac_includes_default
24152 #include <$ac_header>
24154 rm -f conftest.$ac_objext
24155 if { (ac_try="$ac_compile"
24156 case "(($ac_try" in
24157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24158 *) ac_try_echo=$ac_try;;
24160 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24161 $as_echo "$ac_try_echo") >&5
24162 (eval "$ac_compile") 2>conftest.er1
24164 grep -v '^ *+' conftest.er1 >conftest.err
24166 cat conftest.err >&5
24167 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24168 (exit $ac_status); } && {
24169 test -z "$ac_c_werror_flag" ||
24170 test ! -s conftest.err
24171 } && test -s conftest.$ac_objext; then
24172 ac_header_compiler=yes
24174 $as_echo "$as_me: failed program was
:" >&5
24175 sed 's/^/| /' conftest.$ac_ext >&5
24177 ac_header_compiler=no
24180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24181 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24182 $as_echo "$ac_header_compiler" >&6; }
24184 # Is the header present?
24185 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24186 $as_echo_n "checking
$ac_header presence...
" >&6; }
24187 cat >conftest.$ac_ext <<_ACEOF
24190 cat confdefs.h >>conftest.$ac_ext
24191 cat >>conftest.$ac_ext <<_ACEOF
24192 /* end confdefs.h. */
24193 #include <$ac_header>
24195 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24196 case "(($ac_try" in
24197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24198 *) ac_try_echo=$ac_try;;
24200 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24201 $as_echo "$ac_try_echo") >&5
24202 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24204 grep -v '^ *+' conftest.er1 >conftest.err
24206 cat conftest.err >&5
24207 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24208 (exit $ac_status); } >/dev/null && {
24209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24210 test ! -s conftest.err
24212 ac_header_preproc=yes
24214 $as_echo "$as_me: failed program was
:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24217 ac_header_preproc=no
24220 rm -f conftest.err conftest.$ac_ext
24221 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24222 $as_echo "$ac_header_preproc" >&6; }
24224 # So? What about this header?
24225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24227 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24228 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24229 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24230 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24231 ac_header_preproc=yes
24234 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24235 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24236 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24237 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24238 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24239 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24240 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24241 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24242 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24243 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24244 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24245 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24249 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24250 $as_echo_n "checking
for $ac_header...
" >&6; }
24251 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24252 $as_echo_n "(cached
) " >&6
24254 eval "$as_ac_Header=\
$ac_header_preproc"
24256 ac_res=`eval 'as_val=${'$as_ac_Header'}
24257 $as_echo "$as_val"'`
24258 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24259 $as_echo "$ac_res" >&6; }
24262 if test `eval 'as_val=${'$as_ac_Header'}
24263 $as_echo "$as_val"'` = yes; then
24264 cat >>confdefs.h <<_ACEOF
24265 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24282 for ac_header in com_err.h
24284 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24285 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24286 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24287 $as_echo_n "checking
for $ac_header...
" >&6; }
24288 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24289 $as_echo_n "(cached
) " >&6
24291 ac_res=`eval 'as_val=${'$as_ac_Header'}
24292 $as_echo "$as_val"'`
24293 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24294 $as_echo "$ac_res" >&6; }
24296 # Is the header compilable?
24297 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24298 $as_echo_n "checking
$ac_header usability...
" >&6; }
24299 cat >conftest.$ac_ext <<_ACEOF
24302 cat confdefs.h >>conftest.$ac_ext
24303 cat >>conftest.$ac_ext <<_ACEOF
24304 /* end confdefs.h. */
24305 $ac_includes_default
24306 #include <$ac_header>
24308 rm -f conftest.$ac_objext
24309 if { (ac_try="$ac_compile"
24310 case "(($ac_try" in
24311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312 *) ac_try_echo=$ac_try;;
24314 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24315 $as_echo "$ac_try_echo") >&5
24316 (eval "$ac_compile") 2>conftest.er1
24318 grep -v '^ *+' conftest.er1 >conftest.err
24320 cat conftest.err >&5
24321 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24322 (exit $ac_status); } && {
24323 test -z "$ac_c_werror_flag" ||
24324 test ! -s conftest.err
24325 } && test -s conftest.$ac_objext; then
24326 ac_header_compiler=yes
24328 $as_echo "$as_me: failed program was
:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24331 ac_header_compiler=no
24334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24335 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24336 $as_echo "$ac_header_compiler" >&6; }
24338 # Is the header present?
24339 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24340 $as_echo_n "checking
$ac_header presence...
" >&6; }
24341 cat >conftest.$ac_ext <<_ACEOF
24344 cat confdefs.h >>conftest.$ac_ext
24345 cat >>conftest.$ac_ext <<_ACEOF
24346 /* end confdefs.h. */
24347 #include <$ac_header>
24349 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24350 case "(($ac_try" in
24351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24352 *) ac_try_echo=$ac_try;;
24354 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24355 $as_echo "$ac_try_echo") >&5
24356 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24358 grep -v '^ *+' conftest.er1 >conftest.err
24360 cat conftest.err >&5
24361 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24362 (exit $ac_status); } >/dev/null && {
24363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24364 test ! -s conftest.err
24366 ac_header_preproc=yes
24368 $as_echo "$as_me: failed program was
:" >&5
24369 sed 's/^/| /' conftest.$ac_ext >&5
24371 ac_header_preproc=no
24374 rm -f conftest.err conftest.$ac_ext
24375 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24376 $as_echo "$ac_header_preproc" >&6; }
24378 # So? What about this header?
24379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24381 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24382 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24383 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24384 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24385 ac_header_preproc=yes
24388 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24389 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24390 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24391 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24392 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24393 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24394 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24395 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24396 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24398 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24399 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24403 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24404 $as_echo_n "checking
for $ac_header...
" >&6; }
24405 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24406 $as_echo_n "(cached
) " >&6
24408 eval "$as_ac_Header=\
$ac_header_preproc"
24410 ac_res=`eval 'as_val=${'$as_ac_Header'}
24411 $as_echo "$as_val"'`
24412 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24413 $as_echo "$ac_res" >&6; }
24416 if test `eval 'as_val=${'$as_ac_Header'}
24417 $as_echo "$as_val"'` = yes; then
24418 cat >>confdefs.h <<_ACEOF
24419 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24434 # Solaris requires -lintl if you want strerror (which calls dgettext)
24435 # to return localized messages.
24437 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
24438 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
24439 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24440 $as_echo_n "(cached
) " >&6
24442 ac_check_lib_save_LIBS=$LIBS
24443 LIBS="-lintl $LIBS"
24444 cat >conftest.$ac_ext <<_ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h. */
24451 /* Override any GCC internal prototype to avoid an error.
24452 Use char because int might match the return type of a GCC
24453 builtin and then its argument prototype would still apply. */
24461 return dgettext ();
24466 rm -f conftest.$ac_objext conftest$ac_exeext
24467 if { (ac_try="$ac_link"
24468 case "(($ac_try" in
24469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470 *) ac_try_echo=$ac_try;;
24472 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24473 $as_echo "$ac_try_echo") >&5
24474 (eval "$ac_link") 2>conftest.er1
24476 grep -v '^ *+' conftest.er1 >conftest.err
24478 cat conftest.err >&5
24479 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24480 (exit $ac_status); } && {
24481 test -z "$ac_c_werror_flag" ||
24482 test ! -s conftest.err
24483 } && test -s conftest$ac_exeext && {
24484 test "$cross_compiling" = yes ||
24485 $as_test_x conftest$ac_exeext
24487 ac_cv_lib_intl_dgettext=yes
24489 $as_echo "$as_me: failed program was
:" >&5
24490 sed 's/^/| /' conftest.$ac_ext >&5
24492 ac_cv_lib_intl_dgettext=no
24495 rm -rf conftest.dSYM
24496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24497 conftest$ac_exeext conftest.$ac_ext
24498 LIBS=$ac_check_lib_save_LIBS
24500 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
24501 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24502 if test $ac_cv_lib_intl_dgettext = yes; then
24503 cat >>confdefs.h <<_ACEOF
24504 #define HAVE_LIBINTL 1
24507 LIBS="-lintl $LIBS"
24512 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
24513 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
24514 if test "${emacs_cv_localtime_cache+set}" = set; then
24515 $as_echo_n "(cached
) " >&6
24517 if test x$ac_cv_func_tzset = xyes; then
24518 if test "$cross_compiling" = yes; then
24519 # If we have tzset, assume the worst when cross-compiling.
24520 emacs_cv_localtime_cache=yes
24522 cat >conftest.$ac_ext <<_ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h. */
24529 extern char **environ;
24533 for (to = from = environ; (*to = *from); from++)
24534 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24537 char TZ_GMT0[] = "TZ
=GMT0
";
24538 char TZ_PST8[] = "TZ
=PST8
";
24541 time_t now = time ((time_t *) 0);
24542 int hour_GMT0, hour_unset;
24543 if (putenv (TZ_GMT0) != 0)
24545 hour_GMT0 = localtime (&now)->tm_hour;
24547 hour_unset = localtime (&now)->tm_hour;
24548 if (putenv (TZ_PST8) != 0)
24550 if (localtime (&now)->tm_hour == hour_GMT0)
24553 if (localtime (&now)->tm_hour != hour_unset)
24558 rm -f conftest$ac_exeext
24559 if { (ac_try="$ac_link"
24560 case "(($ac_try" in
24561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24562 *) ac_try_echo=$ac_try;;
24564 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24565 $as_echo "$ac_try_echo") >&5
24566 (eval "$ac_link") 2>&5
24568 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24570 { (case "(($ac_try" in
24571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24572 *) ac_try_echo=$ac_try;;
24574 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24575 $as_echo "$ac_try_echo") >&5
24576 (eval "$ac_try") 2>&5
24578 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24579 (exit $ac_status); }; }; then
24580 emacs_cv_localtime_cache=no
24582 $as_echo "$as_me: program exited with status
$ac_status" >&5
24583 $as_echo "$as_me: failed program was
:" >&5
24584 sed 's/^/| /' conftest.$ac_ext >&5
24586 ( exit $ac_status )
24587 emacs_cv_localtime_cache=yes
24589 rm -rf conftest.dSYM
24590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24595 # If we lack tzset, report that localtime does not cache TZ,
24596 # since we can't invalidate the cache if we don't have tzset.
24597 emacs_cv_localtime_cache=no
24600 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24601 $as_echo "$emacs_cv_localtime_cache" >&6; }
24602 if test $emacs_cv_localtime_cache = yes; then
24604 cat >>confdefs.h <<\_ACEOF
24605 #define LOCALTIME_CACHE 1
24610 if test "x
$HAVE_TIMEVAL" = xyes; then
24612 for ac_func in gettimeofday
24614 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24615 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24616 $as_echo_n "checking
for $ac_func...
" >&6; }
24617 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24618 $as_echo_n "(cached
) " >&6
24620 cat >conftest.$ac_ext <<_ACEOF
24623 cat confdefs.h >>conftest.$ac_ext
24624 cat >>conftest.$ac_ext <<_ACEOF
24625 /* end confdefs.h. */
24626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24628 #define $ac_func innocuous_$ac_func
24630 /* System header to define __stub macros and hopefully few prototypes,
24631 which can conflict with char $ac_func (); below.
24632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24633 <limits.h> exists even on freestanding compilers. */
24636 # include <limits.h>
24638 # include <assert.h>
24643 /* Override any GCC internal prototype to avoid an error.
24644 Use char because int might match the return type of a GCC
24645 builtin and then its argument prototype would still apply. */
24650 /* The GNU C library defines this for functions which it implements
24651 to always fail with ENOSYS. Some functions are actually named
24652 something starting with __ and the normal name is an alias. */
24653 #if defined __stub_$ac_func || defined __stub___$ac_func
24660 return $ac_func ();
24665 rm -f conftest.$ac_objext conftest$ac_exeext
24666 if { (ac_try="$ac_link"
24667 case "(($ac_try" in
24668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669 *) ac_try_echo=$ac_try;;
24671 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24672 $as_echo "$ac_try_echo") >&5
24673 (eval "$ac_link") 2>conftest.er1
24675 grep -v '^ *+' conftest.er1 >conftest.err
24677 cat conftest.err >&5
24678 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24679 (exit $ac_status); } && {
24680 test -z "$ac_c_werror_flag" ||
24681 test ! -s conftest.err
24682 } && test -s conftest$ac_exeext && {
24683 test "$cross_compiling" = yes ||
24684 $as_test_x conftest$ac_exeext
24686 eval "$as_ac_var=yes"
24688 $as_echo "$as_me: failed program was
:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24691 eval "$as_ac_var=no
"
24694 rm -rf conftest.dSYM
24695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24696 conftest$ac_exeext conftest.$ac_ext
24698 ac_res=`eval 'as_val=${'$as_ac_var'}
24699 $as_echo "$as_val"'`
24700 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24701 $as_echo "$ac_res" >&6; }
24702 if test `eval 'as_val=${'$as_ac_var'}
24703 $as_echo "$as_val"'` = yes; then
24704 cat >>confdefs.h <<_ACEOF
24705 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24711 if test $ac_cv_func_gettimeofday = yes; then
24712 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24713 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24714 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24715 $as_echo_n "(cached
) " >&6
24717 cat >conftest.$ac_ext <<_ACEOF
24720 cat confdefs.h >>conftest.$ac_ext
24721 cat >>conftest.$ac_ext <<_ACEOF
24722 /* end confdefs.h. */
24724 #ifdef TIME_WITH_SYS_TIME
24725 #include <sys/time.h>
24728 #ifdef HAVE_SYS_TIME_H
24729 #include <sys/time.h>
24737 struct timeval time;
24738 gettimeofday (&time, 0);
24743 rm -f conftest.$ac_objext
24744 if { (ac_try="$ac_compile"
24745 case "(($ac_try" in
24746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24747 *) ac_try_echo=$ac_try;;
24749 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24750 $as_echo "$ac_try_echo") >&5
24751 (eval "$ac_compile") 2>conftest.er1
24753 grep -v '^ *+' conftest.er1 >conftest.err
24755 cat conftest.err >&5
24756 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24757 (exit $ac_status); } && {
24758 test -z "$ac_c_werror_flag" ||
24759 test ! -s conftest.err
24760 } && test -s conftest.$ac_objext; then
24761 emacs_cv_gettimeofday_two_arguments=yes
24763 $as_echo "$as_me: failed program was
:" >&5
24764 sed 's/^/| /' conftest.$ac_ext >&5
24766 emacs_cv_gettimeofday_two_arguments=no
24769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24771 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24772 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24773 if test $emacs_cv_gettimeofday_two_arguments = no; then
24775 cat >>confdefs.h <<\_ACEOF
24776 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24784 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24785 $as_echo_n "checking
for socket...
" >&6; }
24786 if test "${ac_cv_func_socket+set}" = set; then
24787 $as_echo_n "(cached
) " >&6
24789 cat >conftest.$ac_ext <<_ACEOF
24792 cat confdefs.h >>conftest.$ac_ext
24793 cat >>conftest.$ac_ext <<_ACEOF
24794 /* end confdefs.h. */
24795 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24797 #define socket innocuous_socket
24799 /* System header to define __stub macros and hopefully few prototypes,
24800 which can conflict with char socket (); below.
24801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24802 <limits.h> exists even on freestanding compilers. */
24805 # include <limits.h>
24807 # include <assert.h>
24812 /* Override any GCC internal prototype to avoid an error.
24813 Use char because int might match the return type of a GCC
24814 builtin and then its argument prototype would still apply. */
24819 /* The GNU C library defines this for functions which it implements
24820 to always fail with ENOSYS. Some functions are actually named
24821 something starting with __ and the normal name is an alias. */
24822 #if defined __stub_socket || defined __stub___socket
24834 rm -f conftest.$ac_objext conftest$ac_exeext
24835 if { (ac_try="$ac_link"
24836 case "(($ac_try" in
24837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24838 *) ac_try_echo=$ac_try;;
24840 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24841 $as_echo "$ac_try_echo") >&5
24842 (eval "$ac_link") 2>conftest.er1
24844 grep -v '^ *+' conftest.er1 >conftest.err
24846 cat conftest.err >&5
24847 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24848 (exit $ac_status); } && {
24849 test -z "$ac_c_werror_flag" ||
24850 test ! -s conftest.err
24851 } && test -s conftest$ac_exeext && {
24852 test "$cross_compiling" = yes ||
24853 $as_test_x conftest$ac_exeext
24855 ac_cv_func_socket=yes
24857 $as_echo "$as_me: failed program was
:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24860 ac_cv_func_socket=no
24863 rm -rf conftest.dSYM
24864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24865 conftest$ac_exeext conftest.$ac_ext
24867 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24868 $as_echo "$ac_cv_func_socket" >&6; }
24869 if test $ac_cv_func_socket = yes; then
24875 if test $ok_so_far = yes; then
24876 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24877 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24878 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24879 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24880 $as_echo_n "(cached
) " >&6
24882 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24883 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24885 # Is the header compilable?
24886 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24887 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24888 cat >conftest.$ac_ext <<_ACEOF
24891 cat confdefs.h >>conftest.$ac_ext
24892 cat >>conftest.$ac_ext <<_ACEOF
24893 /* end confdefs.h. */
24894 $ac_includes_default
24895 #include <netinet/in.h>
24897 rm -f conftest.$ac_objext
24898 if { (ac_try="$ac_compile"
24899 case "(($ac_try" in
24900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901 *) ac_try_echo=$ac_try;;
24903 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24904 $as_echo "$ac_try_echo") >&5
24905 (eval "$ac_compile") 2>conftest.er1
24907 grep -v '^ *+' conftest.er1 >conftest.err
24909 cat conftest.err >&5
24910 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24911 (exit $ac_status); } && {
24912 test -z "$ac_c_werror_flag" ||
24913 test ! -s conftest.err
24914 } && test -s conftest.$ac_objext; then
24915 ac_header_compiler=yes
24917 $as_echo "$as_me: failed program was
:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24920 ac_header_compiler=no
24923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24924 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24925 $as_echo "$ac_header_compiler" >&6; }
24927 # Is the header present?
24928 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24929 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24930 cat >conftest.$ac_ext <<_ACEOF
24933 cat confdefs.h >>conftest.$ac_ext
24934 cat >>conftest.$ac_ext <<_ACEOF
24935 /* end confdefs.h. */
24936 #include <netinet/in.h>
24938 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24939 case "(($ac_try" in
24940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24941 *) ac_try_echo=$ac_try;;
24943 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24944 $as_echo "$ac_try_echo") >&5
24945 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24947 grep -v '^ *+' conftest.er1 >conftest.err
24949 cat conftest.err >&5
24950 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24951 (exit $ac_status); } >/dev/null && {
24952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24953 test ! -s conftest.err
24955 ac_header_preproc=yes
24957 $as_echo "$as_me: failed program was
:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24960 ac_header_preproc=no
24963 rm -f conftest.err conftest.$ac_ext
24964 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24965 $as_echo "$ac_header_preproc" >&6; }
24967 # So? What about this header?
24968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24970 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24971 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24972 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24973 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24974 ac_header_preproc=yes
24977 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24978 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24979 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24980 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24981 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24982 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24983 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24984 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24985 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24986 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24987 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24988 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24992 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24993 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24994 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24995 $as_echo_n "(cached
) " >&6
24997 ac_cv_header_netinet_in_h=$ac_header_preproc
24999 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
25000 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
25003 if test $ac_cv_header_netinet_in_h = yes; then
25011 if test $ok_so_far = yes; then
25012 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25013 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
25014 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
25015 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25016 $as_echo_n "(cached
) " >&6
25018 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
25019 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25021 # Is the header compilable?
25022 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
25023 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
25024 cat >conftest.$ac_ext <<_ACEOF
25027 cat confdefs.h >>conftest.$ac_ext
25028 cat >>conftest.$ac_ext <<_ACEOF
25029 /* end confdefs.h. */
25030 $ac_includes_default
25031 #include <arpa/inet.h>
25033 rm -f conftest.$ac_objext
25034 if { (ac_try="$ac_compile"
25035 case "(($ac_try" in
25036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037 *) ac_try_echo=$ac_try;;
25039 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25040 $as_echo "$ac_try_echo") >&5
25041 (eval "$ac_compile") 2>conftest.er1
25043 grep -v '^ *+' conftest.er1 >conftest.err
25045 cat conftest.err >&5
25046 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25047 (exit $ac_status); } && {
25048 test -z "$ac_c_werror_flag" ||
25049 test ! -s conftest.err
25050 } && test -s conftest.$ac_objext; then
25051 ac_header_compiler=yes
25053 $as_echo "$as_me: failed program was
:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25056 ac_header_compiler=no
25059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25060 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25061 $as_echo "$ac_header_compiler" >&6; }
25063 # Is the header present?
25064 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
25065 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
25066 cat >conftest.$ac_ext <<_ACEOF
25069 cat confdefs.h >>conftest.$ac_ext
25070 cat >>conftest.$ac_ext <<_ACEOF
25071 /* end confdefs.h. */
25072 #include <arpa/inet.h>
25074 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25075 case "(($ac_try" in
25076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25077 *) ac_try_echo=$ac_try;;
25079 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25080 $as_echo "$ac_try_echo") >&5
25081 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25083 grep -v '^ *+' conftest.er1 >conftest.err
25085 cat conftest.err >&5
25086 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25087 (exit $ac_status); } >/dev/null && {
25088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25089 test ! -s conftest.err
25091 ac_header_preproc=yes
25093 $as_echo "$as_me: failed program was
:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25096 ac_header_preproc=no
25099 rm -f conftest.err conftest.$ac_ext
25100 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25101 $as_echo "$ac_header_preproc" >&6; }
25103 # So? What about this header?
25104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25106 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25107 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25108 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
25109 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
25110 ac_header_preproc=yes
25113 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
25114 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
25115 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
25116 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
25117 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
25118 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
25119 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25120 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25121 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
25122 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
25123 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
25124 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
25128 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
25129 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
25130 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25131 $as_echo_n "(cached
) " >&6
25133 ac_cv_header_arpa_inet_h=$ac_header_preproc
25135 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
25136 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25139 if test $ac_cv_header_arpa_inet_h = yes; then
25147 if test $ok_so_far = yes; then
25149 cat >>confdefs.h <<\_ACEOF
25150 #define HAVE_INET_SOCKETS 1
25156 for ac_header in sys/ioctl.h
25158 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25159 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25160 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25161 $as_echo_n "checking
for $ac_header...
" >&6; }
25162 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25163 $as_echo_n "(cached
) " >&6
25165 ac_res=`eval 'as_val=${'$as_ac_Header'}
25166 $as_echo "$as_val"'`
25167 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25168 $as_echo "$ac_res" >&6; }
25170 # Is the header compilable?
25171 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25172 $as_echo_n "checking
$ac_header usability...
" >&6; }
25173 cat >conftest.$ac_ext <<_ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h. */
25179 $ac_includes_default
25180 #include <$ac_header>
25182 rm -f conftest.$ac_objext
25183 if { (ac_try="$ac_compile"
25184 case "(($ac_try" in
25185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25186 *) ac_try_echo=$ac_try;;
25188 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25189 $as_echo "$ac_try_echo") >&5
25190 (eval "$ac_compile") 2>conftest.er1
25192 grep -v '^ *+' conftest.er1 >conftest.err
25194 cat conftest.err >&5
25195 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25196 (exit $ac_status); } && {
25197 test -z "$ac_c_werror_flag" ||
25198 test ! -s conftest.err
25199 } && test -s conftest.$ac_objext; then
25200 ac_header_compiler=yes
25202 $as_echo "$as_me: failed program was
:" >&5
25203 sed 's/^/| /' conftest.$ac_ext >&5
25205 ac_header_compiler=no
25208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25209 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25210 $as_echo "$ac_header_compiler" >&6; }
25212 # Is the header present?
25213 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25214 $as_echo_n "checking
$ac_header presence...
" >&6; }
25215 cat >conftest.$ac_ext <<_ACEOF
25218 cat confdefs.h >>conftest.$ac_ext
25219 cat >>conftest.$ac_ext <<_ACEOF
25220 /* end confdefs.h. */
25221 #include <$ac_header>
25223 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25224 case "(($ac_try" in
25225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25226 *) ac_try_echo=$ac_try;;
25228 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25229 $as_echo "$ac_try_echo") >&5
25230 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25232 grep -v '^ *+' conftest.er1 >conftest.err
25234 cat conftest.err >&5
25235 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25236 (exit $ac_status); } >/dev/null && {
25237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25238 test ! -s conftest.err
25240 ac_header_preproc=yes
25242 $as_echo "$as_me: failed program was
:" >&5
25243 sed 's/^/| /' conftest.$ac_ext >&5
25245 ac_header_preproc=no
25248 rm -f conftest.err conftest.$ac_ext
25249 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25250 $as_echo "$ac_header_preproc" >&6; }
25252 # So? What about this header?
25253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25255 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25256 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25257 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25258 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25259 ac_header_preproc=yes
25262 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25263 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25264 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25265 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25266 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25267 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25268 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25269 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25270 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25272 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25273 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25277 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25278 $as_echo_n "checking
for $ac_header...
" >&6; }
25279 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25280 $as_echo_n "(cached
) " >&6
25282 eval "$as_ac_Header=\
$ac_header_preproc"
25284 ac_res=`eval 'as_val=${'$as_ac_Header'}
25285 $as_echo "$as_val"'`
25286 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25287 $as_echo "$ac_res" >&6; }
25290 if test `eval 'as_val=${'$as_ac_Header'}
25291 $as_echo "$as_val"'` = yes; then
25292 cat >>confdefs.h <<_ACEOF
25293 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25301 if test -f /usr/lpp/X11/bin/smt.exp; then
25303 cat >>confdefs.h <<\_ACEOF
25304 #define HAVE_AIX_SMT_EXP 1
25309 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
25310 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
25311 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25312 { $as_echo "$as_me:$LINENO: result
: yes" >&5
25313 $as_echo "yes" >&6; }
25315 cat >>confdefs.h <<\_ACEOF
25316 #define HAVE_DEV_PTMX 1
25320 { $as_echo "$as_me:$LINENO: result
: no
" >&5
25321 $as_echo "no
" >&6; }
25324 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
25325 $as_echo_n "checking
for pid_t...
" >&6; }
25326 if test "${ac_cv_type_pid_t+set}" = set; then
25327 $as_echo_n "(cached
) " >&6
25329 ac_cv_type_pid_t=no
25330 cat >conftest.$ac_ext <<_ACEOF
25333 cat confdefs.h >>conftest.$ac_ext
25334 cat >>conftest.$ac_ext <<_ACEOF
25335 /* end confdefs.h. */
25336 $ac_includes_default
25340 if (sizeof (pid_t))
25346 rm -f conftest.$ac_objext
25347 if { (ac_try="$ac_compile"
25348 case "(($ac_try" in
25349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25350 *) ac_try_echo=$ac_try;;
25352 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25353 $as_echo "$ac_try_echo") >&5
25354 (eval "$ac_compile") 2>conftest.er1
25356 grep -v '^ *+' conftest.er1 >conftest.err
25358 cat conftest.err >&5
25359 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25360 (exit $ac_status); } && {
25361 test -z "$ac_c_werror_flag" ||
25362 test ! -s conftest.err
25363 } && test -s conftest.$ac_objext; then
25364 cat >conftest.$ac_ext <<_ACEOF
25367 cat confdefs.h >>conftest.$ac_ext
25368 cat >>conftest.$ac_ext <<_ACEOF
25369 /* end confdefs.h. */
25370 $ac_includes_default
25374 if (sizeof ((pid_t)))
25380 rm -f conftest.$ac_objext
25381 if { (ac_try="$ac_compile"
25382 case "(($ac_try" in
25383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25384 *) ac_try_echo=$ac_try;;
25386 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25387 $as_echo "$ac_try_echo") >&5
25388 (eval "$ac_compile") 2>conftest.er1
25390 grep -v '^ *+' conftest.er1 >conftest.err
25392 cat conftest.err >&5
25393 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25394 (exit $ac_status); } && {
25395 test -z "$ac_c_werror_flag" ||
25396 test ! -s conftest.err
25397 } && test -s conftest.$ac_objext; then
25400 $as_echo "$as_me: failed program was
:" >&5
25401 sed 's/^/| /' conftest.$ac_ext >&5
25403 ac_cv_type_pid_t=yes
25406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25408 $as_echo "$as_me: failed program was
:" >&5
25409 sed 's/^/| /' conftest.$ac_ext >&5
25414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25416 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
25417 $as_echo "$ac_cv_type_pid_t" >&6; }
25418 if test $ac_cv_type_pid_t = yes; then
25422 cat >>confdefs.h <<_ACEOF
25429 for ac_header in vfork.h
25431 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25432 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25433 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25434 $as_echo_n "checking
for $ac_header...
" >&6; }
25435 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25436 $as_echo_n "(cached
) " >&6
25438 ac_res=`eval 'as_val=${'$as_ac_Header'}
25439 $as_echo "$as_val"'`
25440 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25441 $as_echo "$ac_res" >&6; }
25443 # Is the header compilable?
25444 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25445 $as_echo_n "checking
$ac_header usability...
" >&6; }
25446 cat >conftest.$ac_ext <<_ACEOF
25449 cat confdefs.h >>conftest.$ac_ext
25450 cat >>conftest.$ac_ext <<_ACEOF
25451 /* end confdefs.h. */
25452 $ac_includes_default
25453 #include <$ac_header>
25455 rm -f conftest.$ac_objext
25456 if { (ac_try="$ac_compile"
25457 case "(($ac_try" in
25458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25459 *) ac_try_echo=$ac_try;;
25461 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25462 $as_echo "$ac_try_echo") >&5
25463 (eval "$ac_compile") 2>conftest.er1
25465 grep -v '^ *+' conftest.er1 >conftest.err
25467 cat conftest.err >&5
25468 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25469 (exit $ac_status); } && {
25470 test -z "$ac_c_werror_flag" ||
25471 test ! -s conftest.err
25472 } && test -s conftest.$ac_objext; then
25473 ac_header_compiler=yes
25475 $as_echo "$as_me: failed program was
:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25478 ac_header_compiler=no
25481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25482 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25483 $as_echo "$ac_header_compiler" >&6; }
25485 # Is the header present?
25486 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25487 $as_echo_n "checking
$ac_header presence...
" >&6; }
25488 cat >conftest.$ac_ext <<_ACEOF
25491 cat confdefs.h >>conftest.$ac_ext
25492 cat >>conftest.$ac_ext <<_ACEOF
25493 /* end confdefs.h. */
25494 #include <$ac_header>
25496 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25497 case "(($ac_try" in
25498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25499 *) ac_try_echo=$ac_try;;
25501 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25502 $as_echo "$ac_try_echo") >&5
25503 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25505 grep -v '^ *+' conftest.er1 >conftest.err
25507 cat conftest.err >&5
25508 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25509 (exit $ac_status); } >/dev/null && {
25510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25511 test ! -s conftest.err
25513 ac_header_preproc=yes
25515 $as_echo "$as_me: failed program was
:" >&5
25516 sed 's/^/| /' conftest.$ac_ext >&5
25518 ac_header_preproc=no
25521 rm -f conftest.err conftest.$ac_ext
25522 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25523 $as_echo "$ac_header_preproc" >&6; }
25525 # So? What about this header?
25526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25528 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25529 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25530 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25531 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25532 ac_header_preproc=yes
25535 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25536 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25537 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25538 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25539 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25540 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25541 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25542 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25543 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25544 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25545 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25546 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25550 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25551 $as_echo_n "checking
for $ac_header...
" >&6; }
25552 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25553 $as_echo_n "(cached
) " >&6
25555 eval "$as_ac_Header=\
$ac_header_preproc"
25557 ac_res=`eval 'as_val=${'$as_ac_Header'}
25558 $as_echo "$as_val"'`
25559 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25560 $as_echo "$ac_res" >&6; }
25563 if test `eval 'as_val=${'$as_ac_Header'}
25564 $as_echo "$as_val"'` = yes; then
25565 cat >>confdefs.h <<_ACEOF
25566 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25575 for ac_func in fork vfork
25577 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25578 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
25579 $as_echo_n "checking
for $ac_func...
" >&6; }
25580 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25581 $as_echo_n "(cached
) " >&6
25583 cat >conftest.$ac_ext <<_ACEOF
25586 cat confdefs.h >>conftest.$ac_ext
25587 cat >>conftest.$ac_ext <<_ACEOF
25588 /* end confdefs.h. */
25589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25591 #define $ac_func innocuous_$ac_func
25593 /* System header to define __stub macros and hopefully few prototypes,
25594 which can conflict with char $ac_func (); below.
25595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25596 <limits.h> exists even on freestanding compilers. */
25599 # include <limits.h>
25601 # include <assert.h>
25606 /* Override any GCC internal prototype to avoid an error.
25607 Use char because int might match the return type of a GCC
25608 builtin and then its argument prototype would still apply. */
25613 /* The GNU C library defines this for functions which it implements
25614 to always fail with ENOSYS. Some functions are actually named
25615 something starting with __ and the normal name is an alias. */
25616 #if defined __stub_$ac_func || defined __stub___$ac_func
25623 return $ac_func ();
25628 rm -f conftest.$ac_objext conftest$ac_exeext
25629 if { (ac_try="$ac_link"
25630 case "(($ac_try" in
25631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25632 *) ac_try_echo=$ac_try;;
25634 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25635 $as_echo "$ac_try_echo") >&5
25636 (eval "$ac_link") 2>conftest.er1
25638 grep -v '^ *+' conftest.er1 >conftest.err
25640 cat conftest.err >&5
25641 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25642 (exit $ac_status); } && {
25643 test -z "$ac_c_werror_flag" ||
25644 test ! -s conftest.err
25645 } && test -s conftest$ac_exeext && {
25646 test "$cross_compiling" = yes ||
25647 $as_test_x conftest$ac_exeext
25649 eval "$as_ac_var=yes"
25651 $as_echo "$as_me: failed program was
:" >&5
25652 sed 's/^/| /' conftest.$ac_ext >&5
25654 eval "$as_ac_var=no
"
25657 rm -rf conftest.dSYM
25658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25659 conftest$ac_exeext conftest.$ac_ext
25661 ac_res=`eval 'as_val=${'$as_ac_var'}
25662 $as_echo "$as_val"'`
25663 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25664 $as_echo "$ac_res" >&6; }
25665 if test `eval 'as_val=${'$as_ac_var'}
25666 $as_echo "$as_val"'` = yes; then
25667 cat >>confdefs.h <<_ACEOF
25668 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25674 if test "x
$ac_cv_func_fork" = xyes; then
25675 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25676 $as_echo_n "checking
for working fork...
" >&6; }
25677 if test "${ac_cv_func_fork_works+set}" = set; then
25678 $as_echo_n "(cached
) " >&6
25680 if test "$cross_compiling" = yes; then
25681 ac_cv_func_fork_works=cross
25683 cat >conftest.$ac_ext <<_ACEOF
25686 cat confdefs.h >>conftest.$ac_ext
25687 cat >>conftest.$ac_ext <<_ACEOF
25688 /* end confdefs.h. */
25689 $ac_includes_default
25694 /* By Ruediger Kuhlmann. */
25695 return fork () < 0;
25701 rm -f conftest$ac_exeext
25702 if { (ac_try="$ac_link"
25703 case "(($ac_try" in
25704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25705 *) ac_try_echo=$ac_try;;
25707 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25708 $as_echo "$ac_try_echo") >&5
25709 (eval "$ac_link") 2>&5
25711 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25713 { (case "(($ac_try" in
25714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25715 *) ac_try_echo=$ac_try;;
25717 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25718 $as_echo "$ac_try_echo") >&5
25719 (eval "$ac_try") 2>&5
25721 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25722 (exit $ac_status); }; }; then
25723 ac_cv_func_fork_works=yes
25725 $as_echo "$as_me: program exited with status
$ac_status" >&5
25726 $as_echo "$as_me: failed program was
:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25729 ( exit $ac_status )
25730 ac_cv_func_fork_works=no
25732 rm -rf conftest.dSYM
25733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25738 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25739 $as_echo "$ac_cv_func_fork_works" >&6; }
25742 ac_cv_func_fork_works=$ac_cv_func_fork
25744 if test "x
$ac_cv_func_fork_works" = xcross; then
25746 *-*-amigaos* | *-*-msdosdjgpp*)
25747 # Override, as these systems have only a dummy fork() stub
25748 ac_cv_func_fork_works=no
25751 ac_cv_func_fork_works=yes
25754 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25755 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25757 ac_cv_func_vfork_works=$ac_cv_func_vfork
25758 if test "x
$ac_cv_func_vfork" = xyes; then
25759 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25760 $as_echo_n "checking
for working vfork...
" >&6; }
25761 if test "${ac_cv_func_vfork_works+set}" = set; then
25762 $as_echo_n "(cached
) " >&6
25764 if test "$cross_compiling" = yes; then
25765 ac_cv_func_vfork_works=cross
25767 cat >conftest.$ac_ext <<_ACEOF
25770 cat confdefs.h >>conftest.$ac_ext
25771 cat >>conftest.$ac_ext <<_ACEOF
25772 /* end confdefs.h. */
25773 /* Thanks to Paul Eggert for this test. */
25774 $ac_includes_default
25775 #include <sys/wait.h>
25776 #ifdef HAVE_VFORK_H
25777 # include <vfork.h>
25779 /* On some sparc systems, changes by the child to local and incoming
25780 argument registers are propagated back to the parent. The compiler
25781 is told about this with #include <vfork.h>, but some compilers
25782 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25783 static variable whose address is put into a register that is
25784 clobbered by the vfork. */
25787 sparc_address_test (int arg)
25789 sparc_address_test (arg) int arg;
25792 static pid_t child;
25810 pid_t parent = getpid ();
25813 sparc_address_test (0);
25818 /* Here is another test for sparc vfork register problems. This
25819 test uses lots of local variables, at least as many local
25820 variables as main has allocated so far including compiler
25821 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25822 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25823 reuse the register of parent for one of the local variables,
25824 since it will think that parent can't possibly be used any more
25825 in this routine. Assigning to the local variable will thus
25826 munge parent in the parent process. */
25828 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25829 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25830 /* Convince the compiler that p..p7 are live; otherwise, it might
25831 use the same hardware register for all 8 local variables. */
25832 if (p != p1 || p != p2 || p != p3 || p != p4
25833 || p != p5 || p != p6 || p != p7)
25836 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25837 from child file descriptors. If the child closes a descriptor
25838 before it execs or exits, this munges the parent's descriptor
25839 as well. Test for this by closing stdout in the child. */
25840 _exit(close(fileno(stdout)) != 0);
25845 while (wait(&status) != child)
25848 /* Was there some problem with vforking? */
25851 /* Did the child fail? (This shouldn't happen.) */
25854 /* Did the vfork/compiler bug occur? */
25855 || parent != getpid()
25857 /* Did the file descriptor bug occur? */
25858 || fstat(fileno(stdout), &st) != 0
25863 rm -f conftest$ac_exeext
25864 if { (ac_try="$ac_link"
25865 case "(($ac_try" in
25866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25867 *) ac_try_echo=$ac_try;;
25869 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25870 $as_echo "$ac_try_echo") >&5
25871 (eval "$ac_link") 2>&5
25873 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25875 { (case "(($ac_try" in
25876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25877 *) ac_try_echo=$ac_try;;
25879 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25880 $as_echo "$ac_try_echo") >&5
25881 (eval "$ac_try") 2>&5
25883 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25884 (exit $ac_status); }; }; then
25885 ac_cv_func_vfork_works=yes
25887 $as_echo "$as_me: program exited with status
$ac_status" >&5
25888 $as_echo "$as_me: failed program was
:" >&5
25889 sed 's/^/| /' conftest.$ac_ext >&5
25891 ( exit $ac_status )
25892 ac_cv_func_vfork_works=no
25894 rm -rf conftest.dSYM
25895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25900 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25901 $as_echo "$ac_cv_func_vfork_works" >&6; }
25904 if test "x
$ac_cv_func_fork_works" = xcross; then
25905 ac_cv_func_vfork_works=$ac_cv_func_vfork
25906 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25907 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25910 if test "x
$ac_cv_func_vfork_works" = xyes; then
25912 cat >>confdefs.h <<\_ACEOF
25913 #define HAVE_WORKING_VFORK 1
25918 cat >>confdefs.h <<\_ACEOF
25923 if test "x
$ac_cv_func_fork_works" = xyes; then
25925 cat >>confdefs.h <<\_ACEOF
25926 #define HAVE_WORKING_FORK 1
25932 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25933 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25934 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25935 $as_echo_n "(cached
) " >&6
25937 cat >conftest.$ac_ext <<_ACEOF
25940 cat confdefs.h >>conftest.$ac_ext
25941 cat >>conftest.$ac_ext <<_ACEOF
25942 /* end confdefs.h. */
25943 #include <langinfo.h>
25947 char* cs = nl_langinfo(CODESET);
25952 rm -f conftest.$ac_objext conftest$ac_exeext
25953 if { (ac_try="$ac_link"
25954 case "(($ac_try" in
25955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25956 *) ac_try_echo=$ac_try;;
25958 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25959 $as_echo "$ac_try_echo") >&5
25960 (eval "$ac_link") 2>conftest.er1
25962 grep -v '^ *+' conftest.er1 >conftest.err
25964 cat conftest.err >&5
25965 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25966 (exit $ac_status); } && {
25967 test -z "$ac_c_werror_flag" ||
25968 test ! -s conftest.err
25969 } && test -s conftest$ac_exeext && {
25970 test "$cross_compiling" = yes ||
25971 $as_test_x conftest$ac_exeext
25973 emacs_cv_langinfo_codeset=yes
25975 $as_echo "$as_me: failed program was
:" >&5
25976 sed 's/^/| /' conftest.$ac_ext >&5
25978 emacs_cv_langinfo_codeset=no
25981 rm -rf conftest.dSYM
25982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25983 conftest$ac_exeext conftest.$ac_ext
25986 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25987 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25988 if test $emacs_cv_langinfo_codeset = yes; then
25990 cat >>confdefs.h <<\_ACEOF
25991 #define HAVE_LANGINFO_CODESET 1
25996 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25997 $as_echo_n "checking
for size_t...
" >&6; }
25998 if test "${ac_cv_type_size_t+set}" = set; then
25999 $as_echo_n "(cached
) " >&6
26001 ac_cv_type_size_t=no
26002 cat >conftest.$ac_ext <<_ACEOF
26005 cat confdefs.h >>conftest.$ac_ext
26006 cat >>conftest.$ac_ext <<_ACEOF
26007 /* end confdefs.h. */
26008 $ac_includes_default
26012 if (sizeof (size_t))
26018 rm -f conftest.$ac_objext
26019 if { (ac_try="$ac_compile"
26020 case "(($ac_try" in
26021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26022 *) ac_try_echo=$ac_try;;
26024 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26025 $as_echo "$ac_try_echo") >&5
26026 (eval "$ac_compile") 2>conftest.er1
26028 grep -v '^ *+' conftest.er1 >conftest.err
26030 cat conftest.err >&5
26031 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26032 (exit $ac_status); } && {
26033 test -z "$ac_c_werror_flag" ||
26034 test ! -s conftest.err
26035 } && test -s conftest.$ac_objext; then
26036 cat >conftest.$ac_ext <<_ACEOF
26039 cat confdefs.h >>conftest.$ac_ext
26040 cat >>conftest.$ac_ext <<_ACEOF
26041 /* end confdefs.h. */
26042 $ac_includes_default
26046 if (sizeof ((size_t)))
26052 rm -f conftest.$ac_objext
26053 if { (ac_try="$ac_compile"
26054 case "(($ac_try" in
26055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26056 *) ac_try_echo=$ac_try;;
26058 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26059 $as_echo "$ac_try_echo") >&5
26060 (eval "$ac_compile") 2>conftest.er1
26062 grep -v '^ *+' conftest.er1 >conftest.err
26064 cat conftest.err >&5
26065 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26066 (exit $ac_status); } && {
26067 test -z "$ac_c_werror_flag" ||
26068 test ! -s conftest.err
26069 } && test -s conftest.$ac_objext; then
26072 $as_echo "$as_me: failed program was
:" >&5
26073 sed 's/^/| /' conftest.$ac_ext >&5
26075 ac_cv_type_size_t=yes
26078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26080 $as_echo "$as_me: failed program was
:" >&5
26081 sed 's/^/| /' conftest.$ac_ext >&5
26086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26088 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
26089 $as_echo "$ac_cv_type_size_t" >&6; }
26090 if test $ac_cv_type_size_t = yes; then
26092 cat >>confdefs.h <<_ACEOF
26093 #define HAVE_SIZE_T 1
26100 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
26101 $as_echo_n "checking
for mbstate_t...
" >&6; }
26102 if test "${ac_cv_type_mbstate_t+set}" = set; then
26103 $as_echo_n "(cached
) " >&6
26105 cat >conftest.$ac_ext <<_ACEOF
26108 cat confdefs.h >>conftest.$ac_ext
26109 cat >>conftest.$ac_ext <<_ACEOF
26110 /* end confdefs.h. */
26111 $ac_includes_default
26112 # include <wchar.h>
26116 mbstate_t x; return sizeof x;
26121 rm -f conftest.$ac_objext
26122 if { (ac_try="$ac_compile"
26123 case "(($ac_try" in
26124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26125 *) ac_try_echo=$ac_try;;
26127 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26128 $as_echo "$ac_try_echo") >&5
26129 (eval "$ac_compile") 2>conftest.er1
26131 grep -v '^ *+' conftest.er1 >conftest.err
26133 cat conftest.err >&5
26134 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26135 (exit $ac_status); } && {
26136 test -z "$ac_c_werror_flag" ||
26137 test ! -s conftest.err
26138 } && test -s conftest.$ac_objext; then
26139 ac_cv_type_mbstate_t=yes
26141 $as_echo "$as_me: failed program was
:" >&5
26142 sed 's/^/| /' conftest.$ac_ext >&5
26144 ac_cv_type_mbstate_t=no
26147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26149 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
26150 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26151 if test $ac_cv_type_mbstate_t = yes; then
26153 cat >>confdefs.h <<\_ACEOF
26154 #define HAVE_MBSTATE_T 1
26159 cat >>confdefs.h <<\_ACEOF
26160 #define mbstate_t int
26165 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
26166 $as_echo_n "checking
for C restrict keyword...
" >&6; }
26167 if test "${emacs_cv_c_restrict+set}" = set; then
26168 $as_echo_n "(cached
) " >&6
26170 cat >conftest.$ac_ext <<_ACEOF
26173 cat confdefs.h >>conftest.$ac_ext
26174 cat >>conftest.$ac_ext <<_ACEOF
26175 /* end confdefs.h. */
26176 void fred (int *restrict x);
26185 rm -f conftest.$ac_objext
26186 if { (ac_try="$ac_compile"
26187 case "(($ac_try" in
26188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26189 *) ac_try_echo=$ac_try;;
26191 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26192 $as_echo "$ac_try_echo") >&5
26193 (eval "$ac_compile") 2>conftest.er1
26195 grep -v '^ *+' conftest.er1 >conftest.err
26197 cat conftest.err >&5
26198 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26199 (exit $ac_status); } && {
26200 test -z "$ac_c_werror_flag" ||
26201 test ! -s conftest.err
26202 } && test -s conftest.$ac_objext; then
26203 emacs_cv_c_restrict=yes
26205 $as_echo "$as_me: failed program was
:" >&5
26206 sed 's/^/| /' conftest.$ac_ext >&5
26208 cat >conftest.$ac_ext <<_ACEOF
26211 cat confdefs.h >>conftest.$ac_ext
26212 cat >>conftest.$ac_ext <<_ACEOF
26213 /* end confdefs.h. */
26214 void fred (int *__restrict x);
26223 rm -f conftest.$ac_objext
26224 if { (ac_try="$ac_compile"
26225 case "(($ac_try" in
26226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26227 *) ac_try_echo=$ac_try;;
26229 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26230 $as_echo "$ac_try_echo") >&5
26231 (eval "$ac_compile") 2>conftest.er1
26233 grep -v '^ *+' conftest.er1 >conftest.err
26235 cat conftest.err >&5
26236 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26237 (exit $ac_status); } && {
26238 test -z "$ac_c_werror_flag" ||
26239 test ! -s conftest.err
26240 } && test -s conftest.$ac_objext; then
26241 emacs_cv_c_restrict=__restrict
26243 $as_echo "$as_me: failed program was
:" >&5
26244 sed 's/^/| /' conftest.$ac_ext >&5
26246 emacs_cv_c_restrict=no
26249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26254 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
26255 $as_echo "$emacs_cv_c_restrict" >&6; }
26256 case "$emacs_cv_c_restrict" in
26257 yes) emacs_restrict=restrict;;
26258 no) emacs_restrict="";;
26259 *) emacs_restrict="$emacs_cv_c_restrict";;
26261 if test "$emacs_restrict" != __restrict; then
26263 cat >>confdefs.h <<_ACEOF
26264 #define __restrict $emacs_restrict
26269 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
26270 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
26271 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26272 $as_echo_n "(cached
) " >&6
26274 cat >conftest.$ac_ext <<_ACEOF
26277 cat confdefs.h >>conftest.$ac_ext
26278 cat >>conftest.$ac_ext <<_ACEOF
26279 /* end confdefs.h. */
26280 void fred (int x[__restrict]);
26289 rm -f conftest.$ac_objext
26290 if { (ac_try="$ac_compile"
26291 case "(($ac_try" in
26292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26293 *) ac_try_echo=$ac_try;;
26295 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26296 $as_echo "$ac_try_echo") >&5
26297 (eval "$ac_compile") 2>conftest.er1
26299 grep -v '^ *+' conftest.er1 >conftest.err
26301 cat conftest.err >&5
26302 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26303 (exit $ac_status); } && {
26304 test -z "$ac_c_werror_flag" ||
26305 test ! -s conftest.err
26306 } && test -s conftest.$ac_objext; then
26307 emacs_cv_c_restrict_arr=yes
26309 $as_echo "$as_me: failed program was
:" >&5
26310 sed 's/^/| /' conftest.$ac_ext >&5
26312 emacs_cv_c_restrict_arr=no
26315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26317 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
26318 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26319 if test "$emacs_cv_c_restrict_arr" = yes; then
26321 cat >>confdefs.h <<\_ACEOF
26322 #define __restrict_arr __restrict
26329 # Set up the CFLAGS for real compilation, so we can substitute it.
26330 CFLAGS="$REAL_CFLAGS"
26331 CPPFLAGS="$REAL_CPPFLAGS"
26333 ## Hack to detect a buggy GCC version.
26334 if test "x
$GCC" = xyes \
26335 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26336 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26337 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26338 { { $as_echo "$as_me:$LINENO: error
: GCC
4.5.0 has problems compiling Emacs
; see etc
/PROBLEMS
'." >&5
26339 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'.
" >&2;}
26340 { (exit 1); exit 1; }; }
26343 #### Find out which version of Emacs this is.
26344 version=`grep 'const char emacs_version' ${srcdir}/src/emacs.c \
26345 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
26346 if test x"${version}" = x; then
26347 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/src/emacs.c'.
" >&5
26348 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/src/emacs.c'.
" >&2;}
26349 { (exit 1); exit 1; }; }
26351 if test x"${version}" != x"$PACKAGE_VERSION"; then
26352 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/src
/emacs.c
'." >&5
26353 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&2;}
26356 ### Specify what sort of things we'll be editing into Makefile and config.h.
26357 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26382 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
26383 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
26384 ## end of LIBX_BASE, but nothing ever set it.
26389 ## Used in lwlib/Makefile.in.
26402 cat >>confdefs.h
<<_ACEOF
26403 #define EMACS_CONFIGURATION "${canonical}"
26407 cat >>confdefs.h
<<_ACEOF
26408 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26412 cat >>confdefs.h
<<_ACEOF
26413 #define config_machfile "${machfile}"
26417 cat >>confdefs.h
<<_ACEOF
26418 #define config_opsysfile "${opsysfile}"
26425 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26427 cat >>confdefs.h
<<\_ACEOF
26428 #define HAVE_X_WINDOWS 1
26432 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26434 if test "$HAVE_XFT" = "yes"; then
26435 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
26436 elif test "$HAVE_FREETYPE" = "yes"; then
26437 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
26447 if test "${USE_X_TOOLKIT}" != "none" ; then
26448 WIDGET_OBJ
=widget.o
26450 cat >>confdefs.h
<<\_ACEOF
26451 #define USE_X_TOOLKIT 1
26454 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26456 cat >>confdefs.h
<<\_ACEOF
26457 #define USE_LUCID 1
26460 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26462 cat >>confdefs.h
<<\_ACEOF
26463 #define USE_MOTIF 1
26469 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26470 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
26474 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26475 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26476 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
26480 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26481 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
26484 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
26490 case "$USE_X_TOOLKIT" in
26491 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
26492 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
26493 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
26497 if test "$USE_X_TOOLKIT" = "none"; then
26498 LIBXT_OTHER
="\$(LIBXSM)"
26499 OLDXMENU_TARGET
="really-oldXMenu"
26501 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26502 OLDXMENU_TARGET
="really-lwlib"
26506 ## The X Menu stuff is present in the X10 distribution, but missing
26507 ## from X11. If we have X10, just use the installed library;
26508 ## otherwise, use our own copy.
26509 if test "${HAVE_X11}" = "yes" ; then
26511 cat >>confdefs.h
<<\_ACEOF
26516 if test "$USE_X_TOOLKIT" = "none"; then
26517 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
26519 OLDXMENU
="\${lwlibdir}liblw.a"
26521 LIBXMENU
="\$(OLDXMENU)"
26522 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
26523 OLDXMENU_DEPS
="\${OLDXMENU} ../src/\${OLDXMENU}"
26525 ## For a syntactically valid Makefile; not actually used for anything.
26526 ## See comments in src/Makefile.in.
26528 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
26529 if test "${HAVE_X_WINDOWS}" = "yes"; then
26538 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
26551 if test "${HAVE_MENUS}" = "yes" ; then
26553 cat >>confdefs.h
<<\_ACEOF
26554 #define HAVE_MENUS 1
26559 if test "${GNU_MALLOC}" = "yes" ; then
26561 cat >>confdefs.h
<<\_ACEOF
26562 #define GNU_MALLOC 1
26568 if test "${REL_ALLOC}" = "yes" ; then
26570 cat >>confdefs.h
<<\_ACEOF
26571 #define REL_ALLOC 1
26575 test "$system_malloc" != "yes" && RALLOC_OBJ
=ralloc.o
26579 if test "$opsys" = "cygwin"; then
26580 CYGWIN_OBJ
="sheap.o"
26581 ## Cygwin differs because of its unexec().
26583 POST_ALLOC_OBJ
=lastfile.o
26586 PRE_ALLOC_OBJ
=lastfile.o
26595 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
26598 ## The -headerpad option tells ld (see man page) to leave room at the
26599 ## end of the header for adding load commands. Needed for dumping.
26600 ## 0x690 is the total size of 30 segment load commands (at 56
26601 ## each); under Cocoa 31 commands are required.
26602 if test "$HAVE_NS" = "yes"; then
26603 libs_nsgui
="-framework AppKit"
26604 headerpad_extra
=6C8
26607 headerpad_extra
=690
26609 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26612 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
26617 ## This exists because src/Makefile.in did some extra fiddling around
26618 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26619 ## #ifndef LD_SWITCH_SYSTEM
26620 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26621 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26622 ## not using gcc, darwin system not on an alpha (ie darwin, since
26623 ## darwin + alpha does not occur).
26624 ## Note that unlike L_S_S, this is not used in ac_link.
26625 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26626 test "$opsys" = "darwin"; then
26627 LD_SWITCH_SYSTEM_EXTRA
="-X"
26629 LD_SWITCH_SYSTEM_EXTRA
=
26637 ## gnu: GNU needs its own crt0.
26638 aix4-2|darwin|gnu|usg5-4|irix6-5|sol2
*|unixware
) ORDINARY_LINK
=yes ;;
26640 cygwin
) LINKER
="\$(CC)" ;;
26642 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
26643 ## library search parth, i.e. it won't search /usr/lib for libc and
26644 ## friends. Using -nostartfiles instead avoids this problem, and
26645 ## will also work on earlier NetBSD releases.
26646 netbsd|openbsd
) LINKER
="\$(CC) -nostartfiles" ;;
26648 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
26649 ## MkLinux/LinuxPPC needs this.
26650 ## ibms390x only supports opsys = gnu-linux so it can be added here.
26653 macppc|ibms390x
) LINKER
="\$(CC) -nostdlib" ;;
26658 ## A macro which other sections of Makefile can redefine to munge the
26659 ## flags before they are passed to LD. This is helpful if you have
26660 ## redefined LD to something odd, like "gcc".
26661 ## (The YMF prefix is a holdover from the old name "ymakefile".)
26662 YMF_PASS_LDFLAGS
=flags
26663 if test "x$ORDINARY_LINK" = "xyes"; then
26667 cat >>confdefs.h
<<\_ACEOF
26668 #define ORDINARY_LINK 1
26672 ## The system files defining neither ORDINARY_LINK nor LINKER are:
26673 ## (bsd-common), freebsd, gnu-* not on macppc|ibms390x, hpux*.
26674 elif test "x$GCC" = "xyes" && test "x$LINKER" = "x"; then
26676 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
26677 ## places that are difficult to figure out at make time. Fortunately,
26678 ## these same versions allow you to pass arbitrary flags on to the
26679 ## linker, so there is no reason not to use it as a linker.
26681 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
26682 ## searching for libraries in its internal directories, so we have to
26683 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
26684 LINKER
="\$(CC) -nostdlib"
26685 ## GCC passes any argument prefixed with -Xlinker directly to the linker.
26686 ## See prefix-args.c for an explanation of why we do not do this with the
26687 ## shell''s ``for'' construct. Note that sane people do not have '.' in
26688 ## their paths, so we must use ./prefix-args.
26689 ## TODO either make prefix-args check ORDINARY_LINK internally,
26690 ## or remove it altogether (bug#6184), removing the need for this macro.
26691 YMF_PASS_LDFLAGS
='`./prefix-args -Xlinker flags`'
26695 test "x$LINKER" = "x" && LINKER
=ld
26696 ## FIXME? What setting of YMF_PASS_LDFLAGS should this have?
26697 test "$NS_IMPL_GNUSTEP" = "yes" && LINKER
="\$(CC) -rdynamic"
26702 ## FIXME? The logic here is not precisely the same as that above
26703 ## setting YMF_PASS_LDFLAGS. There is no check here for a pre-defined
26704 ## LINKER. Should we only be setting LIB_GCC if LD ~ -nostdlib?
26706 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
26709 ## cygwin: don't link against static libgcc.
26710 cygwin|freebsd|netbsd|openbsd
) LIB_GCC
= ;;
26713 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26714 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26715 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26716 if test "$machine" = "arm"; then
26719 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26720 ## immediately undefine it again and redefine it to empty.
26721 ## Was the C_SWITCH_X_SITE part really necessary?
26722 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26727 ## Ask GCC where to find libgcc.a.
26728 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26735 ## If we're using X11/GNUstep, define some consequences.
26736 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
26738 cat >>confdefs.h
<<\_ACEOF
26739 #define HAVE_WINDOW_SYSTEM 1
26743 cat >>confdefs.h
<<\_ACEOF
26744 #define HAVE_MOUSE 1
26747 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
26748 TOOLTIP_SUPPORT
="\${lispsource}mouse.elc"
26750 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
26751 test "$HAVE_X_WINDOWS" = "yes" && \
26752 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
26764 #### Report on what we decided to do.
26765 #### Report GTK as a toolkit, even if it doesn't use Xt.
26766 #### It makes printing result more understandable as using GTK sets
26767 #### toolkit_scroll_bars to yes by default.
26768 if test "${HAVE_GTK}" = "yes"; then
26773 Configured for \`${canonical}'.
26775 Where should the build process find the source code? ${srcdir}
26776 What operating system and machine description files should Emacs use?
26777 \`${opsysfile}' and \`${machfile}'
26778 What compiler should emacs be built with? ${CC} ${CFLAGS}
26779 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26780 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26781 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26782 What window system should Emacs use? ${window_system}
26783 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26785 if test -n "${x_includes}"; then
26786 echo " Where do we find X Windows header files? ${x_includes}"
26788 echo " Where do we find X Windows header files? Standard dirs"
26790 if test -n "${x_libraries}"; then
26791 echo " Where do we find X Windows libraries? ${x_libraries}"
26793 echo " Where do we find X Windows libraries? Standard dirs"
26796 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26797 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26798 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26799 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26800 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26801 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26802 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26803 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26804 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26805 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26806 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26808 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26809 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26810 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26811 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26813 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26816 if test $USE_XASSERTS = yes; then
26817 echo " Compiling with asserts turned on."
26818 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
26823 if test "$HAVE_NS" = "yes"; then
26825 echo "You must run \"make install\" in order to test the built application.
26826 The installed application will go to nextstep/Emacs.app and can be
26827 run or moved from there."
26828 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26829 echo "The application will be fully self-contained."
26831 echo "The lisp resources for the application will be installed under ${prefix}.
26832 You may need to run \"make install\" with sudo. The application will fail
26833 to run if these resources are not installed."
26838 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26839 echo "D-Bus integration has been tested for GNU/Linux only."
26844 # Remove any trailing slashes in these variables.
26845 test "${prefix}" != NONE
&&
26846 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26847 test "${exec_prefix}" != NONE
&&
26848 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26850 # Now get this: Some word that is part of the ${srcdir} directory name
26851 # or the ${configuration} value might, just might, happen to be an
26852 # identifier like `sun4' or `i386' or something, and be predefined by
26853 # the C preprocessor to some helpful value like 1, or maybe the empty
26854 # string. Needless to say consequent macro substitutions are less
26855 # than conducive to the makefile finding the correct directory.
26856 # src/Makefile.in used to treat X11 as equivalent to HAVE_X11.
26857 # But nothing in Emacs defines X11, and everywhere else uses HAVE_X11,
26858 # so that cannot have been doing anything.
26859 cpp_undefs
="`echo $srcdir $configuration $canonical unix mktime register X11 |
26860 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26861 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26863 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26864 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26865 ## from Makefile.c can correctly provide the arg `-traditional' to the
26868 cat >conftest.
$ac_ext <<_ACEOF
26871 cat confdefs.h
>>conftest.
$ac_ext
26872 cat >>conftest.
$ac_ext <<_ACEOF
26873 /* end confdefs.h. */
26876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26877 $EGREP "yes..yes" >/dev
/null
2>&1; then
26878 CPP_NEED_TRADITIONAL
=no
26880 CPP_NEED_TRADITIONAL
=yes
26885 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"
26887 ac_config_commands
="$ac_config_commands default"
26889 cat >confcache
<<\_ACEOF
26890 # This file is a shell script that caches the results of configure
26891 # tests run on this system so they can be shared between configure
26892 # scripts and configure runs, see configure's option --config-cache.
26893 # It is not useful on other systems. If it contains results you don't
26894 # want to keep, you may remove or edit it.
26896 # config.status only pays attention to the cache file if you give it
26897 # the --recheck option to rerun configure.
26899 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26900 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26901 # following values.
26905 # The following way of writing the cache mishandles newlines in values,
26906 # but we know of no workaround that is simple, portable, and efficient.
26907 # So, we kill variables containing newlines.
26908 # Ultrix sh set writes to stderr and can't be redirected directly,
26909 # and sets the high bit in the cache file unless we assign to the vars.
26911 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26912 eval ac_val
=\$
$ac_var
26916 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26917 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26920 _ | IFS | as_nl
) ;; #(
26921 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26922 *) $as_unset $ac_var ;;
26928 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26929 *${as_nl}ac_space
=\
*)
26930 # `set' does not quote correctly, so add quotes (double-quote
26931 # substitution turns \\\\ into \\, and sed turns \\ into \).
26934 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26937 # `set' quotes correctly as required by POSIX, so do not add quotes.
26938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26947 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26949 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26951 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26952 if test -w "$cache_file"; then
26953 test "x$cache_file" != "x/dev/null" &&
26954 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26955 $as_echo "$as_me: updating cache $cache_file" >&6;}
26956 cat confcache
>$cache_file
26958 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26959 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26964 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26965 # Let make expand exec_prefix.
26966 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26968 DEFS
=-DHAVE_CONFIG_H
26972 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26973 # 1. Remove the extension, and $U if already installed.
26974 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26975 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26976 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26977 # will be set to the directory where LIBOBJS objects are built.
26978 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26979 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26981 LIBOBJS
=$ac_libobjs
26983 LTLIBOBJS
=$ac_ltlibobjs
26987 : ${CONFIG_STATUS=./config.status}
26989 ac_clean_files_save
=$ac_clean_files
26990 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26991 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26992 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26993 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26995 # Generated by $as_me.
26996 # Run this file to recreate the current configuration.
26997 # Compiler output produced by configure, useful for debugging
26998 # configure, is in config.log if it exists.
27001 ac_cs_recheck=false
27003 SHELL=\${CONFIG_SHELL-$SHELL}
27006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27007 ## --------------------- ##
27008 ## M4sh Initialization. ##
27009 ## --------------------- ##
27011 # Be more Bourne compatible
27012 DUALCASE
=1; export DUALCASE
# for MKS sh
27013 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27016 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27017 # is contrary to our usage. Disable this feature.
27018 alias -g '${1+"$@"}'='"$@"'
27019 setopt NO_GLOB_SUBST
27021 case `(set -o) 2>/dev/null` in
27022 *posix
*) set -o posix
;;
27031 # Avoid depending upon Character Ranges.
27032 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27033 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27034 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27035 as_cr_digits
='0123456789'
27036 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27041 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27042 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27043 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27044 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27045 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27046 as_echo='printf %s
\n'
27047 as_echo_n='printf %s
'
27049 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27050 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
27051 as_echo_n='/usr
/ucb
/echo -n'
27053 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27054 as_echo_n_body='eval
27058 expr "X$arg" : "X\\(.*\\)$as_nl";
27059 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27061 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
27063 export as_echo_n_body
27064 as_echo_n='sh
-c $as_echo_n_body as_echo
'
27066 export as_echo_body
27067 as_echo='sh
-c $as_echo_body as_echo
'
27070 # The user is always right.
27071 if test "${PATH_SEPARATOR+set}" != set; then
27073 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27074 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27079 # Support unset when possible.
27080 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27088 # We need space, tab and new line, in precisely that order. Quoting is
27089 # there to prevent editors from complaining about space-tab.
27090 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27091 # splitting by setting IFS to empty value.)
27094 # Find who we are. Look in the path if we contain no directory separator.
27096 *[\\/]* ) as_myself=$0 ;;
27097 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27098 for as_dir in $PATH
27101 test -z "$as_dir" && as_dir=.
27102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27108 # We did not find ourselves, most probably we were run as `sh COMMAND'
27109 # in which case we are not to be found in the path.
27110 if test "x$as_myself" = x
; then
27113 if test ! -f "$as_myself"; then
27114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27115 { (exit 1); exit 1; }
27118 # Work around bugs in pre-3.0 UWIN ksh.
27119 for as_var
in ENV MAIL MAILPATH
27120 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27132 # Required to use basename.
27133 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27134 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27140 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27141 as_basename
=basename
27147 # Name of the executable.
27148 as_me
=`$as_basename -- "$0" ||
27149 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27150 X"$0" : 'X\(//\)$' \| \
27151 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27153 sed '/^.*\/\([^/][^/]*\)\/*$/{
27172 as_lineno_1
=$LINENO
27173 as_lineno_2
=$LINENO
27174 test "x$as_lineno_1" != "x$as_lineno_2" &&
27175 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27177 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27178 # uniformly replaced by the line number. The first 'sed' inserts a
27179 # line-number line after each line using $LINENO; the second 'sed'
27180 # does the real work. The second script uses 'N' to pair each
27181 # line-number line with the line containing $LINENO, and appends
27182 # trailing '-' during substitution so that $LINENO is not a special
27183 # case at line end.
27184 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27185 # scripts with optimization help from Paolo Bonzini. Blame Lee
27186 # E. McMahon (1931-1989) for sed's syntax. :-)
27198 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27201 ' >$as_me.lineno
&&
27202 chmod +x
"$as_me.lineno" ||
27203 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27204 { (exit 1); exit 1; }; }
27206 # Don't try to exec as it changes $[0], causing all sort of problems
27207 # (the dirname of $[0] is not the place where we might find the
27208 # original and so on. Autoconf is especially sensitive to this).
27209 .
"./$as_me.lineno"
27210 # Exit status is that of the last command.
27215 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27221 ECHO_C
= ECHO_N
= ECHO_T
=
27222 case `echo -n x` in
27224 case `echo 'x\c'` in
27225 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27231 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27232 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27238 rm -f conf$$ conf$$.exe conf$$.
file
27239 if test -d conf$$.dir
; then
27240 rm -f conf$$.dir
/conf$$.
file
27243 mkdir conf$$.dir
2>/dev
/null
27245 if (echo >conf$$.
file) 2>/dev
/null
; then
27246 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27248 # ... but there are two gotchas:
27249 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27250 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27251 # In both cases, we have to default to `cp -p'.
27252 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27254 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27262 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27263 rmdir conf$$.dir
2>/dev
/null
27265 if mkdir
-p .
2>/dev
/null
; then
27268 test -d .
/-p && rmdir .
/-p
27272 if test -x / >/dev
/null
2>&1; then
27273 as_test_x
='test -x'
27275 if ls -dL / >/dev
/null
2>&1; then
27282 if test -d "$1"; then
27288 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27289 ???[sx]*):;;*)false;;esac;fi
27293 as_executable_p
=$as_test_x
27295 # Sed expression to map a string onto a valid CPP name.
27296 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27298 # Sed expression to map a string onto a valid variable name.
27299 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27304 # Save the log message, to keep $[0] and so on meaningful, and to
27305 # report actual input values of CONFIG_FILES etc. instead of their
27306 # values after options handling.
27308 This file was extended by emacs $as_me 24.0.50, which was
27309 generated by GNU Autoconf 2.62. Invocation command line was
27311 CONFIG_FILES = $CONFIG_FILES
27312 CONFIG_HEADERS = $CONFIG_HEADERS
27313 CONFIG_LINKS = $CONFIG_LINKS
27314 CONFIG_COMMANDS = $CONFIG_COMMANDS
27317 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27323 # Files that config.status was made for.
27324 config_files="$ac_config_files"
27325 config_headers="$ac_config_headers"
27326 config_commands="$ac_config_commands"
27330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27332 \`$as_me' instantiates files from templates according to the
27333 current configuration.
27335 Usage: $0 [OPTIONS] [FILE]...
27337 -h, --help print this help, then exit
27338 -V, --version print version number and configuration settings, then exit
27339 -q, --quiet do not print progress messages
27340 -d, --debug don't remove temporary files
27341 --recheck update $as_me by reconfiguring in the same conditions
27342 --file=FILE[:TEMPLATE]
27343 instantiate the configuration file FILE
27344 --header=FILE[:TEMPLATE]
27345 instantiate the configuration header FILE
27347 Configuration files:
27350 Configuration headers:
27353 Configuration commands:
27356 Report bugs to <bug-autoconf@gnu.org>."
27359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27361 emacs config.status 24.0.50
27362 configured by $0, generated by GNU Autoconf 2.62,
27363 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27365 Copyright (C) 2008 Free Software Foundation, Inc.
27366 This config.status script is free software; the Free Software Foundation
27367 gives unlimited permission to copy, distribute and modify it."
27372 test -n "\$AWK" || AWK=awk
27375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27376 # The default lists apply if the user does not specify any file.
27382 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27383 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27394 # Handling of the options.
27395 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27397 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27398 $as_echo "$ac_cs_version"; exit ;;
27399 --debug |
--debu |
--deb |
--de |
--d |
-d )
27401 --file |
--fil |
--fi |
--f )
27404 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27406 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
27407 ac_need_defaults
=false
;;
27408 --header |
--heade |
--head |
--hea )
27411 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27413 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
27414 ac_need_defaults
=false
;;
27416 # Conflict between --help and --header
27417 { $as_echo "$as_me: error: ambiguous option: $1
27418 Try \`$0 --help' for more information." >&2
27419 { (exit 1); exit 1; }; };;
27420 --help |
--hel |
-h )
27421 $as_echo "$ac_cs_usage"; exit ;;
27422 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27423 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27426 # This is an error.
27427 -*) { $as_echo "$as_me: error: unrecognized option: $1
27428 Try \`$0 --help' for more information." >&2
27429 { (exit 1); exit 1; }; } ;;
27431 *) ac_config_targets
="$ac_config_targets $1"
27432 ac_need_defaults
=false
;;
27438 ac_configure_extra_args
=
27440 if $ac_cs_silent; then
27442 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27447 if \$ac_cs_recheck; then
27448 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27450 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27451 CONFIG_SHELL='$SHELL'
27452 export CONFIG_SHELL
27457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27461 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27462 ## Running $as_me. ##
27468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27472 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27478 # Handling of arguments.
27479 for ac_config_target
in $ac_config_targets
27481 case $ac_config_target in
27482 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27483 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27484 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
27485 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
27486 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
27487 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
27488 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
27489 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
27490 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27491 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
27492 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
27493 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
27494 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27496 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27497 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27498 { (exit 1); exit 1; }; };;
27503 # If the user did not use the arguments to specify the items to instantiate,
27504 # then the envvar interface is used. Set only those that are not.
27505 # We use the long form for the default assignment because of an extremely
27506 # bizarre bug on SunOS 4.1.3.
27507 if $ac_need_defaults; then
27508 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27509 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27510 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27513 # Have a temporary directory for convenience. Make it in the build tree
27514 # simply because there is no reason against having it here, and in addition,
27515 # creating and moving files from /tmp can sometimes cause problems.
27516 # Hook for its removal unless debugging.
27517 # Note that there is a small window in which the directory will not be cleaned:
27518 # after its creation but before its name has been assigned to `$tmp'.
27522 trap 'exit_status=$?
27523 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27525 trap '{ (exit 1); exit 1; }' 1 2 13 15
27527 # Create a (secure) tmp directory for tmp files.
27530 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27531 test -n "$tmp" && test -d "$tmp"
27534 tmp
=.
/conf$$
-$RANDOM
27535 (umask 077 && mkdir
"$tmp")
27538 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27539 { (exit 1); exit 1; }
27542 # Set up the scripts for CONFIG_FILES section.
27543 # No need to generate them if there are no CONFIG_FILES.
27544 # This happens for instance with `./config.status config.h'.
27545 if test -n "$CONFIG_FILES"; then
27547 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
27548 ac_cs_awk_getline
=:
27549 ac_cs_awk_pipe_init
=
27550 ac_cs_awk_read_file
='
27551 while ((getline aline < (F[key])) > 0)
27554 ac_cs_awk_pipe_fini
=
27556 ac_cs_awk_getline
=false
27557 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
27558 ac_cs_awk_read_file
='
27560 print "cat " F[key] " &&"
27561 '$ac_cs_awk_pipe_init
27562 # The final `:' finishes the AND list.
27563 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
27566 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27567 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27570 ac_cs_awk_cr
=$ac_cr
27573 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27576 # Create commands to substitute file output variables.
27578 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27579 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27580 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
27583 } >conf$
$files.sh
&&
27584 . .
/conf$
$files.sh ||
27585 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27586 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27587 { (exit 1); exit 1; }; }
27588 rm -f conf$
$files.sh
27591 echo "cat >conf$$subs.awk <<_ACEOF" &&
27592 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27594 } >conf$$subs.sh ||
27595 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27596 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27597 { (exit 1); exit 1; }; }
27598 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27600 for ac_last_try in false false false false false :; do
27601 . ./conf$$subs.sh ||
27602 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27603 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27604 { (exit 1); exit 1; }; }
27606 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27608 elif $ac_last_try; then
27609 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27610 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27611 { (exit 1); exit 1; }; }
27613 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27616 rm -f conf$$subs.sh
27618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27619 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27623 s/^/S["/; s
/!.
*/"]=/
27633 s/\(.\{148\}\).*/\1/
27635 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27640 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27647 s/\(.\{148\}\).*/\1/
27649 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27653 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27658 ' <conf$$subs.awk | sed '
27663 ' >>$CONFIG_STATUS || ac_write_fail=1
27664 rm -f conf$$subs.awk
27665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27667 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27668 for (key in S) S_is_set[key] = 1
27670 \$ac_cs_awk_pipe_init
27674 nfields = split(line, field, "@
")
27676 len = length(field[1])
27677 for (i = 2; i < nfields; i++) {
27679 keylen = length(key)
27680 if (S_is_set[key]) {
27682 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27683 len += length(value) + length(field[++i])
27688 if (nfields == 3 && !substed) {
27690 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27691 \$ac_cs_awk_read_file
27697 \$ac_cs_awk_pipe_fini
27700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27701 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27702 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27705 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27706 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
27707 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
27708 { (exit 1); exit 1; }; }
27711 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27712 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27713 # trailing colons and then remove the whole line if VPATH becomes empty
27714 # (actually we leave an empty line to preserve line numbers).
27715 if test "x
$srcdir" = x.; then
27716 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27717 s/:*\$(srcdir):*/:/
27718 s/:*\${srcdir}:*/:/
27720 s/^\([^=]*=[ ]*\):*/\1/
27726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27727 fi # test -n "$CONFIG_FILES"
27729 # Set up the scripts for CONFIG_HEADERS section.
27730 # No need to generate them if there are no CONFIG_HEADERS.
27731 # This happens for instance with `./config.status Makefile'.
27732 if test -n "$CONFIG_HEADERS"; then
27733 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27737 # Transform confdefs.h into an awk script `defines.awk', embedded as
27738 # here-document in config.status, that substitutes the proper values into
27739 # config.h.in to produce config.h.
27741 # Create a delimiter string that does not exist in confdefs.h, to ease
27742 # handling of long lines.
27744 for ac_last_try in false false :; do
27745 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27746 if test -z "$ac_t"; then
27748 elif $ac_last_try; then
27749 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
27750 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
27751 { (exit 1); exit 1; }; }
27753 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27757 # For the awk script, D is an array of macro values keyed by name,
27758 # likewise P contains macro parameters if any. Preserve backslash
27759 # newline sequences.
27761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27763 s/.\{148\}/&'"$ac_delim"'/g
27766 s/^[ ]*#[ ]*define[ ][ ]*/ /
27773 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27775 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27780 D["\
1"]=" \
3\\\\\\n
"\\/p
27782 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27787 s/.\{148\}/&'"$ac_delim"'/g
27792 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27795 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27797 ' <confdefs.h | sed '
27798 s/'"$ac_delim"'/"\\\
27799 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27802 for (key in D) D_is_set[key] = 1
27805 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27807 split(line, arg, " ")
27808 if (arg[1] == "#") {
27812 defundef
= substr
(arg
[1], 2)
27815 split(mac1
, mac2
, "(") #)
27817 if (D_is_set
[macro
]) {
27818 # Preserve the white space surrounding the "#".
27819 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27820 print prefix
"define", macro P
[macro
] D
[macro
]
27823 # Replace #undef with comments. This is necessary, for example,
27824 # in the case of _POSIX_SOURCE, which is predefined and required
27825 # on some systems where configure will not decide to define it.
27826 if (defundef
== "undef") {
27827 print
"/*", line
, "*/"
27835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27836 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27837 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27838 { (exit 1); exit 1; }; }
27839 fi # test -n "$CONFIG_HEADERS"
27842 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27847 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27849 case $ac_mode$ac_tag in
27851 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27852 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27853 { (exit 1); exit 1; }; };;
27854 :[FH
]-) ac_tag
=-:-;;
27855 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27872 -) ac_f
="$tmp/stdin";;
27873 *) # Look for the file first in the build tree, then in the source tree
27874 # (if the path is not absolute). The absolute path cannot be DOS-style,
27875 # because $ac_f cannot contain `:'.
27879 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27881 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27882 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27883 { (exit 1); exit 1; }; };;
27885 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27886 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27889 # Let's still pretend it is `configure' which instantiates (i.e., don't
27890 # use $as_me), people would be surprised to read:
27891 # /* config.h. Generated by config.status. */
27892 configure_input
='Generated from '`
27893 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27895 if test x
"$ac_file" != x-
; then
27896 configure_input
="$ac_file. $configure_input"
27897 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27898 $as_echo "$as_me: creating $ac_file" >&6;}
27900 # Neutralize special characters interpreted by sed in replacement strings.
27901 case $configure_input in #(
27902 *\
&* |
*\|
* |
*\\* )
27903 ac_sed_conf_input
=`$as_echo "$configure_input" |
27904 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27905 *) ac_sed_conf_input
=$configure_input;;
27909 *:-:* |
*:-) cat >"$tmp/stdin" \
27910 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27911 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27912 { (exit 1); exit 1; }; } ;;
27917 ac_dir
=`$as_dirname -- "$ac_file" ||
27918 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27919 X"$ac_file" : 'X\(//\)[^/]' \| \
27920 X"$ac_file" : 'X\(//\)$' \| \
27921 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27922 $as_echo X"$ac_file" |
27923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27927 /^X\(\/\/\)[^/].*/{
27942 -*) as_dir
=.
/$as_dir;;
27944 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27948 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27949 *) as_qdir
=$as_dir;;
27951 as_dirs
="'$as_qdir' $as_dirs"
27952 as_dir
=`$as_dirname -- "$as_dir" ||
27953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27954 X"$as_dir" : 'X\(//\)[^/]' \| \
27955 X"$as_dir" : 'X\(//\)$' \| \
27956 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27957 $as_echo X"$as_dir" |
27958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27962 /^X\(\/\/\)[^/].*/{
27975 test -d "$as_dir" && break
27977 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27978 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27979 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27980 { (exit 1); exit 1; }; }; }
27984 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27986 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27987 # A ".." for each directory in $ac_dir_suffix.
27988 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27989 case $ac_top_builddir_sub in
27990 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27991 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27994 ac_abs_top_builddir
=$ac_pwd
27995 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27996 # for backward compatibility:
27997 ac_top_builddir
=$ac_top_build_prefix
28000 .
) # We are building in place.
28002 ac_top_srcdir
=$ac_top_builddir_sub
28003 ac_abs_top_srcdir
=$ac_pwd ;;
28004 [\\/]* | ?
:[\\/]* ) # Absolute name.
28005 ac_srcdir
=$srcdir$ac_dir_suffix;
28006 ac_top_srcdir
=$srcdir
28007 ac_abs_top_srcdir
=$srcdir ;;
28008 *) # Relative name.
28009 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28010 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28011 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28013 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28023 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28024 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28029 # If the template does not know about datarootdir, expand it.
28030 # FIXME: This hack should be removed a few years after 2.60.
28031 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28044 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28045 *datarootdir
*) ac_datarootdir_seen
=yes;;
28046 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28047 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28048 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28051 ac_datarootdir_hack='
28052 s&@datadir@&$datadir&g
28053 s&@docdir@&$docdir&g
28054 s&@infodir@&$infodir&g
28055 s&@localedir@&$localedir&g
28056 s&@mandir@&$mandir&g
28057 s&\\\${datarootdir}&$datarootdir&g' ;;
28061 # Neutralize VPATH when `$srcdir' = `.'.
28062 # Shell code in configure.ac might set extrasub.
28063 # FIXME: do we really want to maintain this feature?
28064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28065 ac_sed_extra="$ac_vpsub
28068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28070 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28071 s|@configure_input@|
$ac_sed_conf_input|
;t t
28072 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28073 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
28074 s
&@srcdir@
&$ac_srcdir&;t t
28075 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28076 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28077 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28078 s
&@builddir@
&$ac_builddir&;t t
28079 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28080 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28081 s
&@INSTALL@
&$ac_INSTALL&;t t
28082 $ac_datarootdir_hack
28084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28085 if $ac_cs_awk_getline; then
28086 $AWK -f "$tmp/subs.
awk"
28088 $AWK -f "$tmp/subs.
awk" | $SHELL
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; }; }
28094 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28095 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28096 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
28097 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28098 which seems to be undefined. Please make sure it is defined." >&5
28099 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28100 which seems to be undefined. Please make sure it is defined." >&2;}
28104 -) cat "$tmp/out" && rm -f "$tmp/out";;
28105 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28107 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28108 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28109 { (exit 1); exit 1; }; }
28115 if test x"$ac_file" != x-; then
28117 $as_echo "/* $configure_input */" \
28118 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28119 } >"$tmp/config.h" \
28120 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28121 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28122 { (exit 1); exit 1; }; }
28123 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28124 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28125 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28128 mv "$tmp/config.h" "$ac_file" \
28129 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28130 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28131 { (exit 1); exit 1; }; }
28134 $as_echo "/* $configure_input */" \
28135 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28136 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28137 $as_echo "$as_me: error: could not create -" >&2;}
28138 { (exit 1); exit 1; }; }
28142 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
28143 $as_echo "$as_me: executing $ac_file commands" >&6;}
28148 case $ac_file$ac_mode in
28151 ### Make the necessary directories, if they don't exist.
28152 for dir
in etc lisp
; do
28153 test -d ${dir} || mkdir
${dir}
28156 # Build src/Makefile from ${srcdir}/src/Makefile.c
28157 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
28158 # This must be done after src/config.h is built, since we rely on that file.
28160 echo creating src
/epaths.h
28161 ${MAKE-make} epaths-force
28163 # As of 2000-11-19, newest development versions of GNU cpp preprocess
28164 # `..' to `. .' unless invoked with -traditional
28166 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
28167 CPPFLAGS
="$CPPFLAGS -traditional"
28170 echo creating src
/Makefile
28172 rm -f junk.c junk1.c junk2.c
28173 sed -e '/start of cpp stuff/q' \
28174 < Makefile.c
> junk1.c
28175 sed -e '1,/start of cpp stuff/d'\
28176 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28177 < Makefile.c
> junk.c
28178 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
28179 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28180 cat junk1.c junk2.c
> Makefile.new
28181 rm -f junk.c junk1.c junk2.c
28182 chmod 444 Makefile.new
28183 mv -f Makefile.new Makefile
28186 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
28187 echo creating src
/.gdbinit
28188 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
28197 { (exit 0); exit 0; }
28199 chmod +x
$CONFIG_STATUS
28200 ac_clean_files
=$ac_clean_files_save
28202 test $ac_write_fail = 0 ||
28203 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28204 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28205 { (exit 1); exit 1; }; }
28208 # configure is writing to config.log, and then calls config.status.
28209 # config.status does its own redirection, appending to config.log.
28210 # Unfortunately, on DOS this fails, as config.log is still kept open
28211 # by configure, so config.status won't be able to write to it; its
28212 # output is simply discarded. So we exec the FD to /dev/null,
28213 # effectively closing config.log, so it can be properly (re)opened and
28214 # appended to by config.status. When coming back to configure, we
28215 # need to make the FD available again.
28216 if test "$no_create" != yes; then
28218 ac_config_status_args
=
28219 test "$silent" = yes &&
28220 ac_config_status_args
="$ac_config_status_args --quiet"
28222 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28224 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28225 # would make configure fail if this is the last instruction.
28226 $ac_cs_success ||
{ (exit 1); exit 1; }
28228 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28229 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
28230 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}