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
719 LD_SWITCH_X_SITE_AUX_RPATH
782 x_default_search_path
799 GNUSTEP_SYSTEM_HEADERS
800 GNUSTEP_SYSTEM_LIBRARIES
814 LD_SWITCH_SYSTEM_TEMACS
815 LD_SWITCH_SYSTEM_EXTRA
823 enable_option_checking
843 with_toolkit_scroll_bars
857 enable_ns_self_contained
859 enable_maintainer_mode
867 ac_precious_vars
='build_alias
879 # Initialize some variables set by options.
881 ac_init_version
=false
882 ac_unrecognized_opts
=
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
893 program_transform_name
=s
,x
,x
,
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir
='${exec_prefix}/bin'
908 sbindir
='${exec_prefix}/sbin'
909 libexecdir
='${exec_prefix}/libexec'
910 datarootdir
='${prefix}/share'
911 datadir
='${datarootdir}'
912 sysconfdir
='${prefix}/etc'
913 sharedstatedir
='${prefix}/com'
914 localstatedir
='${prefix}/var'
915 includedir
='${prefix}/include'
916 oldincludedir
='/usr/include'
917 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
918 infodir
='${datarootdir}/info'
923 libdir
='${exec_prefix}/lib'
924 localedir
='${datarootdir}/locale'
925 mandir
='${datarootdir}/man'
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\
$ac_option
939 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943 # Accept the important Cygnus configure options, so we can diagnose typos.
945 case $ac_dashdash$ac_option in
949 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
951 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
954 -build |
--build |
--buil |
--bui |
--bu)
955 ac_prev
=build_alias
;;
956 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
957 build_alias
=$ac_optarg ;;
959 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
960 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
961 ac_prev
=cache_file
;;
962 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
963 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
964 cache_file
=$ac_optarg ;;
967 cache_file
=config.cache
;;
969 -datadir |
--datadir |
--datadi |
--datad)
971 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
972 datadir
=$ac_optarg ;;
974 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
975 |
--dataroo |
--dataro |
--datar)
976 ac_prev
=datarootdir
;;
977 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
978 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
979 datarootdir
=$ac_optarg ;;
981 -disable-* |
--disable-*)
982 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
985 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
986 { (exit 1); exit 1; }; }
987 ac_useropt_orig
=$ac_useropt
988 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
993 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep
=', ';;
996 eval enable_
$ac_useropt=no
;;
998 -docdir |
--docdir |
--docdi |
--doc |
--do)
1000 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1001 docdir
=$ac_optarg ;;
1003 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1005 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1006 dvidir
=$ac_optarg ;;
1008 -enable-* |
--enable-*)
1009 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1012 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1013 { (exit 1); exit 1; }; }
1014 ac_useropt_orig
=$ac_useropt
1015 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "enable_
$ac_useropt"
1020 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep
=', ';;
1023 eval enable_
$ac_useropt=\
$ac_optarg ;;
1025 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1026 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1027 |
--exec |
--exe |
--ex)
1028 ac_prev
=exec_prefix
;;
1029 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1030 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1031 |
--exec=* |
--exe=* |
--ex=*)
1032 exec_prefix
=$ac_optarg ;;
1034 -gas |
--gas |
--ga |
--g)
1035 # Obsolete; use --with-gas.
1038 -help |
--help |
--hel |
--he |
-h)
1039 ac_init_help
=long
;;
1040 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1041 ac_init_help
=recursive
;;
1042 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1043 ac_init_help
=short
;;
1045 -host |
--host |
--hos |
--ho)
1046 ac_prev
=host_alias
;;
1047 -host=* |
--host=* |
--hos=* |
--ho=*)
1048 host_alias
=$ac_optarg ;;
1050 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1052 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1054 htmldir
=$ac_optarg ;;
1056 -includedir |
--includedir |
--includedi |
--included |
--include \
1057 |
--includ |
--inclu |
--incl |
--inc)
1058 ac_prev
=includedir
;;
1059 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1060 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1061 includedir
=$ac_optarg ;;
1063 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1065 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1066 infodir
=$ac_optarg ;;
1068 -libdir |
--libdir |
--libdi |
--libd)
1070 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1071 libdir
=$ac_optarg ;;
1073 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1074 |
--libexe |
--libex |
--libe)
1075 ac_prev
=libexecdir
;;
1076 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1077 |
--libexe=* |
--libex=* |
--libe=*)
1078 libexecdir
=$ac_optarg ;;
1080 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1081 ac_prev
=localedir
;;
1082 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1083 localedir
=$ac_optarg ;;
1085 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1086 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1087 ac_prev
=localstatedir
;;
1088 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1089 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1090 localstatedir
=$ac_optarg ;;
1092 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1094 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1095 mandir
=$ac_optarg ;;
1097 -nfp |
--nfp |
--nf)
1098 # Obsolete; use --without-fp.
1101 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1102 |
--no-cr |
--no-c |
-n)
1105 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1106 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1109 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1110 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1111 |
--oldin |
--oldi |
--old |
--ol |
--o)
1112 ac_prev
=oldincludedir
;;
1113 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1114 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1115 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1116 oldincludedir
=$ac_optarg ;;
1118 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1120 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1121 prefix
=$ac_optarg ;;
1123 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1124 |
--program-pre |
--program-pr |
--program-p)
1125 ac_prev
=program_prefix
;;
1126 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1127 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1128 program_prefix
=$ac_optarg ;;
1130 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1131 |
--program-suf |
--program-su |
--program-s)
1132 ac_prev
=program_suffix
;;
1133 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1134 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1135 program_suffix
=$ac_optarg ;;
1137 -program-transform-name |
--program-transform-name \
1138 |
--program-transform-nam |
--program-transform-na \
1139 |
--program-transform-n |
--program-transform- \
1140 |
--program-transform |
--program-transfor \
1141 |
--program-transfo |
--program-transf \
1142 |
--program-trans |
--program-tran \
1143 |
--progr-tra |
--program-tr |
--program-t)
1144 ac_prev
=program_transform_name
;;
1145 -program-transform-name=* |
--program-transform-name=* \
1146 |
--program-transform-nam=* |
--program-transform-na=* \
1147 |
--program-transform-n=* |
--program-transform-=* \
1148 |
--program-transform=* |
--program-transfor=* \
1149 |
--program-transfo=* |
--program-transf=* \
1150 |
--program-trans=* |
--program-tran=* \
1151 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1152 program_transform_name
=$ac_optarg ;;
1154 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1156 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1157 pdfdir
=$ac_optarg ;;
1159 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1161 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1164 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1165 |
-silent |
--silent |
--silen |
--sile |
--sil)
1168 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1170 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1172 sbindir
=$ac_optarg ;;
1174 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1175 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1176 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1178 ac_prev
=sharedstatedir
;;
1179 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1180 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1181 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1183 sharedstatedir
=$ac_optarg ;;
1185 -site |
--site |
--sit)
1187 -site=* |
--site=* |
--sit=*)
1190 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1192 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1193 srcdir
=$ac_optarg ;;
1195 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1196 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1197 ac_prev
=sysconfdir
;;
1198 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1199 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1200 sysconfdir
=$ac_optarg ;;
1202 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1203 ac_prev
=target_alias
;;
1204 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1205 target_alias
=$ac_optarg ;;
1207 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1210 -version |
--version |
--versio |
--versi |
--vers |
-V)
1211 ac_init_version
=: ;;
1214 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1217 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1218 { (exit 1); exit 1; }; }
1219 ac_useropt_orig
=$ac_useropt
1220 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1225 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep
=', ';;
1228 eval with_
$ac_useropt=\
$ac_optarg ;;
1230 -without-* |
--without-*)
1231 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1234 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1235 { (exit 1); exit 1; }; }
1236 ac_useropt_orig
=$ac_useropt
1237 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238 case $ac_user_opts in
1242 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243 ac_unrecognized_sep
=', ';;
1245 eval with_
$ac_useropt=no
;;
1248 # Obsolete; use --with-x.
1251 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1252 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1253 ac_prev
=x_includes
;;
1254 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1255 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1256 x_includes
=$ac_optarg ;;
1258 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1259 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1260 ac_prev
=x_libraries
;;
1261 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1262 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1263 x_libraries
=$ac_optarg ;;
1265 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1266 Try \`$0 --help' for more information." >&2
1267 { (exit 1); exit 1; }; }
1271 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1274 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1275 { (exit 1); exit 1; }; }
1276 eval $ac_envvar=\
$ac_optarg
1277 export $ac_envvar ;;
1280 # FIXME: should be removed in autoconf 3.0.
1281 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1283 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1290 if test -n "$ac_prev"; then
1291 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1292 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1293 { (exit 1); exit 1; }; }
1296 if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1299 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1300 { (exit 1); exit 1; }; } ;;
1301 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305 # Check all directory arguments for consistency.
1306 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307 datadir sysconfdir sharedstatedir localstatedir includedir \
1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309 libdir localedir mandir
1311 eval ac_val
=\$
$ac_var
1312 # Remove trailing slashes.
1315 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316 eval $ac_var=\
$ac_val;;
1318 # Be sure to have absolute directory names.
1320 [\\/$
]* | ?
:[\\/]* ) continue;;
1321 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1323 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1324 { (exit 1); exit 1; }; }
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1332 target
=$target_alias
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x
; then
1336 if test "x$build_alias" = x
; then
1337 cross_compiling
=maybe
1338 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1339 If a cross compiler is detected then cross compile mode will be used." >&2
1340 elif test "x$build_alias" != "x$host_alias"; then
1346 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1348 test "$silent" = yes && exec 6>/dev
/null
1351 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di
=`ls -di .` &&
1353 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1354 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1355 { (exit 1); exit 1; }; }
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1358 { (exit 1); exit 1; }; }
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted
=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir
=`$as_dirname -- "$as_myself" ||
1366 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370 $as_echo X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1393 ac_srcdir_defaulted
=no
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1397 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1398 { (exit 1); exit 1; }; }
1400 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1403 { (exit 1); exit 1; }; }
1405 # When building in place, set srcdir=.
1406 if test "$ac_abs_confdir" = "$ac_pwd"; then
1409 # Remove unnecessary trailing slashes from srcdir.
1410 # Double slashes in file names in object file debugging info
1411 # mess up M-x gdb in Emacs.
1413 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 for ac_var
in $ac_precious_vars; do
1416 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1417 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1418 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1419 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1423 # Report the --help message.
1425 if test "$ac_init_help" = "long"; then
1426 # Omit some internal or obsolete options to make the list less imposing.
1427 # This message is too long to be a string in the A/UX 3.1 sh.
1429 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1431 Usage: $0 [OPTION]... [VAR=VALUE]...
1433 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1434 VAR=VALUE. See below for descriptions of some of the useful variables.
1436 Defaults for the options are specified in brackets.
1439 -h, --help display this help and exit
1440 --help=short display options specific to this package
1441 --help=recursive display the short help of all the included packages
1442 -V, --version display version information and exit
1443 -q, --quiet, --silent do not print \`checking...' messages
1444 --cache-file=FILE cache test results in FILE [disabled]
1445 -C, --config-cache alias for \`--cache-file=config.cache'
1446 -n, --no-create do not create output files
1447 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1449 Installation directories:
1450 --prefix=PREFIX install architecture-independent files in PREFIX
1451 [$ac_default_prefix]
1452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1455 By default, \`make install' will install all the files in
1456 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1457 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1458 for instance \`--prefix=\$HOME'.
1460 For better control, use the options below.
1462 Fine tuning of the installation directories:
1463 --bindir=DIR user executables [EPREFIX/bin]
1464 --sbindir=DIR system admin executables [EPREFIX/sbin]
1465 --libexecdir=DIR program executables [EPREFIX/libexec]
1466 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1467 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1468 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1469 --libdir=DIR object code libraries [EPREFIX/lib]
1470 --includedir=DIR C header files [PREFIX/include]
1471 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1472 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1473 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1474 --infodir=DIR info documentation [DATAROOTDIR/info]
1475 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1476 --mandir=DIR man documentation [DATAROOTDIR/man]
1477 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1478 --htmldir=DIR html documentation [DOCDIR]
1479 --dvidir=DIR dvi documentation [DOCDIR]
1480 --pdfdir=DIR pdf documentation [DOCDIR]
1481 --psdir=DIR ps documentation [DOCDIR]
1487 --program-prefix=PREFIX prepend PREFIX to installed program names
1488 --program-suffix=SUFFIX append SUFFIX to installed program names
1489 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1492 --x-includes=DIR X include files are
in DIR
1493 --x-libraries=DIR X library files are
in DIR
1496 --build=BUILD configure
for building on BUILD
[guessed
]
1497 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1501 if test -n "$ac_init_help"; then
1502 case $ac_init_help in
1503 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1508 --disable-option-checking ignore unrecognized
--enable/--with options
1509 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1510 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1511 --disable-ns-self-contained
1512 disable self contained build under NeXTstep
1513 --enable-asserts compile code with asserts enabled
1514 --enable-maintainer-mode
1515 enable make rules and dependencies not useful
(and
1516 sometimes confusing
) to the casual installer
1517 --enable-locallisppath=PATH
1518 directories Emacs should search
for lisp files
1519 specific to this site
1520 --enable-checking[=LIST
]
1521 enable expensive run-time checks. With LIST
, enable
1522 only specific categories of checks. Categories are
:
1523 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1524 stringfreelist
, xmallocoverrun
, conslist
1525 --enable-profiling build emacs with profiling support. This might not
1526 work on all platforms
1527 --enable-autodepend automatically generate dependencies to .h-files.
1528 Requires GNU Make and Gcc. Enabled
if GNU Make and
1530 --disable-largefile omit support
for large files
1533 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1534 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1535 --without-pop don
't support POP mail retrieval with movemail
1536 --with-kerberos support Kerberos-authenticated POP
1537 --with-kerberos5 support Kerberos version 5 authenticated POP
1538 --with-hesiod support Hesiod to get the POP server host
1539 --with-mmdf support MMDF mailboxes
1540 --with-mail-unlink unlink, rather than empty, mail spool after reading
1541 --with-mailhost=HOSTNAME
1542 string giving default POP mail host
1543 --without-sound don't compile with sound support
1544 --without-sync-input process async input synchronously
1545 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1547 --without-xpm don
't compile with XPM image support
1548 --without-jpeg don't compile with JPEG image support
1549 --without-tiff don
't compile with TIFF image support
1550 --without-gif don't compile with GIF image support
1551 --without-png don
't compile with PNG image support
1552 --without-rsvg don't compile with SVG image support
1553 --without-xft don
't use XFT for anti aliased fonts
1554 --without-libotf don't use libotf
for OpenType font support
1555 --without-m17n-flt don
't use m17n-flt for text shaping
1556 --without-toolkit-scroll-bars
1557 don't use Motif or Xaw3d scroll bars
1558 --without-xaw3d don
't use Xaw3d
1559 --without-xim don't use X11 XIM
1560 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1561 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1563 --without-dbus don't compile with D-Bus support
1564 --without-gconf don
't compile with GConf support
1565 --without-selinux don't compile with SELinux support
1566 --without-makeinfo don
't require makeinfo for building manuals
1568 --with-pkg-config-prog=PATH
1569 path to pkg-config for finding GTK and librsvg
1570 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1571 /usr/lib, or /usr/lib64 on some platforms.
1572 --with-gnustep-conf=PATH
1573 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1574 or /etc/GNUstep/GNUstep.conf
1575 --with-x use the X Window System
1577 Some influential environment variables:
1578 CC C compiler command
1579 CFLAGS C compiler flags
1580 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1581 nonstandard directory <lib dir>
1582 LIBS libraries to pass to the linker, e.g. -l<library>
1583 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1584 you have headers in a nonstandard directory <include dir>
1586 XMKMF Path to xmkmf, Makefile generator for X Window System
1588 Use these variables to override the choices made by `configure' or to
help
1589 it to
find libraries and programs with nonstandard names
/locations.
1595 if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
1597 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1598 test -d "$ac_dir" ||
1599 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1604 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1606 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607 # A ".." for each directory in $ac_dir_suffix.
1608 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609 case $ac_top_builddir_sub in
1610 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1611 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1614 ac_abs_top_builddir
=$ac_pwd
1615 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1616 # for backward compatibility:
1617 ac_top_builddir
=$ac_top_build_prefix
1620 .
) # We are building in place.
1622 ac_top_srcdir
=$ac_top_builddir_sub
1623 ac_abs_top_srcdir
=$ac_pwd ;;
1624 [\\/]* | ?
:[\\/]* ) # Absolute name.
1625 ac_srcdir
=$srcdir$ac_dir_suffix;
1626 ac_top_srcdir
=$srcdir
1627 ac_abs_top_srcdir
=$srcdir ;;
1629 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1631 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1633 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1635 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1636 # Check for guested configure.
1637 if test -f "$ac_srcdir/configure.gnu"; then
1639 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640 elif test -f "$ac_srcdir/configure"; then
1642 $SHELL "$ac_srcdir/configure" --help=recursive
1644 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1650 test -n "$ac_init_help" && exit $ac_status
1651 if $ac_init_version; then
1653 emacs configure
24.0.50
1654 generated by GNU Autoconf
2.62
1656 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1657 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1658 This configure
script is free software
; the Free Software Foundation
1659 gives unlimited permission to copy
, distribute and modify it.
1663 cat >config.log
<<_ACEOF
1664 This file contains any messages produced by compilers while
1665 running configure, to aid debugging if configure makes a mistake.
1667 It was created by emacs $as_me 24.0.50, which was
1668 generated by GNU Autoconf 2.62. Invocation command line was
1680 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1681 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1682 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1683 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1684 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1686 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1687 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1689 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1690 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1691 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1692 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1693 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1694 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1695 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1703 test -z "$as_dir" && as_dir
=.
1704 $as_echo "PATH: $as_dir"
1720 # Keep a trace of the command line.
1721 # Strip out --no-create and --no-recursion so they do not pile up.
1722 # Strip out --silent because we don't want to record it for future runs.
1723 # Also quote any args containing shell meta-characters.
1724 # Make two passes to allow for proper duplicate-argument suppression.
1728 ac_must_keep_next
=false
1734 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1735 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1736 |
-silent |
--silent |
--silen |
--sile |
--sil)
1739 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1742 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1744 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1745 if test $ac_must_keep_next = true
; then
1746 ac_must_keep_next
=false
# Got value, back to normal.
1749 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1750 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1751 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1752 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1753 case "$ac_configure_args0 " in
1754 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757 -* ) ac_must_keep_next
=true
;;
1760 ac_configure_args
="$ac_configure_args '$ac_arg'"
1765 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1766 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1768 # When interrupted or exit'd, cleanup temporary files, and complete
1769 # config.log. We remove comments because anyway the quotes in there
1770 # would cause problems or look ugly.
1771 # WARNING: Use '\'' to represent an apostrophe within the trap.
1772 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1773 trap 'exit_status=$?
1774 # Save into config.log some information that might help in debugging.
1779 ## ---------------- ##
1780 ## Cache variables. ##
1781 ## ---------------- ##
1784 # The following way of writing the cache mishandles newlines in values,
1786 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1787 eval ac_val=\$$ac_var
1791 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1792 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1795 _ | IFS | as_nl) ;; #(
1796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1797 *) $as_unset $ac_var ;;
1802 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1803 *${as_nl}ac_space=\ *)
1805 "s/'\''/'\''\\\\'\'''\''/g;
1806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1817 ## ----------------- ##
1818 ## Output variables. ##
1819 ## ----------------- ##
1822 for ac_var in $ac_subst_vars
1824 eval ac_val=\$$ac_var
1826 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 $as_echo "$ac_var='\''$ac_val'\''"
1832 if test -n "$ac_subst_files"; then
1834 ## ------------------- ##
1835 ## File substitutions. ##
1836 ## ------------------- ##
1839 for ac_var
in $ac_subst_files
1841 eval ac_val
=\$
$ac_var
1843 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845 $as_echo "$ac_var='\''$ac_val'\''"
1850 if test -s confdefs.h; then
1860 test "$ac_signal" != 0 &&
1861 $as_echo "$as_me: caught signal $ac_signal"
1862 $as_echo "$as_me: exit $exit_status"
1864 rm -f core *.core core.conftest.* &&
1865 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1868 for ac_signal
in 1 2 13 15; do
1869 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1873 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1874 rm -f -r conftest
* confdefs.h
1876 # Predefined preprocessor variables.
1878 cat >>confdefs.h
<<_ACEOF
1879 #define PACKAGE_NAME "$PACKAGE_NAME"
1883 cat >>confdefs.h
<<_ACEOF
1884 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1888 cat >>confdefs.h
<<_ACEOF
1889 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1893 cat >>confdefs.h
<<_ACEOF
1894 #define PACKAGE_STRING "$PACKAGE_STRING"
1898 cat >>confdefs.h
<<_ACEOF
1899 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1903 # Let the site file select an alternate cache file if it wants to.
1904 # Prefer an explicitly selected file to automatically selected ones.
1907 if test -n "$CONFIG_SITE"; then
1908 ac_site_file1
=$CONFIG_SITE
1909 elif test "x$prefix" != xNONE
; then
1910 ac_site_file1
=$prefix/share
/config.site
1911 ac_site_file2
=$prefix/etc
/config.site
1913 ac_site_file1
=$ac_default_prefix/share
/config.site
1914 ac_site_file2
=$ac_default_prefix/etc
/config.site
1916 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1918 test "x$ac_site_file" = xNONE
&& continue
1919 if test -r "$ac_site_file"; then
1920 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1921 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1922 sed 's/^/| /' "$ac_site_file" >&5
1927 if test -r "$cache_file"; then
1928 # Some versions of bash will fail to source /dev/null (special
1929 # files actually), so we avoid doing that.
1930 if test -f "$cache_file"; then
1931 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1932 $as_echo "$as_me: loading cache $cache_file" >&6;}
1934 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1935 *) .
"./$cache_file";;
1939 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1940 $as_echo "$as_me: creating cache $cache_file" >&6;}
1944 ac_header_list
="$ac_header_list sys/time.h"
1945 ac_header_list
="$ac_header_list unistd.h"
1946 ac_func_list
="$ac_func_list alarm"
1947 # Check that the precious variables saved in the cache have kept the same
1949 ac_cache_corrupted
=false
1950 for ac_var
in $ac_precious_vars; do
1951 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1952 eval ac_new_set
=\
$ac_env_${ac_var}_set
1953 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1954 eval ac_new_val
=\
$ac_env_${ac_var}_value
1955 case $ac_old_set,$ac_new_set in
1957 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959 ac_cache_corrupted
=: ;;
1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963 ac_cache_corrupted
=: ;;
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
1967 # differences in whitespace do not lead to failure.
1968 ac_old_val_w
=`echo x $ac_old_val`
1969 ac_new_val_w
=`echo x $ac_new_val`
1970 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1971 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973 ac_cache_corrupted
=:
1975 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1976 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1977 eval $ac_var=\
$ac_old_val
1979 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1980 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1981 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1982 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1985 # Pass precious variables to config.status.
1986 if test "$ac_new_set" = set; then
1988 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1989 *) ac_arg
=$ac_var=$ac_new_val ;;
1991 case " $ac_configure_args " in
1992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1993 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1997 if $ac_cache_corrupted; then
1998 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1999 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2000 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2001 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2002 { (exit 1); exit 1; }; }
2030 ac_cpp
='$CPP $CPPFLAGS'
2031 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2036 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2040 test "$program_prefix" != NONE
&&
2041 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2042 # Use a double $ so make ignores it.
2043 test "$program_suffix" != NONE
&&
2044 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2045 # Double any \ or $.
2046 # By default was `s,x,x', remove it if useless.
2047 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2048 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2051 lispdir
='${datadir}/emacs/${version}/lisp'
2052 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2053 '${datadir}/emacs/site-lisp'
2054 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2055 etcdir
='${datadir}/emacs/${version}/etc'
2056 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2057 docdir
='${datadir}/emacs/${version}/etc'
2058 gamedir
='${localstatedir}/games/emacs'
2065 # Check whether --with-pop was given.
2066 if test "${with_pop+set}" = set; then
2072 if test "$with_pop" = yes; then
2073 cat >>confdefs.h
<<\_ACEOF
2074 #define MAIL_USE_POP 1
2081 # Check whether --with-kerberos was given.
2082 if test "${with_kerberos+set}" = set; then
2083 withval
=$with_kerberos;
2088 if test "$with_kerberos" != no
; then
2089 cat >>confdefs.h
<<\_ACEOF
2097 # Check whether --with-kerberos5 was given.
2098 if test "${with_kerberos5+set}" = set; then
2099 withval
=$with_kerberos5;
2104 if test "${with_kerberos5}" != no
; then
2105 if test "${with_kerberos}" = no
; then
2107 cat >>confdefs.h
<<\_ACEOF
2113 cat >>confdefs.h
<<\_ACEOF
2120 # Check whether --with-hesiod was given.
2121 if test "${with_hesiod+set}" = set; then
2122 withval
=$with_hesiod;
2127 if test "$with_hesiod" != no
; then
2129 cat >>confdefs.h
<<\_ACEOF
2136 # Check whether --with-mmdf was given.
2137 if test "${with_mmdf+set}" = set; then
2143 if test "$with_mmdf" != no
; then
2145 cat >>confdefs.h
<<\_ACEOF
2146 #define MAIL_USE_MMDF 1
2152 # Check whether --with-mail-unlink was given.
2153 if test "${with_mail_unlink+set}" = set; then
2154 withval
=$with_mail_unlink;
2159 if test "$with_mail_unlink" != no
; then
2161 cat >>confdefs.h
<<\_ACEOF
2162 #define MAIL_UNLINK_SPOOL 1
2168 # Check whether --with-mailhost was given.
2169 if test "${with_mailhost+set}" = set; then
2170 withval
=$with_mailhost;
2171 cat >>confdefs.h
<<_ACEOF
2172 #define MAILHOST "$withval"
2179 # Check whether --with-sound was given.
2180 if test "${with_sound+set}" = set; then
2181 withval
=$with_sound;
2188 # Check whether --with-sync-input was given.
2189 if test "${with_sync_input+set}" = set; then
2190 withval
=$with_sync_input;
2195 if test "$with_sync_input" = yes; then
2197 cat >>confdefs.h
<<\_ACEOF
2198 #define SYNC_INPUT 1
2204 # Check whether --with-x-toolkit was given.
2205 if test "${with_x_toolkit+set}" = set; then
2206 withval
=$with_x_toolkit; case "${withval}" in
2207 y | ye |
yes ) val
=gtk
;;
2209 l | lu | luc | luci | lucid
) val
=lucid
;;
2210 a |
at | ath | athe | athen | athena
) val
=athena
;;
2211 m | mo | mot | moti | motif
) val
=motif
;;
2212 g | gt | gtk
) val
=gtk
;;
2214 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2215 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2216 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2217 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2218 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2219 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2220 { (exit 1); exit 1; }; }
2229 # Check whether --with-xpm was given.
2230 if test "${with_xpm+set}" = set; then
2237 # Check whether --with-jpeg was given.
2238 if test "${with_jpeg+set}" = set; then
2245 # Check whether --with-tiff was given.
2246 if test "${with_tiff+set}" = set; then
2253 # Check whether --with-gif was given.
2254 if test "${with_gif+set}" = set; then
2261 # Check whether --with-png was given.
2262 if test "${with_png+set}" = set; then
2269 # Check whether --with-rsvg was given.
2270 if test "${with_rsvg+set}" = set; then
2278 # Check whether --with-xft was given.
2279 if test "${with_xft+set}" = set; then
2286 # Check whether --with-libotf was given.
2287 if test "${with_libotf+set}" = set; then
2288 withval
=$with_libotf;
2294 # Check whether --with-m17n-flt was given.
2295 if test "${with_m17n_flt+set}" = set; then
2296 withval
=$with_m17n_flt;
2303 # Check whether --with-toolkit-scroll-bars was given.
2304 if test "${with_toolkit_scroll_bars+set}" = set; then
2305 withval
=$with_toolkit_scroll_bars;
2307 with_toolkit_scroll_bars
=yes
2311 # Check whether --with-xaw3d was given.
2312 if test "${with_xaw3d+set}" = set; then
2313 withval
=$with_xaw3d;
2319 # Check whether --with-xim was given.
2320 if test "${with_xim+set}" = set; then
2327 # Check whether --with-ns was given.
2328 if test "${with_ns+set}" = set; then
2336 # Check whether --with-gpm was given.
2337 if test "${with_gpm+set}" = set; then
2344 # Check whether --with-dbus was given.
2345 if test "${with_dbus+set}" = set; then
2352 # Check whether --with-gconf was given.
2353 if test "${with_gconf+set}" = set; then
2354 withval
=$with_gconf;
2360 # Check whether --with-selinux was given.
2361 if test "${with_selinux+set}" = set; then
2362 withval
=$with_selinux;
2368 ## For the times when you want to build Emacs but don't have
2369 ## a suitable makeinfo, and can live without the manuals.
2371 # Check whether --with-makeinfo was given.
2372 if test "${with_makeinfo+set}" = set; then
2373 withval
=$with_makeinfo;
2380 # Check whether --with-gtk was given.
2381 if test "${with_gtk+set}" = set; then
2382 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2383 specify a toolkit." >&5
2384 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2385 specify a toolkit." >&2;}
2386 { (exit 1); exit 1; }; }
2391 # Check whether --with-gcc was given.
2392 if test "${with_gcc+set}" = set; then
2393 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2394 variable to specify a compiler." >&5
2395 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2396 variable to specify a compiler." >&2;}
2397 { (exit 1); exit 1; }; }
2402 # Check whether --with-pkg-config-prog was given.
2403 if test "${with_pkg_config_prog+set}" = set; then
2404 withval
=$with_pkg_config_prog;
2407 if test "X${with_pkg_config_prog}" != X
; then
2408 if test "${with_pkg_config_prog}" != yes; then
2409 PKG_CONFIG
="${with_pkg_config_prog}"
2415 # Check whether --with-crt-dir was given.
2416 if test "${with_crt_dir+set}" = set; then
2417 withval
=$with_crt_dir;
2420 CRT_DIR
="${with_crt_dir}"
2423 # Check whether --with-gnustep-conf was given.
2424 if test "${with_gnustep_conf+set}" = set; then
2425 withval
=$with_gnustep_conf;
2428 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2429 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2430 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2431 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2433 # Check whether --enable-ns-self-contained was given.
2434 if test "${enable_ns_self_contained+set}" = set; then
2435 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2437 EN_NS_SELF_CONTAINED
=yes
2441 # Check whether --enable-asserts was given.
2442 if test "${enable_asserts+set}" = set; then
2443 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2449 # Check whether --enable-maintainer-mode was given.
2450 if test "${enable_maintainer_mode+set}" = set; then
2451 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2453 USE_MAINTAINER_MODE
=no
2456 if test $USE_MAINTAINER_MODE = yes; then
2463 # Check whether --enable-locallisppath was given.
2464 if test "${enable_locallisppath+set}" = set; then
2465 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2467 elif test "${enableval}" != "yes"; then
2468 locallisppath
=${enableval}
2473 # Check whether --enable-checking was given.
2474 if test "${enable_checking+set}" = set; then
2475 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2478 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2479 for check
in $ac_checking_flags
2482 # these set all the flags to specific states
2483 yes) ac_enable_checking
=1 ;;
2484 no
) ac_enable_checking
= ;
2485 ac_gc_check_stringbytes
= ;
2486 ac_gc_check_string_overrun
= ;
2487 ac_gc_check_string_free_list
= ;
2488 ac_xmalloc_overrun
= ;
2489 ac_gc_check_cons_list
= ;;
2490 all
) ac_enable_checking
=1 ;
2491 ac_gc_check_stringbytes
=1 ;
2492 ac_gc_check_string_overrun
=1 ;
2493 ac_gc_check_string_free_list
=1 ;
2494 ac_xmalloc_overrun
=1 ;
2495 ac_gc_check_cons_list
=1 ;;
2496 # these enable particular checks
2497 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2498 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2499 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2500 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2501 conslist
) ac_gc_check_cons_list
=1 ;;
2502 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2503 $as_echo "$as_me: error: unknown check category $check" >&2;}
2504 { (exit 1); exit 1; }; } ;;
2509 if test x
$ac_enable_checking != x
; then
2511 cat >>confdefs.h
<<\_ACEOF
2512 #define ENABLE_CHECKING 1
2516 if test x
$ac_gc_check_stringbytes != x
; then
2518 cat >>confdefs.h
<<\_ACEOF
2519 #define GC_CHECK_STRING_BYTES 1
2523 if test x
$ac_gc_check_stringoverrun != x
; then
2525 cat >>confdefs.h
<<\_ACEOF
2526 #define GC_CHECK_STRING_OVERRUN 1
2530 if test x
$ac_gc_check_string_free_list != x
; then
2532 cat >>confdefs.h
<<\_ACEOF
2533 #define GC_CHECK_STRING_FREE_LIST 1
2537 if test x
$ac_xmalloc_overrun != x
; then
2539 cat >>confdefs.h
<<\_ACEOF
2540 #define XMALLOC_OVERRUN_CHECK 1
2544 if test x
$ac_gc_check_cons_list != x
; then
2546 cat >>confdefs.h
<<\_ACEOF
2547 #define GC_CHECK_CONS_LIST 1
2552 # Check whether --enable-profiling was given.
2553 if test "${enable_profiling+set}" = set; then
2554 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2557 if test x
$ac_enable_profiling != x
; then
2558 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2559 PROFILING_LDFLAGS
="-pg"
2565 # Check whether --enable-autodepend was given.
2566 if test "${enable_autodepend+set}" = set; then
2567 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2569 ac_enable_autodepend
=yes
2573 #### Make srcdir absolute, if it isn't already. It's important to
2574 #### avoid running the path through pwd unnecessarily, since pwd can
2575 #### give you automounter prefixes, which can go away. We do all this
2576 #### so Emacs can find its files when run uninstalled.
2577 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2582 ## We may be able to use the $PWD environment variable to make this
2583 ## absolute. But sometimes PWD is inaccurate.
2584 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2585 ## but that tested only for a well-formed and valid PWD,
2586 ## it did not object when PWD was well-formed and valid but just wrong.
2587 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2591 srcdir
="`(cd ${srcdir}; pwd)`"
2594 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2597 #### Check if the source directory already has a configured system in it.
2598 if test `pwd` != `(cd ${srcdir} && pwd)` \
2599 && test -f "${srcdir}/src/config.h" ; then
2600 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2601 as a build directory right now; it has been configured in its own
2602 right. To configure in another directory as well, you MUST
2603 use GNU make. If you do not have GNU make, then you must
2604 now do \`make distclean' in ${srcdir},
2605 and then run $0 again." >&5
2606 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2607 as a build directory right now; it has been configured in its own
2608 right. To configure in another directory as well, you MUST
2609 use GNU make. If you do not have GNU make, then you must
2610 now do \`make distclean' in ${srcdir},
2611 and then run $0 again." >&2;}
2614 #### Given the configuration name, set machfile and opsysfile to the
2615 #### names of the m/*.h and s/*.h files we should use.
2617 ### Canonicalize the configuration name.
2620 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2621 if test -f "$ac_dir/install-sh"; then
2623 ac_install_sh
="$ac_aux_dir/install-sh -c"
2625 elif test -f "$ac_dir/install.sh"; then
2627 ac_install_sh
="$ac_aux_dir/install.sh -c"
2629 elif test -f "$ac_dir/shtool"; then
2631 ac_install_sh
="$ac_aux_dir/shtool install -c"
2635 if test -z "$ac_aux_dir"; then
2636 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2637 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2638 { (exit 1); exit 1; }; }
2641 # These three variables are undocumented and unsupported,
2642 # and are intended to be withdrawn in a future Autoconf release.
2643 # They can cause serious problems if a builder's source tree is in a directory
2644 # whose full name contains unusual characters.
2645 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2646 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2647 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2650 # Make sure we can run config.sub.
2651 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2652 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2653 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2654 { (exit 1); exit 1; }; }
2656 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2657 $as_echo_n "checking build system type... " >&6; }
2658 if test "${ac_cv_build+set}" = set; then
2659 $as_echo_n "(cached) " >&6
2661 ac_build_alias
=$build_alias
2662 test "x$ac_build_alias" = x
&&
2663 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2664 test "x$ac_build_alias" = x
&&
2665 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2666 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2667 { (exit 1); exit 1; }; }
2668 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2669 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2670 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2671 { (exit 1); exit 1; }; }
2674 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2675 $as_echo "$ac_cv_build" >&6; }
2676 case $ac_cv_build in
2678 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2679 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2680 { (exit 1); exit 1; }; };;
2683 ac_save_IFS
=$IFS; IFS
='-'
2689 # Remember, the first character of IFS is used to create $*,
2690 # except with old shells:
2693 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2696 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2697 $as_echo_n "checking host system type... " >&6; }
2698 if test "${ac_cv_host+set}" = set; then
2699 $as_echo_n "(cached) " >&6
2701 if test "x$host_alias" = x
; then
2702 ac_cv_host
=$ac_cv_build
2704 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2705 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2706 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2707 { (exit 1); exit 1; }; }
2711 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2712 $as_echo "$ac_cv_host" >&6; }
2715 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2716 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2717 { (exit 1); exit 1; }; };;
2720 ac_save_IFS
=$IFS; IFS
='-'
2726 # Remember, the first character of IFS is used to create $*,
2727 # except with old shells:
2730 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2734 configuration
=${host_alias-${build_alias-$host}}
2738 ### If you add support for a new configuration, add code to this
2739 ### switch statement to recognize your configuration name and select
2740 ### the appropriate operating system and machine description files.
2742 ### You would hope that you could choose an m/*.h file pretty much
2743 ### based on the machine portion of the configuration name, and an s-
2744 ### file based on the operating system portion. However, it turns out
2745 ### that each m/*.h file is pretty manufacturer-specific - for
2746 ### example mips.h is MIPS
2747 ### So we basically have to have a special case for each
2748 ### configuration name.
2750 ### As far as handling version numbers on operating systems is
2751 ### concerned, make sure things will fail in a fixable way. If
2752 ### /etc/MACHINES doesn't say anything about version numbers, be
2753 ### prepared to handle anything reasonably. If version numbers
2754 ### matter, be sure /etc/MACHINES says something about it.
2756 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2757 ### "System V Release 4"; he writes, "The old convention encouraged
2758 ### confusion between `system' and `release' levels'."
2760 machine
='' opsys
='' unported
=no
2761 case "${canonical}" in
2766 case "${canonical}" in
2767 alpha
*-*-freebsd*) machine
=alpha
;;
2768 arm
*-*-freebsd*) machine
=arm
;;
2769 ia64-
*-freebsd*) machine
=ia64
;;
2770 sparc-
*-freebsd*) machine
=sparc
;;
2771 sparc64-
*-freebsd*) machine
=sparc
;;
2772 powerpc-
*-freebsd*) machine
=macppc
;;
2773 i
[3456]86-*-freebsd*) machine
=intel386
;;
2774 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2778 ## FreeBSD kernel + glibc based userland
2781 case "${canonical}" in
2782 alpha
*-*-kfreebsd*) machine
=alpha
;;
2783 ia64-
*-kfreebsd*) machine
=ia64
;;
2784 sparc-
*-kfreebsd*) machine
=sparc
;;
2785 sparc64-
*-kfreebsd*) machine
=sparc
;;
2786 powerpc-
*-kfreebsd*) machine
=macppc
;;
2787 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2788 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2795 case "${canonical}" in
2796 alpha
*-*-netbsd*) machine
=alpha
;;
2797 i
[3456]86-*-netbsd*) machine
=intel386
;;
2798 mips-
*-netbsd*) machine
=mips
;;
2799 mipsel-
*-netbsd*) machine
=mips
;;
2800 mipseb-
*-netbsd*) machine
=mips
;;
2801 powerpc-
*-netbsd*) machine
=macppc
;;
2802 sparc
*-*-netbsd*) machine
=sparc
;;
2803 vax-
*-netbsd*) machine
=vax
;;
2804 arm-
*-netbsd*) machine
=arm
;;
2805 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2806 hppa-
*-netbsd*) machine
=hp800
;;
2807 m68k-
*-netbsd*) machine
=m68k
;;
2814 case "${canonical}" in
2815 alpha
*-*-openbsd*) machine
=alpha
;;
2816 arm-
*-openbsd*) machine
=arm
;;
2817 i386-
*-openbsd*) machine
=intel386
;;
2818 powerpc-
*-openbsd*) machine
=macppc
;;
2819 sparc
*-*-openbsd*) machine
=sparc
;;
2820 vax-
*-openbsd*) machine
=vax
;;
2821 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2822 hppa-
*-openbsd*) machine
=hp800
;;
2826 alpha
*-*-linux-gnu* )
2827 machine
=alpha opsys
=gnu-linux
2831 machine
=arm opsys
=gnu-linux
2834 ## Apple Darwin / Mac OS X
2836 case "${canonical}" in
2837 i
[3456]86-* ) machine
=intel386
;;
2838 powerpc-
* ) machine
=macppc
;;
2839 x86_64-
* ) machine
=amdx86-64
;;
2843 # Define CPP as follows to make autoconf work correctly.
2844 CPP
="${CC-cc} -E -no-cpp-precomp"
2845 # Use fink packages if available.
2846 if test -d /sw
/include
&& test -d /sw
/lib
; then
2847 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2848 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2849 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2853 ## HP 9000 series 700 and 800, running HP/UX
2854 hppa
*-hp-hpux10.2
* )
2855 machine
=hp800 opsys
=hpux10-20
2857 hppa
*-hp-hpux1[1-9]* )
2858 machine
=hp800 opsys
=hpux11
2859 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2862 hppa
*-*-linux-gnu* )
2863 machine
=hp800 opsys
=gnu-linux
2868 machine
=ibms390 opsys
=gnu-linux
2870 s390x-
*-linux-gnu* )
2871 machine
=ibms390x opsys
=gnu-linux
2873 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2874 machine
=ibmrs6000 opsys
=aix4-2
2876 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2877 machine
=ibmrs6000 opsys
=aix4-2
2879 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2880 machine
=ibmrs6000 opsys
=aix4-2
2882 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2883 machine
=ibmrs6000 opsys
=aix4-2
2886 ## Macintosh PowerPC
2887 powerpc
*-*-linux-gnu* )
2888 machine
=macppc opsys
=gnu-linux
2891 ## Silicon Graphics machines
2894 machine
=iris4d opsys
=irix6-5
2895 # Without defining _LANGUAGE_C, things get masked out in the headers
2896 # so that, for instance, grepping for `free' in stdlib.h fails and
2897 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2898 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2899 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2903 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2904 machine
=sparc opsys
=gnu-linux
2908 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2909 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2910 case "${canonical}" in
2911 i
[3456]86-*-* ) machine
=intel386
;;
2912 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2913 sparc
* ) machine
=sparc
;;
2916 case "${canonical}" in
2917 *-sunos5.6
* |
*-solaris2.6
* )
2919 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2922 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2924 emacs_check_sunpro_c
=yes
2925 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2927 *-sunos5* |
*-solaris* )
2929 emacs_check_sunpro_c
=yes
2930 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2933 ## Watch out for a compiler that we know will not work.
2934 case "${canonical}" in
2935 *-solaris* |
*-sunos5* )
2936 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2937 ## /usr/ucb/cc doesn't work;
2938 ## we should find some other compiler that does work.
2948 machine
=ia64 opsys
=gnu-linux
2951 ## Intel 386 machines where we don't care about the manufacturer
2954 case "${canonical}" in
2955 *-cygwin ) opsys
=cygwin
;;
2956 *-darwin* ) opsys
=darwin
2957 CPP
="${CC-cc} -E -no-cpp-precomp"
2959 *-linux-gnu* ) opsys
=gnu-linux
;;
2960 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2961 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2962 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2963 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2967 ## m68k Linux-based GNU system
2969 machine
=m68k opsys
=gnu-linux
2972 ## Mips Linux-based GNU system
2973 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2974 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2975 machine
=mips opsys
=gnu-linux
2978 ## AMD x86-64 Linux-based GNU system
2979 x86_64-
*-linux-gnu* )
2980 machine
=amdx86-64 opsys
=gnu-linux
2983 ## Tensilica Xtensa Linux-based GNU system
2984 xtensa
*-*-linux-gnu* )
2985 machine
=xtensa opsys
=gnu-linux
2988 ## SuperH Linux-based GNU system
2989 sh
[34]*-*-linux-gnu* )
2990 machine
=sh3 opsys
=gnu-linux
2998 ### If the code above didn't choose an operating system, just choose
2999 ### an operating system based on the configuration name. You really
3000 ### only want to use this when you have no idea what the right
3001 ### operating system is; if you know what operating systems a machine
3002 ### runs, it's cleaner to make it explicit in the case statement
3004 if test x
"${opsys}" = x
; then
3005 case "${canonical}" in
3006 *-gnu* ) opsys
=gnu
;;
3015 if test $unported = yes; then
3016 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3017 Check \`etc/MACHINES' for recognized configuration names." >&5
3018 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3019 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3020 { (exit 1); exit 1; }; }
3023 machfile
="m/${machine}.h"
3024 opsysfile
="s/${opsys}.h"
3027 #### Choose a compiler.
3028 test -n "$CC" && cc_specified
=yes
3030 # Save the value of CFLAGS that the user specified.
3031 SPECIFIED_CFLAGS
="$CFLAGS"
3034 ac_cpp
='$CPP $CPPFLAGS'
3035 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3036 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3037 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3038 if test -n "$ac_tool_prefix"; then
3039 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3040 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if test "${ac_cv_prog_CC+set}" = set; then
3044 $as_echo_n "(cached) " >&6
3046 if test -n "$CC"; then
3047 ac_cv_prog_CC
="$CC" # Let the user override the test.
3049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3053 test -z "$as_dir" && as_dir
=.
3054 for ac_exec_ext
in '' $ac_executable_extensions; do
3055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 if test -n "$CC"; then
3068 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3069 $as_echo "$CC" >&6; }
3071 { $as_echo "$as_me:$LINENO: result: no" >&5
3072 $as_echo "no" >&6; }
3077 if test -z "$ac_cv_prog_CC"; then
3079 # Extract the first word of "gcc", so it can be a program name with args.
3080 set dummy gcc
; ac_word
=$2
3081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3084 $as_echo_n "(cached) " >&6
3086 if test -n "$ac_ct_CC"; then
3087 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3093 test -z "$as_dir" && as_dir
=.
3094 for ac_exec_ext
in '' $ac_executable_extensions; do
3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096 ac_cv_prog_ac_ct_CC
="gcc"
3097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3107 if test -n "$ac_ct_CC"; then
3108 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3109 $as_echo "$ac_ct_CC" >&6; }
3111 { $as_echo "$as_me:$LINENO: result: no" >&5
3112 $as_echo "no" >&6; }
3115 if test "x$ac_ct_CC" = x
; then
3118 case $cross_compiling:$ac_tool_warned in
3120 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3121 whose name does not start with the host triplet. If you think this
3122 configuration is useful to you, please write to autoconf@gnu.org." >&5
3123 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3124 whose name does not start with the host triplet. If you think this
3125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3126 ac_tool_warned
=yes ;;
3134 if test -z "$CC"; then
3135 if test -n "$ac_tool_prefix"; then
3136 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3137 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if test "${ac_cv_prog_CC+set}" = set; then
3141 $as_echo_n "(cached) " >&6
3143 if test -n "$CC"; then
3144 ac_cv_prog_CC
="$CC" # Let the user override the test.
3146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3150 test -z "$as_dir" && as_dir
=.
3151 for ac_exec_ext
in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 if test -n "$CC"; then
3165 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3166 $as_echo "$CC" >&6; }
3168 { $as_echo "$as_me:$LINENO: result: no" >&5
3169 $as_echo "no" >&6; }
3175 if test -z "$CC"; then
3176 # Extract the first word of "cc", so it can be a program name with args.
3177 set dummy cc
; ac_word
=$2
3178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if test "${ac_cv_prog_CC+set}" = set; then
3181 $as_echo_n "(cached) " >&6
3183 if test -n "$CC"; then
3184 ac_cv_prog_CC
="$CC" # Let the user override the test.
3187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir
=.
3192 for ac_exec_ext
in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3195 ac_prog_rejected
=yes
3199 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 if test $ac_prog_rejected = yes; then
3207 # We found a bogon in the path, so make sure we never use it.
3208 set dummy
$ac_cv_prog_CC
3210 if test $# != 0; then
3211 # We chose a different compiler from the bogus one.
3212 # However, it has the same basename, so the bogon will be chosen
3213 # first if we set CC to just the basename; use the full file name.
3215 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3221 if test -n "$CC"; then
3222 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3225 { $as_echo "$as_me:$LINENO: result: no" >&5
3226 $as_echo "no" >&6; }
3231 if test -z "$CC"; then
3232 if test -n "$ac_tool_prefix"; then
3233 for ac_prog
in cl.exe
3235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3236 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if test "${ac_cv_prog_CC+set}" = set; then
3240 $as_echo_n "(cached) " >&6
3242 if test -n "$CC"; then
3243 ac_cv_prog_CC
="$CC" # Let the user override the test.
3245 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3249 test -z "$as_dir" && as_dir
=.
3250 for ac_exec_ext
in '' $ac_executable_extensions; do
3251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3252 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 if test -n "$CC"; then
3264 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3265 $as_echo "$CC" >&6; }
3267 { $as_echo "$as_me:$LINENO: result: no" >&5
3268 $as_echo "no" >&6; }
3272 test -n "$CC" && break
3275 if test -z "$CC"; then
3277 for ac_prog
in cl.exe
3279 # Extract the first word of "$ac_prog", so it can be a program name with args.
3280 set dummy
$ac_prog; ac_word
=$2
3281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 $as_echo_n "checking for $ac_word... " >&6; }
3283 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3284 $as_echo_n "(cached) " >&6
3286 if test -n "$ac_ct_CC"; then
3287 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir
=.
3294 for ac_exec_ext
in '' $ac_executable_extensions; do
3295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296 ac_cv_prog_ac_ct_CC
="$ac_prog"
3297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3307 if test -n "$ac_ct_CC"; then
3308 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3309 $as_echo "$ac_ct_CC" >&6; }
3311 { $as_echo "$as_me:$LINENO: result: no" >&5
3312 $as_echo "no" >&6; }
3316 test -n "$ac_ct_CC" && break
3319 if test "x$ac_ct_CC" = x
; then
3322 case $cross_compiling:$ac_tool_warned in
3324 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3325 whose name does not start with the host triplet. If you think this
3326 configuration is useful to you, please write to autoconf@gnu.org." >&5
3327 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3328 whose name does not start with the host triplet. If you think this
3329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3330 ac_tool_warned
=yes ;;
3339 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3340 See \`config.log' for more details." >&5
3341 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3342 See \`config.log' for more details." >&2;}
3343 { (exit 1); exit 1; }; }
3345 # Provide some information about the compiler.
3346 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3349 { (ac_try
="$ac_compiler --version >&5"
3351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3355 $as_echo "$ac_try_echo") >&5
3356 (eval "$ac_compiler --version >&5") 2>&5
3358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }
3360 { (ac_try="$ac_compiler -v >&5"
3362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3363 *) ac_try_echo
=$ac_try;;
3365 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3366 $as_echo "$ac_try_echo") >&5
3367 (eval "$ac_compiler -v >&5") 2>&5
3369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }
3371 { (ac_try
="$ac_compiler -V >&5"
3373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3377 $as_echo "$ac_try_echo") >&5
3378 (eval "$ac_compiler -V >&5") 2>&5
3380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }
3383 cat >conftest.$ac_ext <<_ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3398 ac_clean_files_save=$ac_clean_files
3399 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3400 # Try to create an executable without -o first, disregard a.out.
3401 # It will help us diagnose broken compilers, and finding out an intuition
3403 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3404 $as_echo_n "checking for C compiler default output file name... " >&6; }
3405 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3407 # The possible output files:
3408 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3411 for ac_file in $ac_files
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3420 if { (ac_try="$ac_link_default"
3422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3423 *) ac_try_echo
=$ac_try;;
3425 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3426 $as_echo "$ac_try_echo") >&5
3427 (eval "$ac_link_default") 2>&5
3429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; then
3431 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3432 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3433 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3434 # so that the user can short-circuit this test for compilers unknown to
3436 for ac_file
in $ac_files ''
3438 test -f "$ac_file" ||
continue
3440 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3443 # We found the default executable, but exeext='' is most
3447 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3449 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451 # We set ac_cv_exeext here because the later test for it is not
3452 # safe: cross compilers may not add the suffix if given an `-o'
3453 # argument, so we may need to know it at that point already.
3454 # Even if this section looks crufty: it has the advantage of
3461 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3467 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3468 $as_echo "$ac_file" >&6; }
3469 if test -z "$ac_file"; then
3470 $as_echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.
$ac_ext >&5
3473 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3474 See \`config.log' for more details." >&5
3475 $as_echo "$as_me: error: C compiler cannot create executables
3476 See \`config.log' for more details." >&2;}
3477 { (exit 77); exit 77; }; }
3480 ac_exeext
=$ac_cv_exeext
3482 # Check that the compiler produces executables we can run. If not, either
3483 # the compiler is broken, or we cross compile.
3484 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3485 $as_echo_n "checking whether the C compiler works... " >&6; }
3486 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3487 # If not cross compiling, check that we can run a simple program.
3488 if test "$cross_compiling" != yes; then
3489 if { ac_try
='./$ac_file'
3490 { (case "(($ac_try" in
3491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3495 $as_echo "$ac_try_echo") >&5
3496 (eval "$ac_try") 2>&5
3498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3502 if test "$cross_compiling" = maybe; then
3505 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3506 If you meant to cross compile, use \`--host'.
3507 See \`config.log' for more details.
" >&5
3508 $as_echo "$as_me: error
: cannot run C compiled programs.
3509 If you meant to cross compile
, use \
`--host'.
3510 See \`config.log
' for more details." >&2;}
3511 { (exit 1); exit 1; }; }
3515 { $as_echo "$as_me:$LINENO: result: yes" >&5
3516 $as_echo "yes" >&6; }
3518 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3519 ac_clean_files=$ac_clean_files_save
3520 # Check that the compiler produces executables we can run. If not, either
3521 # the compiler is broken, or we cross compile.
3522 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3523 $as_echo_n "checking whether we are cross compiling... " >&6; }
3524 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3525 $as_echo "$cross_compiling" >&6; }
3527 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3528 $as_echo_n "checking for suffix of executables... " >&6; }
3529 if { (ac_try="$ac_link"
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3535 $as_echo "$ac_try_echo") >&5
3536 (eval "$ac_link") 2>&5
3538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; then
3540 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3541 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3542 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3544 for ac_file
in conftest.exe conftest conftest.
*; do
3545 test -f "$ac_file" ||
continue
3547 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3548 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3554 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3555 See \`config.log' for more details." >&5
3556 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3557 See \`config.log' for more details." >&2;}
3558 { (exit 1); exit 1; }; }
3561 rm -f conftest
$ac_cv_exeext
3562 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3563 $as_echo "$ac_cv_exeext" >&6; }
3565 rm -f conftest.
$ac_ext
3566 EXEEXT
=$ac_cv_exeext
3568 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3569 $as_echo_n "checking for suffix of object files... " >&6; }
3570 if test "${ac_cv_objext+set}" = set; then
3571 $as_echo_n "(cached) " >&6
3573 cat >conftest.
$ac_ext <<_ACEOF
3576 cat confdefs.h
>>conftest.
$ac_ext
3577 cat >>conftest.
$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3588 rm -f conftest.o conftest.obj
3589 if { (ac_try
="$ac_compile"
3591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3595 $as_echo "$ac_try_echo") >&5
3596 (eval "$ac_compile") 2>&5
3598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }; then
3600 for ac_file in conftest.o conftest.obj conftest.*; do
3601 test -f "$ac_file" || continue;
3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3604 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3609 $as_echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3612 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3613 See \`config.log
' for more details." >&5
3614 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3615 See \`config.log' for more details.
" >&2;}
3616 { (exit 1); exit 1; }; }
3619 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3621 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3622 $as_echo "$ac_cv_objext" >&6; }
3623 OBJEXT=$ac_cv_objext
3625 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3626 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3627 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3628 $as_echo_n "(cached
) " >&6
3630 cat >conftest.$ac_ext <<_ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3648 rm -f conftest.$ac_objext
3649 if { (ac_try="$ac_compile"
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3654 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3655 $as_echo "$ac_try_echo") >&5
3656 (eval "$ac_compile") 2>conftest.er1
3658 grep -v '^ *+' conftest.er1 >conftest.err
3660 cat conftest.err >&5
3661 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3662 (exit $ac_status); } && {
3663 test -z "$ac_c_werror_flag" ||
3664 test ! -s conftest.err
3665 } && test -s conftest.$ac_objext; then
3668 $as_echo "$as_me: failed program was
:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3678 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3679 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3680 if test $ac_compiler_gnu = yes; then
3685 ac_test_CFLAGS=${CFLAGS+set}
3686 ac_save_CFLAGS=$CFLAGS
3687 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3688 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3689 if test "${ac_cv_prog_cc_g+set}" = set; then
3690 $as_echo_n "(cached
) " >&6
3692 ac_save_c_werror_flag=$ac_c_werror_flag
3693 ac_c_werror_flag=yes
3696 cat >conftest.$ac_ext <<_ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3711 rm -f conftest.$ac_objext
3712 if { (ac_try="$ac_compile"
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3717 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3718 $as_echo "$ac_try_echo") >&5
3719 (eval "$ac_compile") 2>conftest.er1
3721 grep -v '^ *+' conftest.er1 >conftest.err
3723 cat conftest.err >&5
3724 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3725 (exit $ac_status); } && {
3726 test -z "$ac_c_werror_flag" ||
3727 test ! -s conftest.err
3728 } && test -s conftest.$ac_objext; then
3731 $as_echo "$as_me: failed program was
:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3735 cat >conftest.$ac_ext <<_ACEOF
3738 cat confdefs.h >>conftest.$ac_ext
3739 cat >>conftest.$ac_ext <<_ACEOF
3740 /* end confdefs.h. */
3750 rm -f conftest.$ac_objext
3751 if { (ac_try="$ac_compile"
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3756 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3757 $as_echo "$ac_try_echo") >&5
3758 (eval "$ac_compile") 2>conftest.er1
3760 grep -v '^ *+' conftest.er1 >conftest.err
3762 cat conftest.err >&5
3763 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3764 (exit $ac_status); } && {
3765 test -z "$ac_c_werror_flag" ||
3766 test ! -s conftest.err
3767 } && test -s conftest.$ac_objext; then
3770 $as_echo "$as_me: failed program was
:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3773 ac_c_werror_flag=$ac_save_c_werror_flag
3775 cat >conftest.$ac_ext <<_ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3790 rm -f conftest.$ac_objext
3791 if { (ac_try="$ac_compile"
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3796 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3797 $as_echo "$ac_try_echo") >&5
3798 (eval "$ac_compile") 2>conftest.er1
3800 grep -v '^ *+' conftest.er1 >conftest.err
3802 cat conftest.err >&5
3803 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3804 (exit $ac_status); } && {
3805 test -z "$ac_c_werror_flag" ||
3806 test ! -s conftest.err
3807 } && test -s conftest.$ac_objext; then
3810 $as_echo "$as_me: failed program was
:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_c_werror_flag=$ac_save_c_werror_flag
3825 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3826 $as_echo "$ac_cv_prog_cc_g" >&6; }
3827 if test "$ac_test_CFLAGS" = set; then
3828 CFLAGS=$ac_save_CFLAGS
3829 elif test $ac_cv_prog_cc_g = yes; then
3830 if test "$GCC" = yes; then
3836 if test "$GCC" = yes; then
3842 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3843 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3844 if test "${ac_cv_prog_cc_c89+set}" = set; then
3845 $as_echo_n "(cached
) " >&6
3847 ac_cv_prog_cc_c89=no
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3857 #include <sys/types.h>
3858 #include <sys/stat.h>
3859 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3860 struct buf { int x; };
3861 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3862 static char *e (p, i)
3868 static char *f (char * (*g) (char **, int), char **p, ...)
3873 s = g (p, va_arg (v,int));
3878 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3879 function prototypes and stuff, but not '\xHH' hex character constants.
3880 These don't provoke an error unfortunately, instead are silently treated
3881 as 'x'. The following induces an error, until -std is added to get
3882 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3883 array size at least. It's necessary to write '\x00'==0 to get something
3884 that's true only with -std. */
3885 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3887 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3888 inside strings and character constants. */
3890 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3892 int test (int i, double x);
3893 struct s1 {int (*f) (int a);};
3894 struct s2 {int (*f) (double a);};
3895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3901 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3906 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3907 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3909 CC="$ac_save_CC $ac_arg"
3910 rm -f conftest.$ac_objext
3911 if { (ac_try="$ac_compile"
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3916 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3917 $as_echo "$ac_try_echo") >&5
3918 (eval "$ac_compile") 2>conftest.er1
3920 grep -v '^ *+' conftest.er1 >conftest.err
3922 cat conftest.err >&5
3923 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3924 (exit $ac_status); } && {
3925 test -z "$ac_c_werror_flag" ||
3926 test ! -s conftest.err
3927 } && test -s conftest.$ac_objext; then
3928 ac_cv_prog_cc_c89=$ac_arg
3930 $as_echo "$as_me: failed program was
:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3936 rm -f core conftest.err conftest.$ac_objext
3937 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3939 rm -f conftest.$ac_ext
3944 case "x
$ac_cv_prog_cc_c89" in
3946 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3947 $as_echo "none needed
" >&6; } ;;
3949 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3950 $as_echo "unsupported
" >&6; } ;;
3952 CC="$CC $ac_cv_prog_cc_c89"
3953 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3954 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965 # On Suns, sometimes $CPP names a directory.
3966 if test -n "$CPP" && test -d "$CPP"; then
3970 ## If not using gcc, and on Solaris, and no CPP specified, see if
3971 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3972 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3973 test x"$CPP" = x; then
3974 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3975 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3977 if test "${emacs_cv_sunpro_c+set}" = set; then
3978 $as_echo_n "(cached
) " >&6
3980 cat >conftest.$ac_ext <<_ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3998 rm -f conftest.$ac_objext conftest$ac_exeext
3999 if { (ac_try="$ac_link"
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4005 $as_echo "$ac_try_echo") >&5
4006 (eval "$ac_link") 2>conftest.er1
4008 grep -v '^ *+' conftest.er1 >conftest.err
4010 cat conftest.err >&5
4011 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4012 (exit $ac_status); } && {
4013 test -z "$ac_c_werror_flag" ||
4014 test ! -s conftest.err
4015 } && test -s conftest$ac_exeext && {
4016 test "$cross_compiling" = yes ||
4017 $as_test_x conftest$ac_exeext
4019 emacs_cv_sunpro_c=yes
4021 $as_echo "$as_me: failed program was
:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 emacs_cv_sunpro_c=no
4027 rm -rf conftest.dSYM
4028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4029 conftest$ac_exeext conftest.$ac_ext
4032 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4033 $as_echo "$emacs_cv_sunpro_c" >&6; }
4035 if test x"$emacs_cv_sunpro_c" = xyes; then
4036 NON_GNU_CPP="$CC -E -Xs"
4040 #### Some systems specify a CPP to use unless we are using GCC.
4041 #### Now that we know whether we are using GCC, we can decide whether
4042 #### to use that one.
4043 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4048 #### Some systems specify a CC to use unless we are using GCC.
4049 #### Now that we know whether we are using GCC, we can decide whether
4050 #### to use that one.
4051 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4052 test x$cc_specified != xyes
4057 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4059 CC="$CC $GCC_TEST_OPTIONS"
4062 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4064 CC="$CC $NON_GCC_TEST_OPTIONS"
4068 ac_cpp='$CPP $CPPFLAGS'
4069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4073 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4074 # On Suns, sometimes $CPP names a directory.
4075 if test -n "$CPP" && test -d "$CPP"; then
4078 if test -z "$CPP"; then
4079 if test "${ac_cv_prog_CPP+set}" = set; then
4080 $as_echo_n "(cached
) " >&6
4082 # Double quotes because CPP needs to be expanded
4083 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4086 for ac_c_preproc_warn_flag in '' yes
4088 # Use a header file that comes with gcc, so configuring glibc
4089 # with a fresh cross-compiler works.
4090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4091 # <limits.h> exists even on freestanding compilers.
4092 # On the NeXT, cc -E runs the code through the compiler's parser,
4093 # not just through cpp. "Syntax error
" is here to catch this case.
4094 cat >conftest.$ac_ext <<_ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4101 # include <limits.h>
4103 # include <assert.h>
4107 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110 *) ac_try_echo=$ac_try;;
4112 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4113 $as_echo "$ac_try_echo") >&5
4114 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4116 grep -v '^ *+' conftest.er1 >conftest.err
4118 cat conftest.err >&5
4119 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4120 (exit $ac_status); } >/dev/null && {
4121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4122 test ! -s conftest.err
4126 $as_echo "$as_me: failed program was
:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4129 # Broken: fails on valid input.
4133 rm -f conftest.err conftest.$ac_ext
4135 # OK, works on sane cases. Now check whether nonexistent headers
4136 # can be detected and how.
4137 cat >conftest.$ac_ext <<_ACEOF
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #include <ac_nonexistent.h>
4145 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4150 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4151 $as_echo "$ac_try_echo") >&5
4152 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4154 grep -v '^ *+' conftest.er1 >conftest.err
4156 cat conftest.err >&5
4157 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4158 (exit $ac_status); } >/dev/null && {
4159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4160 test ! -s conftest.err
4162 # Broken: success on invalid input.
4165 $as_echo "$as_me: failed program was
:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4168 # Passes both tests.
4173 rm -f conftest.err conftest.$ac_ext
4176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4177 rm -f conftest.err conftest.$ac_ext
4178 if $ac_preproc_ok; then
4190 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4191 $as_echo "$CPP" >&6; }
4193 for ac_c_preproc_warn_flag in '' yes
4195 # Use a header file that comes with gcc, so configuring glibc
4196 # with a fresh cross-compiler works.
4197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4198 # <limits.h> exists even on freestanding compilers.
4199 # On the NeXT, cc -E runs the code through the compiler's parser,
4200 # not just through cpp. "Syntax error
" is here to catch this case.
4201 cat >conftest.$ac_ext <<_ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4208 # include <limits.h>
4210 # include <assert.h>
4214 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4219 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4220 $as_echo "$ac_try_echo") >&5
4221 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4223 grep -v '^ *+' conftest.er1 >conftest.err
4225 cat conftest.err >&5
4226 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4227 (exit $ac_status); } >/dev/null && {
4228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4229 test ! -s conftest.err
4233 $as_echo "$as_me: failed program was
:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4236 # Broken: fails on valid input.
4240 rm -f conftest.err conftest.$ac_ext
4242 # OK, works on sane cases. Now check whether nonexistent headers
4243 # can be detected and how.
4244 cat >conftest.$ac_ext <<_ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 #include <ac_nonexistent.h>
4252 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4257 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4258 $as_echo "$ac_try_echo") >&5
4259 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4261 grep -v '^ *+' conftest.er1 >conftest.err
4263 cat conftest.err >&5
4264 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4265 (exit $ac_status); } >/dev/null && {
4266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4267 test ! -s conftest.err
4269 # Broken: success on invalid input.
4272 $as_echo "$as_me: failed program was
:" >&5
4273 sed 's/^/| /' conftest.$ac_ext >&5
4275 # Passes both tests.
4280 rm -f conftest.err conftest.$ac_ext
4283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4284 rm -f conftest.err conftest.$ac_ext
4285 if $ac_preproc_ok; then
4288 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4289 See \
`config.log' for more details." >&5
4290 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4291 See \`config.log
' for more details." >&2;}
4292 { (exit 1); exit 1; }; }
4296 ac_cpp='$CPP $CPPFLAGS'
4297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4298 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4303 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4304 if test "${ac_cv_path_GREP+set}" = set; then
4305 $as_echo_n "(cached) " >&6
4307 if test -z "$GREP"; then
4308 ac_path_GREP_found=false
4309 # Loop through the user's path and
test for each of PROGNAME-LIST
4310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4311 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4314 test -z "$as_dir" && as_dir
=.
4315 for ac_prog
in grep ggrep
; do
4316 for ac_exec_ext
in '' $ac_executable_extensions; do
4317 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4318 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4319 # Check for GNU ac_path_GREP and select it if it is found.
4320 # Check for GNU $ac_path_GREP
4321 case `"$ac_path_GREP" --version 2>&1` in
4323 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4326 $as_echo_n 0123456789 >"conftest.in"
4329 cat "conftest.in" "conftest.in" >"conftest.tmp"
4330 mv "conftest.tmp" "conftest.in"
4331 cp "conftest.in" "conftest.nl"
4332 $as_echo 'GREP' >> "conftest.nl"
4333 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4334 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4335 ac_count
=`expr $ac_count + 1`
4336 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4337 # Best one so far, save it but keep looking for a better one
4338 ac_cv_path_GREP
="$ac_path_GREP"
4339 ac_path_GREP_max
=$ac_count
4341 # 10*(2^10) chars as input seems more than enough
4342 test $ac_count -gt 10 && break
4344 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4347 $ac_path_GREP_found && break 3
4352 if test -z "$ac_cv_path_GREP"; then
4353 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4354 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4355 { (exit 1); exit 1; }; }
4358 ac_cv_path_GREP
=$GREP
4362 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4363 $as_echo "$ac_cv_path_GREP" >&6; }
4364 GREP
="$ac_cv_path_GREP"
4367 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4368 $as_echo_n "checking for egrep... " >&6; }
4369 if test "${ac_cv_path_EGREP+set}" = set; then
4370 $as_echo_n "(cached) " >&6
4372 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4373 then ac_cv_path_EGREP
="$GREP -E"
4375 if test -z "$EGREP"; then
4376 ac_path_EGREP_found
=false
4377 # Loop through the user's path and test for each of PROGNAME-LIST
4378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4379 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4382 test -z "$as_dir" && as_dir
=.
4383 for ac_prog
in egrep; do
4384 for ac_exec_ext
in '' $ac_executable_extensions; do
4385 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4386 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4387 # Check for GNU ac_path_EGREP and select it if it is found.
4388 # Check for GNU $ac_path_EGREP
4389 case `"$ac_path_EGREP" --version 2>&1` in
4391 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4394 $as_echo_n 0123456789 >"conftest.in"
4397 cat "conftest.in" "conftest.in" >"conftest.tmp"
4398 mv "conftest.tmp" "conftest.in"
4399 cp "conftest.in" "conftest.nl"
4400 $as_echo 'EGREP' >> "conftest.nl"
4401 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4402 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4403 ac_count
=`expr $ac_count + 1`
4404 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4405 # Best one so far, save it but keep looking for a better one
4406 ac_cv_path_EGREP
="$ac_path_EGREP"
4407 ac_path_EGREP_max
=$ac_count
4409 # 10*(2^10) chars as input seems more than enough
4410 test $ac_count -gt 10 && break
4412 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4415 $ac_path_EGREP_found && break 3
4420 if test -z "$ac_cv_path_EGREP"; then
4421 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4422 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4423 { (exit 1); exit 1; }; }
4426 ac_cv_path_EGREP
=$EGREP
4431 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4432 $as_echo "$ac_cv_path_EGREP" >&6; }
4433 EGREP
="$ac_cv_path_EGREP"
4436 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4437 $as_echo_n "checking for ANSI C header files... " >&6; }
4438 if test "${ac_cv_header_stdc+set}" = set; then
4439 $as_echo_n "(cached) " >&6
4441 cat >conftest.
$ac_ext <<_ACEOF
4444 cat confdefs.h
>>conftest.
$ac_ext
4445 cat >>conftest.
$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4460 rm -f conftest.
$ac_objext
4461 if { (ac_try
="$ac_compile"
4463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4467 $as_echo "$ac_try_echo") >&5
4468 (eval "$ac_compile") 2>conftest.er1
4470 grep -v '^ *+' conftest.er1 >conftest.err
4472 cat conftest.err >&5
4473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } && {
4475 test -z "$ac_c_werror_flag" ||
4476 test ! -s conftest.err
4477 } && test -s conftest.$ac_objext; then
4478 ac_cv_header_stdc=yes
4480 $as_echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4483 ac_cv_header_stdc=no
4486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 if test $ac_cv_header_stdc = yes; then
4489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4490 cat >conftest.$ac_ext <<_ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4500 $EGREP "memchr" >/dev/null 2>&1; then
4503 ac_cv_header_stdc=no
4509 if test $ac_cv_header_stdc = yes; then
4510 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4511 cat >conftest.$ac_ext <<_ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4521 $EGREP "free" >/dev/null 2>&1; then
4524 ac_cv_header_stdc=no
4530 if test $ac_cv_header_stdc = yes; then
4531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4532 if test "$cross_compiling" = yes; then
4535 cat >conftest.$ac_ext <<_ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h. */
4543 #if ((' ' & 0x0FF) == 0x020)
4544 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4545 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4547 # define ISLOWER(c) \
4548 (('a' <= (c) && (c) <= 'i') \
4549 || ('j' <= (c) && (c) <= 'r') \
4550 || ('s' <= (c) && (c) <= 'z'))
4551 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4554 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4559 for (i = 0; i < 256; i++)
4560 if (XOR (islower (i), ISLOWER (i))
4561 || toupper (i) != TOUPPER (i))
4566 rm -f conftest$ac_exeext
4567 if { (ac_try="$ac_link"
4569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4570 *) ac_try_echo
=$ac_try;;
4572 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4573 $as_echo "$ac_try_echo") >&5
4574 (eval "$ac_link") 2>&5
4576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4578 { (case "(($ac_try" in
4579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4583 $as_echo "$ac_try_echo") >&5
4584 (eval "$ac_try") 2>&5
4586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; }; then
4590 $as_echo "$as_me: program exited with status $ac_status" >&5
4591 $as_echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4595 ac_cv_header_stdc=no
4597 rm -rf conftest.dSYM
4598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4604 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4605 $as_echo "$ac_cv_header_stdc" >&6; }
4606 if test $ac_cv_header_stdc = yes; then
4608 cat >>confdefs.h <<\_ACEOF
4609 #define STDC_HEADERS 1
4614 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4624 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4625 inttypes.h stdint.h unistd.h
4627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4628 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4629 $as_echo_n "checking for $ac_header... " >&6; }
4630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4631 $as_echo_n "(cached) " >&6
4633 cat >conftest.$ac_ext <<_ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4639 $ac_includes_default
4641 #include <$ac_header>
4643 rm -f conftest.$ac_objext
4644 if { (ac_try="$ac_compile"
4646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4647 *) ac_try_echo
=$ac_try;;
4649 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4650 $as_echo "$ac_try_echo") >&5
4651 (eval "$ac_compile") 2>conftest.er1
4653 grep -v '^ *+' conftest.er1
>conftest.err
4655 cat conftest.err
>&5
4656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } && {
4658 test -z "$ac_c_werror_flag" ||
4659 test ! -s conftest.err
4660 } && test -s conftest.
$ac_objext; then
4661 eval "$as_ac_Header=yes"
4663 $as_echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.
$ac_ext >&5
4666 eval "$as_ac_Header=no"
4669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4671 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4672 $as_echo "$as_val"'`
4673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4674 $as_echo "$ac_res" >&6; }
4675 if test `eval 'as_val=${'$as_ac_Header'}
4676 $as_echo "$as_val"'` = yes; then
4677 cat >>confdefs.h
<<_ACEOF
4678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4687 if test "${ac_cv_header_minix_config_h+set}" = set; then
4688 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4689 $as_echo_n "checking for minix/config.h... " >&6; }
4690 if test "${ac_cv_header_minix_config_h+set}" = set; then
4691 $as_echo_n "(cached) " >&6
4693 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4694 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4696 # Is the header compilable?
4697 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4698 $as_echo_n "checking minix/config.h usability... " >&6; }
4699 cat >conftest.
$ac_ext <<_ACEOF
4702 cat confdefs.h
>>conftest.
$ac_ext
4703 cat >>conftest.
$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 $ac_includes_default
4706 #include <minix/config.h>
4708 rm -f conftest.
$ac_objext
4709 if { (ac_try
="$ac_compile"
4711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4715 $as_echo "$ac_try_echo") >&5
4716 (eval "$ac_compile") 2>conftest.er1
4718 grep -v '^ *+' conftest.er1 >conftest.err
4720 cat conftest.err >&5
4721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } && {
4723 test -z "$ac_c_werror_flag" ||
4724 test ! -s conftest.err
4725 } && test -s conftest.$ac_objext; then
4726 ac_header_compiler=yes
4728 $as_echo "$as_me: failed program was:" >&5
4729 sed 's/^/| /' conftest.$ac_ext >&5
4731 ac_header_compiler=no
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4736 $as_echo "$ac_header_compiler" >&6; }
4738 # Is the header present?
4739 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4740 $as_echo_n "checking minix/config.h presence... " >&6; }
4741 cat >conftest.$ac_ext <<_ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4747 #include <minix/config.h>
4749 if { (ac_try="$ac_cpp conftest.$ac_ext"
4751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4752 *) ac_try_echo
=$ac_try;;
4754 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4755 $as_echo "$ac_try_echo") >&5
4756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4758 grep -v '^ *+' conftest.er1
>conftest.err
4760 cat conftest.err
>&5
4761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); } >/dev
/null
&& {
4763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4764 test ! -s conftest.err
4766 ac_header_preproc
=yes
4768 $as_echo "$as_me: failed program was:" >&5
4769 sed 's/^/| /' conftest.
$ac_ext >&5
4771 ac_header_preproc
=no
4774 rm -f conftest.err conftest.
$ac_ext
4775 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4776 $as_echo "$ac_header_preproc" >&6; }
4778 # So? What about this header?
4779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4782 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4784 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4785 ac_header_preproc
=yes
4788 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4789 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4790 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4791 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4792 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4793 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4794 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4795 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4796 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4797 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4798 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4799 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4803 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4804 $as_echo_n "checking for minix/config.h... " >&6; }
4805 if test "${ac_cv_header_minix_config_h+set}" = set; then
4806 $as_echo_n "(cached) " >&6
4808 ac_cv_header_minix_config_h
=$ac_header_preproc
4810 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4811 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4814 if test $ac_cv_header_minix_config_h = yes; then
4821 if test "$MINIX" = yes; then
4823 cat >>confdefs.h
<<\_ACEOF
4824 #define _POSIX_SOURCE 1
4828 cat >>confdefs.h
<<\_ACEOF
4829 #define _POSIX_1_SOURCE 2
4833 cat >>confdefs.h
<<\_ACEOF
4841 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4842 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4843 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4844 $as_echo_n "(cached) " >&6
4846 cat >conftest.
$ac_ext <<_ACEOF
4849 cat confdefs.h
>>conftest.
$ac_ext
4850 cat >>conftest.
$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4853 # define __EXTENSIONS__ 1
4854 $ac_includes_default
4863 rm -f conftest.
$ac_objext
4864 if { (ac_try
="$ac_compile"
4866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4867 *) ac_try_echo=$ac_try;;
4869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4870 $as_echo "$ac_try_echo") >&5
4871 (eval "$ac_compile") 2>conftest.er1
4873 grep -v '^ *+' conftest.er1 >conftest.err
4875 cat conftest.err >&5
4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } && {
4878 test -z "$ac_c_werror_flag" ||
4879 test ! -s conftest.err
4880 } && test -s conftest.$ac_objext; then
4881 ac_cv_safe_to_define___extensions__=yes
4883 $as_echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4886 ac_cv_safe_to_define___extensions__=no
4889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4892 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4893 test $ac_cv_safe_to_define___extensions__ = yes &&
4894 cat >>confdefs.h <<\_ACEOF
4895 #define __EXTENSIONS__ 1
4898 cat >>confdefs.h <<\_ACEOF
4899 #define _ALL_SOURCE 1
4902 cat >>confdefs.h <<\_ACEOF
4903 #define _GNU_SOURCE 1
4906 cat >>confdefs.h <<\_ACEOF
4907 #define _POSIX_PTHREAD_SEMANTICS 1
4910 cat >>confdefs.h <<\_ACEOF
4911 #define _TANDEM_SOURCE 1
4916 ### Use -Wno-pointer-sign if the compiler supports it
4917 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4918 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4919 SAVE_CFLAGS="$CFLAGS"
4920 CFLAGS="$CFLAGS -Wno-pointer-sign"
4921 cat >conftest.$ac_ext <<_ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4936 rm -f conftest.$ac_objext
4937 if { (ac_try="$ac_compile"
4939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4940 *) ac_try_echo
=$ac_try;;
4942 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4943 $as_echo "$ac_try_echo") >&5
4944 (eval "$ac_compile") 2>conftest.er1
4946 grep -v '^ *+' conftest.er1
>conftest.err
4948 cat conftest.err
>&5
4949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } && {
4951 test -z "$ac_c_werror_flag" ||
4952 test ! -s conftest.err
4953 } && test -s conftest.
$ac_objext; then
4956 $as_echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.
$ac_ext >&5
4962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4963 if test $has_option = yes; then
4964 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4966 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4967 $as_echo "$has_option" >&6; }
4968 CFLAGS
="$SAVE_CFLAGS"
4972 ### Use -Wdeclaration-after-statement if the compiler supports it
4973 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4974 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4975 SAVE_CFLAGS
="$CFLAGS"
4976 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4977 cat >conftest.
$ac_ext <<_ACEOF
4980 cat confdefs.h
>>conftest.
$ac_ext
4981 cat >>conftest.
$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4992 rm -f conftest.
$ac_objext
4993 if { (ac_try
="$ac_compile"
4995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4996 *) ac_try_echo=$ac_try;;
4998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4999 $as_echo "$ac_try_echo") >&5
5000 (eval "$ac_compile") 2>conftest.er1
5002 grep -v '^ *+' conftest.er1 >conftest.err
5004 cat conftest.err >&5
5005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } && {
5007 test -z "$ac_c_werror_flag" ||
5008 test ! -s conftest.err
5009 } && test -s conftest.$ac_objext; then
5012 $as_echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 if test $has_option = yes; then
5020 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5022 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5023 $as_echo "$has_option" >&6; }
5024 CFLAGS="$SAVE_CFLAGS"
5028 #### Some other nice autoconf tests.
5031 ac_cpp='$CPP $CPPFLAGS'
5032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5035 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5036 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5037 # On Suns, sometimes $CPP names a directory.
5038 if test -n "$CPP" && test -d "$CPP"; then
5041 if test -z "$CPP"; then
5042 if test "${ac_cv_prog_CPP+set}" = set; then
5043 $as_echo_n "(cached) " >&6
5045 # Double quotes because CPP needs to be expanded
5046 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5049 for ac_c_preproc_warn_flag in '' yes
5051 # Use a header file that comes with gcc, so configuring glibc
5052 # with a fresh cross-compiler works.
5053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5054 # <limits.h> exists even on freestanding compilers.
5055 # On the NeXT, cc -E runs the code through the compiler's parser,
5056 # not just through cpp. "Syntax error" is here to catch this case.
5057 cat >conftest.$ac_ext <<_ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5064 # include <limits.h>
5066 # include <assert.h>
5070 if { (ac_try="$ac_cpp conftest.$ac_ext"
5072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5073 *) ac_try_echo
=$ac_try;;
5075 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5076 $as_echo "$ac_try_echo") >&5
5077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5079 grep -v '^ *+' conftest.er1
>conftest.err
5081 cat conftest.err
>&5
5082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } >/dev
/null
&& {
5084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5085 test ! -s conftest.err
5089 $as_echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.
$ac_ext >&5
5092 # Broken: fails on valid input.
5096 rm -f conftest.err conftest.
$ac_ext
5098 # OK, works on sane cases. Now check whether nonexistent headers
5099 # can be detected and how.
5100 cat >conftest.
$ac_ext <<_ACEOF
5103 cat confdefs.h
>>conftest.
$ac_ext
5104 cat >>conftest.
$ac_ext <<_ACEOF
5105 /* end confdefs.h. */
5106 #include <ac_nonexistent.h>
5108 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5114 $as_echo "$ac_try_echo") >&5
5115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5117 grep -v '^ *+' conftest.er1 >conftest.err
5119 cat conftest.err >&5
5120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } >/dev/null && {
5122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5123 test ! -s conftest.err
5125 # Broken: success on invalid input.
5128 $as_echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5131 # Passes both tests.
5136 rm -f conftest.err conftest.$ac_ext
5139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5140 rm -f conftest.err conftest.
$ac_ext
5141 if $ac_preproc_ok; then
5153 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5154 $as_echo "$CPP" >&6; }
5156 for ac_c_preproc_warn_flag
in '' yes
5158 # Use a header file that comes with gcc, so configuring glibc
5159 # with a fresh cross-compiler works.
5160 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5161 # <limits.h> exists even on freestanding compilers.
5162 # On the NeXT, cc -E runs the code through the compiler's parser,
5163 # not just through cpp. "Syntax error" is here to catch this case.
5164 cat >conftest.
$ac_ext <<_ACEOF
5167 cat confdefs.h
>>conftest.
$ac_ext
5168 cat >>conftest.
$ac_ext <<_ACEOF
5169 /* end confdefs.h. */
5171 # include <limits.h>
5173 # include <assert.h>
5177 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5183 $as_echo "$ac_try_echo") >&5
5184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5186 grep -v '^ *+' conftest.er1 >conftest.err
5188 cat conftest.err >&5
5189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } >/dev/null && {
5191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5192 test ! -s conftest.err
5196 $as_echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5199 # Broken: fails on valid input.
5203 rm -f conftest.err conftest.$ac_ext
5205 # OK, works on sane cases. Now check whether nonexistent headers
5206 # can be detected and how.
5207 cat >conftest.$ac_ext <<_ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5213 #include <ac_nonexistent.h>
5215 if { (ac_try="$ac_cpp conftest.$ac_ext"
5217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5218 *) ac_try_echo
=$ac_try;;
5220 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5221 $as_echo "$ac_try_echo") >&5
5222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5224 grep -v '^ *+' conftest.er1
>conftest.err
5226 cat conftest.err
>&5
5227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } >/dev
/null
&& {
5229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5230 test ! -s conftest.err
5232 # Broken: success on invalid input.
5235 $as_echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.
$ac_ext >&5
5238 # Passes both tests.
5243 rm -f conftest.err conftest.
$ac_ext
5246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5247 rm -f conftest.err conftest.
$ac_ext
5248 if $ac_preproc_ok; then
5251 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5252 See \`config.log' for more details." >&5
5253 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5254 See \`config.log' for more details." >&2;}
5255 { (exit 1); exit 1; }; }
5259 ac_cpp
='$CPP $CPPFLAGS'
5260 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5264 # Find a good install program. We prefer a C program (faster),
5265 # so one script is as good as another. But avoid the broken or
5266 # incompatible versions:
5267 # SysV /etc/install, /usr/sbin/install
5268 # SunOS /usr/etc/install
5269 # IRIX /sbin/install
5271 # AmigaOS /C/install, which installs bootblocks on floppy discs
5272 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5275 # OS/2's system install, which has a completely different semantic
5276 # ./install, which can be erroneously created by make from ./install.sh.
5277 # Reject install programs that cannot install multiple files.
5278 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5279 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5280 if test -z "$INSTALL"; then
5281 if test "${ac_cv_path_install+set}" = set; then
5282 $as_echo_n "(cached) " >&6
5284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5288 test -z "$as_dir" && as_dir
=.
5289 # Account for people who put trailing slashes in PATH elements.
5291 .
/ | .
// |
/cC
/* | \
5292 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5293 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5296 # OSF1 and SCO ODT 3.0 have their own names for install.
5297 # Don't use installbsd from OSF since it installs stuff as root
5299 for ac_prog
in ginstall scoinst
install; do
5300 for ac_exec_ext
in '' $ac_executable_extensions; do
5301 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5302 if test $ac_prog = install &&
5303 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5304 # AIX install. It has an incompatible calling convention.
5306 elif test $ac_prog = install &&
5307 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5308 # program-specific install script used by HP pwplus--don't use.
5311 rm -rf conftest.one conftest.two conftest.dir
5312 echo one
> conftest.one
5313 echo two
> conftest.two
5315 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5316 test -s conftest.one
&& test -s conftest.two
&&
5317 test -s conftest.dir
/conftest.one
&&
5318 test -s conftest.dir
/conftest.two
5320 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5333 rm -rf conftest.one conftest.two conftest.dir
5336 if test "${ac_cv_path_install+set}" = set; then
5337 INSTALL
=$ac_cv_path_install
5339 # As a last resort, use the slow shell script. Don't cache a
5340 # value for INSTALL within a source directory, because that will
5341 # break other packages using the cache if that directory is
5342 # removed, or if the value is a relative name.
5343 INSTALL
=$ac_install_sh
5346 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5347 $as_echo "$INSTALL" >&6; }
5349 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5350 # It thinks the first close brace ends the variable substitution.
5351 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5353 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5355 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5357 if test "x$RANLIB" = x
; then
5358 if test -n "$ac_tool_prefix"; then
5359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5360 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5361 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5362 $as_echo_n "checking for $ac_word... " >&6; }
5363 if test "${ac_cv_prog_RANLIB+set}" = set; then
5364 $as_echo_n "(cached) " >&6
5366 if test -n "$RANLIB"; then
5367 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5373 test -z "$as_dir" && as_dir
=.
5374 for ac_exec_ext
in '' $ac_executable_extensions; do
5375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5376 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 RANLIB
=$ac_cv_prog_RANLIB
5387 if test -n "$RANLIB"; then
5388 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5389 $as_echo "$RANLIB" >&6; }
5391 { $as_echo "$as_me:$LINENO: result: no" >&5
5392 $as_echo "no" >&6; }
5397 if test -z "$ac_cv_prog_RANLIB"; then
5398 ac_ct_RANLIB
=$RANLIB
5399 # Extract the first word of "ranlib", so it can be a program name with args.
5400 set dummy ranlib
; ac_word
=$2
5401 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5402 $as_echo_n "checking for $ac_word... " >&6; }
5403 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5404 $as_echo_n "(cached) " >&6
5406 if test -n "$ac_ct_RANLIB"; then
5407 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5413 test -z "$as_dir" && as_dir
=.
5414 for ac_exec_ext
in '' $ac_executable_extensions; do
5415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5417 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5427 if test -n "$ac_ct_RANLIB"; then
5428 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5429 $as_echo "$ac_ct_RANLIB" >&6; }
5431 { $as_echo "$as_me:$LINENO: result: no" >&5
5432 $as_echo "no" >&6; }
5435 if test "x$ac_ct_RANLIB" = x
; then
5438 case $cross_compiling:$ac_tool_warned in
5440 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5441 whose name does not start with the host triplet. If you think this
5442 configuration is useful to you, please write to autoconf@gnu.org." >&5
5443 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5444 whose name does not start with the host triplet. If you think this
5445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5446 ac_tool_warned
=yes ;;
5448 RANLIB
=$ac_ct_RANLIB
5451 RANLIB
="$ac_cv_prog_RANLIB"
5456 ## Although we're running on an amd64 kernel, we're actually compiling for
5457 ## the x86 architecture. The user should probably have provided an
5458 ## explicit --build to `configure', but if everything else than the kernel
5459 ## is running in i386 mode, we can help them out.
5460 if test "$machine" = "amdx86-64"; then
5461 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5462 $as_echo_n "checking whether i386 is declared... " >&6; }
5463 if test "${ac_cv_have_decl_i386+set}" = set; then
5464 $as_echo_n "(cached) " >&6
5466 cat >conftest.
$ac_ext <<_ACEOF
5469 cat confdefs.h
>>conftest.
$ac_ext
5470 cat >>conftest.
$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 $ac_includes_default
5484 rm -f conftest.
$ac_objext
5485 if { (ac_try
="$ac_compile"
5487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5491 $as_echo "$ac_try_echo") >&5
5492 (eval "$ac_compile") 2>conftest.er1
5494 grep -v '^ *+' conftest.er1 >conftest.err
5496 cat conftest.err >&5
5497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && {
5499 test -z "$ac_c_werror_flag" ||
5500 test ! -s conftest.err
5501 } && test -s conftest.$ac_objext; then
5502 ac_cv_have_decl_i386=yes
5504 $as_echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 ac_cv_have_decl_i386=no
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5512 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5513 $as_echo "$ac_cv_have_decl_i386" >&6; }
5515 if test "$ac_cv_have_decl_i386" = "yes"; then
5516 canonical=`echo "$canonical" |
sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5518 machfile="m/${machine}.h"
5522 # Extract the first word of "install-info", so it can be a program name with args.
5523 set dummy install-info; ac_word=$2
5524 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5527 $as_echo_n "(cached) " >&6
5529 case $INSTALL_INFO in
5531 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5542 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5553 if test -n "$INSTALL_INFO"; then
5554 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5555 $as_echo "$INSTALL_INFO" >&6; }
5557 { $as_echo "$as_me:$LINENO: result: no" >&5
5558 $as_echo "no" >&6; }
5562 # Extract the first word of "install-info", so it can be a program name with args.
5563 set dummy install-info; ac_word=$2
5564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5567 $as_echo_n "(cached) " >&6
5569 case $INSTALL_INFO in
5571 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in /usr/sbin
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5593 if test -n "$INSTALL_INFO"; then
5594 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5595 $as_echo "$INSTALL_INFO" >&6; }
5597 { $as_echo "$as_me:$LINENO: result: no" >&5
5598 $as_echo "no" >&6; }
5602 # Extract the first word of "install-info", so it can be a program name with args.
5603 set dummy install-info; ac_word=$2
5604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5607 $as_echo_n "(cached) " >&6
5609 case $INSTALL_INFO in
5611 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5633 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5634 if test -n "$INSTALL_INFO"; then
5635 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5636 $as_echo "$INSTALL_INFO" >&6; }
5638 { $as_echo "$as_me:$LINENO: result: no" >&5
5639 $as_echo "no" >&6; }
5643 # Extract the first word of "gzip", so it can be a program name with args.
5644 set dummy gzip; ac_word=$2
5645 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5648 $as_echo_n "(cached) " >&6
5652 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5663 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 GZIP_PROG=$ac_cv_path_GZIP_PROG
5674 if test -n "$GZIP_PROG"; then
5675 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5676 $as_echo "$GZIP_PROG" >&6; }
5678 { $as_echo "$as_me:$LINENO: result: no" >&5
5679 $as_echo "no" >&6; }
5685 ## Need makeinfo >= 4.6 (?) to build the manuals.
5686 # Extract the first word of "makeinfo", so it can be a program name with args.
5687 set dummy makeinfo; ac_word=$2
5688 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 $as_echo_n "checking for $ac_word... " >&6; }
5690 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5691 $as_echo_n "(cached) " >&6
5695 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 test -z "$as_dir" && as_dir=.
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5705 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5706 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5717 MAKEINFO=$ac_cv_path_MAKEINFO
5718 if test -n "$MAKEINFO"; then
5719 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5720 $as_echo "$MAKEINFO" >&6; }
5722 { $as_echo "$as_me:$LINENO: result: no" >&5
5723 $as_echo "no" >&6; }
5727 if test "$MAKEINFO" != "no" && \
5728 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
5732 ## Makeinfo is unusual. For a released Emacs, the manuals are
5733 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5734 ## therefore in the category of "special tools" not normally required, which
5735 ## configure does not have to check for (eg autoconf itself).
5736 ## In a Bazaar checkout on the other hand, the manuals are not included.
5737 ## So makeinfo is a requirement to build from Bazaar, and configure
5738 ## should test for it as it does for any other build requirement.
5739 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5740 ## with pre-built manuals, from a Bazaar checkout.
5741 if test "$MAKEINFO" = "no"; then
5742 if test "x${with_makeinfo}" = "xno"; then
5744 elif test ! -e $srcdir/info/emacs; then
5745 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5746 source tree does not seem to have pre-built manuals in the \`info
' directory.
5747 Either install a suitable version of makeinfo, or re-run configure
5748 with the \`--without-makeinfo' option to build without the manuals.
" >&5
5749 $as_echo "$as_me: error
: You
do not seem to have makeinfo
>= 4.6, and your
5750 source tree does not seem to have pre-built manuals
in the \
`info' directory.
5751 Either install a suitable version of makeinfo, or re-run configure
5752 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5753 { (exit 1); exit 1; }; }
5758 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5760 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5763 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5765 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5769 late_LDFLAGS=$LDFLAGS
5770 if test "$GCC" = yes; then
5771 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5773 LDFLAGS="$LDFLAGS -znocombreloc"
5776 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5777 $as_echo_n "checking for -znocombreloc... " >&6; }
5778 cat >conftest.$ac_ext <<_ACEOF
5781 rm -f conftest.$ac_objext conftest$ac_exeext
5782 if { (ac_try="$ac_link"
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5788 $as_echo "$ac_try_echo") >&5
5789 (eval "$ac_link") 2>conftest.er1
5791 grep -v '^
*+' conftest.er1 >conftest.err
5793 cat conftest.err >&5
5794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } && {
5796 test -z "$ac_c_werror_flag" ||
5797 test ! -s conftest.err
5798 } && test -s conftest$ac_exeext && {
5799 test "$cross_compiling" = yes ||
5800 $as_test_x conftest$ac_exeext
5802 { $as_echo "$as_me:$LINENO: result: yes" >&5
5803 $as_echo "yes" >&6; }
5805 $as_echo "$as_me: failed program was:" >&5
5806 sed 's
/^
/|
/' conftest.$ac_ext >&5
5808 LDFLAGS=$late_LDFLAGS
5809 { $as_echo "$as_me:$LINENO: result: no" >&5
5810 $as_echo "no" >&6; }
5813 rm -rf conftest.dSYM
5814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5815 conftest$ac_exeext conftest.$ac_ext
5817 #### Extract some information from the operating system and machine files.
5819 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5820 - which libraries the lib-src programs will want, and
5821 - whether the GNU malloc routines are usable..." >&5
5822 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5823 - which libraries the lib-src programs will want, and
5824 - whether the GNU malloc routines are usable..." >&6;}
5826 ### First figure out CFLAGS (which we use for running the compiler here)
5827 ### and REAL_CFLAGS (which we use for real compilation).
5828 ### The two are the same except on a few systems, where they are made
5829 ### different to work around various lossages. For example,
5830 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5831 ### as implying static linking.
5833 ### If the CFLAGS env var is specified, we use that value
5834 ### instead of the default.
5836 ### It's not important that this name contain the PID
; you can
't run
5837 ### two configures in the same directory and have anything work
5839 tempcname="conftest.c"
5842 #include "'${srcdir}'/src/'${opsysfile}'"
5843 #include "'${srcdir}'/src/'${machfile}'"
5845 configure___ LIBX
=-lX11
5847 configure___ unexec
=UNEXEC
5849 #ifdef SYSTEM_MALLOC
5850 configure___ system_malloc
=yes
5852 configure___ system_malloc
=no
5855 #ifdef USE_MMAP_FOR_BUFFERS
5856 configure___ use_mmap_for_buffers
=yes
5858 configure___ use_mmap_for_buffers
=no
5861 #ifndef C_OPTIMIZE_SWITCH
5863 #define C_OPTIMIZE_SWITCH -O2
5865 #define C_OPTIMIZE_SWITCH -O
5869 #ifndef C_WARNINGS_SWITCH
5870 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5873 #ifdef THIS_IS_CONFIGURE
5875 /* Get the CFLAGS
for tests
in configure.
*/
5877 configure___ CFLAGS
=-g C_OPTIMIZE_SWITCH
'${SPECIFIED_CFLAGS}'
5879 configure___ CFLAGS
='${SPECIFIED_CFLAGS}'
5882 #else /* not THIS_IS_CONFIGURE */
5884 /* Get the CFLAGS
for real compilation.
*/
5886 configure___ REAL_CFLAGS
=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH
${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5888 configure___ REAL_CFLAGS
='${SPECIFIED_CFLAGS}'
5891 #endif /* not THIS_IS_CONFIGURE */
5894 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5896 # The value of CPP is a quoted variable reference, so we need to do this
5897 # to get its actual value...
5898 CPP=`eval "echo $CPP"`
5899 eval `${CPP} -Isrc ${tempcname} \
5900 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5901 if test "x$SPECIFIED_CFLAGS" = x; then
5902 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5903 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5905 REAL_CFLAGS="$CFLAGS"
5913 ## Let `ld' find image libs and similar things
in /usr
/local
/lib.
5914 ## The system compiler, GCC, has apparently been modified to not
5915 ## look there, contrary to what a stock GCC would do.
5916 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5920 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5921 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5925 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5929 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5930 ## otherwise Emacs dumps core on elf systems.
5931 LD_SWITCH_SYSTEM
="-Z"
5936 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5938 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5939 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5940 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5941 ## values in configure and the Makefiles. How helpful.
5942 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5945 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5946 LD_SWITCH_SYSTEM
="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5949 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5950 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5955 if test "$machine" = "alpha"; then
5956 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5957 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5958 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5959 $as_echo_n "(cached) " >&6
5961 cat >conftest.
$ac_ext <<_ACEOF
5964 cat confdefs.h
>>conftest.
$ac_ext
5965 cat >>conftest.
$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5979 rm -f conftest.
$ac_objext
5980 if { (ac_try
="$ac_compile"
5982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5986 $as_echo "$ac_try_echo") >&5
5987 (eval "$ac_compile") 2>conftest.er1
5989 grep -v '^ *+' conftest.er1 >conftest.err
5991 cat conftest.err >&5
5992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } && {
5994 test -z "$ac_c_werror_flag" ||
5995 test ! -s conftest.err
5996 } && test -s conftest.$ac_objext; then
5997 ac_cv_have_decl___ELF__=yes
5999 $as_echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6002 ac_cv_have_decl___ELF__=no
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6008 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6010 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6011 ## With ELF, make sure that all common symbols get allocated to in the
6012 ## data section. Otherwise, the dump of temacs may miss variables in
6013 ## the shared library that have been initialized. For example, with
6014 ## GNU libc, __malloc_initialized would normally be resolved to the
6015 ## shared library's .bss section, which is fatal.
6016 if test "x$GCC" = "xyes"; then
6017 C_SWITCH_MACHINE="-fno-common"
6019 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6020 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6021 { (exit 1); exit 1; }; }
6029 ## Some programs in src produce warnings saying certain subprograms
6030 ## are too complex and need a MAXMEM value greater than 2000 for
6031 ## additional optimization. --nils@exp-math.uni-essen.de
6032 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6033 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6034 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6035 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6041 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6042 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6044 freebsd) LIBS_SYSTEM="-lutil" ;;
6046 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6048 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6050 ## Motif needs -lgen.
6051 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6056 ### Make sure subsequent tests use flags consistent with the build flags.
6058 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6059 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6061 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6066 # Check whether --enable-largefile was given.
6067 if test "${enable_largefile+set}" = set; then
6068 enableval=$enable_largefile;
6071 if test "$enable_largefile" != no; then
6073 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6074 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6075 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6076 $as_echo_n "(cached) " >&6
6078 ac_cv_sys_largefile_CC=no
6079 if test "$GCC" != yes; then
6082 # IRIX 6.2 and later do not support large files by default,
6083 # so use the C compiler's -n32 option if that helps.
6084 cat >conftest.$ac_ext <<_ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 #include <sys/types.h>
6091 /* Check that off_t can represent 2**63 - 1 correctly.
6092 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6093 since some C++ compilers masquerading as C compilers
6094 incorrectly reject 9223372036854775807. */
6095 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6096 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6097 && LARGE_OFF_T % 2147483647 == 1)
6107 rm -f conftest.$ac_objext
6108 if { (ac_try="$ac_compile"
6110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6111 *) ac_try_echo
=$ac_try;;
6113 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6114 $as_echo "$ac_try_echo") >&5
6115 (eval "$ac_compile") 2>conftest.er1
6117 grep -v '^ *+' conftest.er1
>conftest.err
6119 cat conftest.err
>&5
6120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } && {
6122 test -z "$ac_c_werror_flag" ||
6123 test ! -s conftest.err
6124 } && test -s conftest.
$ac_objext; then
6127 $as_echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.
$ac_ext >&5
6133 rm -f core conftest.err conftest.
$ac_objext
6135 rm -f conftest.
$ac_objext
6136 if { (ac_try
="$ac_compile"
6138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6142 $as_echo "$ac_try_echo") >&5
6143 (eval "$ac_compile") 2>conftest.er1
6145 grep -v '^ *+' conftest.er1 >conftest.err
6147 cat conftest.err >&5
6148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } && {
6150 test -z "$ac_c_werror_flag" ||
6151 test ! -s conftest.err
6152 } && test -s conftest.$ac_objext; then
6153 ac_cv_sys_largefile_CC=' -n32'; break
6155 $as_echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6161 rm -f core conftest.err conftest.$ac_objext
6165 rm -f conftest.$ac_ext
6168 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6169 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6170 if test "$ac_cv_sys_largefile_CC" != no; then
6171 CC=$CC$ac_cv_sys_largefile_CC
6174 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6175 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6176 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6177 $as_echo_n "(cached) " >&6
6180 cat >conftest.$ac_ext <<_ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6186 #include <sys/types.h>
6187 /* Check that off_t can represent 2**63 - 1 correctly.
6188 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6189 since some C++ compilers masquerading as C compilers
6190 incorrectly reject 9223372036854775807. */
6191 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6192 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6193 && LARGE_OFF_T % 2147483647 == 1)
6203 rm -f conftest.$ac_objext
6204 if { (ac_try="$ac_compile"
6206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6207 *) ac_try_echo
=$ac_try;;
6209 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6210 $as_echo "$ac_try_echo") >&5
6211 (eval "$ac_compile") 2>conftest.er1
6213 grep -v '^ *+' conftest.er1
>conftest.err
6215 cat conftest.err
>&5
6216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } && {
6218 test -z "$ac_c_werror_flag" ||
6219 test ! -s conftest.err
6220 } && test -s conftest.
$ac_objext; then
6221 ac_cv_sys_file_offset_bits
=no
; break
6223 $as_echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.
$ac_ext >&5
6229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6230 cat >conftest.
$ac_ext <<_ACEOF
6233 cat confdefs.h
>>conftest.
$ac_ext
6234 cat >>conftest.
$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 #define _FILE_OFFSET_BITS 64
6237 #include <sys/types.h>
6238 /* Check that off_t can represent 2**63 - 1 correctly.
6239 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6240 since some C++ compilers masquerading as C compilers
6241 incorrectly reject 9223372036854775807. */
6242 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6243 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6244 && LARGE_OFF_T % 2147483647 == 1)
6254 rm -f conftest.
$ac_objext
6255 if { (ac_try
="$ac_compile"
6257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6261 $as_echo "$ac_try_echo") >&5
6262 (eval "$ac_compile") 2>conftest.er1
6264 grep -v '^ *+' conftest.er1 >conftest.err
6266 cat conftest.err >&5
6267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } && {
6269 test -z "$ac_c_werror_flag" ||
6270 test ! -s conftest.err
6271 } && test -s conftest.$ac_objext; then
6272 ac_cv_sys_file_offset_bits=64; break
6274 $as_echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 ac_cv_sys_file_offset_bits=unknown
6285 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6286 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6287 case $ac_cv_sys_file_offset_bits in #(
6290 cat >>confdefs.h <<_ACEOF
6291 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6296 if test $ac_cv_sys_file_offset_bits = unknown; then
6297 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6298 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6299 if test "${ac_cv_sys_large_files+set}" = set; then
6300 $as_echo_n "(cached) " >&6
6303 cat >conftest.$ac_ext <<_ACEOF
6306 cat confdefs.h >>conftest.$ac_ext
6307 cat >>conftest.$ac_ext <<_ACEOF
6308 /* end confdefs.h. */
6309 #include <sys/types.h>
6310 /* Check that off_t can represent 2**63 - 1 correctly.
6311 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6312 since some C++ compilers masquerading as C compilers
6313 incorrectly reject 9223372036854775807. */
6314 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6315 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6316 && LARGE_OFF_T % 2147483647 == 1)
6326 rm -f conftest.$ac_objext
6327 if { (ac_try="$ac_compile"
6329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6330 *) ac_try_echo
=$ac_try;;
6332 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6333 $as_echo "$ac_try_echo") >&5
6334 (eval "$ac_compile") 2>conftest.er1
6336 grep -v '^ *+' conftest.er1
>conftest.err
6338 cat conftest.err
>&5
6339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } && {
6341 test -z "$ac_c_werror_flag" ||
6342 test ! -s conftest.err
6343 } && test -s conftest.
$ac_objext; then
6344 ac_cv_sys_large_files
=no
; break
6346 $as_echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.
$ac_ext >&5
6352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6353 cat >conftest.
$ac_ext <<_ACEOF
6356 cat confdefs.h
>>conftest.
$ac_ext
6357 cat >>conftest.
$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6359 #define _LARGE_FILES 1
6360 #include <sys/types.h>
6361 /* Check that off_t can represent 2**63 - 1 correctly.
6362 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6363 since some C++ compilers masquerading as C compilers
6364 incorrectly reject 9223372036854775807. */
6365 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6366 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6367 && LARGE_OFF_T % 2147483647 == 1)
6377 rm -f conftest.
$ac_objext
6378 if { (ac_try
="$ac_compile"
6380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6384 $as_echo "$ac_try_echo") >&5
6385 (eval "$ac_compile") 2>conftest.er1
6387 grep -v '^ *+' conftest.er1 >conftest.err
6389 cat conftest.err >&5
6390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && {
6392 test -z "$ac_c_werror_flag" ||
6393 test ! -s conftest.err
6394 } && test -s conftest.$ac_objext; then
6395 ac_cv_sys_large_files=1; break
6397 $as_echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 ac_cv_sys_large_files=unknown
6408 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6409 $as_echo "$ac_cv_sys_large_files" >&6; }
6410 case $ac_cv_sys_large_files in #(
6413 cat >>confdefs.h <<_ACEOF
6414 #define _LARGE_FILES $ac_cv_sys_large_files
6424 ## If user specified a crt-dir, use that unconditionally.
6425 if test "X$CRT_DIR" = "X"; then
6427 case "$canonical" in
6428 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6429 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6430 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6431 ## For anything else (eg /usr/lib32), it is up the user to specify
6432 ## the location (bug#5655).
6433 ## Test for crtn.o, not just the directory, because sometimes the
6434 ## directory exists but does not have the relevant files (bug#1287).
6435 ## FIXME better to test for binary compatibility somehow.
6436 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6439 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6443 hpux10-20) CRT_DIR=/lib ;;
6446 ## Default is /usr/lib.
6447 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6451 ## Some platforms don't use any of these files, so it is not
6452 ## appropriate to put this test outside the if block.
6453 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6454 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6455 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6456 { (exit 1); exit 1; }; }
6469 START_FILES='ecrt0.o'
6472 ## Adding -lm confuses the dynamic linker, so omit it.
6474 START_FILES='pre-crt0.o'
6477 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6478 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6480 gnu-linux | gnu-kfreebsd )
6481 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6482 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6484 hpux10-20 | hpux11 )
6486 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6489 if test -f $CRT_DIR/crti.o; then
6490 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6491 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6493 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6494 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6505 if test "${with_sound}" != "no"; then
6506 # Sound support for GNU/Linux and the free BSDs.
6510 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6514 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6515 $as_echo_n "checking for $ac_header... " >&6; }
6516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6517 $as_echo_n "(cached) " >&6
6519 ac_res=`eval 'as_val=${'$as_ac_Header'}
6520 $as_echo "$as_val"'`
6521 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6522 $as_echo "$ac_res" >&6; }
6524 # Is the header compilable?
6525 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6526 $as_echo_n "checking $ac_header usability... " >&6; }
6527 cat >conftest.$ac_ext <<_ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 $ac_includes_default
6534 #include <$ac_header>
6536 rm -f conftest.$ac_objext
6537 if { (ac_try="$ac_compile"
6539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6540 *) ac_try_echo
=$ac_try;;
6542 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6543 $as_echo "$ac_try_echo") >&5
6544 (eval "$ac_compile") 2>conftest.er1
6546 grep -v '^ *+' conftest.er1
>conftest.err
6548 cat conftest.err
>&5
6549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && {
6551 test -z "$ac_c_werror_flag" ||
6552 test ! -s conftest.err
6553 } && test -s conftest.
$ac_objext; then
6554 ac_header_compiler
=yes
6556 $as_echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.
$ac_ext >&5
6559 ac_header_compiler
=no
6562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6563 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6564 $as_echo "$ac_header_compiler" >&6; }
6566 # Is the header present?
6567 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6568 $as_echo_n "checking $ac_header presence... " >&6; }
6569 cat >conftest.
$ac_ext <<_ACEOF
6572 cat confdefs.h
>>conftest.
$ac_ext
6573 cat >>conftest.
$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 #include <$ac_header>
6577 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6583 $as_echo "$ac_try_echo") >&5
6584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6586 grep -v '^ *+' conftest.er1 >conftest.err
6588 cat conftest.err >&5
6589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } >/dev/null && {
6591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6592 test ! -s conftest.err
6594 ac_header_preproc=yes
6596 $as_echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 ac_header_preproc=no
6602 rm -f conftest.err conftest.$ac_ext
6603 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6604 $as_echo "$ac_header_preproc" >&6; }
6606 # So? What about this header?
6607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6610 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6612 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6613 ac_header_preproc=yes
6616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6617 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6619 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6621 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6623 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6625 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6627 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6631 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6632 $as_echo_n "checking for $ac_header... " >&6; }
6633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6634 $as_echo_n "(cached) " >&6
6636 eval "$as_ac_Header=\$ac_header_preproc"
6638 ac_res=`eval 'as_val=${'$as_ac_Header'}
6639 $as_echo "$as_val"'`
6640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6641 $as_echo "$ac_res" >&6; }
6644 if test `eval 'as_val=${'$as_ac_Header'}
6645 $as_echo "$as_val"'` = yes; then
6646 cat >>confdefs.h <<_ACEOF
6647 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6654 # Emulation library used on NetBSD.
6655 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6656 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6657 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6658 $as_echo_n "(cached) " >&6
6660 ac_check_lib_save_LIBS=$LIBS
6661 LIBS="-lossaudio $LIBS"
6662 cat >conftest.$ac_ext <<_ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6669 /* Override any GCC internal prototype to avoid an error.
6670 Use char because int might match the return type of a GCC
6671 builtin and then its argument prototype would still apply. */
6679 return _oss_ioctl ();
6684 rm -f conftest.$ac_objext conftest$ac_exeext
6685 if { (ac_try="$ac_link"
6687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6688 *) ac_try_echo
=$ac_try;;
6690 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6691 $as_echo "$ac_try_echo") >&5
6692 (eval "$ac_link") 2>conftest.er1
6694 grep -v '^ *+' conftest.er1
>conftest.err
6696 cat conftest.err
>&5
6697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } && {
6699 test -z "$ac_c_werror_flag" ||
6700 test ! -s conftest.err
6701 } && test -s conftest
$ac_exeext && {
6702 test "$cross_compiling" = yes ||
6703 $as_test_x conftest
$ac_exeext
6705 ac_cv_lib_ossaudio__oss_ioctl
=yes
6707 $as_echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.
$ac_ext >&5
6710 ac_cv_lib_ossaudio__oss_ioctl
=no
6713 rm -rf conftest.dSYM
6714 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6715 conftest
$ac_exeext conftest.
$ac_ext
6716 LIBS
=$ac_check_lib_save_LIBS
6718 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6719 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6720 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6729 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6733 # Extract the first word of "pkg-config", so it can be a program name with args.
6734 set dummy pkg-config
; ac_word
=$2
6735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6738 $as_echo_n "(cached) " >&6
6742 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6749 test -z "$as_dir" && as_dir
=.
6750 for ac_exec_ext
in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6764 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6765 if test -n "$PKG_CONFIG"; then
6766 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6767 $as_echo "$PKG_CONFIG" >&6; }
6769 { $as_echo "$as_me:$LINENO: result: no" >&5
6770 $as_echo "no" >&6; }
6775 if test "$PKG_CONFIG" = "no" ; then
6778 PKG_CONFIG_MIN_VERSION
=0.9.0
6779 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6780 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6781 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6783 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6784 { $as_echo "$as_me:$LINENO: result: yes" >&5
6785 $as_echo "yes" >&6; }
6788 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6789 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6790 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6791 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6792 $as_echo "$ALSA_CFLAGS" >&6; }
6794 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6795 $as_echo_n "checking ALSA_LIBS... " >&6; }
6796 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6797 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6798 $as_echo "$ALSA_LIBS" >&6; }
6800 { $as_echo "$as_me:$LINENO: result: no" >&5
6801 $as_echo "no" >&6; }
6804 ## If we have a custom action on failure, don't print errors, but
6805 ## do set a variable so people can do so.
6806 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6813 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6814 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6818 if test $succeeded = yes; then
6824 if test $HAVE_ALSA = yes; then
6825 SAVE_CFLAGS
="$CFLAGS"
6826 SAVE_LDFLAGS
="$LDFLAGS"
6827 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6828 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6829 cat >conftest.
$ac_ext <<_ACEOF
6832 cat confdefs.h
>>conftest.
$ac_ext
6833 cat >>conftest.
$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6835 #include <asoundlib.h>
6839 snd_lib_error_set_handler (0);
6844 rm -f conftest.
$ac_objext
6845 if { (ac_try
="$ac_compile"
6847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6851 $as_echo "$ac_try_echo") >&5
6852 (eval "$ac_compile") 2>conftest.er1
6854 grep -v '^ *+' conftest.er1 >conftest.err
6856 cat conftest.err >&5
6857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } && {
6859 test -z "$ac_c_werror_flag" ||
6860 test ! -s conftest.err
6861 } && test -s conftest.$ac_objext; then
6862 emacs_alsa_normal=yes
6864 $as_echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6867 emacs_alsa_normal=no
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 if test "$emacs_alsa_normal" != yes; then
6872 cat >conftest.$ac_ext <<_ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6878 #include <alsa/asoundlib.h>
6882 snd_lib_error_set_handler (0);
6887 rm -f conftest.$ac_objext
6888 if { (ac_try="$ac_compile"
6890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6891 *) ac_try_echo
=$ac_try;;
6893 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6894 $as_echo "$ac_try_echo") >&5
6895 (eval "$ac_compile") 2>conftest.er1
6897 grep -v '^ *+' conftest.er1
>conftest.err
6899 cat conftest.err
>&5
6900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } && {
6902 test -z "$ac_c_werror_flag" ||
6903 test ! -s conftest.err
6904 } && test -s conftest.
$ac_objext; then
6905 emacs_alsa_subdir
=yes
6907 $as_echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.
$ac_ext >&5
6910 emacs_alsa_subdir
=no
6913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6914 if test "$emacs_alsa_subdir" != yes; then
6915 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6916 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6917 { (exit 1); exit 1; }; }
6919 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6922 CFLAGS
="$SAVE_CFLAGS"
6923 LDFLAGS
="$SAVE_LDFLAGS"
6924 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6925 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6927 cat >>confdefs.h
<<\_ACEOF
6960 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6961 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6962 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6963 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6964 sys
/utsname.h
pwd.h utmp.h
6966 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6967 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6968 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6969 $as_echo_n "checking for $ac_header... " >&6; }
6970 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6971 $as_echo_n "(cached) " >&6
6973 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6974 $as_echo "$as_val"'`
6975 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6976 $as_echo "$ac_res" >&6; }
6978 # Is the header compilable?
6979 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6980 $as_echo_n "checking $ac_header usability... " >&6; }
6981 cat >conftest.
$ac_ext <<_ACEOF
6984 cat confdefs.h
>>conftest.
$ac_ext
6985 cat >>conftest.
$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 $ac_includes_default
6988 #include <$ac_header>
6990 rm -f conftest.
$ac_objext
6991 if { (ac_try
="$ac_compile"
6993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998 (eval "$ac_compile") 2>conftest.er1
7000 grep -v '^ *+' conftest.er1 >conftest.err
7002 cat conftest.err >&5
7003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } && {
7005 test -z "$ac_c_werror_flag" ||
7006 test ! -s conftest.err
7007 } && test -s conftest.$ac_objext; then
7008 ac_header_compiler=yes
7010 $as_echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7013 ac_header_compiler=no
7016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7018 $as_echo "$ac_header_compiler" >&6; }
7020 # Is the header present?
7021 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7022 $as_echo_n "checking $ac_header presence... " >&6; }
7023 cat >conftest.$ac_ext <<_ACEOF
7026 cat confdefs.h >>conftest.$ac_ext
7027 cat >>conftest.$ac_ext <<_ACEOF
7028 /* end confdefs.h. */
7029 #include <$ac_header>
7031 if { (ac_try="$ac_cpp conftest.$ac_ext"
7033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7034 *) ac_try_echo
=$ac_try;;
7036 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7037 $as_echo "$ac_try_echo") >&5
7038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7040 grep -v '^ *+' conftest.er1
>conftest.err
7042 cat conftest.err
>&5
7043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } >/dev
/null
&& {
7045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7046 test ! -s conftest.err
7048 ac_header_preproc
=yes
7050 $as_echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.
$ac_ext >&5
7053 ac_header_preproc
=no
7056 rm -f conftest.err conftest.
$ac_ext
7057 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7058 $as_echo "$ac_header_preproc" >&6; }
7060 # So? What about this header?
7061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7064 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7066 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7067 ac_header_preproc
=yes
7070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7071 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7073 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7075 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7077 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7081 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7085 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7086 $as_echo_n "checking for $ac_header... " >&6; }
7087 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7088 $as_echo_n "(cached) " >&6
7090 eval "$as_ac_Header=\$ac_header_preproc"
7092 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7093 $as_echo "$as_val"'`
7094 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7095 $as_echo "$ac_res" >&6; }
7098 if test `eval 'as_val=${'$as_ac_Header'}
7099 $as_echo "$as_val"'` = yes; then
7100 cat >>confdefs.h
<<_ACEOF
7101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7109 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7110 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7111 cat >conftest.
$ac_ext <<_ACEOF
7114 cat confdefs.h
>>conftest.
$ac_ext
7115 cat >>conftest.
$ac_ext <<_ACEOF
7116 /* end confdefs.h. */
7117 #include <sys/personality.h>
7121 personality (PER_LINUX32)
7126 rm -f conftest.
$ac_objext
7127 if { (ac_try
="$ac_compile"
7129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7130 *) ac_try_echo=$ac_try;;
7132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7133 $as_echo "$ac_try_echo") >&5
7134 (eval "$ac_compile") 2>conftest.er1
7136 grep -v '^ *+' conftest.er1 >conftest.err
7138 cat conftest.err >&5
7139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && {
7141 test -z "$ac_c_werror_flag" ||
7142 test ! -s conftest.err
7143 } && test -s conftest.$ac_objext; then
7144 emacs_cv_personality_linux32=yes
7146 $as_echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7149 emacs_cv_personality_linux32=no
7152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7153 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7154 $as_echo "$emacs_cv_personality_linux32" >&6; }
7156 if test $emacs_cv_personality_linux32 = yes; then
7158 cat >>confdefs.h <<\_ACEOF
7159 #define HAVE_PERSONALITY_LINUX32 1
7165 for ac_header in term.h
7167 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7168 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7169 $as_echo_n "checking for $ac_header... " >&6; }
7170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7171 $as_echo_n "(cached) " >&6
7173 cat >conftest.$ac_ext <<_ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7179 #include <$ac_header>
7181 if { (ac_try="$ac_cpp conftest.$ac_ext"
7183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7184 *) ac_try_echo
=$ac_try;;
7186 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7187 $as_echo "$ac_try_echo") >&5
7188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7190 grep -v '^ *+' conftest.er1
>conftest.err
7192 cat conftest.err
>&5
7193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } >/dev
/null
&& {
7195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7196 test ! -s conftest.err
7198 eval "$as_ac_Header=yes"
7200 $as_echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.
$ac_ext >&5
7203 eval "$as_ac_Header=no"
7206 rm -f conftest.err conftest.
$ac_ext
7208 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7209 $as_echo "$as_val"'`
7210 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7211 $as_echo "$ac_res" >&6; }
7212 if test `eval 'as_val=${'$as_ac_Header'}
7213 $as_echo "$as_val"'` = yes; then
7214 cat >>confdefs.h
<<_ACEOF
7215 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7222 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7223 $as_echo_n "checking for ANSI C header files... " >&6; }
7224 if test "${ac_cv_header_stdc+set}" = set; then
7225 $as_echo_n "(cached) " >&6
7227 cat >conftest.
$ac_ext <<_ACEOF
7230 cat confdefs.h
>>conftest.
$ac_ext
7231 cat >>conftest.
$ac_ext <<_ACEOF
7232 /* end confdefs.h. */
7246 rm -f conftest.
$ac_objext
7247 if { (ac_try
="$ac_compile"
7249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7253 $as_echo "$ac_try_echo") >&5
7254 (eval "$ac_compile") 2>conftest.er1
7256 grep -v '^ *+' conftest.er1 >conftest.err
7258 cat conftest.err >&5
7259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } && {
7261 test -z "$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 } && test -s conftest.$ac_objext; then
7264 ac_cv_header_stdc=yes
7266 $as_echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7269 ac_cv_header_stdc=no
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7274 if test $ac_cv_header_stdc = yes; then
7275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7276 cat >conftest.$ac_ext <<_ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7286 $EGREP "memchr" >/dev/null 2>&1; then
7289 ac_cv_header_stdc=no
7295 if test $ac_cv_header_stdc = yes; then
7296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7297 cat >conftest.$ac_ext <<_ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h. */
7306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7307 $EGREP "free" >/dev/null 2>&1; then
7310 ac_cv_header_stdc=no
7316 if test $ac_cv_header_stdc = yes; then
7317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7318 if test "$cross_compiling" = yes; then
7321 cat >conftest.$ac_ext <<_ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7329 #if ((' ' & 0x0FF) == 0x020)
7330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7333 # define ISLOWER(c) \
7334 (('a' <= (c) && (c) <= 'i') \
7335 || ('j' <= (c) && (c) <= 'r') \
7336 || ('s' <= (c) && (c) <= 'z'))
7337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7345 for (i = 0; i < 256; i++)
7346 if (XOR (islower (i), ISLOWER (i))
7347 || toupper (i) != TOUPPER (i))
7352 rm -f conftest$ac_exeext
7353 if { (ac_try="$ac_link"
7355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7356 *) ac_try_echo
=$ac_try;;
7358 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7359 $as_echo "$ac_try_echo") >&5
7360 (eval "$ac_link") 2>&5
7362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7364 { (case "(($ac_try" in
7365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7366 *) ac_try_echo=$ac_try;;
7368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7369 $as_echo "$ac_try_echo") >&5
7370 (eval "$ac_try") 2>&5
7372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); }; }; then
7376 $as_echo "$as_me: program exited with status $ac_status" >&5
7377 $as_echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7381 ac_cv_header_stdc=no
7383 rm -rf conftest.dSYM
7384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7390 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7391 $as_echo "$ac_cv_header_stdc" >&6; }
7392 if test $ac_cv_header_stdc = yes; then
7394 cat >>confdefs.h <<\_ACEOF
7395 #define STDC_HEADERS 1
7400 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7401 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7402 if test "${ac_cv_header_time+set}" = set; then
7403 $as_echo_n "(cached) " >&6
7405 cat >conftest.$ac_ext <<_ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 #include <sys/types.h>
7412 #include <sys/time.h>
7418 if ((struct tm *) 0)
7424 rm -f conftest.$ac_objext
7425 if { (ac_try="$ac_compile"
7427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7428 *) ac_try_echo
=$ac_try;;
7430 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7431 $as_echo "$ac_try_echo") >&5
7432 (eval "$ac_compile") 2>conftest.er1
7434 grep -v '^ *+' conftest.er1
>conftest.err
7436 cat conftest.err
>&5
7437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); } && {
7439 test -z "$ac_c_werror_flag" ||
7440 test ! -s conftest.err
7441 } && test -s conftest.
$ac_objext; then
7442 ac_cv_header_time
=yes
7444 $as_echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.
$ac_ext >&5
7447 ac_cv_header_time
=no
7450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7452 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7453 $as_echo "$ac_cv_header_time" >&6; }
7454 if test $ac_cv_header_time = yes; then
7456 cat >>confdefs.h
<<\_ACEOF
7457 #define TIME_WITH_SYS_TIME 1
7462 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7463 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7464 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7465 $as_echo_n "(cached) " >&6
7467 cat >conftest.
$ac_ext <<_ACEOF
7470 cat confdefs.h
>>conftest.
$ac_ext
7471 cat >>conftest.
$ac_ext <<_ACEOF
7472 /* end confdefs.h. */
7473 $ac_includes_default
7485 rm -f conftest.
$ac_objext
7486 if { (ac_try
="$ac_compile"
7488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7489 *) ac_try_echo=$ac_try;;
7491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7492 $as_echo "$ac_try_echo") >&5
7493 (eval "$ac_compile") 2>conftest.er1
7495 grep -v '^ *+' conftest.er1 >conftest.err
7497 cat conftest.err >&5
7498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } && {
7500 test -z "$ac_c_werror_flag" ||
7501 test ! -s conftest.err
7502 } && test -s conftest.$ac_objext; then
7503 ac_cv_have_decl_sys_siglist=yes
7505 $as_echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7508 ac_cv_have_decl_sys_siglist=no
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7514 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7515 if test $ac_cv_have_decl_sys_siglist = yes; then
7517 cat >>confdefs.h <<_ACEOF
7518 #define HAVE_DECL_SYS_SIGLIST 1
7523 cat >>confdefs.h <<_ACEOF
7524 #define HAVE_DECL_SYS_SIGLIST 0
7531 if test $ac_cv_have_decl_sys_siglist != yes; then
7532 # For Tru64, at least:
7533 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7534 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7535 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7536 $as_echo_n "(cached) " >&6
7538 cat >conftest.$ac_ext <<_ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h. */
7544 $ac_includes_default
7548 #ifndef __sys_siglist
7549 (void) __sys_siglist;
7556 rm -f conftest.$ac_objext
7557 if { (ac_try="$ac_compile"
7559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7560 *) ac_try_echo
=$ac_try;;
7562 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7563 $as_echo "$ac_try_echo") >&5
7564 (eval "$ac_compile") 2>conftest.er1
7566 grep -v '^ *+' conftest.er1
>conftest.err
7568 cat conftest.err
>&5
7569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } && {
7571 test -z "$ac_c_werror_flag" ||
7572 test ! -s conftest.err
7573 } && test -s conftest.
$ac_objext; then
7574 ac_cv_have_decl___sys_siglist
=yes
7576 $as_echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.
$ac_ext >&5
7579 ac_cv_have_decl___sys_siglist
=no
7582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7584 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7585 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7586 if test $ac_cv_have_decl___sys_siglist = yes; then
7588 cat >>confdefs.h
<<_ACEOF
7589 #define HAVE_DECL___SYS_SIGLIST 1
7594 cat >>confdefs.h
<<_ACEOF
7595 #define HAVE_DECL___SYS_SIGLIST 0
7602 if test $ac_cv_have_decl___sys_siglist = yes; then
7604 cat >>confdefs.h
<<\_ACEOF
7605 #define sys_siglist __sys_siglist
7610 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7611 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7612 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7613 $as_echo_n "(cached) " >&6
7615 cat >conftest.
$ac_ext <<_ACEOF
7618 cat confdefs.h
>>conftest.
$ac_ext
7619 cat >>conftest.
$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 #include <sys/types.h>
7622 #include <sys/wait.h>
7624 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7627 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7635 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7640 rm -f conftest.
$ac_objext
7641 if { (ac_try
="$ac_compile"
7643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7647 $as_echo "$ac_try_echo") >&5
7648 (eval "$ac_compile") 2>conftest.er1
7650 grep -v '^ *+' conftest.er1 >conftest.err
7652 cat conftest.err >&5
7653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } && {
7655 test -z "$ac_c_werror_flag" ||
7656 test ! -s conftest.err
7657 } && test -s conftest.$ac_objext; then
7658 ac_cv_header_sys_wait_h=yes
7660 $as_echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7663 ac_cv_header_sys_wait_h=no
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7669 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7670 if test $ac_cv_header_sys_wait_h = yes; then
7672 cat >>confdefs.h <<\_ACEOF
7673 #define HAVE_SYS_WAIT_H 1
7679 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7680 $as_echo_n "checking for struct utimbuf... " >&6; }
7681 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7682 $as_echo_n "(cached) " >&6
7684 cat >conftest.$ac_ext <<_ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7690 #ifdef TIME_WITH_SYS_TIME
7691 #include <sys/time.h>
7694 #ifdef HAVE_SYS_TIME_H
7695 #include <sys/time.h>
7706 static struct utimbuf x; x.actime = x.modtime;
7711 rm -f conftest.$ac_objext
7712 if { (ac_try="$ac_compile"
7714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7715 *) ac_try_echo
=$ac_try;;
7717 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7718 $as_echo "$ac_try_echo") >&5
7719 (eval "$ac_compile") 2>conftest.er1
7721 grep -v '^ *+' conftest.er1
>conftest.err
7723 cat conftest.err
>&5
7724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } && {
7726 test -z "$ac_c_werror_flag" ||
7727 test ! -s conftest.err
7728 } && test -s conftest.
$ac_objext; then
7729 emacs_cv_struct_utimbuf
=yes
7731 $as_echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.
$ac_ext >&5
7734 emacs_cv_struct_utimbuf
=no
7737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7739 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7740 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7741 if test $emacs_cv_struct_utimbuf = yes; then
7743 cat >>confdefs.h
<<\_ACEOF
7744 #define HAVE_STRUCT_UTIMBUF 1
7749 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7750 $as_echo_n "checking return type of signal handlers... " >&6; }
7751 if test "${ac_cv_type_signal+set}" = set; then
7752 $as_echo_n "(cached) " >&6
7754 cat >conftest.
$ac_ext <<_ACEOF
7757 cat confdefs.h
>>conftest.
$ac_ext
7758 cat >>conftest.
$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7760 #include <sys/types.h>
7766 return *(signal (0, 0)) (0) == 1;
7771 rm -f conftest.
$ac_objext
7772 if { (ac_try
="$ac_compile"
7774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7778 $as_echo "$ac_try_echo") >&5
7779 (eval "$ac_compile") 2>conftest.er1
7781 grep -v '^ *+' conftest.er1 >conftest.err
7783 cat conftest.err >&5
7784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } && {
7786 test -z "$ac_c_werror_flag" ||
7787 test ! -s conftest.err
7788 } && test -s conftest.$ac_objext; then
7789 ac_cv_type_signal=int
7791 $as_echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 ac_cv_type_signal=void
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7800 $as_echo "$ac_cv_type_signal" >&6; }
7802 cat >>confdefs.h <<_ACEOF
7803 #define RETSIGTYPE $ac_cv_type_signal
7808 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7809 $as_echo_n "checking for speed_t... " >&6; }
7810 if test "${emacs_cv_speed_t+set}" = set; then
7811 $as_echo_n "(cached) " >&6
7813 cat >conftest.$ac_ext <<_ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7819 #include <termios.h>
7828 rm -f conftest.$ac_objext
7829 if { (ac_try="$ac_compile"
7831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7832 *) ac_try_echo
=$ac_try;;
7834 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7835 $as_echo "$ac_try_echo") >&5
7836 (eval "$ac_compile") 2>conftest.er1
7838 grep -v '^ *+' conftest.er1
>conftest.err
7840 cat conftest.err
>&5
7841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } && {
7843 test -z "$ac_c_werror_flag" ||
7844 test ! -s conftest.err
7845 } && test -s conftest.
$ac_objext; then
7846 emacs_cv_speed_t
=yes
7848 $as_echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.
$ac_ext >&5
7854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7856 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7857 $as_echo "$emacs_cv_speed_t" >&6; }
7858 if test $emacs_cv_speed_t = yes; then
7860 cat >>confdefs.h
<<\_ACEOF
7861 #define HAVE_SPEED_T 1
7866 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7867 $as_echo_n "checking for struct timeval... " >&6; }
7868 if test "${emacs_cv_struct_timeval+set}" = set; then
7869 $as_echo_n "(cached) " >&6
7871 cat >conftest.
$ac_ext <<_ACEOF
7874 cat confdefs.h
>>conftest.
$ac_ext
7875 cat >>conftest.
$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7877 #ifdef TIME_WITH_SYS_TIME
7878 #include <sys/time.h>
7881 #ifdef HAVE_SYS_TIME_H
7882 #include <sys/time.h>
7890 static struct timeval x; x.tv_sec = x.tv_usec;
7895 rm -f conftest.
$ac_objext
7896 if { (ac_try
="$ac_compile"
7898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7902 $as_echo "$ac_try_echo") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7905 grep -v '^ *+' conftest.er1 >conftest.err
7907 cat conftest.err >&5
7908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.$ac_objext; then
7913 emacs_cv_struct_timeval=yes
7915 $as_echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7918 emacs_cv_struct_timeval=no
7921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7924 $as_echo "$emacs_cv_struct_timeval" >&6; }
7925 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7926 if test $emacs_cv_struct_timeval = yes; then
7928 cat >>confdefs.h <<\_ACEOF
7929 #define HAVE_TIMEVAL 1
7934 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7935 $as_echo_n "checking for struct exception... " >&6; }
7936 if test "${emacs_cv_struct_exception+set}" = set; then
7937 $as_echo_n "(cached) " >&6
7939 cat >conftest.$ac_ext <<_ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7949 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7954 rm -f conftest.$ac_objext
7955 if { (ac_try="$ac_compile"
7957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7958 *) ac_try_echo
=$ac_try;;
7960 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7961 $as_echo "$ac_try_echo") >&5
7962 (eval "$ac_compile") 2>conftest.er1
7964 grep -v '^ *+' conftest.er1
>conftest.err
7966 cat conftest.err
>&5
7967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } && {
7969 test -z "$ac_c_werror_flag" ||
7970 test ! -s conftest.err
7971 } && test -s conftest.
$ac_objext; then
7972 emacs_cv_struct_exception
=yes
7974 $as_echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.
$ac_ext >&5
7977 emacs_cv_struct_exception
=no
7980 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7982 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7983 $as_echo "$emacs_cv_struct_exception" >&6; }
7984 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7985 if test $emacs_cv_struct_exception != yes; then
7987 cat >>confdefs.h
<<\_ACEOF
7988 #define NO_MATHERR 1
7994 for ac_header
in sys
/socket.h
7996 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7997 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7998 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7999 $as_echo_n "checking for $ac_header... " >&6; }
8000 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8001 $as_echo_n "(cached) " >&6
8003 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8004 $as_echo "$as_val"'`
8005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8006 $as_echo "$ac_res" >&6; }
8008 # Is the header compilable?
8009 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8010 $as_echo_n "checking $ac_header usability... " >&6; }
8011 cat >conftest.
$ac_ext <<_ACEOF
8014 cat confdefs.h
>>conftest.
$ac_ext
8015 cat >>conftest.
$ac_ext <<_ACEOF
8016 /* end confdefs.h. */
8017 $ac_includes_default
8018 #include <$ac_header>
8020 rm -f conftest.
$ac_objext
8021 if { (ac_try
="$ac_compile"
8023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8027 $as_echo "$ac_try_echo") >&5
8028 (eval "$ac_compile") 2>conftest.er1
8030 grep -v '^ *+' conftest.er1 >conftest.err
8032 cat conftest.err >&5
8033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } && {
8035 test -z "$ac_c_werror_flag" ||
8036 test ! -s conftest.err
8037 } && test -s conftest.$ac_objext; then
8038 ac_header_compiler=yes
8040 $as_echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8043 ac_header_compiler=no
8046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8048 $as_echo "$ac_header_compiler" >&6; }
8050 # Is the header present?
8051 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8052 $as_echo_n "checking $ac_header presence... " >&6; }
8053 cat >conftest.$ac_ext <<_ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 #include <$ac_header>
8061 if { (ac_try="$ac_cpp conftest.$ac_ext"
8063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8064 *) ac_try_echo
=$ac_try;;
8066 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8067 $as_echo "$ac_try_echo") >&5
8068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8070 grep -v '^ *+' conftest.er1
>conftest.err
8072 cat conftest.err
>&5
8073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } >/dev
/null
&& {
8075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8078 ac_header_preproc
=yes
8080 $as_echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.
$ac_ext >&5
8083 ac_header_preproc
=no
8086 rm -f conftest.err conftest.
$ac_ext
8087 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8088 $as_echo "$ac_header_preproc" >&6; }
8090 # So? What about this header?
8091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8094 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8097 ac_header_preproc
=yes
8100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8101 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8103 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8105 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8107 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8111 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8115 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8116 $as_echo_n "checking for $ac_header... " >&6; }
8117 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8118 $as_echo_n "(cached) " >&6
8120 eval "$as_ac_Header=\$ac_header_preproc"
8122 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8123 $as_echo "$as_val"'`
8124 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8125 $as_echo "$ac_res" >&6; }
8128 if test `eval 'as_val=${'$as_ac_Header'}
8129 $as_echo "$as_val"'` = yes; then
8130 cat >>confdefs.h
<<_ACEOF
8131 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8139 for ac_header
in net
/if.h
8141 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8142 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8143 $as_echo_n "checking for $ac_header... " >&6; }
8144 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8145 $as_echo_n "(cached) " >&6
8147 cat >conftest.
$ac_ext <<_ACEOF
8150 cat confdefs.h
>>conftest.
$ac_ext
8151 cat >>conftest.
$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 $ac_includes_default
8154 #if HAVE_SYS_SOCKET_H
8155 #include <sys/socket.h>
8158 #include <$ac_header>
8160 rm -f conftest.
$ac_objext
8161 if { (ac_try
="$ac_compile"
8163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8164 *) ac_try_echo=$ac_try;;
8166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8167 $as_echo "$ac_try_echo") >&5
8168 (eval "$ac_compile") 2>conftest.er1
8170 grep -v '^ *+' conftest.er1 >conftest.err
8172 cat conftest.err >&5
8173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } && {
8175 test -z "$ac_c_werror_flag" ||
8176 test ! -s conftest.err
8177 } && test -s conftest.$ac_objext; then
8178 eval "$as_ac_Header=yes"
8180 $as_echo "$as_me: failed program was:" >&5
8181 sed 's/^/| /' conftest.$ac_ext >&5
8183 eval "$as_ac_Header=no"
8186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188 ac_res=`eval 'as_val=${'$as_ac_Header'}
8189 $as_echo "$as_val"'`
8190 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8191 $as_echo "$ac_res" >&6; }
8192 if test `eval 'as_val=${'$as_ac_Header'}
8193 $as_echo "$as_val"'` = yes; then
8194 cat >>confdefs.h <<_ACEOF
8195 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8203 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8204 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8205 if test "${ac_cv_struct_tm+set}" = set; then
8206 $as_echo_n "(cached) " >&6
8208 cat >conftest.$ac_ext <<_ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8214 #include <sys/types.h>
8221 int *p = &tm.tm_sec;
8227 rm -f conftest.$ac_objext
8228 if { (ac_try="$ac_compile"
8230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8231 *) ac_try_echo
=$ac_try;;
8233 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8234 $as_echo "$ac_try_echo") >&5
8235 (eval "$ac_compile") 2>conftest.er1
8237 grep -v '^ *+' conftest.er1
>conftest.err
8239 cat conftest.err
>&5
8240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } && {
8242 test -z "$ac_c_werror_flag" ||
8243 test ! -s conftest.err
8244 } && test -s conftest.
$ac_objext; then
8245 ac_cv_struct_tm
=time.h
8247 $as_echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.
$ac_ext >&5
8250 ac_cv_struct_tm
=sys
/time.h
8253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8255 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8256 $as_echo "$ac_cv_struct_tm" >&6; }
8257 if test $ac_cv_struct_tm = sys
/time.h
; then
8259 cat >>confdefs.h
<<\_ACEOF
8260 #define TM_IN_SYS_TIME 1
8265 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8266 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8267 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8268 $as_echo_n "(cached) " >&6
8270 cat >conftest.
$ac_ext <<_ACEOF
8273 cat confdefs.h
>>conftest.
$ac_ext
8274 cat >>conftest.
$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 #include <sys/types.h>
8277 #include <$ac_cv_struct_tm>
8283 static struct tm ac_aggr;
8284 if (ac_aggr.tm_zone)
8290 rm -f conftest.
$ac_objext
8291 if { (ac_try
="$ac_compile"
8293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8297 $as_echo "$ac_try_echo") >&5
8298 (eval "$ac_compile") 2>conftest.er1
8300 grep -v '^ *+' conftest.er1 >conftest.err
8302 cat conftest.err >&5
8303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } && {
8305 test -z "$ac_c_werror_flag" ||
8306 test ! -s conftest.err
8307 } && test -s conftest.$ac_objext; then
8308 ac_cv_member_struct_tm_tm_zone=yes
8310 $as_echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8313 cat >conftest.$ac_ext <<_ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 #include <sys/types.h>
8320 #include <$ac_cv_struct_tm>
8326 static struct tm ac_aggr;
8327 if (sizeof ac_aggr.tm_zone)
8333 rm -f conftest.$ac_objext
8334 if { (ac_try="$ac_compile"
8336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8337 *) ac_try_echo
=$ac_try;;
8339 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8340 $as_echo "$ac_try_echo") >&5
8341 (eval "$ac_compile") 2>conftest.er1
8343 grep -v '^ *+' conftest.er1
>conftest.err
8345 cat conftest.err
>&5
8346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } && {
8348 test -z "$ac_c_werror_flag" ||
8349 test ! -s conftest.err
8350 } && test -s conftest.
$ac_objext; then
8351 ac_cv_member_struct_tm_tm_zone
=yes
8353 $as_echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.
$ac_ext >&5
8356 ac_cv_member_struct_tm_tm_zone
=no
8359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8364 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8365 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8366 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8368 cat >>confdefs.h
<<_ACEOF
8369 #define HAVE_STRUCT_TM_TM_ZONE 1
8375 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8377 cat >>confdefs.h
<<\_ACEOF
8378 #define HAVE_TM_ZONE 1
8382 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8383 $as_echo_n "checking whether tzname is declared... " >&6; }
8384 if test "${ac_cv_have_decl_tzname+set}" = set; then
8385 $as_echo_n "(cached) " >&6
8387 cat >conftest.
$ac_ext <<_ACEOF
8390 cat confdefs.h
>>conftest.
$ac_ext
8391 cat >>conftest.
$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8406 rm -f conftest.
$ac_objext
8407 if { (ac_try
="$ac_compile"
8409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8410 *) ac_try_echo=$ac_try;;
8412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8413 $as_echo "$ac_try_echo") >&5
8414 (eval "$ac_compile") 2>conftest.er1
8416 grep -v '^ *+' conftest.er1 >conftest.err
8418 cat conftest.err >&5
8419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && {
8421 test -z "$ac_c_werror_flag" ||
8422 test ! -s conftest.err
8423 } && test -s conftest.$ac_objext; then
8424 ac_cv_have_decl_tzname=yes
8426 $as_echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 ac_cv_have_decl_tzname=no
8432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8435 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8436 if test $ac_cv_have_decl_tzname = yes; then
8438 cat >>confdefs.h <<_ACEOF
8439 #define HAVE_DECL_TZNAME 1
8444 cat >>confdefs.h <<_ACEOF
8445 #define HAVE_DECL_TZNAME 0
8452 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8453 $as_echo_n "checking for tzname... " >&6; }
8454 if test "${ac_cv_var_tzname+set}" = set; then
8455 $as_echo_n "(cached) " >&6
8457 cat >conftest.$ac_ext <<_ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8464 #if !HAVE_DECL_TZNAME
8465 extern char *tzname[];
8471 return tzname[0][0];
8476 rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (ac_try="$ac_link"
8479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8480 *) ac_try_echo
=$ac_try;;
8482 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8483 $as_echo "$ac_try_echo") >&5
8484 (eval "$ac_link") 2>conftest.er1
8486 grep -v '^ *+' conftest.er1
>conftest.err
8488 cat conftest.err
>&5
8489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } && {
8491 test -z "$ac_c_werror_flag" ||
8492 test ! -s conftest.err
8493 } && test -s conftest
$ac_exeext && {
8494 test "$cross_compiling" = yes ||
8495 $as_test_x conftest
$ac_exeext
8497 ac_cv_var_tzname
=yes
8499 $as_echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.
$ac_ext >&5
8505 rm -rf conftest.dSYM
8506 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8507 conftest
$ac_exeext conftest.
$ac_ext
8509 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8510 $as_echo "$ac_cv_var_tzname" >&6; }
8511 if test $ac_cv_var_tzname = yes; then
8513 cat >>confdefs.h
<<\_ACEOF
8514 #define HAVE_TZNAME 1
8520 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8521 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8522 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8523 $as_echo_n "(cached) " >&6
8525 cat >conftest.
$ac_ext <<_ACEOF
8528 cat confdefs.h
>>conftest.
$ac_ext
8529 cat >>conftest.
$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8536 static struct tm ac_aggr;
8537 if (ac_aggr.tm_gmtoff)
8543 rm -f conftest.
$ac_objext
8544 if { (ac_try
="$ac_compile"
8546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8550 $as_echo "$ac_try_echo") >&5
8551 (eval "$ac_compile") 2>conftest.er1
8553 grep -v '^ *+' conftest.er1 >conftest.err
8555 cat conftest.err >&5
8556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } && {
8558 test -z "$ac_c_werror_flag" ||
8559 test ! -s conftest.err
8560 } && test -s conftest.$ac_objext; then
8561 ac_cv_member_struct_tm_tm_gmtoff=yes
8563 $as_echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8566 cat >conftest.$ac_ext <<_ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8577 static struct tm ac_aggr;
8578 if (sizeof ac_aggr.tm_gmtoff)
8584 rm -f conftest.$ac_objext
8585 if { (ac_try="$ac_compile"
8587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8588 *) ac_try_echo
=$ac_try;;
8590 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8591 $as_echo "$ac_try_echo") >&5
8592 (eval "$ac_compile") 2>conftest.er1
8594 grep -v '^ *+' conftest.er1
>conftest.err
8596 cat conftest.err
>&5
8597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } && {
8599 test -z "$ac_c_werror_flag" ||
8600 test ! -s conftest.err
8601 } && test -s conftest.
$ac_objext; then
8602 ac_cv_member_struct_tm_tm_gmtoff
=yes
8604 $as_echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.
$ac_ext >&5
8607 ac_cv_member_struct_tm_tm_gmtoff
=no
8610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8615 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8616 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8617 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8619 cat >>confdefs.h
<<\_ACEOF
8620 #define HAVE_TM_GMTOFF 1
8625 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8626 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8627 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8628 $as_echo_n "(cached) " >&6
8630 cat >conftest.
$ac_ext <<_ACEOF
8633 cat confdefs.h
>>conftest.
$ac_ext
8634 cat >>conftest.
$ac_ext <<_ACEOF
8635 /* end confdefs.h. */
8636 $ac_includes_default
8637 #if HAVE_SYS_SOCKET_H
8638 #include <sys/socket.h>
8647 static struct ifreq ac_aggr;
8648 if (ac_aggr.ifr_flags)
8654 rm -f conftest.
$ac_objext
8655 if { (ac_try
="$ac_compile"
8657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8661 $as_echo "$ac_try_echo") >&5
8662 (eval "$ac_compile") 2>conftest.er1
8664 grep -v '^ *+' conftest.er1 >conftest.err
8666 cat conftest.err >&5
8667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } && {
8669 test -z "$ac_c_werror_flag" ||
8670 test ! -s conftest.err
8671 } && test -s conftest.$ac_objext; then
8672 ac_cv_member_struct_ifreq_ifr_flags=yes
8674 $as_echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8677 cat >conftest.$ac_ext <<_ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8683 $ac_includes_default
8684 #if HAVE_SYS_SOCKET_H
8685 #include <sys/socket.h>
8694 static struct ifreq ac_aggr;
8695 if (sizeof ac_aggr.ifr_flags)
8701 rm -f conftest.$ac_objext
8702 if { (ac_try="$ac_compile"
8704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8705 *) ac_try_echo
=$ac_try;;
8707 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8708 $as_echo "$ac_try_echo") >&5
8709 (eval "$ac_compile") 2>conftest.er1
8711 grep -v '^ *+' conftest.er1
>conftest.err
8713 cat conftest.err
>&5
8714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && {
8716 test -z "$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest.
$ac_objext; then
8719 ac_cv_member_struct_ifreq_ifr_flags
=yes
8721 $as_echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.
$ac_ext >&5
8724 ac_cv_member_struct_ifreq_ifr_flags
=no
8727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8732 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8733 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8734 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8736 cat >>confdefs.h
<<_ACEOF
8737 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8742 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8743 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8744 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8745 $as_echo_n "(cached) " >&6
8747 cat >conftest.
$ac_ext <<_ACEOF
8750 cat confdefs.h
>>conftest.
$ac_ext
8751 cat >>conftest.
$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 $ac_includes_default
8754 #if HAVE_SYS_SOCKET_H
8755 #include <sys/socket.h>
8764 static struct ifreq ac_aggr;
8765 if (ac_aggr.ifr_hwaddr)
8771 rm -f conftest.
$ac_objext
8772 if { (ac_try
="$ac_compile"
8774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8778 $as_echo "$ac_try_echo") >&5
8779 (eval "$ac_compile") 2>conftest.er1
8781 grep -v '^ *+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && {
8786 test -z "$ac_c_werror_flag" ||
8787 test ! -s conftest.err
8788 } && test -s conftest.$ac_objext; then
8789 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8791 $as_echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8794 cat >conftest.$ac_ext <<_ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 $ac_includes_default
8801 #if HAVE_SYS_SOCKET_H
8802 #include <sys/socket.h>
8811 static struct ifreq ac_aggr;
8812 if (sizeof ac_aggr.ifr_hwaddr)
8818 rm -f conftest.$ac_objext
8819 if { (ac_try="$ac_compile"
8821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8822 *) ac_try_echo
=$ac_try;;
8824 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8825 $as_echo "$ac_try_echo") >&5
8826 (eval "$ac_compile") 2>conftest.er1
8828 grep -v '^ *+' conftest.er1
>conftest.err
8830 cat conftest.err
>&5
8831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } && {
8833 test -z "$ac_c_werror_flag" ||
8834 test ! -s conftest.err
8835 } && test -s conftest.
$ac_objext; then
8836 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8838 $as_echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.
$ac_ext >&5
8841 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8849 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8850 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8851 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8853 cat >>confdefs.h
<<_ACEOF
8854 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8859 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8860 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8861 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8862 $as_echo_n "(cached) " >&6
8864 cat >conftest.
$ac_ext <<_ACEOF
8867 cat confdefs.h
>>conftest.
$ac_ext
8868 cat >>conftest.
$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8870 $ac_includes_default
8871 #if HAVE_SYS_SOCKET_H
8872 #include <sys/socket.h>
8881 static struct ifreq ac_aggr;
8882 if (ac_aggr.ifr_netmask)
8888 rm -f conftest.
$ac_objext
8889 if { (ac_try
="$ac_compile"
8891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8895 $as_echo "$ac_try_echo") >&5
8896 (eval "$ac_compile") 2>conftest.er1
8898 grep -v '^ *+' conftest.er1 >conftest.err
8900 cat conftest.err >&5
8901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } && {
8903 test -z "$ac_c_werror_flag" ||
8904 test ! -s conftest.err
8905 } && test -s conftest.$ac_objext; then
8906 ac_cv_member_struct_ifreq_ifr_netmask=yes
8908 $as_echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 cat >conftest.$ac_ext <<_ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8917 $ac_includes_default
8918 #if HAVE_SYS_SOCKET_H
8919 #include <sys/socket.h>
8928 static struct ifreq ac_aggr;
8929 if (sizeof ac_aggr.ifr_netmask)
8935 rm -f conftest.$ac_objext
8936 if { (ac_try="$ac_compile"
8938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8939 *) ac_try_echo
=$ac_try;;
8941 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8942 $as_echo "$ac_try_echo") >&5
8943 (eval "$ac_compile") 2>conftest.er1
8945 grep -v '^ *+' conftest.er1
>conftest.err
8947 cat conftest.err
>&5
8948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } && {
8950 test -z "$ac_c_werror_flag" ||
8951 test ! -s conftest.err
8952 } && test -s conftest.
$ac_objext; then
8953 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8955 $as_echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.
$ac_ext >&5
8958 ac_cv_member_struct_ifreq_ifr_netmask
=no
8961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8966 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8967 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8968 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8970 cat >>confdefs.h
<<_ACEOF
8971 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8976 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8977 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8978 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8979 $as_echo_n "(cached) " >&6
8981 cat >conftest.
$ac_ext <<_ACEOF
8984 cat confdefs.h
>>conftest.
$ac_ext
8985 cat >>conftest.
$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8987 $ac_includes_default
8988 #if HAVE_SYS_SOCKET_H
8989 #include <sys/socket.h>
8998 static struct ifreq ac_aggr;
8999 if (ac_aggr.ifr_broadaddr)
9005 rm -f conftest.
$ac_objext
9006 if { (ac_try
="$ac_compile"
9008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9009 *) ac_try_echo=$ac_try;;
9011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9012 $as_echo "$ac_try_echo") >&5
9013 (eval "$ac_compile") 2>conftest.er1
9015 grep -v '^ *+' conftest.er1 >conftest.err
9017 cat conftest.err >&5
9018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } && {
9020 test -z "$ac_c_werror_flag" ||
9021 test ! -s conftest.err
9022 } && test -s conftest.$ac_objext; then
9023 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9025 $as_echo "$as_me: failed program was:" >&5
9026 sed 's/^/| /' conftest.$ac_ext >&5
9028 cat >conftest.$ac_ext <<_ACEOF
9031 cat confdefs.h >>conftest.$ac_ext
9032 cat >>conftest.$ac_ext <<_ACEOF
9033 /* end confdefs.h. */
9034 $ac_includes_default
9035 #if HAVE_SYS_SOCKET_H
9036 #include <sys/socket.h>
9045 static struct ifreq ac_aggr;
9046 if (sizeof ac_aggr.ifr_broadaddr)
9052 rm -f conftest.$ac_objext
9053 if { (ac_try="$ac_compile"
9055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9056 *) ac_try_echo
=$ac_try;;
9058 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9059 $as_echo "$ac_try_echo") >&5
9060 (eval "$ac_compile") 2>conftest.er1
9062 grep -v '^ *+' conftest.er1
>conftest.err
9064 cat conftest.err
>&5
9065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } && {
9067 test -z "$ac_c_werror_flag" ||
9068 test ! -s conftest.err
9069 } && test -s conftest.
$ac_objext; then
9070 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
9072 $as_echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.
$ac_ext >&5
9075 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
9078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9083 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9084 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9085 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9087 cat >>confdefs.h
<<_ACEOF
9088 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9093 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9094 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9095 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9096 $as_echo_n "(cached) " >&6
9098 cat >conftest.
$ac_ext <<_ACEOF
9101 cat confdefs.h
>>conftest.
$ac_ext
9102 cat >>conftest.
$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 $ac_includes_default
9105 #if HAVE_SYS_SOCKET_H
9106 #include <sys/socket.h>
9115 static struct ifreq ac_aggr;
9116 if (ac_aggr.ifr_addr)
9122 rm -f conftest.
$ac_objext
9123 if { (ac_try
="$ac_compile"
9125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9129 $as_echo "$ac_try_echo") >&5
9130 (eval "$ac_compile") 2>conftest.er1
9132 grep -v '^ *+' conftest.er1 >conftest.err
9134 cat conftest.err >&5
9135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } && {
9137 test -z "$ac_c_werror_flag" ||
9138 test ! -s conftest.err
9139 } && test -s conftest.$ac_objext; then
9140 ac_cv_member_struct_ifreq_ifr_addr=yes
9142 $as_echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9145 cat >conftest.$ac_ext <<_ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9151 $ac_includes_default
9152 #if HAVE_SYS_SOCKET_H
9153 #include <sys/socket.h>
9162 static struct ifreq ac_aggr;
9163 if (sizeof ac_aggr.ifr_addr)
9169 rm -f conftest.$ac_objext
9170 if { (ac_try="$ac_compile"
9172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9173 *) ac_try_echo
=$ac_try;;
9175 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9176 $as_echo "$ac_try_echo") >&5
9177 (eval "$ac_compile") 2>conftest.er1
9179 grep -v '^ *+' conftest.er1
>conftest.err
9181 cat conftest.err
>&5
9182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); } && {
9184 test -z "$ac_c_werror_flag" ||
9185 test ! -s conftest.err
9186 } && test -s conftest.
$ac_objext; then
9187 ac_cv_member_struct_ifreq_ifr_addr
=yes
9189 $as_echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.
$ac_ext >&5
9192 ac_cv_member_struct_ifreq_ifr_addr
=no
9195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9200 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9201 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9202 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9204 cat >>confdefs.h
<<_ACEOF
9205 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9213 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9214 $as_echo_n "checking for function prototypes... " >&6; }
9215 if test "$ac_cv_prog_cc_c89" != no
; then
9216 { $as_echo "$as_me:$LINENO: result: yes" >&5
9217 $as_echo "yes" >&6; }
9219 cat >>confdefs.h
<<\_ACEOF
9220 #define PROTOTYPES 1
9224 cat >>confdefs.h
<<\_ACEOF
9225 #define __PROTOTYPES 1
9229 { $as_echo "$as_me:$LINENO: result: no" >&5
9230 $as_echo "no" >&6; }
9233 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9234 $as_echo_n "checking for working volatile... " >&6; }
9235 if test "${ac_cv_c_volatile+set}" = set; then
9236 $as_echo_n "(cached) " >&6
9238 cat >conftest.
$ac_ext <<_ACEOF
9241 cat confdefs.h
>>conftest.
$ac_ext
9242 cat >>conftest.
$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9250 int * volatile y = (int *) 0;
9256 rm -f conftest.
$ac_objext
9257 if { (ac_try
="$ac_compile"
9259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9260 *) ac_try_echo=$ac_try;;
9262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9263 $as_echo "$ac_try_echo") >&5
9264 (eval "$ac_compile") 2>conftest.er1
9266 grep -v '^ *+' conftest.er1 >conftest.err
9268 cat conftest.err >&5
9269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } && {
9271 test -z "$ac_c_werror_flag" ||
9272 test ! -s conftest.err
9273 } && test -s conftest.$ac_objext; then
9274 ac_cv_c_volatile=yes
9276 $as_echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9284 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9285 $as_echo "$ac_cv_c_volatile" >&6; }
9286 if test $ac_cv_c_volatile = no; then
9288 cat >>confdefs.h <<\_ACEOF
9289 #define volatile /**/
9294 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9295 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9296 if test "${ac_cv_c_const+set}" = set; then
9297 $as_echo_n "(cached) " >&6
9299 cat >conftest.$ac_ext <<_ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9309 /* FIXME: Include the comments suggested by Paul. */
9311 /* Ultrix mips cc rejects this. */
9312 typedef int charset[2];
9314 /* SunOS 4.1.1 cc rejects this. */
9315 char const *const *pcpcc;
9317 /* NEC SVR4.0.2 mips cc rejects this. */
9318 struct point {int x, y;};
9319 static struct point const zero = {0,0};
9320 /* AIX XL C 1.02.0.0 rejects this.
9321 It does not let you subtract one const X* pointer from another in
9322 an arm of an if-expression whose if-part is not a constant
9324 const char *g = "string";
9325 pcpcc = &g + (g ? g-g : 0);
9326 /* HPUX 7.0 cc rejects these. */
9328 ppc = (char**) pcpcc;
9329 pcpcc = (char const *const *) ppc;
9330 { /* SCO 3.2v4 cc rejects this. */
9332 char const *s = 0 ? (char *) 0 : (char const *) 0;
9337 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9339 const int *foo = &x[0];
9342 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9343 typedef const int *iptr;
9347 { /* AIX XL C 1.02.0.0 rejects this saying
9348 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9349 struct s { int j; const int *ap[3]; };
9350 struct s *b; b->j = 5;
9352 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9356 return !cs[0] && !zero.x;
9363 rm -f conftest.$ac_objext
9364 if { (ac_try="$ac_compile"
9366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9367 *) ac_try_echo
=$ac_try;;
9369 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9370 $as_echo "$ac_try_echo") >&5
9371 (eval "$ac_compile") 2>conftest.er1
9373 grep -v '^ *+' conftest.er1
>conftest.err
9375 cat conftest.err
>&5
9376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } && {
9378 test -z "$ac_c_werror_flag" ||
9379 test ! -s conftest.err
9380 } && test -s conftest.
$ac_objext; then
9383 $as_echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.
$ac_ext >&5
9389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9391 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9392 $as_echo "$ac_cv_c_const" >&6; }
9393 if test $ac_cv_c_const = no
; then
9395 cat >>confdefs.h
<<\_ACEOF
9401 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9402 $as_echo_n "checking for void * support... " >&6; }
9403 if test "${emacs_cv_void_star+set}" = set; then
9404 $as_echo_n "(cached) " >&6
9406 cat >conftest.
$ac_ext <<_ACEOF
9409 cat confdefs.h
>>conftest.
$ac_ext
9410 cat >>conftest.
$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9421 rm -f conftest.
$ac_objext
9422 if { (ac_try
="$ac_compile"
9424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9428 $as_echo "$ac_try_echo") >&5
9429 (eval "$ac_compile") 2>conftest.er1
9431 grep -v '^ *+' conftest.er1 >conftest.err
9433 cat conftest.err >&5
9434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest.$ac_objext; then
9439 emacs_cv_void_star=yes
9441 $as_echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9444 emacs_cv_void_star=no
9447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9450 $as_echo "$emacs_cv_void_star" >&6; }
9451 if test $emacs_cv_void_star = yes; then
9452 cat >>confdefs.h <<\_ACEOF
9453 #define POINTER_TYPE void
9457 cat >>confdefs.h <<\_ACEOF
9458 #define POINTER_TYPE char
9467 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9468 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9470 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9471 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9472 $as_echo_n "(cached) " >&6
9474 cat >conftest.make <<\_ACEOF
9477 @echo '@@@%%%=$(MAKE)=@@@%%%'
9479 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9480 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9482 eval ac_cv_prog_make_${ac_make}_set=yes;;
9484 eval ac_cv_prog_make_${ac_make}_set=no;;
9488 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9489 { $as_echo "$as_me:$LINENO: result: yes" >&5
9490 $as_echo "yes" >&6; }
9493 { $as_echo "$as_me:$LINENO: result: no" >&5
9494 $as_echo "no" >&6; }
9495 SET_MAKE="MAKE=${MAKE-make}"
9499 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9500 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9501 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9503 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9504 if test "x$testval" != x; then
9507 ac_enable_autodepend=no
9509 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9510 $as_echo "$HAVE_GNU_MAKE" >&6; }
9511 if test $HAVE_GNU_MAKE = yes; then
9512 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9513 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9514 SAVE_CFLAGS="$CFLAGS"
9515 CFLAGS="$CFLAGS -MMD -MF deps.d"
9516 cat >conftest.$ac_ext <<_ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9531 rm -f conftest.$ac_objext
9532 if { (ac_try="$ac_compile"
9534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9535 *) ac_try_echo
=$ac_try;;
9537 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9538 $as_echo "$ac_try_echo") >&5
9539 (eval "$ac_compile") 2>conftest.er1
9541 grep -v '^ *+' conftest.er1
>conftest.err
9543 cat conftest.err
>&5
9544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } && {
9546 test -z "$ac_c_werror_flag" ||
9547 test ! -s conftest.err
9548 } && test -s conftest.
$ac_objext; then
9551 $as_echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.
$ac_ext >&5
9554 ac_enable_autodepend
=no
9557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9558 CFLAGS
="$SAVE_CFLAGS"
9559 test -f deps.d || ac_enable_autodepend
=no
9561 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9562 $as_echo "$ac_enable_autodepend" >&6; }
9564 if test $ac_enable_autodepend = yes; then
9566 cat >>confdefs.h
<<\_ACEOF
9567 #define AUTO_DEPEND 1
9573 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9574 $as_echo_n "checking for long file names... " >&6; }
9575 if test "${ac_cv_sys_long_file_names+set}" = set; then
9576 $as_echo_n "(cached) " >&6
9578 ac_cv_sys_long_file_names
=yes
9579 # Test for long file names in all the places we know might matter:
9580 # . the current directory, where building will happen
9581 # $prefix/lib where we will be installing things
9582 # $exec_prefix/lib likewise
9583 # $TMPDIR if set, where it might want to write temporary files
9584 # /tmp where it might want to write temporary files
9587 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9588 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9589 # in the usual case where exec_prefix is '${prefix}'.
9591 . |
/* | ?
:[\\/]*) ;; #(
9594 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9595 ac_xdir
=$ac_dir/cf$$
9596 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9597 ac_tf1
=$ac_xdir/conftest9012345
9598 ac_tf2
=$ac_xdir/conftest9012346
9599 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9600 ac_cv_sys_long_file_names
=no
9601 rm -f -r "$ac_xdir" 2>/dev
/null
9602 test $ac_cv_sys_long_file_names = no
&& break
9605 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9606 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9607 if test $ac_cv_sys_long_file_names = yes; then
9609 cat >>confdefs.h
<<\_ACEOF
9610 #define HAVE_LONG_FILE_NAMES 1
9616 #### Choose a window system.
9618 { $as_echo "$as_me:$LINENO: checking for X" >&5
9619 $as_echo_n "checking for X... " >&6; }
9622 # Check whether --with-x was given.
9623 if test "${with_x+set}" = set; then
9627 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9628 if test "x$with_x" = xno
; then
9629 # The user explicitly disabled X.
9632 case $x_includes,$x_libraries in #(
9633 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9634 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9635 { (exit 1); exit 1; }; };; #(
9636 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9637 $as_echo_n "(cached) " >&6
9639 # One or both of the vars are not set, and there is no cached value.
9640 ac_x_includes
=no ac_x_libraries
=no
9641 rm -f -r conftest.dir
9642 if mkdir conftest.dir
; then
9644 cat >Imakefile
<<'_ACEOF'
9646 @echo incroot='${INCROOT}'
9648 @echo usrlibdir='${USRLIBDIR}'
9650 @echo libdir='${LIBDIR}'
9652 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9653 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9654 for ac_var
in incroot usrlibdir libdir
; do
9655 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9657 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9658 for ac_extension
in a so sl dylib la dll
; do
9659 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9660 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9661 ac_im_usrlibdir
=$ac_im_libdir; break
9664 # Screen out bogus values from the imake configuration. They are
9665 # bogus both because they are the default anyway, and because
9666 # using them would break gcc on systems where it needs fixed includes.
9667 case $ac_im_incroot in
9668 /usr
/include
) ac_x_includes
= ;;
9669 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9671 case $ac_im_usrlibdir in
9673 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9677 rm -f -r conftest.dir
9680 # Standard set of common directories for X headers.
9681 # Check X11 before X11Rn because it is often a symlink to the current release.
9693 /usr/local/X11/include
9694 /usr/local/X11R6/include
9695 /usr/local/X11R5/include
9696 /usr/local/X11R4/include
9698 /usr/local/include/X11
9699 /usr/local/include/X11R6
9700 /usr/local/include/X11R5
9701 /usr/local/include/X11R4
9705 /usr/XFree86/include/X11
9709 /usr/unsupported/include
9711 /usr/local/x11r5/include
9712 /usr/lpp/Xamples/include
9714 /usr/openwin/include
9715 /usr/openwin/share/include'
9717 if test "$ac_x_includes" = no
; then
9718 # Guess where to find include files, by looking for Xlib.h.
9719 # First, try using that file with no special directory specified.
9720 cat >conftest.
$ac_ext <<_ACEOF
9723 cat confdefs.h
>>conftest.
$ac_ext
9724 cat >>conftest.
$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9726 #include <X11/Xlib.h>
9728 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9734 $as_echo "$ac_try_echo") >&5
9735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } >/dev/null && {
9742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9743 test ! -s conftest.err
9745 # We can compile using X headers with no special include directory.
9748 $as_echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9751 for ac_dir in $ac_x_header_dirs; do
9752 if test -r "$ac_dir/X11/Xlib.h"; then
9753 ac_x_includes=$ac_dir
9759 rm -f conftest.err conftest.$ac_ext
9760 fi # $ac_x_includes = no
9762 if test "$ac_x_libraries" = no; then
9763 # Check for the libraries.
9764 # See if we find them without any special options.
9765 # Don't add to $LIBS permanently.
9768 cat >conftest.$ac_ext <<_ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9774 #include <X11/Xlib.h>
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (ac_try="$ac_link"
9786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9787 *) ac_try_echo
=$ac_try;;
9789 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9790 $as_echo "$ac_try_echo") >&5
9791 (eval "$ac_link") 2>conftest.er1
9793 grep -v '^ *+' conftest.er1
>conftest.err
9795 cat conftest.err
>&5
9796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 (exit $ac_status); } && {
9798 test -z "$ac_c_werror_flag" ||
9799 test ! -s conftest.err
9800 } && test -s conftest
$ac_exeext && {
9801 test "$cross_compiling" = yes ||
9802 $as_test_x conftest
$ac_exeext
9805 # We can link X programs with no special library path.
9808 $as_echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.
$ac_ext >&5
9812 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9814 # Don't even attempt the hair of trying to link an X program!
9815 for ac_extension
in a so sl dylib la dll
; do
9816 if test -r "$ac_dir/libX11.$ac_extension"; then
9817 ac_x_libraries
=$ac_dir
9824 rm -rf conftest.dSYM
9825 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9826 conftest
$ac_exeext conftest.
$ac_ext
9827 fi # $ac_x_libraries = no
9829 case $ac_x_includes,$ac_x_libraries in #(
9831 # Didn't find X, or a directory has "'" in its name.
9832 ac_cv_have_x
="have_x=no";; #(
9834 # Record where we found X for the cache.
9835 ac_cv_have_x
="have_x=yes\
9836 ac_x_includes='$ac_x_includes'\
9837 ac_x_libraries='$ac_x_libraries'"
9843 eval "$ac_cv_have_x"
9846 if test "$have_x" != yes; then
9847 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9848 $as_echo "$have_x" >&6; }
9851 # If each of the values was on the command line, it overrides each guess.
9852 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9853 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9854 # Update the cache value to reflect the command line values.
9855 ac_cv_have_x
="have_x=yes\
9856 ac_x_includes='$x_includes'\
9857 ac_x_libraries='$x_libraries'"
9858 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9859 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9862 if test "$no_x" = yes; then
9868 ## Workaround for bug in autoconf <= 2.62.
9869 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9870 ## No need to do anything special for these standard directories.
9871 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9873 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9877 LD_SWITCH_X_SITE_AUX
=
9878 LD_SWITCH_X_SITE_AUX_RPATH
=
9879 if test "${x_libraries}" != NONE
; then
9880 if test -n "${x_libraries}"; then
9881 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9882 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9883 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9885 x_default_search_path
=""
9886 x_search_path
=${x_libraries}
9887 if test -z "${x_search_path}"; then
9888 x_search_path
=/usr
/lib
9890 for x_library
in `echo ${x_search_path}: | \
9891 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9893 ${x_library}/X11/%L/%T/%N%C%S:\
9894 ${x_library}/X11/%l/%T/%N%C%S:\
9895 ${x_library}/X11/%T/%N%C%S:\
9896 ${x_library}/X11/%L/%T/%N%S:\
9897 ${x_library}/X11/%l/%T/%N%S:\
9898 ${x_library}/X11/%T/%N%S"
9899 if test x
"${x_default_search_path}" = x
; then
9900 x_default_search_path
=${x_search_path}
9902 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9909 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9910 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9913 if test x
"${x_includes}" = x
; then
9914 bitmapdir
=/usr
/include
/X11
/bitmaps
9916 # accumulate include directories that have X11 bitmap subdirectories
9918 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9919 if test -d "${bmd}/X11/bitmaps"; then
9920 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9922 if test -d "${bmd}/bitmaps"; then
9923 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9926 if test ${bmd_acc} != "dummyval"; then
9927 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9934 NS_IMPL_GNUSTEP_INC
=
9935 tmp_CPPFLAGS
="$CPPFLAGS"
9936 tmp_CFLAGS
="$CFLAGS"
9937 CPPFLAGS
="$CPPFLAGS -x objective-c"
9938 CFLAGS
="$CFLAGS -x objective-c"
9939 if test "${with_ns}" != no
; then
9940 if test "${opsys}" = darwin
; then
9942 ns_appdir
=`pwd`/nextstep
/Emacs.app
9943 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9944 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9945 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9946 elif test -f $GNUSTEP_CONFIG_FILE; then
9948 ns_appdir
=`pwd`/nextstep
/Emacs.app
9949 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9950 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9951 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9952 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9953 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9954 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9955 ## Pull in stuff from GNUstep-make.
9956 NS_IMPL_GNUSTEP_INC
="FOUNDATION_LIB=gnu
9958 include $GNUSTEP_MAKEFILES/Additional/base.make
9959 include $GNUSTEP_MAKEFILES/Additional/gui.make
9962 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9963 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9964 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9965 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9968 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9969 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9970 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9971 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9972 $as_echo_n "(cached) " >&6
9974 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9975 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9977 # Is the header compilable?
9978 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9979 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9980 cat >conftest.
$ac_ext <<_ACEOF
9983 cat confdefs.h
>>conftest.
$ac_ext
9984 cat >>conftest.
$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 $ac_includes_default
9987 #include <AppKit/AppKit.h>
9989 rm -f conftest.
$ac_objext
9990 if { (ac_try
="$ac_compile"
9992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9996 $as_echo "$ac_try_echo") >&5
9997 (eval "$ac_compile") 2>conftest.er1
9999 grep -v '^ *+' conftest.er1 >conftest.err
10001 cat conftest.err >&5
10002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } && {
10004 test -z "$ac_c_werror_flag" ||
10005 test ! -s conftest.err
10006 } && test -s conftest.$ac_objext; then
10007 ac_header_compiler=yes
10009 $as_echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 ac_header_compiler=no
10015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10016 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10017 $as_echo "$ac_header_compiler" >&6; }
10019 # Is the header present?
10020 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10021 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10022 cat >conftest.$ac_ext <<_ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 #include <AppKit/AppKit.h>
10030 if { (ac_try="$ac_cpp conftest.$ac_ext"
10031 case "(($ac_try" in
10032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10033 *) ac_try_echo
=$ac_try;;
10035 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10036 $as_echo "$ac_try_echo") >&5
10037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10039 grep -v '^ *+' conftest.er1
>conftest.err
10041 cat conftest.err
>&5
10042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); } >/dev
/null
&& {
10044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10045 test ! -s conftest.err
10047 ac_header_preproc
=yes
10049 $as_echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.
$ac_ext >&5
10052 ac_header_preproc
=no
10055 rm -f conftest.err conftest.
$ac_ext
10056 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10057 $as_echo "$ac_header_preproc" >&6; }
10059 # So? What about this header?
10060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10062 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10063 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10064 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10065 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10066 ac_header_preproc
=yes
10069 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10070 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10071 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10072 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10073 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10074 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10075 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10076 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10077 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10078 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10079 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10080 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10084 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10085 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10086 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10087 $as_echo_n "(cached) " >&6
10089 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
10091 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10092 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10095 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10098 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10099 files are missing or cannot be compiled." >&5
10100 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10101 files are missing or cannot be compiled." >&2;}
10102 { (exit 1); exit 1; }; }
10106 NS_HAVE_NSINTEGER
=yes
10107 cat >conftest.
$ac_ext <<_ACEOF
10110 cat confdefs.h
>>conftest.
$ac_ext
10111 cat >>conftest.
$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10113 #include <Foundation/NSObjCRuntime.h>
10122 rm -f conftest.
$ac_objext
10123 if { (ac_try
="$ac_compile"
10124 case "(($ac_try" in
10125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10129 $as_echo "$ac_try_echo") >&5
10130 (eval "$ac_compile") 2>conftest.er1
10132 grep -v '^ *+' conftest.er1 >conftest.err
10134 cat conftest.err >&5
10135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } && {
10137 test -z "$ac_c_werror_flag" ||
10138 test ! -s conftest.err
10139 } && test -s conftest.$ac_objext; then
10140 ns_have_nsinteger=yes
10142 $as_echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10145 ns_have_nsinteger=no
10148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10149 if test $ns_have_nsinteger = no; then
10150 NS_HAVE_NSINTEGER=no
10157 if test "${HAVE_NS}" = yes; then
10158 window_system=nextstep
10160 # set up packaging dirs
10161 exec_prefix=${ns_appbindir}
10162 libexecdir=${ns_appbindir}/libexec
10163 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10164 prefix=${ns_appresdir}
10166 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10167 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10169 CFLAGS="$tmp_CFLAGS"
10170 CPPFLAGS="$tmp_CPPFLAGS"
10175 case "${window_system}" in
10179 case "${with_x_toolkit}" in
10180 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10181 motif ) USE_X_TOOLKIT=MOTIF ;;
10183 USE_X_TOOLKIT=none ;;
10184 no ) USE_X_TOOLKIT=none ;;
10185 * ) USE_X_TOOLKIT=maybe ;;
10195 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10196 # Extract the first word of "X", so it can be a program name with args.
10197 set dummy X; ac_word=$2
10198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10199 $as_echo_n "checking for $ac_word... " >&6; }
10200 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10201 $as_echo_n "(cached) " >&6
10203 if test -n "$HAVE_XSERVER"; then
10204 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10207 for as_dir in $PATH
10210 test -z "$as_dir" && as_dir=.
10211 for ac_exec_ext in '' $ac_executable_extensions; do
10212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10213 ac_cv_prog_HAVE_XSERVER="true"
10214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10221 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10224 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10225 if test -n "$HAVE_XSERVER"; then
10226 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10227 $as_echo "$HAVE_XSERVER" >&6; }
10229 { $as_echo "$as_me:$LINENO: result: no" >&5
10230 $as_echo "no" >&6; }
10234 if test "$HAVE_XSERVER" = true ||
10235 test -n "$DISPLAY" ||
10236 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
10237 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10238 were found. You should install the relevant development files for X
10239 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10240 sure you have development files for image handling, i.e.
10241 tiff, gif, jpeg, png and xpm.
10242 If you are sure you want Emacs compiled without X window support, pass
10245 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10246 were found. You should install the relevant development files for X
10247 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10248 sure you have development files for image handling, i.e.
10249 tiff, gif, jpeg, png and xpm.
10250 If you are sure you want Emacs compiled without X window support, pass
10252 to configure." >&2;}
10253 { (exit 1); exit 1; }; }
10257 ### If we're using X11, we should use the X menu package.
10259 case ${HAVE_X11} in
10260 yes ) HAVE_MENUS=yes ;;
10263 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10264 # Assume not, until told otherwise.
10266 doug_lea_malloc=yes
10267 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10268 $as_echo_n "checking for malloc_get_state... " >&6; }
10269 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10270 $as_echo_n "(cached) " >&6
10272 cat >conftest.$ac_ext <<_ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10280 #define malloc_get_state innocuous_malloc_get_state
10282 /* System header to define __stub macros and hopefully few prototypes,
10283 which can conflict with char malloc_get_state (); below.
10284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10285 <limits.h> exists even on freestanding compilers. */
10288 # include <limits.h>
10290 # include <assert.h>
10293 #undef malloc_get_state
10295 /* Override any GCC internal prototype to avoid an error.
10296 Use char because int might match the return type of a GCC
10297 builtin and then its argument prototype would still apply. */
10301 char malloc_get_state ();
10302 /* The GNU C library defines this for functions which it implements
10303 to always fail with ENOSYS. Some functions are actually named
10304 something starting with __ and the normal name is an alias. */
10305 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10312 return malloc_get_state ();
10317 rm -f conftest.$ac_objext conftest$ac_exeext
10318 if { (ac_try="$ac_link"
10319 case "(($ac_try" in
10320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10321 *) ac_try_echo
=$ac_try;;
10323 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10324 $as_echo "$ac_try_echo") >&5
10325 (eval "$ac_link") 2>conftest.er1
10327 grep -v '^ *+' conftest.er1
>conftest.err
10329 cat conftest.err
>&5
10330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && {
10332 test -z "$ac_c_werror_flag" ||
10333 test ! -s conftest.err
10334 } && test -s conftest
$ac_exeext && {
10335 test "$cross_compiling" = yes ||
10336 $as_test_x conftest
$ac_exeext
10338 ac_cv_func_malloc_get_state
=yes
10340 $as_echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.
$ac_ext >&5
10343 ac_cv_func_malloc_get_state
=no
10346 rm -rf conftest.dSYM
10347 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10348 conftest
$ac_exeext conftest.
$ac_ext
10350 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10351 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10352 if test $ac_cv_func_malloc_get_state = yes; then
10358 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10359 $as_echo_n "checking for malloc_set_state... " >&6; }
10360 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10361 $as_echo_n "(cached) " >&6
10363 cat >conftest.
$ac_ext <<_ACEOF
10366 cat confdefs.h
>>conftest.
$ac_ext
10367 cat >>conftest.
$ac_ext <<_ACEOF
10368 /* end confdefs.h. */
10369 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10371 #define malloc_set_state innocuous_malloc_set_state
10373 /* System header to define __stub macros and hopefully few prototypes,
10374 which can conflict with char malloc_set_state (); below.
10375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10376 <limits.h> exists even on freestanding compilers. */
10379 # include <limits.h>
10381 # include <assert.h>
10384 #undef malloc_set_state
10386 /* Override any GCC internal prototype to avoid an error.
10387 Use char because int might match the return type of a GCC
10388 builtin and then its argument prototype would still apply. */
10392 char malloc_set_state ();
10393 /* The GNU C library defines this for functions which it implements
10394 to always fail with ENOSYS. Some functions are actually named
10395 something starting with __ and the normal name is an alias. */
10396 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10403 return malloc_set_state ();
10408 rm -f conftest.
$ac_objext conftest
$ac_exeext
10409 if { (ac_try
="$ac_link"
10410 case "(($ac_try" in
10411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10415 $as_echo "$ac_try_echo") >&5
10416 (eval "$ac_link") 2>conftest.er1
10418 grep -v '^ *+' conftest.er1 >conftest.err
10420 cat conftest.err >&5
10421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } && {
10423 test -z "$ac_c_werror_flag" ||
10424 test ! -s conftest.err
10425 } && test -s conftest$ac_exeext && {
10426 test "$cross_compiling" = yes ||
10427 $as_test_x conftest$ac_exeext
10429 ac_cv_func_malloc_set_state=yes
10431 $as_echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10434 ac_cv_func_malloc_set_state=no
10437 rm -rf conftest.dSYM
10438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10439 conftest$ac_exeext conftest.$ac_ext
10441 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10442 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10443 if test $ac_cv_func_malloc_set_state = yes; then
10449 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10450 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10451 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10452 $as_echo_n "(cached) " >&6
10454 cat >conftest.$ac_ext <<_ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 extern void (* __after_morecore_hook)();
10464 __after_morecore_hook = 0
10469 rm -f conftest.$ac_objext conftest$ac_exeext
10470 if { (ac_try="$ac_link"
10471 case "(($ac_try" in
10472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10473 *) ac_try_echo
=$ac_try;;
10475 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10476 $as_echo "$ac_try_echo") >&5
10477 (eval "$ac_link") 2>conftest.er1
10479 grep -v '^ *+' conftest.er1
>conftest.err
10481 cat conftest.err
>&5
10482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && {
10484 test -z "$ac_c_werror_flag" ||
10485 test ! -s conftest.err
10486 } && test -s conftest
$ac_exeext && {
10487 test "$cross_compiling" = yes ||
10488 $as_test_x conftest
$ac_exeext
10490 emacs_cv_var___after_morecore_hook
=yes
10492 $as_echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.
$ac_ext >&5
10495 emacs_cv_var___after_morecore_hook
=no
10498 rm -rf conftest.dSYM
10499 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10500 conftest
$ac_exeext conftest.
$ac_ext
10502 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10503 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10504 if test $emacs_cv_var___after_morecore_hook = no
; then
10507 if test "${system_malloc}" = "yes"; then
10509 GNU_MALLOC_reason
="
10510 (The GNU allocators don't work with this system configuration.)"
10512 if test "$doug_lea_malloc" = "yes" ; then
10513 if test "$GNU_MALLOC" = yes ; then
10514 GNU_MALLOC_reason
="
10515 (Using Doug Lea's new malloc from the GNU C Library.)"
10518 cat >>confdefs.h
<<\_ACEOF
10519 #define DOUG_LEA_MALLOC 1
10524 if test x
"${REL_ALLOC}" = x
; then
10525 REL_ALLOC
=${GNU_MALLOC}
10531 for ac_header
in stdlib.h unistd.h
10533 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10534 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10535 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10536 $as_echo_n "checking for $ac_header... " >&6; }
10537 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10538 $as_echo_n "(cached) " >&6
10540 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10541 $as_echo "$as_val"'`
10542 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10543 $as_echo "$ac_res" >&6; }
10545 # Is the header compilable?
10546 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10547 $as_echo_n "checking $ac_header usability... " >&6; }
10548 cat >conftest.
$ac_ext <<_ACEOF
10551 cat confdefs.h
>>conftest.
$ac_ext
10552 cat >>conftest.
$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554 $ac_includes_default
10555 #include <$ac_header>
10557 rm -f conftest.
$ac_objext
10558 if { (ac_try
="$ac_compile"
10559 case "(($ac_try" in
10560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10564 $as_echo "$ac_try_echo") >&5
10565 (eval "$ac_compile") 2>conftest.er1
10567 grep -v '^ *+' conftest.er1 >conftest.err
10569 cat conftest.err >&5
10570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } && {
10572 test -z "$ac_c_werror_flag" ||
10573 test ! -s conftest.err
10574 } && test -s conftest.$ac_objext; then
10575 ac_header_compiler=yes
10577 $as_echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10580 ac_header_compiler=no
10583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10584 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10585 $as_echo "$ac_header_compiler" >&6; }
10587 # Is the header present?
10588 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10589 $as_echo_n "checking $ac_header presence... " >&6; }
10590 cat >conftest.$ac_ext <<_ACEOF
10593 cat confdefs.h >>conftest.$ac_ext
10594 cat >>conftest.$ac_ext <<_ACEOF
10595 /* end confdefs.h. */
10596 #include <$ac_header>
10598 if { (ac_try="$ac_cpp conftest.$ac_ext"
10599 case "(($ac_try" in
10600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10601 *) ac_try_echo
=$ac_try;;
10603 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10604 $as_echo "$ac_try_echo") >&5
10605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10607 grep -v '^ *+' conftest.er1
>conftest.err
10609 cat conftest.err
>&5
10610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } >/dev
/null
&& {
10612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10613 test ! -s conftest.err
10615 ac_header_preproc
=yes
10617 $as_echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.
$ac_ext >&5
10620 ac_header_preproc
=no
10623 rm -f conftest.err conftest.
$ac_ext
10624 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10625 $as_echo "$ac_header_preproc" >&6; }
10627 # So? What about this header?
10628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10631 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10633 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10634 ac_header_preproc
=yes
10637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10638 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10640 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10642 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10644 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10646 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10648 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10652 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10653 $as_echo_n "checking for $ac_header... " >&6; }
10654 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10655 $as_echo_n "(cached) " >&6
10657 eval "$as_ac_Header=\$ac_header_preproc"
10659 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10660 $as_echo "$as_val"'`
10661 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10662 $as_echo "$ac_res" >&6; }
10665 if test `eval 'as_val=${'$as_ac_Header'}
10666 $as_echo "$as_val"'` = yes; then
10667 cat >>confdefs.h
<<_ACEOF
10668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10676 for ac_func
in getpagesize
10678 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10679 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10680 $as_echo_n "checking for $ac_func... " >&6; }
10681 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10682 $as_echo_n "(cached) " >&6
10684 cat >conftest.
$ac_ext <<_ACEOF
10687 cat confdefs.h
>>conftest.
$ac_ext
10688 cat >>conftest.
$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10692 #define $ac_func innocuous_$ac_func
10694 /* System header to define __stub macros and hopefully few prototypes,
10695 which can conflict with char $ac_func (); below.
10696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10697 <limits.h> exists even on freestanding compilers. */
10700 # include <limits.h>
10702 # include <assert.h>
10707 /* Override any GCC internal prototype to avoid an error.
10708 Use char because int might match the return type of a GCC
10709 builtin and then its argument prototype would still apply. */
10714 /* The GNU C library defines this for functions which it implements
10715 to always fail with ENOSYS. Some functions are actually named
10716 something starting with __ and the normal name is an alias. */
10717 #if defined __stub_$ac_func || defined __stub___$ac_func
10724 return $ac_func ();
10729 rm -f conftest.
$ac_objext conftest
$ac_exeext
10730 if { (ac_try
="$ac_link"
10731 case "(($ac_try" in
10732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10736 $as_echo "$ac_try_echo") >&5
10737 (eval "$ac_link") 2>conftest.er1
10739 grep -v '^ *+' conftest.er1 >conftest.err
10741 cat conftest.err >&5
10742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } && {
10744 test -z "$ac_c_werror_flag" ||
10745 test ! -s conftest.err
10746 } && test -s conftest$ac_exeext && {
10747 test "$cross_compiling" = yes ||
10748 $as_test_x conftest$ac_exeext
10750 eval "$as_ac_var=yes"
10752 $as_echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10755 eval "$as_ac_var=no"
10758 rm -rf conftest.dSYM
10759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10760 conftest$ac_exeext conftest.$ac_ext
10762 ac_res=`eval 'as_val=${'$as_ac_var'}
10763 $as_echo "$as_val"'`
10764 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10765 $as_echo "$ac_res" >&6; }
10766 if test `eval 'as_val=${'$as_ac_var'}
10767 $as_echo "$as_val"'` = yes; then
10768 cat >>confdefs.h <<_ACEOF
10769 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10775 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10776 $as_echo_n "checking for working mmap... " >&6; }
10777 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10778 $as_echo_n "(cached) " >&6
10780 if test "$cross_compiling" = yes; then
10781 ac_cv_func_mmap_fixed_mapped=no
10783 cat >conftest.$ac_ext <<_ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10789 $ac_includes_default
10790 /* malloc might have been renamed as rpl_malloc. */
10793 /* Thanks to Mike Haertel and Jim Avera for this test.
10794 Here is a matrix of mmap possibilities:
10795 mmap private not fixed
10796 mmap private fixed at somewhere currently unmapped
10797 mmap private fixed at somewhere already mapped
10798 mmap shared not fixed
10799 mmap shared fixed at somewhere currently unmapped
10800 mmap shared fixed at somewhere already mapped
10801 For private mappings, we should verify that changes cannot be read()
10802 back from the file, nor mmap's back from the file at a different
10803 address. (There have been systems where private was not correctly
10804 implemented like the infamous i386 svr4.0, and systems where the
10805 VM page cache was not coherent with the file system buffer cache
10806 like early versions of FreeBSD and possibly contemporary NetBSD.)
10807 For shared mappings, we should conversely verify that changes get
10808 propagated back to all the places they're supposed to be.
10810 Grep wants private fixed already mapped.
10811 The main things grep needs to know about mmap are:
10812 * does it exist and is it safe to write into the mmap'd area
10813 * how to use it (BSD variants) */
10816 #include <sys/mman.h>
10818 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10822 /* This mess was copied from the GNU getpagesize.h. */
10823 #ifndef HAVE_GETPAGESIZE
10824 /* Assume that all systems that can run configure have sys/param.h. */
10825 # ifndef HAVE_SYS_PARAM_H
10826 # define HAVE_SYS_PARAM_H 1
10829 # ifdef _SC_PAGESIZE
10830 # define getpagesize() sysconf(_SC_PAGESIZE)
10831 # else /* no _SC_PAGESIZE */
10832 # ifdef HAVE_SYS_PARAM_H
10833 # include <sys/param.h>
10834 # ifdef EXEC_PAGESIZE
10835 # define getpagesize() EXEC_PAGESIZE
10836 # else /* no EXEC_PAGESIZE */
10838 # define getpagesize() NBPG * CLSIZE
10841 # endif /* no CLSIZE */
10842 # else /* no NBPG */
10844 # define getpagesize() NBPC
10845 # else /* no NBPC */
10847 # define getpagesize() PAGESIZE
10848 # endif /* PAGESIZE */
10849 # endif /* no NBPC */
10850 # endif /* no NBPG */
10851 # endif /* no EXEC_PAGESIZE */
10852 # else /* no HAVE_SYS_PARAM_H */
10853 # define getpagesize() 8192 /* punt totally */
10854 # endif /* no HAVE_SYS_PARAM_H */
10855 # endif /* no _SC_PAGESIZE */
10857 #endif /* no HAVE_GETPAGESIZE */
10862 char *data, *data2, *data3;
10866 pagesize = getpagesize ();
10868 /* First, make a file with some known garbage in it. */
10869 data = (char *) malloc (pagesize);
10872 for (i = 0; i < pagesize; ++i)
10873 *(data + i) = rand ();
10875 fd = creat ("conftest.mmap", 0600);
10878 if (write (fd, data, pagesize) != pagesize)
10882 /* Next, try to mmap the file at a fixed address which already has
10883 something else allocated at it. If we can, also make sure that
10884 we see the same garbage. */
10885 fd = open ("conftest.mmap", O_RDWR);
10888 data2 = (char *) malloc (2 * pagesize);
10891 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10892 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10893 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10895 for (i = 0; i < pagesize; ++i)
10896 if (*(data + i) != *(data2 + i))
10899 /* Finally, make sure that changes to the mapped area do not
10900 percolate back to the file as seen by read(). (This is a bug on
10901 some variants of i386 svr4.0.) */
10902 for (i = 0; i < pagesize; ++i)
10903 *(data2 + i) = *(data2 + i) + 1;
10904 data3 = (char *) malloc (pagesize);
10907 if (read (fd, data3, pagesize) != pagesize)
10909 for (i = 0; i < pagesize; ++i)
10910 if (*(data + i) != *(data3 + i))
10916 rm -f conftest$ac_exeext
10917 if { (ac_try="$ac_link"
10918 case "(($ac_try" in
10919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10920 *) ac_try_echo
=$ac_try;;
10922 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10923 $as_echo "$ac_try_echo") >&5
10924 (eval "$ac_link") 2>&5
10926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10928 { (case "(($ac_try" in
10929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10933 $as_echo "$ac_try_echo") >&5
10934 (eval "$ac_try") 2>&5
10936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; }; then
10938 ac_cv_func_mmap_fixed_mapped=yes
10940 $as_echo "$as_me: program exited with status $ac_status" >&5
10941 $as_echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10944 ( exit $ac_status )
10945 ac_cv_func_mmap_fixed_mapped=no
10947 rm -rf conftest.dSYM
10948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10953 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10954 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10955 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10957 cat >>confdefs.h <<\_ACEOF
10958 #define HAVE_MMAP 1
10962 rm -f conftest.mmap
10964 if test $use_mmap_for_buffers = yes; then
10968 LIBS="$LIBS_SYSTEM $LIBS"
10971 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10972 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10973 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10974 $as_echo_n "(cached) " >&6
10976 ac_check_lib_save_LIBS=$LIBS
10977 LIBS="-ldnet $LIBS"
10978 cat >conftest.$ac_ext <<_ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10995 return dnet_ntoa ();
11000 rm -f conftest.$ac_objext conftest$ac_exeext
11001 if { (ac_try="$ac_link"
11002 case "(($ac_try" in
11003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11004 *) ac_try_echo
=$ac_try;;
11006 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11007 $as_echo "$ac_try_echo") >&5
11008 (eval "$ac_link") 2>conftest.er1
11010 grep -v '^ *+' conftest.er1
>conftest.err
11012 cat conftest.err
>&5
11013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } && {
11015 test -z "$ac_c_werror_flag" ||
11016 test ! -s conftest.err
11017 } && test -s conftest
$ac_exeext && {
11018 test "$cross_compiling" = yes ||
11019 $as_test_x conftest
$ac_exeext
11021 ac_cv_lib_dnet_dnet_ntoa
=yes
11023 $as_echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.
$ac_ext >&5
11026 ac_cv_lib_dnet_dnet_ntoa
=no
11029 rm -rf conftest.dSYM
11030 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11031 conftest
$ac_exeext conftest.
$ac_ext
11032 LIBS
=$ac_check_lib_save_LIBS
11034 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11035 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11036 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11037 cat >>confdefs.h
<<_ACEOF
11038 #define HAVE_LIBDNET 1
11041 LIBS
="-ldnet $LIBS"
11046 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11047 $as_echo_n "checking for main in -lXbsd... " >&6; }
11048 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11049 $as_echo_n "(cached) " >&6
11051 ac_check_lib_save_LIBS
=$LIBS
11052 LIBS
="-lXbsd $LIBS"
11053 cat >conftest.
$ac_ext <<_ACEOF
11056 cat confdefs.h
>>conftest.
$ac_ext
11057 cat >>conftest.
$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11069 rm -f conftest.
$ac_objext conftest
$ac_exeext
11070 if { (ac_try
="$ac_link"
11071 case "(($ac_try" in
11072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11076 $as_echo "$ac_try_echo") >&5
11077 (eval "$ac_link") 2>conftest.er1
11079 grep -v '^ *+' conftest.er1 >conftest.err
11081 cat conftest.err >&5
11082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); } && {
11084 test -z "$ac_c_werror_flag" ||
11085 test ! -s conftest.err
11086 } && test -s conftest$ac_exeext && {
11087 test "$cross_compiling" = yes ||
11088 $as_test_x conftest$ac_exeext
11090 ac_cv_lib_Xbsd_main=yes
11092 $as_echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11095 ac_cv_lib_Xbsd_main=no
11098 rm -rf conftest.dSYM
11099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100 conftest$ac_exeext conftest.$ac_ext
11101 LIBS=$ac_check_lib_save_LIBS
11103 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11104 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11105 if test $ac_cv_lib_Xbsd_main = yes; then
11106 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11111 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11112 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11113 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11114 $as_echo_n "(cached) " >&6
11116 ac_check_lib_save_LIBS=$LIBS
11117 LIBS="-lpthreads $LIBS"
11118 cat >conftest.$ac_ext <<_ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11125 /* Override any GCC internal prototype to avoid an error.
11126 Use char because int might match the return type of a GCC
11127 builtin and then its argument prototype would still apply. */
11135 return cma_open ();
11140 rm -f conftest.$ac_objext conftest$ac_exeext
11141 if { (ac_try="$ac_link"
11142 case "(($ac_try" in
11143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11144 *) ac_try_echo
=$ac_try;;
11146 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11147 $as_echo "$ac_try_echo") >&5
11148 (eval "$ac_link") 2>conftest.er1
11150 grep -v '^ *+' conftest.er1
>conftest.err
11152 cat conftest.err
>&5
11153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } && {
11155 test -z "$ac_c_werror_flag" ||
11156 test ! -s conftest.err
11157 } && test -s conftest
$ac_exeext && {
11158 test "$cross_compiling" = yes ||
11159 $as_test_x conftest
$ac_exeext
11161 ac_cv_lib_pthreads_cma_open
=yes
11163 $as_echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.
$ac_ext >&5
11166 ac_cv_lib_pthreads_cma_open
=no
11169 rm -rf conftest.dSYM
11170 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11171 conftest
$ac_exeext conftest.
$ac_ext
11172 LIBS
=$ac_check_lib_save_LIBS
11174 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11175 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11176 if test $ac_cv_lib_pthreads_cma_open = yes; then
11177 cat >>confdefs.h
<<_ACEOF
11178 #define HAVE_LIBPTHREADS 1
11181 LIBS
="-lpthreads $LIBS"
11186 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11187 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11188 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11189 ## added to LIBS in configure would never contain the pthreads part,
11190 ## but the value used in Makefiles might. FIXME?
11192 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11193 ## be harmless on older versions of X where it happens to exist.
11194 test "$opsys" = "aix4-2" && \
11195 test $ac_cv_lib_pthreads_cma_open = yes && \
11196 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
11201 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11202 $as_echo_n "checking for -bbigtoc option... " >&6; }
11203 if test "${gdb_cv_bigtoc+set}" = set; then
11204 $as_echo_n "(cached) " >&6
11208 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11209 *) gdb_cv_bigtoc
=-bbigtoc ;;
11212 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11213 cat >conftest.
$ac_ext <<_ACEOF
11216 cat confdefs.h
>>conftest.
$ac_ext
11217 cat >>conftest.
$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11228 rm -f conftest.
$ac_objext conftest
$ac_exeext
11229 if { (ac_try
="$ac_link"
11230 case "(($ac_try" in
11231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11235 $as_echo "$ac_try_echo") >&5
11236 (eval "$ac_link") 2>conftest.er1
11238 grep -v '^ *+' conftest.er1 >conftest.err
11240 cat conftest.err >&5
11241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } && {
11243 test -z "$ac_c_werror_flag" ||
11244 test ! -s conftest.err
11245 } && test -s conftest$ac_exeext && {
11246 test "$cross_compiling" = yes ||
11247 $as_test_x conftest$ac_exeext
11251 $as_echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11257 rm -rf conftest.dSYM
11258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11259 conftest$ac_exeext conftest.$ac_ext
11262 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11263 $as_echo "$gdb_cv_bigtoc" >&6; }
11267 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11268 # used for the tests that follow. We set them back to REAL_CFLAGS and
11269 # REAL_CPPFLAGS later on.
11271 REAL_CPPFLAGS="$CPPFLAGS"
11273 if test "${HAVE_X11}" = "yes"; then
11274 DEFS="$C_SWITCH_X_SITE $DEFS"
11275 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11277 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11278 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11280 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11281 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11282 # but it's more convenient here to set LD_RUN_PATH
11283 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11284 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11285 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11289 if test "${opsys}" = "gnu-linux"; then
11290 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11291 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11292 cat >conftest.$ac_ext <<_ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11302 XOpenDisplay ("foo");
11307 rm -f conftest.$ac_objext conftest$ac_exeext
11308 if { (ac_try="$ac_link"
11309 case "(($ac_try" in
11310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11311 *) ac_try_echo
=$ac_try;;
11313 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11314 $as_echo "$ac_try_echo") >&5
11315 (eval "$ac_link") 2>conftest.er1
11317 grep -v '^ *+' conftest.er1
>conftest.err
11319 cat conftest.err
>&5
11320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } && {
11322 test -z "$ac_c_werror_flag" ||
11323 test ! -s conftest.err
11324 } && test -s conftest
$ac_exeext && {
11325 test "$cross_compiling" = yes ||
11326 $as_test_x conftest
$ac_exeext
11328 xlinux_first_failure
=no
11330 $as_echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.
$ac_ext >&5
11333 xlinux_first_failure
=yes
11336 rm -rf conftest.dSYM
11337 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11338 conftest
$ac_exeext conftest.
$ac_ext
11339 if test "${xlinux_first_failure}" = "yes"; then
11340 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11341 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11342 OLD_CPPFLAGS
="$CPPFLAGS"
11344 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11345 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11346 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11347 LIBS
="$LIBS -b i486-linuxaout"
11348 cat >conftest.
$ac_ext <<_ACEOF
11351 cat confdefs.h
>>conftest.
$ac_ext
11352 cat >>conftest.
$ac_ext <<_ACEOF
11353 /* end confdefs.h. */
11358 XOpenDisplay ("foo");
11363 rm -f conftest.
$ac_objext conftest
$ac_exeext
11364 if { (ac_try
="$ac_link"
11365 case "(($ac_try" in
11366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11367 *) ac_try_echo=$ac_try;;
11369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11370 $as_echo "$ac_try_echo") >&5
11371 (eval "$ac_link") 2>conftest.er1
11373 grep -v '^ *+' conftest.er1 >conftest.err
11375 cat conftest.err >&5
11376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } && {
11378 test -z "$ac_c_werror_flag" ||
11379 test ! -s conftest.err
11380 } && test -s conftest$ac_exeext && {
11381 test "$cross_compiling" = yes ||
11382 $as_test_x conftest$ac_exeext
11384 xlinux_second_failure=no
11386 $as_echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11389 xlinux_second_failure=yes
11392 rm -rf conftest.dSYM
11393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11394 conftest$ac_exeext conftest.$ac_ext
11395 if test "${xlinux_second_failure}" = "yes"; then
11396 # If we get the same failure with -b, there is no use adding -b.
11397 # So take it out. This plays safe.
11398 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11399 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11400 CPPFLAGS="$OLD_CPPFLAGS"
11402 { $as_echo "$as_me:$LINENO: result: no" >&5
11403 $as_echo "no" >&6; }
11405 { $as_echo "$as_me:$LINENO: result: yes" >&5
11406 $as_echo "yes" >&6; }
11409 { $as_echo "$as_me:$LINENO: result: no" >&5
11410 $as_echo "no" >&6; }
11414 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11415 # header files included from there.
11416 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11417 $as_echo_n "checking for Xkb... " >&6; }
11418 cat >conftest.$ac_ext <<_ACEOF
11421 cat confdefs.h >>conftest.$ac_ext
11422 cat >>conftest.$ac_ext <<_ACEOF
11423 /* end confdefs.h. */
11424 #include <X11/Xlib.h>
11425 #include <X11/XKBlib.h>
11429 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11434 rm -f conftest.$ac_objext conftest$ac_exeext
11435 if { (ac_try="$ac_link"
11436 case "(($ac_try" in
11437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11438 *) ac_try_echo
=$ac_try;;
11440 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11441 $as_echo "$ac_try_echo") >&5
11442 (eval "$ac_link") 2>conftest.er1
11444 grep -v '^ *+' conftest.er1
>conftest.err
11446 cat conftest.err
>&5
11447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && {
11449 test -z "$ac_c_werror_flag" ||
11450 test ! -s conftest.err
11451 } && test -s conftest
$ac_exeext && {
11452 test "$cross_compiling" = yes ||
11453 $as_test_x conftest
$ac_exeext
11457 $as_echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.
$ac_ext >&5
11463 rm -rf conftest.dSYM
11464 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11465 conftest
$ac_exeext conftest.
$ac_ext
11466 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11467 $as_echo "$emacs_xkb" >&6; }
11468 if test $emacs_xkb = yes; then
11470 cat >>confdefs.h
<<\_ACEOF
11471 #define HAVE_XKBGETKEYBOARD 1
11480 for ac_func
in XrmSetDatabase XScreenResourceString \
11481 XScreenNumberOfScreen XSetWMProtocols
11483 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11484 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11485 $as_echo_n "checking for $ac_func... " >&6; }
11486 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11487 $as_echo_n "(cached) " >&6
11489 cat >conftest.
$ac_ext <<_ACEOF
11492 cat confdefs.h
>>conftest.
$ac_ext
11493 cat >>conftest.
$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11497 #define $ac_func innocuous_$ac_func
11499 /* System header to define __stub macros and hopefully few prototypes,
11500 which can conflict with char $ac_func (); below.
11501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11502 <limits.h> exists even on freestanding compilers. */
11505 # include <limits.h>
11507 # include <assert.h>
11512 /* Override any GCC internal prototype to avoid an error.
11513 Use char because int might match the return type of a GCC
11514 builtin and then its argument prototype would still apply. */
11519 /* The GNU C library defines this for functions which it implements
11520 to always fail with ENOSYS. Some functions are actually named
11521 something starting with __ and the normal name is an alias. */
11522 #if defined __stub_$ac_func || defined __stub___$ac_func
11529 return $ac_func ();
11534 rm -f conftest.
$ac_objext conftest
$ac_exeext
11535 if { (ac_try
="$ac_link"
11536 case "(($ac_try" in
11537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11541 $as_echo "$ac_try_echo") >&5
11542 (eval "$ac_link") 2>conftest.er1
11544 grep -v '^ *+' conftest.er1 >conftest.err
11546 cat conftest.err >&5
11547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } && {
11549 test -z "$ac_c_werror_flag" ||
11550 test ! -s conftest.err
11551 } && test -s conftest$ac_exeext && {
11552 test "$cross_compiling" = yes ||
11553 $as_test_x conftest$ac_exeext
11555 eval "$as_ac_var=yes"
11557 $as_echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 eval "$as_ac_var=no"
11563 rm -rf conftest.dSYM
11564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11565 conftest$ac_exeext conftest.$ac_ext
11567 ac_res=`eval 'as_val=${'$as_ac_var'}
11568 $as_echo "$as_val"'`
11569 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11570 $as_echo "$ac_res" >&6; }
11571 if test `eval 'as_val=${'$as_ac_var'}
11572 $as_echo "$as_val"'` = yes; then
11573 cat >>confdefs.h <<_ACEOF
11574 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11582 if test "${window_system}" = "x11"; then
11583 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11584 $as_echo_n "checking X11 version 6... " >&6; }
11585 if test "${emacs_cv_x11_version_6+set}" = set; then
11586 $as_echo_n "(cached) " >&6
11588 cat >conftest.$ac_ext <<_ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11594 #include <X11/Xlib.h>
11598 #if XlibSpecificationRelease < 6
11606 rm -f conftest.$ac_objext conftest$ac_exeext
11607 if { (ac_try="$ac_link"
11608 case "(($ac_try" in
11609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11610 *) ac_try_echo
=$ac_try;;
11612 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11613 $as_echo "$ac_try_echo") >&5
11614 (eval "$ac_link") 2>conftest.er1
11616 grep -v '^ *+' conftest.er1
>conftest.err
11618 cat conftest.err
>&5
11619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } && {
11621 test -z "$ac_c_werror_flag" ||
11622 test ! -s conftest.err
11623 } && test -s conftest
$ac_exeext && {
11624 test "$cross_compiling" = yes ||
11625 $as_test_x conftest
$ac_exeext
11627 emacs_cv_x11_version_6
=yes
11629 $as_echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.
$ac_ext >&5
11632 emacs_cv_x11_version_6
=no
11635 rm -rf conftest.dSYM
11636 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11637 conftest
$ac_exeext conftest.
$ac_ext
11640 if test $emacs_cv_x11_version_6 = yes; then
11641 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11642 $as_echo "6 or newer" >&6; }
11644 cat >>confdefs.h
<<\_ACEOF
11645 #define HAVE_X11R6 1
11649 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11650 $as_echo "before 6" >&6; }
11655 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11657 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11658 if test "${with_rsvg}" != "no"; then
11659 RSVG_REQUIRED
=2.11.0
11660 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11665 # Extract the first word of "pkg-config", so it can be a program name with args.
11666 set dummy pkg-config
; ac_word
=$2
11667 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11668 $as_echo_n "checking for $ac_word... " >&6; }
11669 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11670 $as_echo_n "(cached) " >&6
11672 case $PKG_CONFIG in
11674 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11678 for as_dir
in $PATH
11681 test -z "$as_dir" && as_dir
=.
11682 for ac_exec_ext
in '' $ac_executable_extensions; do
11683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11684 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11685 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11692 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11696 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11697 if test -n "$PKG_CONFIG"; then
11698 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11699 $as_echo "$PKG_CONFIG" >&6; }
11701 { $as_echo "$as_me:$LINENO: result: no" >&5
11702 $as_echo "no" >&6; }
11707 if test "$PKG_CONFIG" = "no" ; then
11710 PKG_CONFIG_MIN_VERSION
=0.9.0
11711 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11712 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11713 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11715 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11716 { $as_echo "$as_me:$LINENO: result: yes" >&5
11717 $as_echo "yes" >&6; }
11720 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11721 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11722 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11723 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11724 $as_echo "$RSVG_CFLAGS" >&6; }
11726 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11727 $as_echo_n "checking RSVG_LIBS... " >&6; }
11728 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11729 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11730 $as_echo "$RSVG_LIBS" >&6; }
11732 { $as_echo "$as_me:$LINENO: result: no" >&5
11733 $as_echo "no" >&6; }
11736 ## If we have a custom action on failure, don't print errors, but
11737 ## do set a variable so people can do so.
11738 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11745 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11746 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11750 if test $succeeded = yes; then
11759 if test ".${RSVG_CFLAGS}" != "."; then
11762 cat >>confdefs.h
<<\_ACEOF
11763 #define HAVE_RSVG 1
11766 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11767 LIBS
="$RSVG_LIBS $LIBS"
11774 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11777 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11782 # Extract the first word of "pkg-config", so it can be a program name with args.
11783 set dummy pkg-config
; ac_word
=$2
11784 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11785 $as_echo_n "checking for $ac_word... " >&6; }
11786 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11787 $as_echo_n "(cached) " >&6
11789 case $PKG_CONFIG in
11791 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11795 for as_dir
in $PATH
11798 test -z "$as_dir" && as_dir
=.
11799 for ac_exec_ext
in '' $ac_executable_extensions; do
11800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11801 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11813 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11814 if test -n "$PKG_CONFIG"; then
11815 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11816 $as_echo "$PKG_CONFIG" >&6; }
11818 { $as_echo "$as_me:$LINENO: result: no" >&5
11819 $as_echo "no" >&6; }
11824 if test "$PKG_CONFIG" = "no" ; then
11827 PKG_CONFIG_MIN_VERSION
=0.9.0
11828 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11829 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11830 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11832 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11833 { $as_echo "$as_me:$LINENO: result: yes" >&5
11834 $as_echo "yes" >&6; }
11837 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11838 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11839 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11840 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11841 $as_echo "$GTK_CFLAGS" >&6; }
11843 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11844 $as_echo_n "checking GTK_LIBS... " >&6; }
11845 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11846 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11847 $as_echo "$GTK_LIBS" >&6; }
11849 { $as_echo "$as_me:$LINENO: result: no" >&5
11850 $as_echo "no" >&6; }
11853 ## If we have a custom action on failure, don't print errors, but
11854 ## do set a variable so people can do so.
11855 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11862 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11863 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11867 if test $succeeded = yes; then
11873 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11874 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11875 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11876 { (exit 1); exit 1; }; }
11882 if test x
"$pkg_check_gtk" = xyes
; then
11886 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11887 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11888 LIBS
="$GTK_LIBS $LIBS"
11891 for ac_func
in gtk_main
11893 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11894 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11895 $as_echo_n "checking for $ac_func... " >&6; }
11896 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11897 $as_echo_n "(cached) " >&6
11899 cat >conftest.
$ac_ext <<_ACEOF
11902 cat confdefs.h
>>conftest.
$ac_ext
11903 cat >>conftest.
$ac_ext <<_ACEOF
11904 /* end confdefs.h. */
11905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11907 #define $ac_func innocuous_$ac_func
11909 /* System header to define __stub macros and hopefully few prototypes,
11910 which can conflict with char $ac_func (); below.
11911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11912 <limits.h> exists even on freestanding compilers. */
11915 # include <limits.h>
11917 # include <assert.h>
11922 /* Override any GCC internal prototype to avoid an error.
11923 Use char because int might match the return type of a GCC
11924 builtin and then its argument prototype would still apply. */
11929 /* The GNU C library defines this for functions which it implements
11930 to always fail with ENOSYS. Some functions are actually named
11931 something starting with __ and the normal name is an alias. */
11932 #if defined __stub_$ac_func || defined __stub___$ac_func
11939 return $ac_func ();
11944 rm -f conftest.
$ac_objext conftest
$ac_exeext
11945 if { (ac_try
="$ac_link"
11946 case "(($ac_try" in
11947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11951 $as_echo "$ac_try_echo") >&5
11952 (eval "$ac_link") 2>conftest.er1
11954 grep -v '^ *+' conftest.er1 >conftest.err
11956 cat conftest.err >&5
11957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } && {
11959 test -z "$ac_c_werror_flag" ||
11960 test ! -s conftest.err
11961 } && test -s conftest$ac_exeext && {
11962 test "$cross_compiling" = yes ||
11963 $as_test_x conftest$ac_exeext
11965 eval "$as_ac_var=yes"
11967 $as_echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11970 eval "$as_ac_var=no"
11973 rm -rf conftest.dSYM
11974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11975 conftest$ac_exeext conftest.$ac_ext
11977 ac_res=`eval 'as_val=${'$as_ac_var'}
11978 $as_echo "$as_val"'`
11979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11980 $as_echo "$ac_res" >&6; }
11981 if test `eval 'as_val=${'$as_ac_var'}
11982 $as_echo "$as_val"'` = yes; then
11983 cat >>confdefs.h <<_ACEOF
11984 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11990 if test "${GTK_COMPILES}" != "yes"; then
11991 if test "$USE_X_TOOLKIT" != "maybe"; then
11992 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11993 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11994 { (exit 1); exit 1; }; };
11999 cat >>confdefs.h <<\_ACEOF
12005 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12008 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12009 closing open displays. This is no problem if you just use
12010 one display, but if you use more than one and close one of them
12011 Emacs may crash." >&5
12012 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12013 closing open displays. This is no problem if you just use
12014 one display, but if you use more than one and close one of them
12015 Emacs may crash." >&2;}
12024 if test "${HAVE_GTK}" = "yes"; then
12026 if test "$with_toolkit_scroll_bars" != no; then
12027 with_toolkit_scroll_bars=yes
12030 HAVE_GTK_MULTIDISPLAY=no
12032 for ac_func in gdk_display_open
12034 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12035 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12036 $as_echo_n "checking for $ac_func... " >&6; }
12037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12038 $as_echo_n "(cached) " >&6
12040 cat >conftest.$ac_ext <<_ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12048 #define $ac_func innocuous_$ac_func
12050 /* System header to define __stub macros and hopefully few prototypes,
12051 which can conflict with char $ac_func (); below.
12052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12053 <limits.h> exists even on freestanding compilers. */
12056 # include <limits.h>
12058 # include <assert.h>
12063 /* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12070 /* The GNU C library defines this for functions which it implements
12071 to always fail with ENOSYS. Some functions are actually named
12072 something starting with __ and the normal name is an alias. */
12073 #if defined __stub_$ac_func || defined __stub___$ac_func
12080 return $ac_func ();
12085 rm -f conftest.$ac_objext conftest$ac_exeext
12086 if { (ac_try="$ac_link"
12087 case "(($ac_try" in
12088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12089 *) ac_try_echo
=$ac_try;;
12091 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12092 $as_echo "$ac_try_echo") >&5
12093 (eval "$ac_link") 2>conftest.er1
12095 grep -v '^ *+' conftest.er1
>conftest.err
12097 cat conftest.err
>&5
12098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } && {
12100 test -z "$ac_c_werror_flag" ||
12101 test ! -s conftest.err
12102 } && test -s conftest
$ac_exeext && {
12103 test "$cross_compiling" = yes ||
12104 $as_test_x conftest
$ac_exeext
12106 eval "$as_ac_var=yes"
12108 $as_echo "$as_me: failed program was:" >&5
12109 sed 's/^/| /' conftest.
$ac_ext >&5
12111 eval "$as_ac_var=no"
12114 rm -rf conftest.dSYM
12115 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12116 conftest
$ac_exeext conftest.
$ac_ext
12118 ac_res
=`eval 'as_val=${'$as_ac_var'}
12119 $as_echo "$as_val"'`
12120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12121 $as_echo "$ac_res" >&6; }
12122 if test `eval 'as_val=${'$as_ac_var'}
12123 $as_echo "$as_val"'` = yes; then
12124 cat >>confdefs.h
<<_ACEOF
12125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12127 HAVE_GTK_MULTIDISPLAY
=yes
12131 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12133 cat >>confdefs.h
<<\_ACEOF
12134 #define HAVE_GTK_MULTIDISPLAY 1
12139 HAVE_GTK_FILE_SELECTION
=no
12140 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12141 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12142 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12143 $as_echo_n "(cached) " >&6
12145 cat >conftest.
$ac_ext <<_ACEOF
12148 cat confdefs.h
>>conftest.
$ac_ext
12149 cat >>conftest.
$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151 $ac_includes_default
12152 #include <gtk/gtk.h>
12157 #ifndef GTK_TYPE_FILE_SELECTION
12158 (void) GTK_TYPE_FILE_SELECTION;
12165 rm -f conftest.
$ac_objext
12166 if { (ac_try
="$ac_compile"
12167 case "(($ac_try" in
12168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12172 $as_echo "$ac_try_echo") >&5
12173 (eval "$ac_compile") 2>conftest.er1
12175 grep -v '^ *+' conftest.er1 >conftest.err
12177 cat conftest.err >&5
12178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } && {
12180 test -z "$ac_c_werror_flag" ||
12181 test ! -s conftest.err
12182 } && test -s conftest.$ac_objext; then
12183 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12185 $as_echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12194 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12195 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12196 HAVE_GTK_FILE_SELECTION=yes
12198 HAVE_GTK_FILE_SELECTION=no
12201 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12203 for ac_func in gtk_file_selection_new
12205 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12206 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12207 $as_echo_n "checking for $ac_func... " >&6; }
12208 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12209 $as_echo_n "(cached) " >&6
12211 cat >conftest.$ac_ext <<_ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12219 #define $ac_func innocuous_$ac_func
12221 /* System header to define __stub macros and hopefully few prototypes,
12222 which can conflict with char $ac_func (); below.
12223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12224 <limits.h> exists even on freestanding compilers. */
12227 # include <limits.h>
12229 # include <assert.h>
12234 /* Override any GCC internal prototype to avoid an error.
12235 Use char because int might match the return type of a GCC
12236 builtin and then its argument prototype would still apply. */
12241 /* The GNU C library defines this for functions which it implements
12242 to always fail with ENOSYS. Some functions are actually named
12243 something starting with __ and the normal name is an alias. */
12244 #if defined __stub_$ac_func || defined __stub___$ac_func
12251 return $ac_func ();
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (ac_try="$ac_link"
12258 case "(($ac_try" in
12259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12260 *) ac_try_echo
=$ac_try;;
12262 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12263 $as_echo "$ac_try_echo") >&5
12264 (eval "$ac_link") 2>conftest.er1
12266 grep -v '^ *+' conftest.er1
>conftest.err
12268 cat conftest.err
>&5
12269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } && {
12271 test -z "$ac_c_werror_flag" ||
12272 test ! -s conftest.err
12273 } && test -s conftest
$ac_exeext && {
12274 test "$cross_compiling" = yes ||
12275 $as_test_x conftest
$ac_exeext
12277 eval "$as_ac_var=yes"
12279 $as_echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.
$ac_ext >&5
12282 eval "$as_ac_var=no"
12285 rm -rf conftest.dSYM
12286 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12287 conftest
$ac_exeext conftest.
$ac_ext
12289 ac_res
=`eval 'as_val=${'$as_ac_var'}
12290 $as_echo "$as_val"'`
12291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12292 $as_echo "$ac_res" >&6; }
12293 if test `eval 'as_val=${'$as_ac_var'}
12294 $as_echo "$as_val"'` = yes; then
12295 cat >>confdefs.h
<<_ACEOF
12296 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12298 HAVE_GTK_FILE_SELECTION
=yes
12300 HAVE_GTK_FILE_SELECTION
=no
12306 HAVE_GTK_FILE_CHOOSER
=no
12307 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12308 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12309 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12310 $as_echo_n "(cached) " >&6
12312 cat >conftest.
$ac_ext <<_ACEOF
12315 cat confdefs.h
>>conftest.
$ac_ext
12316 cat >>conftest.
$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318 $ac_includes_default
12319 #include <gtk/gtk.h>
12324 #ifndef GTK_TYPE_FILE_CHOOSER
12325 (void) GTK_TYPE_FILE_CHOOSER;
12332 rm -f conftest.
$ac_objext
12333 if { (ac_try
="$ac_compile"
12334 case "(($ac_try" in
12335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12336 *) ac_try_echo=$ac_try;;
12338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12339 $as_echo "$ac_try_echo") >&5
12340 (eval "$ac_compile") 2>conftest.er1
12342 grep -v '^ *+' conftest.er1 >conftest.err
12344 cat conftest.err >&5
12345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } && {
12347 test -z "$ac_c_werror_flag" ||
12348 test ! -s conftest.err
12349 } && test -s conftest.$ac_objext; then
12350 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12352 $as_echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12360 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12361 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12362 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12363 HAVE_GTK_FILE_CHOOSER=yes
12365 HAVE_GTK_FILE_CHOOSER=no
12368 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12370 for ac_func in gtk_file_chooser_dialog_new
12372 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12373 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12374 $as_echo_n "checking for $ac_func... " >&6; }
12375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12376 $as_echo_n "(cached) " >&6
12378 cat >conftest.$ac_ext <<_ACEOF
12381 cat confdefs.h >>conftest.$ac_ext
12382 cat >>conftest.$ac_ext <<_ACEOF
12383 /* end confdefs.h. */
12384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12386 #define $ac_func innocuous_$ac_func
12388 /* System header to define __stub macros and hopefully few prototypes,
12389 which can conflict with char $ac_func (); below.
12390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12391 <limits.h> exists even on freestanding compilers. */
12394 # include <limits.h>
12396 # include <assert.h>
12401 /* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */
12408 /* The GNU C library defines this for functions which it implements
12409 to always fail with ENOSYS. Some functions are actually named
12410 something starting with __ and the normal name is an alias. */
12411 #if defined __stub_$ac_func || defined __stub___$ac_func
12418 return $ac_func ();
12423 rm -f conftest.$ac_objext conftest$ac_exeext
12424 if { (ac_try="$ac_link"
12425 case "(($ac_try" in
12426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12427 *) ac_try_echo
=$ac_try;;
12429 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12430 $as_echo "$ac_try_echo") >&5
12431 (eval "$ac_link") 2>conftest.er1
12433 grep -v '^ *+' conftest.er1
>conftest.err
12435 cat conftest.err
>&5
12436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } && {
12438 test -z "$ac_c_werror_flag" ||
12439 test ! -s conftest.err
12440 } && test -s conftest
$ac_exeext && {
12441 test "$cross_compiling" = yes ||
12442 $as_test_x conftest
$ac_exeext
12444 eval "$as_ac_var=yes"
12446 $as_echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.
$ac_ext >&5
12449 eval "$as_ac_var=no"
12452 rm -rf conftest.dSYM
12453 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12454 conftest
$ac_exeext conftest.
$ac_ext
12456 ac_res
=`eval 'as_val=${'$as_ac_var'}
12457 $as_echo "$as_val"'`
12458 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12459 $as_echo "$ac_res" >&6; }
12460 if test `eval 'as_val=${'$as_ac_var'}
12461 $as_echo "$as_val"'` = yes; then
12462 cat >>confdefs.h
<<_ACEOF
12463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12465 HAVE_GTK_FILE_CHOOSER
=yes
12467 HAVE_GTK_FILE_CHOOSER
=no
12473 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12474 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12476 cat >>confdefs.h
<<\_ACEOF
12477 #define HAVE_GTK_FILE_BOTH 1
12482 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12483 HAVE_GTK_AND_PTHREAD
=no
12485 for ac_header
in pthread.h
12487 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12488 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12489 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12490 $as_echo_n "checking for $ac_header... " >&6; }
12491 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12492 $as_echo_n "(cached) " >&6
12494 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12495 $as_echo "$as_val"'`
12496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12497 $as_echo "$ac_res" >&6; }
12499 # Is the header compilable?
12500 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12501 $as_echo_n "checking $ac_header usability... " >&6; }
12502 cat >conftest.
$ac_ext <<_ACEOF
12505 cat confdefs.h
>>conftest.
$ac_ext
12506 cat >>conftest.
$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12508 $ac_includes_default
12509 #include <$ac_header>
12511 rm -f conftest.
$ac_objext
12512 if { (ac_try
="$ac_compile"
12513 case "(($ac_try" in
12514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12515 *) ac_try_echo=$ac_try;;
12517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12518 $as_echo "$ac_try_echo") >&5
12519 (eval "$ac_compile") 2>conftest.er1
12521 grep -v '^ *+' conftest.er1 >conftest.err
12523 cat conftest.err >&5
12524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } && {
12526 test -z "$ac_c_werror_flag" ||
12527 test ! -s conftest.err
12528 } && test -s conftest.$ac_objext; then
12529 ac_header_compiler=yes
12531 $as_echo "$as_me: failed program was:" >&5
12532 sed 's/^/| /' conftest.$ac_ext >&5
12534 ac_header_compiler=no
12537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12538 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12539 $as_echo "$ac_header_compiler" >&6; }
12541 # Is the header present?
12542 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12543 $as_echo_n "checking $ac_header presence... " >&6; }
12544 cat >conftest.$ac_ext <<_ACEOF
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h. */
12550 #include <$ac_header>
12552 if { (ac_try="$ac_cpp conftest.$ac_ext"
12553 case "(($ac_try" in
12554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12555 *) ac_try_echo
=$ac_try;;
12557 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12558 $as_echo "$ac_try_echo") >&5
12559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12561 grep -v '^ *+' conftest.er1
>conftest.err
12563 cat conftest.err
>&5
12564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } >/dev
/null
&& {
12566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12567 test ! -s conftest.err
12569 ac_header_preproc
=yes
12571 $as_echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.
$ac_ext >&5
12574 ac_header_preproc
=no
12577 rm -f conftest.err conftest.
$ac_ext
12578 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12579 $as_echo "$ac_header_preproc" >&6; }
12581 # So? What about this header?
12582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12585 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12587 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12588 ac_header_preproc
=yes
12591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12592 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12594 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12596 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12598 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12600 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12602 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12606 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12607 $as_echo_n "checking for $ac_header... " >&6; }
12608 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12609 $as_echo_n "(cached) " >&6
12611 eval "$as_ac_Header=\$ac_header_preproc"
12613 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12614 $as_echo "$as_val"'`
12615 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12616 $as_echo "$ac_res" >&6; }
12619 if test `eval 'as_val=${'$as_ac_Header'}
12620 $as_echo "$as_val"'` = yes; then
12621 cat >>confdefs.h
<<_ACEOF
12622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12629 if test "$ac_cv_header_pthread_h"; then
12630 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12631 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12632 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12633 $as_echo_n "(cached) " >&6
12635 ac_check_lib_save_LIBS
=$LIBS
12636 LIBS
="-lpthread $LIBS"
12637 cat >conftest.
$ac_ext <<_ACEOF
12640 cat confdefs.h
>>conftest.
$ac_ext
12641 cat >>conftest.
$ac_ext <<_ACEOF
12642 /* end confdefs.h. */
12644 /* Override any GCC internal prototype to avoid an error.
12645 Use char because int might match the return type of a GCC
12646 builtin and then its argument prototype would still apply. */
12650 char pthread_self ();
12654 return pthread_self ();
12659 rm -f conftest.
$ac_objext conftest
$ac_exeext
12660 if { (ac_try
="$ac_link"
12661 case "(($ac_try" in
12662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12663 *) ac_try_echo=$ac_try;;
12665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12666 $as_echo "$ac_try_echo") >&5
12667 (eval "$ac_link") 2>conftest.er1
12669 grep -v '^ *+' conftest.er1 >conftest.err
12671 cat conftest.err >&5
12672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } && {
12674 test -z "$ac_c_werror_flag" ||
12675 test ! -s conftest.err
12676 } && test -s conftest$ac_exeext && {
12677 test "$cross_compiling" = yes ||
12678 $as_test_x conftest$ac_exeext
12680 ac_cv_lib_pthread_pthread_self=yes
12682 $as_echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12685 ac_cv_lib_pthread_pthread_self=no
12688 rm -rf conftest.dSYM
12689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12690 conftest$ac_exeext conftest.$ac_ext
12691 LIBS=$ac_check_lib_save_LIBS
12693 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12694 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12695 if test $ac_cv_lib_pthread_pthread_self = yes; then
12696 HAVE_GTK_AND_PTHREAD=yes
12700 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12701 case "${canonical}" in
12703 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12706 cat >>confdefs.h <<\_ACEOF
12707 #define HAVE_GTK_AND_PTHREAD 1
12716 if test "${with_dbus}" = "yes"; then
12720 # Extract the first word of "pkg-config", so it can be a program name with args.
12721 set dummy pkg-config; ac_word=$2
12722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12723 $as_echo_n "checking for $ac_word... " >&6; }
12724 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12725 $as_echo_n "(cached) " >&6
12727 case $PKG_CONFIG in
12729 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $PATH
12736 test -z "$as_dir" && as_dir=.
12737 for ac_exec_ext in '' $ac_executable_extensions; do
12738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12739 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12747 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12751 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12752 if test -n "$PKG_CONFIG"; then
12753 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12754 $as_echo "$PKG_CONFIG" >&6; }
12756 { $as_echo "$as_me:$LINENO: result: no" >&5
12757 $as_echo "no" >&6; }
12762 if test "$PKG_CONFIG" = "no" ; then
12765 PKG_CONFIG_MIN_VERSION=0.9.0
12766 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12767 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12768 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12770 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12771 { $as_echo "$as_me:$LINENO: result: yes" >&5
12772 $as_echo "yes" >&6; }
12775 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12776 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12777 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12778 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12779 $as_echo "$DBUS_CFLAGS" >&6; }
12781 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12782 $as_echo_n "checking DBUS_LIBS... " >&6; }
12783 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12784 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12785 $as_echo "$DBUS_LIBS" >&6; }
12787 { $as_echo "$as_me:$LINENO: result: no" >&5
12788 $as_echo "no" >&6; }
12791 ## If we have a custom action on failure, don't print errors, but
12792 ## do set a variable so people can do so.
12793 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12800 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12801 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12805 if test $succeeded = yes; then
12811 if test "$HAVE_DBUS" = yes; then
12812 LIBS="$LIBS $DBUS_LIBS"
12814 cat >>confdefs.h <<\_ACEOF
12815 #define HAVE_DBUS 1
12819 for ac_func in dbus_watch_get_unix_fd
12821 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12822 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12823 $as_echo_n "checking for $ac_func... " >&6; }
12824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12825 $as_echo_n "(cached) " >&6
12827 cat >conftest.$ac_ext <<_ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12835 #define $ac_func innocuous_$ac_func
12837 /* System header to define __stub macros and hopefully few prototypes,
12838 which can conflict with char $ac_func (); below.
12839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12840 <limits.h> exists even on freestanding compilers. */
12843 # include <limits.h>
12845 # include <assert.h>
12850 /* Override any GCC internal prototype to avoid an error.
12851 Use char because int might match the return type of a GCC
12852 builtin and then its argument prototype would still apply. */
12857 /* The GNU C library defines this for functions which it implements
12858 to always fail with ENOSYS. Some functions are actually named
12859 something starting with __ and the normal name is an alias. */
12860 #if defined __stub_$ac_func || defined __stub___$ac_func
12867 return $ac_func ();
12872 rm -f conftest.$ac_objext conftest$ac_exeext
12873 if { (ac_try="$ac_link"
12874 case "(($ac_try" in
12875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12876 *) ac_try_echo
=$ac_try;;
12878 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12879 $as_echo "$ac_try_echo") >&5
12880 (eval "$ac_link") 2>conftest.er1
12882 grep -v '^ *+' conftest.er1
>conftest.err
12884 cat conftest.err
>&5
12885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); } && {
12887 test -z "$ac_c_werror_flag" ||
12888 test ! -s conftest.err
12889 } && test -s conftest
$ac_exeext && {
12890 test "$cross_compiling" = yes ||
12891 $as_test_x conftest
$ac_exeext
12893 eval "$as_ac_var=yes"
12895 $as_echo "$as_me: failed program was:" >&5
12896 sed 's/^/| /' conftest.
$ac_ext >&5
12898 eval "$as_ac_var=no"
12901 rm -rf conftest.dSYM
12902 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12903 conftest
$ac_exeext conftest.
$ac_ext
12905 ac_res
=`eval 'as_val=${'$as_ac_var'}
12906 $as_echo "$as_val"'`
12907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12908 $as_echo "$ac_res" >&6; }
12909 if test `eval 'as_val=${'$as_ac_var'}
12910 $as_echo "$as_val"'` = yes; then
12911 cat >>confdefs.h
<<_ACEOF
12912 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12918 DBUS_OBJ
=dbusbind.o
12924 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12928 # Extract the first word of "pkg-config", so it can be a program name with args.
12929 set dummy pkg-config
; ac_word
=$2
12930 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12931 $as_echo_n "checking for $ac_word... " >&6; }
12932 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12933 $as_echo_n "(cached) " >&6
12935 case $PKG_CONFIG in
12937 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12941 for as_dir
in $PATH
12944 test -z "$as_dir" && as_dir
=.
12945 for ac_exec_ext
in '' $ac_executable_extensions; do
12946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12947 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12948 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12955 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12959 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12960 if test -n "$PKG_CONFIG"; then
12961 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12962 $as_echo "$PKG_CONFIG" >&6; }
12964 { $as_echo "$as_me:$LINENO: result: no" >&5
12965 $as_echo "no" >&6; }
12970 if test "$PKG_CONFIG" = "no" ; then
12973 PKG_CONFIG_MIN_VERSION
=0.9.0
12974 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12975 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12976 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12978 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12979 { $as_echo "$as_me:$LINENO: result: yes" >&5
12980 $as_echo "yes" >&6; }
12983 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12984 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12985 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12986 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12987 $as_echo "$GCONF_CFLAGS" >&6; }
12989 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12990 $as_echo_n "checking GCONF_LIBS... " >&6; }
12991 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12992 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12993 $as_echo "$GCONF_LIBS" >&6; }
12995 { $as_echo "$as_me:$LINENO: result: no" >&5
12996 $as_echo "no" >&6; }
12999 ## If we have a custom action on failure, don't print errors, but
13000 ## do set a variable so people can do so.
13001 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13008 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13009 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13013 if test $succeeded = yes; then
13019 if test "$HAVE_GCONF" = yes; then
13021 cat >>confdefs.h
<<\_ACEOF
13022 #define HAVE_GCONF 1
13030 if test "${with_selinux}" = "yes"; then
13031 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13032 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13033 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13034 $as_echo_n "(cached) " >&6
13036 ac_check_lib_save_LIBS
=$LIBS
13037 LIBS
="-lselinux $LIBS"
13038 cat >conftest.
$ac_ext <<_ACEOF
13041 cat confdefs.h
>>conftest.
$ac_ext
13042 cat >>conftest.
$ac_ext <<_ACEOF
13043 /* end confdefs.h. */
13045 /* Override any GCC internal prototype to avoid an error.
13046 Use char because int might match the return type of a GCC
13047 builtin and then its argument prototype would still apply. */
13051 char lgetfilecon ();
13055 return lgetfilecon ();
13060 rm -f conftest.
$ac_objext conftest
$ac_exeext
13061 if { (ac_try
="$ac_link"
13062 case "(($ac_try" in
13063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13067 $as_echo "$ac_try_echo") >&5
13068 (eval "$ac_link") 2>conftest.er1
13070 grep -v '^ *+' conftest.er1 >conftest.err
13072 cat conftest.err >&5
13073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } && {
13075 test -z "$ac_c_werror_flag" ||
13076 test ! -s conftest.err
13077 } && test -s conftest$ac_exeext && {
13078 test "$cross_compiling" = yes ||
13079 $as_test_x conftest$ac_exeext
13081 ac_cv_lib_selinux_lgetfilecon=yes
13083 $as_echo "$as_me: failed program was:" >&5
13084 sed 's/^/| /' conftest.$ac_ext >&5
13086 ac_cv_lib_selinux_lgetfilecon=no
13089 rm -rf conftest.dSYM
13090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13091 conftest$ac_exeext conftest.$ac_ext
13092 LIBS=$ac_check_lib_save_LIBS
13094 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13095 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13096 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13097 HAVE_LIBSELINUX=yes
13102 if test "$HAVE_LIBSELINUX" = yes; then
13104 cat >>confdefs.h <<\_ACEOF
13105 #define HAVE_LIBSELINUX 1
13108 LIBSELINUX_LIBS=-lselinux
13115 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13116 if test "$with_xaw3d" != no; then
13117 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13118 $as_echo_n "checking for xaw3d... " >&6; }
13119 if test "${emacs_cv_xaw3d+set}" = set; then
13120 $as_echo_n "(cached) " >&6
13122 cat >conftest.$ac_ext <<_ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h. */
13129 #include <X11/Intrinsic.h>
13130 #include <X11/Xaw3d/Simple.h>
13139 rm -f conftest.$ac_objext conftest$ac_exeext
13140 if { (ac_try="$ac_link"
13141 case "(($ac_try" in
13142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13143 *) ac_try_echo
=$ac_try;;
13145 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13146 $as_echo "$ac_try_echo") >&5
13147 (eval "$ac_link") 2>conftest.er1
13149 grep -v '^ *+' conftest.er1
>conftest.err
13151 cat conftest.err
>&5
13152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } && {
13154 test -z "$ac_c_werror_flag" ||
13155 test ! -s conftest.err
13156 } && test -s conftest
$ac_exeext && {
13157 test "$cross_compiling" = yes ||
13158 $as_test_x conftest
$ac_exeext
13162 $as_echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.
$ac_ext >&5
13168 rm -rf conftest.dSYM
13169 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13170 conftest
$ac_exeext conftest.
$ac_ext
13176 if test $emacs_cv_xaw3d = yes; then
13177 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13178 $as_echo "yes; using Lucid toolkit" >&6; }
13179 USE_X_TOOLKIT
=LUCID
13183 cat >>confdefs.h
<<\_ACEOF
13184 #define HAVE_XAW3D 1
13188 { $as_echo "$as_me:$LINENO: result: no" >&5
13189 $as_echo "no" >&6; }
13190 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13191 $as_echo_n "checking for libXaw... " >&6; }
13192 if test "${emacs_cv_xaw+set}" = set; then
13193 $as_echo_n "(cached) " >&6
13195 cat >conftest.
$ac_ext <<_ACEOF
13198 cat confdefs.h
>>conftest.
$ac_ext
13199 cat >>conftest.
$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13202 #include <X11/Intrinsic.h>
13203 #include <X11/Xaw/Simple.h>
13212 rm -f conftest.
$ac_objext conftest
$ac_exeext
13213 if { (ac_try
="$ac_link"
13214 case "(($ac_try" in
13215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13219 $as_echo "$ac_try_echo") >&5
13220 (eval "$ac_link") 2>conftest.er1
13222 grep -v '^ *+' conftest.er1 >conftest.err
13224 cat conftest.err >&5
13225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } && {
13227 test -z "$ac_c_werror_flag" ||
13228 test ! -s conftest.err
13229 } && test -s conftest$ac_exeext && {
13230 test "$cross_compiling" = yes ||
13231 $as_test_x conftest$ac_exeext
13235 $as_echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13241 rm -rf conftest.dSYM
13242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13243 conftest$ac_exeext conftest.$ac_ext
13246 if test $emacs_cv_xaw = yes; then
13247 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13248 $as_echo "yes; using Lucid toolkit" >&6; }
13249 USE_X_TOOLKIT=LUCID
13251 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13252 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13253 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13254 { (exit 1); exit 1; }; }
13256 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13257 $as_echo "no; do not use toolkit by default" >&6; }
13263 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13266 if test "${USE_X_TOOLKIT}" != "none"; then
13267 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13268 $as_echo_n "checking X11 toolkit version... " >&6; }
13269 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13270 $as_echo_n "(cached) " >&6
13272 cat >conftest.$ac_ext <<_ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13278 #include <X11/Intrinsic.h>
13282 #if XtSpecificationRelease < 6
13290 rm -f conftest.$ac_objext conftest$ac_exeext
13291 if { (ac_try="$ac_link"
13292 case "(($ac_try" in
13293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13294 *) ac_try_echo
=$ac_try;;
13296 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13297 $as_echo "$ac_try_echo") >&5
13298 (eval "$ac_link") 2>conftest.er1
13300 grep -v '^ *+' conftest.er1
>conftest.err
13302 cat conftest.err
>&5
13303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } && {
13305 test -z "$ac_c_werror_flag" ||
13306 test ! -s conftest.err
13307 } && test -s conftest
$ac_exeext && {
13308 test "$cross_compiling" = yes ||
13309 $as_test_x conftest
$ac_exeext
13311 emacs_cv_x11_toolkit_version_6
=yes
13313 $as_echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.
$ac_ext >&5
13316 emacs_cv_x11_toolkit_version_6
=no
13319 rm -rf conftest.dSYM
13320 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13321 conftest
$ac_exeext conftest.
$ac_ext
13324 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
13325 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13326 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13327 $as_echo "6 or newer" >&6; }
13329 cat >>confdefs.h
<<\_ACEOF
13330 #define HAVE_X11XTR6 1
13333 LIBXTR6
="-lSM -lICE"
13335 ## Use libw.a along with X11R6 Xt.
13336 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
13339 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13340 $as_echo "before 6" >&6; }
13344 if test x
$HAVE_X11XTR6 = xyes
; then
13345 LIBS
="-lXt -lSM -lICE $LIBS"
13350 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13351 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13352 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13353 $as_echo_n "(cached) " >&6
13355 ac_check_lib_save_LIBS
=$LIBS
13357 cat >conftest.
$ac_ext <<_ACEOF
13360 cat confdefs.h
>>conftest.
$ac_ext
13361 cat >>conftest.
$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13364 /* Override any GCC internal prototype to avoid an error.
13365 Use char because int might match the return type of a GCC
13366 builtin and then its argument prototype would still apply. */
13370 char XmuConvertStandardSelection ();
13374 return XmuConvertStandardSelection ();
13379 rm -f conftest.
$ac_objext conftest
$ac_exeext
13380 if { (ac_try
="$ac_link"
13381 case "(($ac_try" in
13382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13386 $as_echo "$ac_try_echo") >&5
13387 (eval "$ac_link") 2>conftest.er1
13389 grep -v '^ *+' conftest.er1 >conftest.err
13391 cat conftest.err >&5
13392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } && {
13394 test -z "$ac_c_werror_flag" ||
13395 test ! -s conftest.err
13396 } && test -s conftest$ac_exeext && {
13397 test "$cross_compiling" = yes ||
13398 $as_test_x conftest$ac_exeext
13400 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13402 $as_echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13405 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13408 rm -rf conftest.dSYM
13409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13410 conftest$ac_exeext conftest.$ac_ext
13411 LIBS=$ac_check_lib_save_LIBS
13413 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13414 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13415 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13416 cat >>confdefs.h <<_ACEOF
13417 #define HAVE_LIBXMU 1
13424 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13430 ## These machines don't supply Xmu.
13432 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13437 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13438 if test "${HAVE_X11}" = "yes"; then
13439 if test "${USE_X_TOOLKIT}" != "none"; then
13441 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13442 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13443 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13444 $as_echo_n "(cached) " >&6
13446 ac_check_lib_save_LIBS=$LIBS
13447 LIBS="-lXext $LIBS"
13448 cat >conftest.$ac_ext <<_ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13455 /* Override any GCC internal prototype to avoid an error.
13456 Use char because int might match the return type of a GCC
13457 builtin and then its argument prototype would still apply. */
13461 char XShapeQueryExtension ();
13465 return XShapeQueryExtension ();
13470 rm -f conftest.$ac_objext conftest$ac_exeext
13471 if { (ac_try="$ac_link"
13472 case "(($ac_try" in
13473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13474 *) ac_try_echo
=$ac_try;;
13476 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13477 $as_echo "$ac_try_echo") >&5
13478 (eval "$ac_link") 2>conftest.er1
13480 grep -v '^ *+' conftest.er1
>conftest.err
13482 cat conftest.err
>&5
13483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } && {
13485 test -z "$ac_c_werror_flag" ||
13486 test ! -s conftest.err
13487 } && test -s conftest
$ac_exeext && {
13488 test "$cross_compiling" = yes ||
13489 $as_test_x conftest
$ac_exeext
13491 ac_cv_lib_Xext_XShapeQueryExtension
=yes
13493 $as_echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.
$ac_ext >&5
13496 ac_cv_lib_Xext_XShapeQueryExtension
=no
13499 rm -rf conftest.dSYM
13500 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13501 conftest
$ac_exeext conftest.
$ac_ext
13502 LIBS
=$ac_check_lib_save_LIBS
13504 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13505 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13506 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13507 cat >>confdefs.h
<<_ACEOF
13508 #define HAVE_LIBXEXT 1
13511 LIBS
="-lXext $LIBS"
13519 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13520 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13521 $as_echo_n "checking for Motif version 2.1... " >&6; }
13522 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13523 $as_echo_n "(cached) " >&6
13525 cat >conftest.
$ac_ext <<_ACEOF
13528 cat confdefs.h
>>conftest.
$ac_ext
13529 cat >>conftest.
$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13535 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13538 Motif version prior to 2.1.
13544 rm -f conftest.
$ac_objext
13545 if { (ac_try
="$ac_compile"
13546 case "(($ac_try" in
13547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13551 $as_echo "$ac_try_echo") >&5
13552 (eval "$ac_compile") 2>conftest.er1
13554 grep -v '^ *+' conftest.er1 >conftest.err
13556 cat conftest.err >&5
13557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } && {
13559 test -z "$ac_c_werror_flag" ||
13560 test ! -s conftest.err
13561 } && test -s conftest.$ac_objext; then
13562 emacs_cv_motif_version_2_1=yes
13564 $as_echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13567 emacs_cv_motif_version_2_1=no
13570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13572 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13573 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13574 if test $emacs_cv_motif_version_2_1 = yes; then
13575 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13576 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13577 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13578 $as_echo_n "(cached) " >&6
13580 ac_check_lib_save_LIBS=$LIBS
13582 cat >conftest.$ac_ext <<_ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h. */
13589 /* Override any GCC internal prototype to avoid an error.
13590 Use char because int might match the return type of a GCC
13591 builtin and then its argument prototype would still apply. */
13595 char XpCreateContext ();
13599 return XpCreateContext ();
13604 rm -f conftest.$ac_objext conftest$ac_exeext
13605 if { (ac_try="$ac_link"
13606 case "(($ac_try" in
13607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13608 *) ac_try_echo
=$ac_try;;
13610 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13611 $as_echo "$ac_try_echo") >&5
13612 (eval "$ac_link") 2>conftest.er1
13614 grep -v '^ *+' conftest.er1
>conftest.err
13616 cat conftest.err
>&5
13617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } && {
13619 test -z "$ac_c_werror_flag" ||
13620 test ! -s conftest.err
13621 } && test -s conftest
$ac_exeext && {
13622 test "$cross_compiling" = yes ||
13623 $as_test_x conftest
$ac_exeext
13625 ac_cv_lib_Xp_XpCreateContext
=yes
13627 $as_echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.
$ac_ext >&5
13630 ac_cv_lib_Xp_XpCreateContext
=no
13633 rm -rf conftest.dSYM
13634 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13635 conftest
$ac_exeext conftest.
$ac_ext
13636 LIBS
=$ac_check_lib_save_LIBS
13638 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13639 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13640 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13645 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13646 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13647 if test "${emacs_cv_lesstif+set}" = set; then
13648 $as_echo_n "(cached) " >&6
13650 # We put this in CFLAGS temporarily to precede other -I options
13651 # that might be in CFLAGS temporarily.
13652 # We put this in CPPFLAGS where it precedes the other -I options.
13653 OLD_CPPFLAGS
=$CPPFLAGS
13655 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13656 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13657 cat >conftest.
$ac_ext <<_ACEOF
13660 cat confdefs.h
>>conftest.
$ac_ext
13661 cat >>conftest.
$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13672 rm -f conftest.
$ac_objext
13673 if { (ac_try
="$ac_compile"
13674 case "(($ac_try" in
13675 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13676 *) ac_try_echo=$ac_try;;
13678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13679 $as_echo "$ac_try_echo") >&5
13680 (eval "$ac_compile") 2>conftest.er1
13682 grep -v '^ *+' conftest.er1 >conftest.err
13684 cat conftest.err >&5
13685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } && {
13687 test -z "$ac_c_werror_flag" ||
13688 test ! -s conftest.err
13689 } && test -s conftest.$ac_objext; then
13690 emacs_cv_lesstif=yes
13692 $as_echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13695 emacs_cv_lesstif=no
13698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13701 $as_echo "$emacs_cv_lesstif" >&6; }
13702 if test $emacs_cv_lesstif = yes; then
13703 # Make sure this -I option remains in CPPFLAGS after it is set
13704 # back to REAL_CPPFLAGS.
13705 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13706 # have those other -I options anyway. Ultimately, having this
13707 # directory ultimately in CPPFLAGS will be enough.
13708 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13709 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13712 CPPFLAGS=$OLD_CPPFLAGS
13719 USE_TOOLKIT_SCROLL_BARS=no
13720 if test "${with_toolkit_scroll_bars}" != "no"; then
13721 if test "${USE_X_TOOLKIT}" != "none"; then
13722 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13723 cat >>confdefs.h <<\_ACEOF
13724 #define USE_TOOLKIT_SCROLL_BARS 1
13728 USE_TOOLKIT_SCROLL_BARS=yes
13729 elif test "${HAVE_XAW3D}" = "yes"; then
13730 cat >>confdefs.h <<\_ACEOF
13731 #define USE_TOOLKIT_SCROLL_BARS 1
13734 USE_TOOLKIT_SCROLL_BARS=yes
13736 elif test "${HAVE_GTK}" = "yes"; then
13737 cat >>confdefs.h <<\_ACEOF
13738 #define USE_TOOLKIT_SCROLL_BARS 1
13741 USE_TOOLKIT_SCROLL_BARS=yes
13742 elif test "${HAVE_NS}" = "yes"; then
13743 cat >>confdefs.h <<\_ACEOF
13744 #define USE_TOOLKIT_SCROLL_BARS 1
13747 USE_TOOLKIT_SCROLL_BARS=yes
13751 cat >conftest.$ac_ext <<_ACEOF
13754 cat confdefs.h >>conftest.$ac_ext
13755 cat >>conftest.$ac_ext <<_ACEOF
13756 /* end confdefs.h. */
13758 #include <X11/Xlib.h>
13759 #include <X11/Xresource.h>
13768 rm -f conftest.$ac_objext
13769 if { (ac_try="$ac_compile"
13770 case "(($ac_try" in
13771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13772 *) ac_try_echo
=$ac_try;;
13774 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13775 $as_echo "$ac_try_echo") >&5
13776 (eval "$ac_compile") 2>conftest.er1
13778 grep -v '^ *+' conftest.er1
>conftest.err
13780 cat conftest.err
>&5
13781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); } && {
13783 test -z "$ac_c_werror_flag" ||
13784 test ! -s conftest.err
13785 } && test -s conftest.
$ac_objext; then
13788 cat >>confdefs.h
<<\_ACEOF
13793 $as_echo "$as_me: failed program was:" >&5
13794 sed 's/^/| /' conftest.
$ac_ext >&5
13799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13802 if test "${with_xim}" != "no"; then
13804 cat >>confdefs.h
<<\_ACEOF
13811 if test "${HAVE_XIM}" != "no"; then
13812 late_CFLAGS
=$CFLAGS
13813 if test "$GCC" = yes; then
13814 CFLAGS
="$CFLAGS --pedantic-errors"
13816 cat >conftest.
$ac_ext <<_ACEOF
13819 cat confdefs.h
>>conftest.
$ac_ext
13820 cat >>conftest.
$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13823 #include <X11/Xlib.h>
13824 #include <X11/Xresource.h>
13833 XPointer *client_data;
13835 /* If we're not using GCC, it's probably not XFree86, and this is
13836 probably right, but we can't use something like --pedantic-errors. */
13837 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13838 char*, XIMProc, XPointer*);
13840 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13846 rm -f conftest.
$ac_objext
13847 if { (ac_try
="$ac_compile"
13848 case "(($ac_try" in
13849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13853 $as_echo "$ac_try_echo") >&5
13854 (eval "$ac_compile") 2>conftest.er1
13856 grep -v '^ *+' conftest.er1 >conftest.err
13858 cat conftest.err >&5
13859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } && {
13861 test -z "$ac_c_werror_flag" ||
13862 test ! -s conftest.err
13863 } && test -s conftest.$ac_objext; then
13864 emacs_cv_arg6_star=yes
13866 $as_echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13874 if test "$emacs_cv_arg6_star" = yes; then
13875 cat >>confdefs.h <<\_ACEOF
13876 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13880 cat >>confdefs.h <<\_ACEOF
13881 #define XRegisterIMInstantiateCallback_arg6 XPointer
13885 CFLAGS=$late_CFLAGS
13888 ### Start of font-backend (under any platform) section.
13889 # (nothing here yet -- this is a placeholder)
13890 ### End of font-backend (under any platform) section.
13892 ### Start of font-backend (under X11) section.
13893 if test "${HAVE_X11}" = "yes"; then
13897 # Extract the first word of "pkg-config", so it can be a program name with args.
13898 set dummy pkg-config; ac_word=$2
13899 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13900 $as_echo_n "checking for $ac_word... " >&6; }
13901 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13902 $as_echo_n "(cached) " >&6
13904 case $PKG_CONFIG in
13906 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13910 for as_dir in $PATH
13913 test -z "$as_dir" && as_dir=.
13914 for ac_exec_ext in '' $ac_executable_extensions; do
13915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13916 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13924 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13928 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13929 if test -n "$PKG_CONFIG"; then
13930 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13931 $as_echo "$PKG_CONFIG" >&6; }
13933 { $as_echo "$as_me:$LINENO: result: no" >&5
13934 $as_echo "no" >&6; }
13939 if test "$PKG_CONFIG" = "no" ; then
13942 PKG_CONFIG_MIN_VERSION=0.9.0
13943 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13944 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13945 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13947 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13948 { $as_echo "$as_me:$LINENO: result: yes" >&5
13949 $as_echo "yes" >&6; }
13952 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13953 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13954 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13955 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13956 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13958 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13959 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13960 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13961 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13962 $as_echo "$FONTCONFIG_LIBS" >&6; }
13964 { $as_echo "$as_me:$LINENO: result: no" >&5
13965 $as_echo "no" >&6; }
13966 FONTCONFIG_CFLAGS=""
13968 ## If we have a custom action on failure, don't print errors, but
13969 ## do set a variable so people can do so.
13970 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13977 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13978 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13982 if test $succeeded = yes; then
13989 ## Use -lXft if available, unless `--with-xft=no
'.
13991 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13994 if test "x${with_xft}" != "xno"; then
13999 # Extract the first word of "pkg-config", so it can be a program name with args.
14000 set dummy pkg-config; ac_word=$2
14001 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14002 $as_echo_n "checking for $ac_word... " >&6; }
14003 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14004 $as_echo_n "(cached) " >&6
14006 case $PKG_CONFIG in
14008 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012 for as_dir in $PATH
14015 test -z "$as_dir" && as_dir=.
14016 for ac_exec_ext in '' $ac_executable_extensions; do
14017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14018 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14019 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14026 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14030 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14031 if test -n "$PKG_CONFIG"; then
14032 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14033 $as_echo "$PKG_CONFIG" >&6; }
14035 { $as_echo "$as_me:$LINENO: result: no" >&5
14036 $as_echo "no" >&6; }
14041 if test "$PKG_CONFIG" = "no" ; then
14044 PKG_CONFIG_MIN_VERSION=0.9.0
14045 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14046 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14047 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14049 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14050 { $as_echo "$as_me:$LINENO: result: yes" >&5
14051 $as_echo "yes" >&6; }
14054 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14055 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14056 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14057 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14058 $as_echo "$XFT_CFLAGS" >&6; }
14060 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14061 $as_echo_n "checking XFT_LIBS... " >&6; }
14062 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14063 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14064 $as_echo "$XFT_LIBS" >&6; }
14066 { $as_echo "$as_me:$LINENO: result: no" >&5
14067 $as_echo "no" >&6; }
14070 ## If we have a custom action on failure, don't print errors
, but
14071 ## do set a variable so people can do so.
14072 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14079 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14080 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14084 if test $succeeded = yes; then
14090 ## Because xftfont.c uses XRenderQueryExtension, we also
14091 ## need to link to -lXrender.
14093 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14094 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14095 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14096 $as_echo_n "(cached) " >&6
14098 ac_check_lib_save_LIBS
=$LIBS
14099 LIBS
="-lXrender $LIBS"
14100 cat >conftest.
$ac_ext <<_ACEOF
14103 cat confdefs.h
>>conftest.
$ac_ext
14104 cat >>conftest.
$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14107 /* Override any GCC internal prototype to avoid an error.
14108 Use char because int might match the return type of a GCC
14109 builtin and then its argument prototype would still apply. */
14113 char XRenderQueryExtension ();
14117 return XRenderQueryExtension ();
14122 rm -f conftest.
$ac_objext conftest
$ac_exeext
14123 if { (ac_try
="$ac_link"
14124 case "(($ac_try" in
14125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14129 $as_echo "$ac_try_echo") >&5
14130 (eval "$ac_link") 2>conftest.er1
14132 grep -v '^ *+' conftest.er1 >conftest.err
14134 cat conftest.err >&5
14135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); } && {
14137 test -z "$ac_c_werror_flag" ||
14138 test ! -s conftest.err
14139 } && test -s conftest$ac_exeext && {
14140 test "$cross_compiling" = yes ||
14141 $as_test_x conftest$ac_exeext
14143 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14145 $as_echo "$as_me: failed program was:" >&5
14146 sed 's/^/| /' conftest.$ac_ext >&5
14148 ac_cv_lib_Xrender_XRenderQueryExtension=no
14151 rm -rf conftest.dSYM
14152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14153 conftest$ac_exeext conftest.$ac_ext
14154 LIBS=$ac_check_lib_save_LIBS
14156 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14157 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14158 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14162 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14163 OLD_CPPFLAGS="$CPPFLAGS"
14164 OLD_CFLAGS="$CFLAGS"
14166 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14167 CFLAGS="$CFLAGS $XFT_CFLAGS"
14168 XFT_LIBS="-lXrender $XFT_LIBS"
14169 LIBS="$XFT_LIBS $LIBS"
14170 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14171 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14172 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14173 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14174 $as_echo_n "(cached) " >&6
14176 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14177 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14179 # Is the header compilable?
14180 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14181 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14182 cat >conftest.$ac_ext <<_ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h. */
14188 $ac_includes_default
14189 #include <X11/Xft/Xft.h>
14191 rm -f conftest.$ac_objext
14192 if { (ac_try="$ac_compile"
14193 case "(($ac_try" in
14194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14195 *) ac_try_echo
=$ac_try;;
14197 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14198 $as_echo "$ac_try_echo") >&5
14199 (eval "$ac_compile") 2>conftest.er1
14201 grep -v '^ *+' conftest.er1
>conftest.err
14203 cat conftest.err
>&5
14204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } && {
14206 test -z "$ac_c_werror_flag" ||
14207 test ! -s conftest.err
14208 } && test -s conftest.
$ac_objext; then
14209 ac_header_compiler
=yes
14211 $as_echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.
$ac_ext >&5
14214 ac_header_compiler
=no
14217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14218 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14219 $as_echo "$ac_header_compiler" >&6; }
14221 # Is the header present?
14222 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14223 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14224 cat >conftest.
$ac_ext <<_ACEOF
14227 cat confdefs.h
>>conftest.
$ac_ext
14228 cat >>conftest.
$ac_ext <<_ACEOF
14229 /* end confdefs.h. */
14230 #include <X11/Xft/Xft.h>
14232 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14233 case "(($ac_try" in
14234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14235 *) ac_try_echo=$ac_try;;
14237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14238 $as_echo "$ac_try_echo") >&5
14239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14241 grep -v '^ *+' conftest.er1 >conftest.err
14243 cat conftest.err >&5
14244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } >/dev/null && {
14246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14247 test ! -s conftest.err
14249 ac_header_preproc=yes
14251 $as_echo "$as_me: failed program was:" >&5
14252 sed 's/^/| /' conftest.$ac_ext >&5
14254 ac_header_preproc=no
14257 rm -f conftest.err conftest.$ac_ext
14258 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14259 $as_echo "$ac_header_preproc" >&6; }
14261 # So? What about this header?
14262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14264 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14265 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14266 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14267 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14268 ac_header_preproc=yes
14271 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14272 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14273 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14274 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14275 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14276 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14277 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14278 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14279 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14280 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14281 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14282 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14286 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14287 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14288 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14289 $as_echo_n "(cached) " >&6
14291 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14293 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14294 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14297 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14298 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14299 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14300 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14301 $as_echo_n "(cached) " >&6
14303 ac_check_lib_save_LIBS=$LIBS
14304 LIBS="-lXft $XFT_LIBS $LIBS"
14305 cat >conftest.$ac_ext <<_ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14312 /* Override any GCC internal prototype to avoid an error.
14313 Use char because int might match the return type of a GCC
14314 builtin and then its argument prototype would still apply. */
14318 char XftFontOpen ();
14322 return XftFontOpen ();
14327 rm -f conftest.$ac_objext conftest$ac_exeext
14328 if { (ac_try="$ac_link"
14329 case "(($ac_try" in
14330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14331 *) ac_try_echo
=$ac_try;;
14333 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14334 $as_echo "$ac_try_echo") >&5
14335 (eval "$ac_link") 2>conftest.er1
14337 grep -v '^ *+' conftest.er1
>conftest.err
14339 cat conftest.err
>&5
14340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } && {
14342 test -z "$ac_c_werror_flag" ||
14343 test ! -s conftest.err
14344 } && test -s conftest
$ac_exeext && {
14345 test "$cross_compiling" = yes ||
14346 $as_test_x conftest
$ac_exeext
14348 ac_cv_lib_Xft_XftFontOpen
=yes
14350 $as_echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.
$ac_ext >&5
14353 ac_cv_lib_Xft_XftFontOpen
=no
14356 rm -rf conftest.dSYM
14357 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14358 conftest
$ac_exeext conftest.
$ac_ext
14359 LIBS
=$ac_check_lib_save_LIBS
14361 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14362 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14363 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14371 if test "${HAVE_XFT}" = "yes"; then
14373 cat >>confdefs.h
<<\_ACEOF
14378 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14380 CPPFLAGS
="$OLD_CPPFLAGS"
14381 CFLAGS
="$OLD_CFLAGS"
14383 fi # "${HAVE_XFT}" = "yes"
14384 fi # "$HAVE_XFT" != no
14385 fi # "x${with_xft}" != "xno"
14387 if test "$HAVE_XFT" != "yes"; then
14393 ## We used to allow building with FreeType and without Xft.
14394 ## However, the ftx font backend driver is not in good shape.
14395 if test "${HAVE_XFT}" = "yes"; then
14402 if test "${HAVE_FREETYPE}" = "yes"; then
14404 cat >>confdefs.h
<<\_ACEOF
14405 #define HAVE_FREETYPE 1
14408 if test "${with_libotf}" != "no"; then
14412 # Extract the first word of "pkg-config", so it can be a program name with args.
14413 set dummy pkg-config
; ac_word
=$2
14414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14415 $as_echo_n "checking for $ac_word... " >&6; }
14416 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14417 $as_echo_n "(cached) " >&6
14419 case $PKG_CONFIG in
14421 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14425 for as_dir
in $PATH
14428 test -z "$as_dir" && as_dir
=.
14429 for ac_exec_ext
in '' $ac_executable_extensions; do
14430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14431 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14439 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14443 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14444 if test -n "$PKG_CONFIG"; then
14445 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14446 $as_echo "$PKG_CONFIG" >&6; }
14448 { $as_echo "$as_me:$LINENO: result: no" >&5
14449 $as_echo "no" >&6; }
14454 if test "$PKG_CONFIG" = "no" ; then
14457 PKG_CONFIG_MIN_VERSION
=0.9.0
14458 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14459 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14460 $as_echo_n "checking for libotf... " >&6; }
14462 if $PKG_CONFIG --exists "libotf" 2>&5; then
14463 { $as_echo "$as_me:$LINENO: result: yes" >&5
14464 $as_echo "yes" >&6; }
14467 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14468 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14469 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14470 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14471 $as_echo "$LIBOTF_CFLAGS" >&6; }
14473 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14474 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14475 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14476 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14477 $as_echo "$LIBOTF_LIBS" >&6; }
14479 { $as_echo "$as_me:$LINENO: result: no" >&5
14480 $as_echo "no" >&6; }
14483 ## If we have a custom action on failure, don't print errors, but
14484 ## do set a variable so people can do so.
14485 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14492 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14493 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14497 if test $succeeded = yes; then
14503 if test "$HAVE_LIBOTF" = "yes"; then
14505 cat >>confdefs.h
<<\_ACEOF
14506 #define HAVE_LIBOTF 1
14509 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14510 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14511 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14512 $as_echo_n "(cached) " >&6
14514 ac_check_lib_save_LIBS
=$LIBS
14516 cat >conftest.
$ac_ext <<_ACEOF
14519 cat confdefs.h
>>conftest.
$ac_ext
14520 cat >>conftest.
$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14523 /* Override any GCC internal prototype to avoid an error.
14524 Use char because int might match the return type of a GCC
14525 builtin and then its argument prototype would still apply. */
14529 char OTF_get_variation_glyphs ();
14533 return OTF_get_variation_glyphs ();
14538 rm -f conftest.
$ac_objext conftest
$ac_exeext
14539 if { (ac_try
="$ac_link"
14540 case "(($ac_try" in
14541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14545 $as_echo "$ac_try_echo") >&5
14546 (eval "$ac_link") 2>conftest.er1
14548 grep -v '^ *+' conftest.er1 >conftest.err
14550 cat conftest.err >&5
14551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } && {
14553 test -z "$ac_c_werror_flag" ||
14554 test ! -s conftest.err
14555 } && test -s conftest$ac_exeext && {
14556 test "$cross_compiling" = yes ||
14557 $as_test_x conftest$ac_exeext
14559 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14561 $as_echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14564 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14567 rm -rf conftest.dSYM
14568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14569 conftest$ac_exeext conftest.$ac_ext
14570 LIBS=$ac_check_lib_save_LIBS
14572 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14573 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14574 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14575 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14577 HAVE_OTF_GET_VARIATION_GLYPHS=no
14580 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14582 cat >>confdefs.h <<\_ACEOF
14583 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14592 if test "${HAVE_LIBOTF}" = yes; then
14593 if test "${with_m17n_flt}" != "no"; then
14597 # Extract the first word of "pkg-config", so it can be a program name with args.
14598 set dummy pkg-config; ac_word=$2
14599 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14600 $as_echo_n "checking for $ac_word... " >&6; }
14601 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14602 $as_echo_n "(cached) " >&6
14604 case $PKG_CONFIG in
14606 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14610 for as_dir in $PATH
14613 test -z "$as_dir" && as_dir=.
14614 for ac_exec_ext in '' $ac_executable_extensions; do
14615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14616 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14617 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14624 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14628 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14629 if test -n "$PKG_CONFIG"; then
14630 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14631 $as_echo "$PKG_CONFIG" >&6; }
14633 { $as_echo "$as_me:$LINENO: result: no" >&5
14634 $as_echo "no" >&6; }
14639 if test "$PKG_CONFIG" = "no" ; then
14642 PKG_CONFIG_MIN_VERSION=0.9.0
14643 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14644 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14645 $as_echo_n "checking for m17n-flt... " >&6; }
14647 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14648 { $as_echo "$as_me:$LINENO: result: yes" >&5
14649 $as_echo "yes" >&6; }
14652 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14653 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14654 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14655 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14656 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14658 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14659 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14660 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14661 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14662 $as_echo "$M17N_FLT_LIBS" >&6; }
14664 { $as_echo "$as_me:$LINENO: result: no" >&5
14665 $as_echo "no" >&6; }
14668 ## If we have a custom action on failure, don't print errors, but
14669 ## do set a variable so people can do so.
14670 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14677 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14678 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14682 if test $succeeded = yes; then
14688 if test "$HAVE_M17N_FLT" = "yes"; then
14690 cat >>confdefs.h <<\_ACEOF
14691 #define HAVE_M17N_FLT 1
14705 if test "$HAVE_XFT" = "yes"; then
14706 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14707 elif test "$HAVE_FREETYPE" = "yes"; then
14708 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14712 ### End of font-backend (under X11) section.
14723 ### Use -lXpm if available, unless `--with-xpm=no
'.
14726 if test "${HAVE_X11}" = "yes"; then
14727 if test "${with_xpm}" != "no"; then
14728 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14729 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14730 $as_echo_n "checking for X11/xpm.h... " >&6; }
14731 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14732 $as_echo_n "(cached) " >&6
14734 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14735 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14737 # Is the header compilable?
14738 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14739 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14740 cat >conftest.$ac_ext <<_ACEOF
14743 cat confdefs.h >>conftest.$ac_ext
14744 cat >>conftest.$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14746 $ac_includes_default
14747 #include <X11/xpm.h>
14749 rm -f conftest.$ac_objext
14750 if { (ac_try="$ac_compile"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14756 $as_echo "$ac_try_echo") >&5
14757 (eval "$ac_compile") 2>conftest.er1
14759 grep -v '^
*+' conftest.er1 >conftest.err
14761 cat conftest.err >&5
14762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest.$ac_objext; then
14767 ac_header_compiler=yes
14769 $as_echo "$as_me: failed program was:" >&5
14770 sed 's
/^
/|
/' conftest.$ac_ext >&5
14772 ac_header_compiler=no
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14777 $as_echo "$ac_header_compiler" >&6; }
14779 # Is the header present?
14780 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14781 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14782 cat >conftest.$ac_ext <<_ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h. */
14788 #include <X11/xpm.h>
14790 if { (ac_try="$ac_cpp conftest.$ac_ext"
14791 case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14796 $as_echo "$ac_try_echo") >&5
14797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14799 grep -v '^
*+' conftest.er1 >conftest.err
14801 cat conftest.err >&5
14802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } >/dev/null && {
14804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14805 test ! -s conftest.err
14807 ac_header_preproc=yes
14809 $as_echo "$as_me: failed program was:" >&5
14810 sed 's
/^
/|
/' conftest.$ac_ext >&5
14812 ac_header_preproc=no
14815 rm -f conftest.err conftest.$ac_ext
14816 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14817 $as_echo "$ac_header_preproc" >&6; }
14819 # So? What about this header?
14820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14822 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14823 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14824 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14825 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14826 ac_header_preproc=yes
14829 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14830 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14831 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14832 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14833 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14834 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14835 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14836 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14837 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14838 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14839 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14840 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14844 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14845 $as_echo_n "checking for X11/xpm.h... " >&6; }
14846 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14847 $as_echo_n "(cached) " >&6
14849 ac_cv_header_X11_xpm_h=$ac_header_preproc
14851 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14852 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14855 if test $ac_cv_header_X11_xpm_h = yes; then
14856 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14857 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14858 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14859 $as_echo_n "(cached) " >&6
14861 ac_check_lib_save_LIBS=$LIBS
14862 LIBS="-lXpm -lX11 $LIBS"
14863 cat >conftest.$ac_ext <<_ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14870 /* Override any GCC internal prototype to avoid an error.
14871 Use char because int might match the return type of a GCC
14872 builtin and then its argument prototype would still apply. */
14876 char XpmReadFileToPixmap ();
14880 return XpmReadFileToPixmap ();
14885 rm -f conftest.$ac_objext conftest$ac_exeext
14886 if { (ac_try="$ac_link"
14887 case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14892 $as_echo "$ac_try_echo") >&5
14893 (eval "$ac_link") 2>conftest.er1
14895 grep -v '^
*+' conftest.er1 >conftest.err
14897 cat conftest.err >&5
14898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } && {
14900 test -z "$ac_c_werror_flag" ||
14901 test ! -s conftest.err
14902 } && test -s conftest$ac_exeext && {
14903 test "$cross_compiling" = yes ||
14904 $as_test_x conftest$ac_exeext
14906 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14908 $as_echo "$as_me: failed program was:" >&5
14909 sed 's
/^
/|
/' conftest.$ac_ext >&5
14911 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14914 rm -rf conftest.dSYM
14915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14916 conftest$ac_exeext conftest.$ac_ext
14917 LIBS=$ac_check_lib_save_LIBS
14919 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14920 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14921 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14928 if test "${HAVE_XPM}" = "yes"; then
14929 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14930 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14931 cat >conftest.$ac_ext <<_ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 #include "X11/xpm.h"
14938 #ifndef XpmReturnAllocPixels
14939 no_return_alloc_pixels
14943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14944 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14952 if test "${HAVE_XPM}" = "yes"; then
14953 { $as_echo "$as_me:$LINENO: result: yes" >&5
14954 $as_echo "yes" >&6; }
14956 { $as_echo "$as_me:$LINENO: result: no" >&5
14957 $as_echo "no" >&6; }
14962 if test "${HAVE_XPM}" = "yes"; then
14964 cat >>confdefs.h <<\_ACEOF
14973 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14976 if test "${HAVE_X11}" = "yes"; then
14977 if test "${with_jpeg}" != "no"; then
14978 if test "${ac_cv_header_jerror_h+set}" = set; then
14979 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14980 $as_echo_n "checking for jerror.h... " >&6; }
14981 if test "${ac_cv_header_jerror_h+set}" = set; then
14982 $as_echo_n "(cached) " >&6
14984 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14985 $as_echo "$ac_cv_header_jerror_h" >&6; }
14987 # Is the header compilable?
14988 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14989 $as_echo_n "checking jerror.h usability... " >&6; }
14990 cat >conftest.
$ac_ext <<_ACEOF
14993 cat confdefs.h
>>conftest.
$ac_ext
14994 cat >>conftest.
$ac_ext <<_ACEOF
14995 /* end confdefs.h. */
14996 $ac_includes_default
14997 #include <jerror.h>
14999 rm -f conftest.
$ac_objext
15000 if { (ac_try
="$ac_compile"
15001 case "(($ac_try" in
15002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15006 $as_echo "$ac_try_echo") >&5
15007 (eval "$ac_compile") 2>conftest.er1
15009 grep -v '^ *+' conftest.er1 >conftest.err
15011 cat conftest.err >&5
15012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } && {
15014 test -z "$ac_c_werror_flag" ||
15015 test ! -s conftest.err
15016 } && test -s conftest.$ac_objext; then
15017 ac_header_compiler=yes
15019 $as_echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15022 ac_header_compiler=no
15025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15026 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15027 $as_echo "$ac_header_compiler" >&6; }
15029 # Is the header present?
15030 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15031 $as_echo_n "checking jerror.h presence... " >&6; }
15032 cat >conftest.$ac_ext <<_ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h. */
15038 #include <jerror.h>
15040 if { (ac_try="$ac_cpp conftest.$ac_ext"
15041 case "(($ac_try" in
15042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15043 *) ac_try_echo
=$ac_try;;
15045 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15046 $as_echo "$ac_try_echo") >&5
15047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15049 grep -v '^ *+' conftest.er1
>conftest.err
15051 cat conftest.err
>&5
15052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } >/dev
/null
&& {
15054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15055 test ! -s conftest.err
15057 ac_header_preproc
=yes
15059 $as_echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.
$ac_ext >&5
15062 ac_header_preproc
=no
15065 rm -f conftest.err conftest.
$ac_ext
15066 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15067 $as_echo "$ac_header_preproc" >&6; }
15069 # So? What about this header?
15070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15072 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15073 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15074 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15075 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15076 ac_header_preproc
=yes
15079 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15080 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15081 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15082 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15083 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15084 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15085 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15086 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15087 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15088 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15089 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15090 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15094 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15095 $as_echo_n "checking for jerror.h... " >&6; }
15096 if test "${ac_cv_header_jerror_h+set}" = set; then
15097 $as_echo_n "(cached) " >&6
15099 ac_cv_header_jerror_h
=$ac_header_preproc
15101 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15102 $as_echo "$ac_cv_header_jerror_h" >&6; }
15105 if test $ac_cv_header_jerror_h = yes; then
15106 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15107 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15108 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15109 $as_echo_n "(cached) " >&6
15111 ac_check_lib_save_LIBS
=$LIBS
15112 LIBS
="-ljpeg $LIBS"
15113 cat >conftest.
$ac_ext <<_ACEOF
15116 cat confdefs.h
>>conftest.
$ac_ext
15117 cat >>conftest.
$ac_ext <<_ACEOF
15118 /* end confdefs.h. */
15120 /* Override any GCC internal prototype to avoid an error.
15121 Use char because int might match the return type of a GCC
15122 builtin and then its argument prototype would still apply. */
15126 char jpeg_destroy_compress ();
15130 return jpeg_destroy_compress ();
15135 rm -f conftest.
$ac_objext conftest
$ac_exeext
15136 if { (ac_try
="$ac_link"
15137 case "(($ac_try" in
15138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15139 *) ac_try_echo=$ac_try;;
15141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15142 $as_echo "$ac_try_echo") >&5
15143 (eval "$ac_link") 2>conftest.er1
15145 grep -v '^ *+' conftest.er1 >conftest.err
15147 cat conftest.err >&5
15148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } && {
15150 test -z "$ac_c_werror_flag" ||
15151 test ! -s conftest.err
15152 } && test -s conftest$ac_exeext && {
15153 test "$cross_compiling" = yes ||
15154 $as_test_x conftest$ac_exeext
15156 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15158 $as_echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15161 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15164 rm -rf conftest.dSYM
15165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15166 conftest$ac_exeext conftest.$ac_ext
15167 LIBS=$ac_check_lib_save_LIBS
15169 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15170 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15171 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15181 if test "${HAVE_JPEG}" = "yes"; then
15182 cat >>confdefs.h <<\_ACEOF
15183 #define HAVE_JPEG 1
15186 cat >conftest.$ac_ext <<_ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h. */
15192 #include <jpeglib.h>
15193 version=JPEG_LIB_VERSION
15196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15197 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15198 cat >>confdefs.h <<\_ACEOF
15199 #define HAVE_JPEG 1
15203 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15204 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15210 if test "${HAVE_JPEG}" = "yes"; then
15216 ### Use -lpng if available, unless `--with-png=no
'.
15219 if test "${HAVE_X11}" = "yes"; then
15220 if test "${with_png}" != "no"; then
15221 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15222 # in /usr/include/libpng.
15225 for ac_header in png.h libpng/png.h
15227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15230 $as_echo_n "checking for $ac_header... " >&6; }
15231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15232 $as_echo_n "(cached) " >&6
15234 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15235 $as_echo "$as_val"'`
15236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15237 $as_echo "$ac_res" >&6; }
15239 # Is the header compilable?
15240 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15241 $as_echo_n "checking $ac_header usability... " >&6; }
15242 cat >conftest.$ac_ext <<_ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 $ac_includes_default
15249 #include <$ac_header>
15251 rm -f conftest.$ac_objext
15252 if { (ac_try="$ac_compile"
15253 case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15258 $as_echo "$ac_try_echo") >&5
15259 (eval "$ac_compile") 2>conftest.er1
15261 grep -v '^
*+' conftest.er1 >conftest.err
15263 cat conftest.err >&5
15264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } && {
15266 test -z "$ac_c_werror_flag" ||
15267 test ! -s conftest.err
15268 } && test -s conftest.$ac_objext; then
15269 ac_header_compiler=yes
15271 $as_echo "$as_me: failed program was:" >&5
15272 sed 's
/^
/|
/' conftest.$ac_ext >&5
15274 ac_header_compiler=no
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15279 $as_echo "$ac_header_compiler" >&6; }
15281 # Is the header present?
15282 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15283 $as_echo_n "checking $ac_header presence... " >&6; }
15284 cat >conftest.$ac_ext <<_ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 #include <$ac_header>
15292 if { (ac_try="$ac_cpp conftest.$ac_ext"
15293 case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15298 $as_echo "$ac_try_echo") >&5
15299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15301 grep -v '^
*+' conftest.er1 >conftest.err
15303 cat conftest.err >&5
15304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } >/dev/null && {
15306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15307 test ! -s conftest.err
15309 ac_header_preproc=yes
15311 $as_echo "$as_me: failed program was:" >&5
15312 sed 's
/^
/|
/' conftest.$ac_ext >&5
15314 ac_header_preproc=no
15317 rm -f conftest.err conftest.$ac_ext
15318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15319 $as_echo "$ac_header_preproc" >&6; }
15321 # So? What about this header?
15322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15325 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
15327 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
15328 ac_header_preproc=yes
15331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15332 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15334 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15336 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15338 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
15340 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
15341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15342 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15347 $as_echo_n "checking for $ac_header... " >&6; }
15348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15349 $as_echo_n "(cached) " >&6
15351 eval "$as_ac_Header=\$ac_header_preproc"
15353 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15354 $as_echo "$as_val"'`
15355 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15356 $as_echo "$ac_res" >&6; }
15359 if test `eval 'as_val
=${'$as_ac_Header'}
15360 $as_echo "$as_val"'` = yes; then
15361 cat >>confdefs.h <<_ACEOF
15362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15369 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15370 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15371 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15372 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15373 $as_echo_n "(cached) " >&6
15375 ac_check_lib_save_LIBS=$LIBS
15376 LIBS="-lpng -lz -lm $LIBS"
15377 cat >conftest.$ac_ext <<_ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15384 /* Override any GCC internal prototype to avoid an error.
15385 Use char because int might match the return type of a GCC
15386 builtin and then its argument prototype would still apply. */
15390 char png_get_channels ();
15394 return png_get_channels ();
15399 rm -f conftest.$ac_objext conftest$ac_exeext
15400 if { (ac_try="$ac_link"
15401 case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15406 $as_echo "$ac_try_echo") >&5
15407 (eval "$ac_link") 2>conftest.er1
15409 grep -v '^
*+' conftest.er1 >conftest.err
15411 cat conftest.err >&5
15412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } && {
15414 test -z "$ac_c_werror_flag" ||
15415 test ! -s conftest.err
15416 } && test -s conftest$ac_exeext && {
15417 test "$cross_compiling" = yes ||
15418 $as_test_x conftest$ac_exeext
15420 ac_cv_lib_png_png_get_channels=yes
15422 $as_echo "$as_me: failed program was:" >&5
15423 sed 's
/^
/|
/' conftest.$ac_ext >&5
15425 ac_cv_lib_png_png_get_channels=no
15428 rm -rf conftest.dSYM
15429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15430 conftest$ac_exeext conftest.$ac_ext
15431 LIBS=$ac_check_lib_save_LIBS
15433 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15434 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15435 if test $ac_cv_lib_png_png_get_channels = yes; then
15442 if test "${HAVE_PNG}" = "yes"; then
15444 cat >>confdefs.h <<\_ACEOF
15448 LIBPNG="-lpng -lz -lm"
15453 ### Use -ltiff if available, unless `--with-tiff=no'.
15456 if test "${HAVE_X11}" = "yes"; then
15457 if test "${with_tiff}" != "no"; then
15458 if test "${ac_cv_header_tiffio_h+set}" = set; then
15459 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15460 $as_echo_n "checking for tiffio.h... " >&6; }
15461 if test "${ac_cv_header_tiffio_h+set}" = set; then
15462 $as_echo_n "(cached) " >&6
15464 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15465 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15467 # Is the header compilable?
15468 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15469 $as_echo_n "checking tiffio.h usability... " >&6; }
15470 cat >conftest.
$ac_ext <<_ACEOF
15473 cat confdefs.h
>>conftest.
$ac_ext
15474 cat >>conftest.
$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 $ac_includes_default
15477 #include <tiffio.h>
15479 rm -f conftest.
$ac_objext
15480 if { (ac_try
="$ac_compile"
15481 case "(($ac_try" in
15482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15486 $as_echo "$ac_try_echo") >&5
15487 (eval "$ac_compile") 2>conftest.er1
15489 grep -v '^ *+' conftest.er1 >conftest.err
15491 cat conftest.err >&5
15492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } && {
15494 test -z "$ac_c_werror_flag" ||
15495 test ! -s conftest.err
15496 } && test -s conftest.$ac_objext; then
15497 ac_header_compiler=yes
15499 $as_echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15502 ac_header_compiler=no
15505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15506 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15507 $as_echo "$ac_header_compiler" >&6; }
15509 # Is the header present?
15510 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15511 $as_echo_n "checking tiffio.h presence... " >&6; }
15512 cat >conftest.$ac_ext <<_ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15518 #include <tiffio.h>
15520 if { (ac_try="$ac_cpp conftest.$ac_ext"
15521 case "(($ac_try" in
15522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15523 *) ac_try_echo
=$ac_try;;
15525 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15526 $as_echo "$ac_try_echo") >&5
15527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15529 grep -v '^ *+' conftest.er1
>conftest.err
15531 cat conftest.err
>&5
15532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } >/dev
/null
&& {
15534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15535 test ! -s conftest.err
15537 ac_header_preproc
=yes
15539 $as_echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.
$ac_ext >&5
15542 ac_header_preproc
=no
15545 rm -f conftest.err conftest.
$ac_ext
15546 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15547 $as_echo "$ac_header_preproc" >&6; }
15549 # So? What about this header?
15550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15552 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15553 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15554 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15555 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15556 ac_header_preproc
=yes
15559 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15560 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15561 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15562 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15563 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15564 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15565 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15566 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15567 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15568 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15569 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15570 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15574 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15575 $as_echo_n "checking for tiffio.h... " >&6; }
15576 if test "${ac_cv_header_tiffio_h+set}" = set; then
15577 $as_echo_n "(cached) " >&6
15579 ac_cv_header_tiffio_h
=$ac_header_preproc
15581 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15582 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15585 if test $ac_cv_header_tiffio_h = yes; then
15587 # At least one tiff package requires the jpeg library.
15588 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15589 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15590 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15591 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15592 $as_echo_n "(cached) " >&6
15594 ac_check_lib_save_LIBS
=$LIBS
15595 LIBS
="-ltiff $tifflibs $LIBS"
15596 cat >conftest.
$ac_ext <<_ACEOF
15599 cat confdefs.h
>>conftest.
$ac_ext
15600 cat >>conftest.
$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15603 /* Override any GCC internal prototype to avoid an error.
15604 Use char because int might match the return type of a GCC
15605 builtin and then its argument prototype would still apply. */
15609 char TIFFGetVersion ();
15613 return TIFFGetVersion ();
15618 rm -f conftest.
$ac_objext conftest
$ac_exeext
15619 if { (ac_try
="$ac_link"
15620 case "(($ac_try" in
15621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15622 *) ac_try_echo=$ac_try;;
15624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15625 $as_echo "$ac_try_echo") >&5
15626 (eval "$ac_link") 2>conftest.er1
15628 grep -v '^ *+' conftest.er1 >conftest.err
15630 cat conftest.err >&5
15631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } && {
15633 test -z "$ac_c_werror_flag" ||
15634 test ! -s conftest.err
15635 } && test -s conftest$ac_exeext && {
15636 test "$cross_compiling" = yes ||
15637 $as_test_x conftest$ac_exeext
15639 ac_cv_lib_tiff_TIFFGetVersion=yes
15641 $as_echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15644 ac_cv_lib_tiff_TIFFGetVersion=no
15647 rm -rf conftest.dSYM
15648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15649 conftest$ac_exeext conftest.$ac_ext
15650 LIBS=$ac_check_lib_save_LIBS
15652 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15653 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15654 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15663 if test "${HAVE_TIFF}" = "yes"; then
15665 cat >>confdefs.h <<\_ACEOF
15666 #define HAVE_TIFF 1
15674 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15677 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15678 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15679 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15680 $as_echo_n "checking for gif_lib.h... " >&6; }
15681 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15682 $as_echo_n "(cached) " >&6
15684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15685 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15687 # Is the header compilable?
15688 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15689 $as_echo_n "checking gif_lib.h usability... " >&6; }
15690 cat >conftest.$ac_ext <<_ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15696 $ac_includes_default
15697 #include <gif_lib.h>
15699 rm -f conftest.$ac_objext
15700 if { (ac_try="$ac_compile"
15701 case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15706 $as_echo "$ac_try_echo") >&5
15707 (eval "$ac_compile") 2>conftest.er1
15709 grep -v '^
*+' conftest.er1 >conftest.err
15711 cat conftest.err >&5
15712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); } && {
15714 test -z "$ac_c_werror_flag" ||
15715 test ! -s conftest.err
15716 } && test -s conftest.$ac_objext; then
15717 ac_header_compiler=yes
15719 $as_echo "$as_me: failed program was:" >&5
15720 sed 's
/^
/|
/' conftest.$ac_ext >&5
15722 ac_header_compiler=no
15725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15727 $as_echo "$ac_header_compiler" >&6; }
15729 # Is the header present?
15730 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15731 $as_echo_n "checking gif_lib.h presence... " >&6; }
15732 cat >conftest.$ac_ext <<_ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 #include <gif_lib.h>
15740 if { (ac_try="$ac_cpp conftest.$ac_ext"
15741 case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15746 $as_echo "$ac_try_echo") >&5
15747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15749 grep -v '^
*+' conftest.er1 >conftest.err
15751 cat conftest.err >&5
15752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } >/dev/null && {
15754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15755 test ! -s conftest.err
15757 ac_header_preproc=yes
15759 $as_echo "$as_me: failed program was:" >&5
15760 sed 's
/^
/|
/' conftest.$ac_ext >&5
15762 ac_header_preproc=no
15765 rm -f conftest.err conftest.$ac_ext
15766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15767 $as_echo "$ac_header_preproc" >&6; }
15769 # So? What about this header?
15770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15772 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15773 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15774 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15775 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15776 ac_header_preproc=yes
15779 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15780 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15781 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15782 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15783 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15784 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15785 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15786 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15787 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15788 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15789 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15790 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15794 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15795 $as_echo_n "checking for gif_lib.h... " >&6; }
15796 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15797 $as_echo_n "(cached) " >&6
15799 ac_cv_header_gif_lib_h=$ac_header_preproc
15801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15802 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15805 if test $ac_cv_header_gif_lib_h = yes; then
15806 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15807 # Earlier versions can crash Emacs.
15808 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15809 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15810 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15811 $as_echo_n "(cached) " >&6
15813 ac_check_lib_save_LIBS=$LIBS
15815 cat >conftest.$ac_ext <<_ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h. */
15822 /* Override any GCC internal prototype to avoid an error.
15823 Use char because int might match the return type of a GCC
15824 builtin and then its argument prototype would still apply. */
15828 char EGifPutExtensionLast ();
15832 return EGifPutExtensionLast ();
15837 rm -f conftest.$ac_objext conftest$ac_exeext
15838 if { (ac_try="$ac_link"
15839 case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15844 $as_echo "$ac_try_echo") >&5
15845 (eval "$ac_link") 2>conftest.er1
15847 grep -v '^
*+' conftest.er1 >conftest.err
15849 cat conftest.err >&5
15850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); } && {
15852 test -z "$ac_c_werror_flag" ||
15853 test ! -s conftest.err
15854 } && test -s conftest$ac_exeext && {
15855 test "$cross_compiling" = yes ||
15856 $as_test_x conftest$ac_exeext
15858 ac_cv_lib_gif_EGifPutExtensionLast=yes
15860 $as_echo "$as_me: failed program was:" >&5
15861 sed 's
/^
/|
/' conftest.$ac_ext >&5
15863 ac_cv_lib_gif_EGifPutExtensionLast=no
15866 rm -rf conftest.dSYM
15867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15868 conftest$ac_exeext conftest.$ac_ext
15869 LIBS=$ac_check_lib_save_LIBS
15871 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15872 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15873 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15883 if test "$HAVE_GIF" = yes; then
15885 elif test "$HAVE_GIF" = maybe; then
15886 # If gif_lib.h but no libgif, try libungif.
15887 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15888 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15889 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15890 $as_echo_n "(cached) " >&6
15892 ac_check_lib_save_LIBS=$LIBS
15893 LIBS="-lungif $LIBS"
15894 cat >conftest.$ac_ext <<_ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h. */
15901 /* Override any GCC internal prototype to avoid an error.
15902 Use char because int might match the return type of a GCC
15903 builtin and then its argument prototype would still apply. */
15907 char EGifPutExtensionLast ();
15911 return EGifPutExtensionLast ();
15916 rm -f conftest.$ac_objext conftest$ac_exeext
15917 if { (ac_try="$ac_link"
15918 case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15923 $as_echo "$ac_try_echo") >&5
15924 (eval "$ac_link") 2>conftest.er1
15926 grep -v '^
*+' conftest.er1 >conftest.err
15928 cat conftest.err >&5
15929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); } && {
15931 test -z "$ac_c_werror_flag" ||
15932 test ! -s conftest.err
15933 } && test -s conftest$ac_exeext && {
15934 test "$cross_compiling" = yes ||
15935 $as_test_x conftest$ac_exeext
15937 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15939 $as_echo "$as_me: failed program was:" >&5
15940 sed 's
/^
/|
/' conftest.$ac_ext >&5
15942 ac_cv_lib_ungif_EGifPutExtensionLast=no
15945 rm -rf conftest.dSYM
15946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15947 conftest$ac_exeext conftest.$ac_ext
15948 LIBS=$ac_check_lib_save_LIBS
15950 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15951 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15952 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15958 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15961 if test "${HAVE_GIF}" = "yes"; then
15963 cat >>confdefs.h <<\_ACEOF
15971 if test "${HAVE_X11}" = "yes"; then
15974 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15975 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15976 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15977 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15978 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15979 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15980 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15981 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15982 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15983 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15985 if test "X${MISSING}" != X; then
15986 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15988 Maybe some development libraries/packages are missing?
15989 If you don't want to link with them give
15991 as options to configure
" >&5
15992 $as_echo "$as_me: error
: The following required libraries were not found
:
15994 Maybe some development libraries
/packages are missing?
15995 If you don
't want to link with them give
15997 as options to configure" >&2;}
15998 { (exit 1); exit 1; }; }
16002 ### Use -lgpm if available, unless `--with-gpm=no'.
16006 if test "${with_gpm}" != "no"; then
16007 if test "${ac_cv_header_gpm_h+set}" = set; then
16008 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16009 $as_echo_n "checking for gpm.h... " >&6; }
16010 if test "${ac_cv_header_gpm_h+set}" = set; then
16011 $as_echo_n "(cached) " >&6
16013 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16014 $as_echo "$ac_cv_header_gpm_h" >&6; }
16016 # Is the header compilable?
16017 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16018 $as_echo_n "checking gpm.h usability... " >&6; }
16019 cat >conftest.
$ac_ext <<_ACEOF
16022 cat confdefs.h
>>conftest.
$ac_ext
16023 cat >>conftest.
$ac_ext <<_ACEOF
16024 /* end confdefs.h. */
16025 $ac_includes_default
16028 rm -f conftest.
$ac_objext
16029 if { (ac_try
="$ac_compile"
16030 case "(($ac_try" in
16031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16035 $as_echo "$ac_try_echo") >&5
16036 (eval "$ac_compile") 2>conftest.er1
16038 grep -v '^ *+' conftest.er1 >conftest.err
16040 cat conftest.err >&5
16041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } && {
16043 test -z "$ac_c_werror_flag" ||
16044 test ! -s conftest.err
16045 } && test -s conftest.$ac_objext; then
16046 ac_header_compiler=yes
16048 $as_echo "$as_me: failed program was:" >&5
16049 sed 's/^/| /' conftest.$ac_ext >&5
16051 ac_header_compiler=no
16054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16055 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16056 $as_echo "$ac_header_compiler" >&6; }
16058 # Is the header present?
16059 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16060 $as_echo_n "checking gpm.h presence... " >&6; }
16061 cat >conftest.$ac_ext <<_ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16069 if { (ac_try="$ac_cpp conftest.$ac_ext"
16070 case "(($ac_try" in
16071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16072 *) ac_try_echo
=$ac_try;;
16074 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16075 $as_echo "$ac_try_echo") >&5
16076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16078 grep -v '^ *+' conftest.er1
>conftest.err
16080 cat conftest.err
>&5
16081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } >/dev
/null
&& {
16083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16084 test ! -s conftest.err
16086 ac_header_preproc
=yes
16088 $as_echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.
$ac_ext >&5
16091 ac_header_preproc
=no
16094 rm -f conftest.err conftest.
$ac_ext
16095 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16096 $as_echo "$ac_header_preproc" >&6; }
16098 # So? What about this header?
16099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16101 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16102 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16103 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16104 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16105 ac_header_preproc
=yes
16108 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16109 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16110 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16111 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16112 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16113 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16114 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16115 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16116 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16117 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16118 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16119 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16123 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16124 $as_echo_n "checking for gpm.h... " >&6; }
16125 if test "${ac_cv_header_gpm_h+set}" = set; then
16126 $as_echo_n "(cached) " >&6
16128 ac_cv_header_gpm_h
=$ac_header_preproc
16130 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16131 $as_echo "$ac_cv_header_gpm_h" >&6; }
16134 if test $ac_cv_header_gpm_h = yes; then
16135 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16136 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16137 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16138 $as_echo_n "(cached) " >&6
16140 ac_check_lib_save_LIBS
=$LIBS
16142 cat >conftest.
$ac_ext <<_ACEOF
16145 cat confdefs.h
>>conftest.
$ac_ext
16146 cat >>conftest.
$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16149 /* Override any GCC internal prototype to avoid an error.
16150 Use char because int might match the return type of a GCC
16151 builtin and then its argument prototype would still apply. */
16159 return Gpm_Open ();
16164 rm -f conftest.
$ac_objext conftest
$ac_exeext
16165 if { (ac_try
="$ac_link"
16166 case "(($ac_try" in
16167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16171 $as_echo "$ac_try_echo") >&5
16172 (eval "$ac_link") 2>conftest.er1
16174 grep -v '^ *+' conftest.er1 >conftest.err
16176 cat conftest.err >&5
16177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } && {
16179 test -z "$ac_c_werror_flag" ||
16180 test ! -s conftest.err
16181 } && test -s conftest$ac_exeext && {
16182 test "$cross_compiling" = yes ||
16183 $as_test_x conftest$ac_exeext
16185 ac_cv_lib_gpm_Gpm_Open=yes
16187 $as_echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16190 ac_cv_lib_gpm_Gpm_Open=no
16193 rm -rf conftest.dSYM
16194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16195 conftest$ac_exeext conftest.$ac_ext
16196 LIBS=$ac_check_lib_save_LIBS
16198 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16199 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16200 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16208 if test "${HAVE_GPM}" = "yes"; then
16210 cat >>confdefs.h <<\_ACEOF
16215 ## May be reset below.
16216 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
16221 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16222 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16223 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16224 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16225 $as_echo_n "(cached) " >&6
16227 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16228 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16230 # Is the header compilable?
16231 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16232 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16233 cat >conftest.$ac_ext <<_ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 $ac_includes_default
16240 #include <malloc/malloc.h>
16242 rm -f conftest.$ac_objext
16243 if { (ac_try="$ac_compile"
16244 case "(($ac_try" in
16245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16246 *) ac_try_echo
=$ac_try;;
16248 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16249 $as_echo "$ac_try_echo") >&5
16250 (eval "$ac_compile") 2>conftest.er1
16252 grep -v '^ *+' conftest.er1
>conftest.err
16254 cat conftest.err
>&5
16255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } && {
16257 test -z "$ac_c_werror_flag" ||
16258 test ! -s conftest.err
16259 } && test -s conftest.
$ac_objext; then
16260 ac_header_compiler
=yes
16262 $as_echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.
$ac_ext >&5
16265 ac_header_compiler
=no
16268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16270 $as_echo "$ac_header_compiler" >&6; }
16272 # Is the header present?
16273 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16274 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16275 cat >conftest.
$ac_ext <<_ACEOF
16278 cat confdefs.h
>>conftest.
$ac_ext
16279 cat >>conftest.
$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16281 #include <malloc/malloc.h>
16283 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16284 case "(($ac_try" in
16285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16289 $as_echo "$ac_try_echo") >&5
16290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16292 grep -v '^ *+' conftest.er1 >conftest.err
16294 cat conftest.err >&5
16295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } >/dev/null && {
16297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16298 test ! -s conftest.err
16300 ac_header_preproc=yes
16302 $as_echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16305 ac_header_preproc=no
16308 rm -f conftest.err conftest.$ac_ext
16309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16310 $as_echo "$ac_header_preproc" >&6; }
16312 # So? What about this header?
16313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16315 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16316 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16317 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16318 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16319 ac_header_preproc=yes
16322 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16323 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16324 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16325 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16326 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16327 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16328 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16329 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16330 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16331 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16332 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16333 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16337 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16338 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16339 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16340 $as_echo_n "(cached) " >&6
16342 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16344 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16345 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16348 if test $ac_cv_header_malloc_malloc_h = yes; then
16350 cat >>confdefs.h <<\_ACEOF
16351 #define HAVE_MALLOC_MALLOC_H 1
16359 ### Use NeXTstep API to implement GUI.
16360 if test "${HAVE_NS}" = "yes"; then
16362 cat >>confdefs.h <<\_ACEOF
16366 if test "${NS_IMPL_COCOA}" = "yes"; then
16368 cat >>confdefs.h <<\_ACEOF
16369 #define NS_IMPL_COCOA 1
16374 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16376 cat >>confdefs.h <<\_ACEOF
16377 #define NS_IMPL_GNUSTEP 1
16380 # See also .m.o rule in Makefile.in */
16381 # FIXME: are all these flags really needed? Document here why. */
16382 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16383 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16385 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16387 cat >>confdefs.h <<\_ACEOF
16388 #define NS_HAVE_NSINTEGER 1
16392 # We also have mouse menus.
16398 ### Use session management (-lSM -lICE) if available
16401 if test "${HAVE_X11}" = "yes"; then
16402 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16403 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16404 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16405 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16406 $as_echo_n "(cached) " >&6
16408 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16409 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16411 # Is the header compilable?
16412 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16413 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16414 cat >conftest.$ac_ext <<_ACEOF
16417 cat confdefs.h >>conftest.$ac_ext
16418 cat >>conftest.$ac_ext <<_ACEOF
16419 /* end confdefs.h. */
16420 $ac_includes_default
16421 #include <X11/SM/SMlib.h>
16423 rm -f conftest.$ac_objext
16424 if { (ac_try="$ac_compile"
16425 case "(($ac_try" in
16426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16427 *) ac_try_echo
=$ac_try;;
16429 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16430 $as_echo "$ac_try_echo") >&5
16431 (eval "$ac_compile") 2>conftest.er1
16433 grep -v '^ *+' conftest.er1
>conftest.err
16435 cat conftest.err
>&5
16436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } && {
16438 test -z "$ac_c_werror_flag" ||
16439 test ! -s conftest.err
16440 } && test -s conftest.
$ac_objext; then
16441 ac_header_compiler
=yes
16443 $as_echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.
$ac_ext >&5
16446 ac_header_compiler
=no
16449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16450 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16451 $as_echo "$ac_header_compiler" >&6; }
16453 # Is the header present?
16454 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16455 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16456 cat >conftest.
$ac_ext <<_ACEOF
16459 cat confdefs.h
>>conftest.
$ac_ext
16460 cat >>conftest.
$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 #include <X11/SM/SMlib.h>
16464 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16465 case "(($ac_try" in
16466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16470 $as_echo "$ac_try_echo") >&5
16471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16473 grep -v '^ *+' conftest.er1 >conftest.err
16475 cat conftest.err >&5
16476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } >/dev/null && {
16478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16479 test ! -s conftest.err
16481 ac_header_preproc=yes
16483 $as_echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16486 ac_header_preproc=no
16489 rm -f conftest.err conftest.$ac_ext
16490 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16491 $as_echo "$ac_header_preproc" >&6; }
16493 # So? What about this header?
16494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16496 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16497 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16498 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16499 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16500 ac_header_preproc=yes
16503 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16504 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16505 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16506 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16507 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16508 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16509 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16510 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16511 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16512 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16513 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16514 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16518 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16519 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16520 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16521 $as_echo_n "(cached) " >&6
16523 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16525 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16526 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16529 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16530 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16531 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16532 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16533 $as_echo_n "(cached) " >&6
16535 ac_check_lib_save_LIBS=$LIBS
16536 LIBS="-lSM -lICE $LIBS"
16537 cat >conftest.$ac_ext <<_ACEOF
16540 cat confdefs.h >>conftest.$ac_ext
16541 cat >>conftest.$ac_ext <<_ACEOF
16542 /* end confdefs.h. */
16544 /* Override any GCC internal prototype to avoid an error.
16545 Use char because int might match the return type of a GCC
16546 builtin and then its argument prototype would still apply. */
16550 char SmcOpenConnection ();
16554 return SmcOpenConnection ();
16559 rm -f conftest.$ac_objext conftest$ac_exeext
16560 if { (ac_try="$ac_link"
16561 case "(($ac_try" in
16562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16563 *) ac_try_echo
=$ac_try;;
16565 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16566 $as_echo "$ac_try_echo") >&5
16567 (eval "$ac_link") 2>conftest.er1
16569 grep -v '^ *+' conftest.er1
>conftest.err
16571 cat conftest.err
>&5
16572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } && {
16574 test -z "$ac_c_werror_flag" ||
16575 test ! -s conftest.err
16576 } && test -s conftest
$ac_exeext && {
16577 test "$cross_compiling" = yes ||
16578 $as_test_x conftest
$ac_exeext
16580 ac_cv_lib_SM_SmcOpenConnection
=yes
16582 $as_echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.
$ac_ext >&5
16585 ac_cv_lib_SM_SmcOpenConnection
=no
16588 rm -rf conftest.dSYM
16589 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16590 conftest
$ac_exeext conftest.
$ac_ext
16591 LIBS
=$ac_check_lib_save_LIBS
16593 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16594 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16595 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16603 if test "${HAVE_X_SM}" = "yes"; then
16605 cat >>confdefs.h
<<\_ACEOF
16606 #define HAVE_X_SM 1
16609 LIBXSM
="-lSM -lICE"
16612 *) LIBS
="$LIBXSM $LIBS" ;;
16618 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16619 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16620 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16621 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16622 $as_echo_n "(cached) " >&6
16624 cat >conftest.
$ac_ext <<_ACEOF
16627 cat confdefs.h
>>conftest.
$ac_ext
16628 cat >>conftest.
$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16639 rm -f conftest.
$ac_objext conftest
$ac_exeext
16640 if { (ac_try
="$ac_link"
16641 case "(($ac_try" in
16642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16646 $as_echo "$ac_try_echo") >&5
16647 (eval "$ac_link") 2>conftest.er1
16649 grep -v '^ *+' conftest.er1 >conftest.err
16651 cat conftest.err >&5
16652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); } && {
16654 test -z "$ac_c_werror_flag" ||
16655 test ! -s conftest.err
16656 } && test -s conftest$ac_exeext && {
16657 test "$cross_compiling" = yes ||
16658 $as_test_x conftest$ac_exeext
16660 emacs_cv_netdb_declares_h_errno=yes
16662 $as_echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16665 emacs_cv_netdb_declares_h_errno=no
16668 rm -rf conftest.dSYM
16669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16670 conftest$ac_exeext conftest.$ac_ext
16672 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16673 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16674 if test $emacs_cv_netdb_declares_h_errno = yes; then
16676 cat >>confdefs.h <<\_ACEOF
16677 #define HAVE_H_ERRNO 1
16682 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16683 # for constant arguments. Useless!
16684 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16685 $as_echo_n "checking for working alloca.h... " >&6; }
16686 if test "${ac_cv_working_alloca_h+set}" = set; then
16687 $as_echo_n "(cached) " >&6
16689 cat >conftest.$ac_ext <<_ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h. */
16695 #include <alloca.h>
16699 char *p = (char *) alloca (2 * sizeof (int));
16705 rm -f conftest.$ac_objext conftest$ac_exeext
16706 if { (ac_try="$ac_link"
16707 case "(($ac_try" in
16708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16709 *) ac_try_echo
=$ac_try;;
16711 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16712 $as_echo "$ac_try_echo") >&5
16713 (eval "$ac_link") 2>conftest.er1
16715 grep -v '^ *+' conftest.er1
>conftest.err
16717 cat conftest.err
>&5
16718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } && {
16720 test -z "$ac_c_werror_flag" ||
16721 test ! -s conftest.err
16722 } && test -s conftest
$ac_exeext && {
16723 test "$cross_compiling" = yes ||
16724 $as_test_x conftest
$ac_exeext
16726 ac_cv_working_alloca_h
=yes
16728 $as_echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.
$ac_ext >&5
16731 ac_cv_working_alloca_h
=no
16734 rm -rf conftest.dSYM
16735 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16736 conftest
$ac_exeext conftest.
$ac_ext
16738 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16739 $as_echo "$ac_cv_working_alloca_h" >&6; }
16740 if test $ac_cv_working_alloca_h = yes; then
16742 cat >>confdefs.h
<<\_ACEOF
16743 #define HAVE_ALLOCA_H 1
16748 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16749 $as_echo_n "checking for alloca... " >&6; }
16750 if test "${ac_cv_func_alloca_works+set}" = set; then
16751 $as_echo_n "(cached) " >&6
16753 cat >conftest.
$ac_ext <<_ACEOF
16756 cat confdefs.h
>>conftest.
$ac_ext
16757 cat >>conftest.
$ac_ext <<_ACEOF
16758 /* end confdefs.h. */
16760 # define alloca __builtin_alloca
16763 # include <malloc.h>
16764 # define alloca _alloca
16766 # ifdef HAVE_ALLOCA_H
16767 # include <alloca.h>
16772 # ifndef alloca /* predefined by HP cc +Olibcalls */
16783 char *p = (char *) alloca (1);
16789 rm -f conftest.
$ac_objext conftest
$ac_exeext
16790 if { (ac_try
="$ac_link"
16791 case "(($ac_try" in
16792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16793 *) ac_try_echo=$ac_try;;
16795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16796 $as_echo "$ac_try_echo") >&5
16797 (eval "$ac_link") 2>conftest.er1
16799 grep -v '^ *+' conftest.er1 >conftest.err
16801 cat conftest.err >&5
16802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); } && {
16804 test -z "$ac_c_werror_flag" ||
16805 test ! -s conftest.err
16806 } && test -s conftest$ac_exeext && {
16807 test "$cross_compiling" = yes ||
16808 $as_test_x conftest$ac_exeext
16810 ac_cv_func_alloca_works=yes
16812 $as_echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16815 ac_cv_func_alloca_works=no
16818 rm -rf conftest.dSYM
16819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16820 conftest$ac_exeext conftest.$ac_ext
16822 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16823 $as_echo "$ac_cv_func_alloca_works" >&6; }
16825 if test $ac_cv_func_alloca_works = yes; then
16827 cat >>confdefs.h <<\_ACEOF
16828 #define HAVE_ALLOCA 1
16832 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16833 # that cause trouble. Some versions do not even contain alloca or
16834 # contain a buggy version. If you still want to use their alloca,
16835 # use ar to extract alloca.o from them instead of compiling alloca.c.
16837 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16839 cat >>confdefs.h <<\_ACEOF
16844 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16845 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16846 if test "${ac_cv_os_cray+set}" = set; then
16847 $as_echo_n "(cached
) " >&6
16849 cat >conftest.$ac_ext <<_ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 #if defined CRAY && ! defined CRAY2
16862 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16863 $EGREP "webecray
" >/dev/null 2>&1; then
16871 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16872 $as_echo "$ac_cv_os_cray" >&6; }
16873 if test $ac_cv_os_cray = yes; then
16874 for ac_func in _getb67 GETB67 getb67; do
16875 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16876 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16877 $as_echo_n "checking
for $ac_func...
" >&6; }
16878 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16879 $as_echo_n "(cached
) " >&6
16881 cat >conftest.$ac_ext <<_ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16889 #define $ac_func innocuous_$ac_func
16891 /* System header to define __stub macros and hopefully few prototypes,
16892 which can conflict with char $ac_func (); below.
16893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16894 <limits.h> exists even on freestanding compilers. */
16897 # include <limits.h>
16899 # include <assert.h>
16904 /* Override any GCC internal prototype to avoid an error.
16905 Use char because int might match the return type of a GCC
16906 builtin and then its argument prototype would still apply. */
16911 /* The GNU C library defines this for functions which it implements
16912 to always fail with ENOSYS. Some functions are actually named
16913 something starting with __ and the normal name is an alias. */
16914 #if defined __stub_$ac_func || defined __stub___$ac_func
16921 return $ac_func ();
16926 rm -f conftest.$ac_objext conftest$ac_exeext
16927 if { (ac_try="$ac_link"
16928 case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16932 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16933 $as_echo "$ac_try_echo") >&5
16934 (eval "$ac_link") 2>conftest.er1
16936 grep -v '^ *+' conftest.er1 >conftest.err
16938 cat conftest.err >&5
16939 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16940 (exit $ac_status); } && {
16941 test -z "$ac_c_werror_flag" ||
16942 test ! -s conftest.err
16943 } && test -s conftest$ac_exeext && {
16944 test "$cross_compiling" = yes ||
16945 $as_test_x conftest$ac_exeext
16947 eval "$as_ac_var=yes"
16949 $as_echo "$as_me: failed program was
:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16952 eval "$as_ac_var=no
"
16955 rm -rf conftest.dSYM
16956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16957 conftest$ac_exeext conftest.$ac_ext
16959 ac_res=`eval 'as_val=${'$as_ac_var'}
16960 $as_echo "$as_val"'`
16961 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16962 $as_echo "$ac_res" >&6; }
16963 if test `eval 'as_val=${'$as_ac_var'}
16964 $as_echo "$as_val"'` = yes; then
16966 cat >>confdefs.h <<_ACEOF
16967 #define CRAY_STACKSEG_END $ac_func
16976 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16977 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16978 if test "${ac_cv_c_stack_direction+set}" = set; then
16979 $as_echo_n "(cached
) " >&6
16981 if test "$cross_compiling" = yes; then
16982 ac_cv_c_stack_direction=0
16984 cat >conftest.$ac_ext <<_ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16990 $ac_includes_default
16992 find_stack_direction ()
16994 static char *addr = 0;
16999 return find_stack_direction ();
17002 return (&dummy > addr) ? 1 : -1;
17008 return find_stack_direction () < 0;
17011 rm -f conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17017 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17018 $as_echo "$ac_try_echo") >&5
17019 (eval "$ac_link") 2>&5
17021 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17027 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17028 $as_echo "$ac_try_echo") >&5
17029 (eval "$ac_try") 2>&5
17031 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 ac_cv_c_stack_direction=1
17035 $as_echo "$as_me: program exited with status
$ac_status" >&5
17036 $as_echo "$as_me: failed program was
:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17039 ( exit $ac_status )
17040 ac_cv_c_stack_direction=-1
17042 rm -rf conftest.dSYM
17043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17048 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
17049 $as_echo "$ac_cv_c_stack_direction" >&6; }
17051 cat >>confdefs.h <<_ACEOF
17052 #define STACK_DIRECTION $ac_cv_c_stack_direction
17059 if test x"$ac_cv_func_alloca_works" != xyes; then
17060 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
17061 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
17062 { (exit 1); exit 1; }; }
17065 # fmod, logb, and frexp are found in -lm on most systems.
17066 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17068 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
17069 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
17070 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17071 $as_echo_n "(cached
) " >&6
17073 ac_check_lib_save_LIBS=$LIBS
17075 cat >conftest.$ac_ext <<_ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17082 /* Override any GCC internal prototype to avoid an error.
17083 Use char because int might match the return type of a GCC
17084 builtin and then its argument prototype would still apply. */
17097 rm -f conftest.$ac_objext conftest$ac_exeext
17098 if { (ac_try="$ac_link"
17099 case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17103 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17104 $as_echo "$ac_try_echo") >&5
17105 (eval "$ac_link") 2>conftest.er1
17107 grep -v '^ *+' conftest.er1 >conftest.err
17109 cat conftest.err >&5
17110 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17111 (exit $ac_status); } && {
17112 test -z "$ac_c_werror_flag" ||
17113 test ! -s conftest.err
17114 } && test -s conftest$ac_exeext && {
17115 test "$cross_compiling" = yes ||
17116 $as_test_x conftest$ac_exeext
17118 ac_cv_lib_m_sqrt=yes
17120 $as_echo "$as_me: failed program was
:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17123 ac_cv_lib_m_sqrt=no
17126 rm -rf conftest.dSYM
17127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17128 conftest$ac_exeext conftest.$ac_ext
17129 LIBS=$ac_check_lib_save_LIBS
17131 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
17132 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17133 if test $ac_cv_lib_m_sqrt = yes; then
17134 cat >>confdefs.h <<_ACEOF
17135 #define HAVE_LIBM 1
17143 # Check for mail-locking functions in a "mail" library. Probably this should
17144 # have the same check as for liblockfile below.
17145 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
17146 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
17147 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17148 $as_echo_n "(cached
) " >&6
17150 ac_check_lib_save_LIBS=$LIBS
17151 LIBS="-lmail $LIBS"
17152 cat >conftest.$ac_ext <<_ACEOF
17155 cat confdefs.h >>conftest.$ac_ext
17156 cat >>conftest.$ac_ext <<_ACEOF
17157 /* end confdefs.h. */
17159 /* Override any GCC internal prototype to avoid an error.
17160 Use char because int might match the return type of a GCC
17161 builtin and then its argument prototype would still apply. */
17169 return maillock ();
17174 rm -f conftest.$ac_objext conftest$ac_exeext
17175 if { (ac_try="$ac_link"
17176 case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17180 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17181 $as_echo "$ac_try_echo") >&5
17182 (eval "$ac_link") 2>conftest.er1
17184 grep -v '^ *+' conftest.er1 >conftest.err
17186 cat conftest.err >&5
17187 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17188 (exit $ac_status); } && {
17189 test -z "$ac_c_werror_flag" ||
17190 test ! -s conftest.err
17191 } && test -s conftest$ac_exeext && {
17192 test "$cross_compiling" = yes ||
17193 $as_test_x conftest$ac_exeext
17195 ac_cv_lib_mail_maillock=yes
17197 $as_echo "$as_me: failed program was
:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17200 ac_cv_lib_mail_maillock=no
17203 rm -rf conftest.dSYM
17204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17205 conftest$ac_exeext conftest.$ac_ext
17206 LIBS=$ac_check_lib_save_LIBS
17208 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
17209 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17210 if test $ac_cv_lib_mail_maillock = yes; then
17216 if test $have_mail = yes; then
17218 LIBS="$LIBS_MAIL $LIBS"
17220 cat >>confdefs.h <<\_ACEOF
17221 #define HAVE_LIBMAIL 1
17227 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
17228 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
17229 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17230 $as_echo_n "(cached
) " >&6
17232 ac_check_lib_save_LIBS=$LIBS
17233 LIBS="-llockfile $LIBS"
17234 cat >conftest.$ac_ext <<_ACEOF
17237 cat confdefs.h >>conftest.$ac_ext
17238 cat >>conftest.$ac_ext <<_ACEOF
17239 /* end confdefs.h. */
17241 /* Override any GCC internal prototype to avoid an error.
17242 Use char because int might match the return type of a GCC
17243 builtin and then its argument prototype would still apply. */
17251 return maillock ();
17256 rm -f conftest.$ac_objext conftest$ac_exeext
17257 if { (ac_try="$ac_link"
17258 case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17262 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17263 $as_echo "$ac_try_echo") >&5
17264 (eval "$ac_link") 2>conftest.er1
17266 grep -v '^ *+' conftest.er1 >conftest.err
17268 cat conftest.err >&5
17269 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17270 (exit $ac_status); } && {
17271 test -z "$ac_c_werror_flag" ||
17272 test ! -s conftest.err
17273 } && test -s conftest$ac_exeext && {
17274 test "$cross_compiling" = yes ||
17275 $as_test_x conftest$ac_exeext
17277 ac_cv_lib_lockfile_maillock=yes
17279 $as_echo "$as_me: failed program was
:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_cv_lib_lockfile_maillock=no
17285 rm -rf conftest.dSYM
17286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17287 conftest$ac_exeext conftest.$ac_ext
17288 LIBS=$ac_check_lib_save_LIBS
17290 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
17291 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17292 if test $ac_cv_lib_lockfile_maillock = yes; then
17298 if test $have_lockfile = yes; then
17299 LIBS_MAIL=-llockfile
17300 LIBS="$LIBS_MAIL $LIBS"
17302 cat >>confdefs.h <<\_ACEOF
17303 #define HAVE_LIBLOCKFILE 1
17307 # If we have the shared liblockfile, assume we must use it for mail
17308 # locking (e.g. Debian). If we couldn't link against liblockfile
17309 # (no liblockfile.a installed), ensure that we don't need to.
17310 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
17311 set dummy liblockfile.so; ac_word=$2
17312 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
17313 $as_echo_n "checking
for $ac_word...
" >&6; }
17314 if test "${ac_cv_prog_liblockfile+set}" = set; then
17315 $as_echo_n "(cached
) " >&6
17317 if test -n "$liblockfile"; then
17318 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17321 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
17322 for as_dir in $as_dummy
17325 test -z "$as_dir" && as_dir=.
17326 for ac_exec_ext in '' $ac_executable_extensions; do
17327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17328 ac_cv_prog_liblockfile="yes"
17329 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17336 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
17339 liblockfile=$ac_cv_prog_liblockfile
17340 if test -n "$liblockfile"; then
17341 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
17342 $as_echo "$liblockfile" >&6; }
17344 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17345 $as_echo "no
" >&6; }
17349 if test $ac_cv_prog_liblockfile = yes; then
17350 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
17351 This probably means that movemail could lose mail.
17352 There may be a \`development' package to
install containing liblockfile.
" >&5
17353 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
17354 This probably means that movemail could lose mail.
17355 There may be a \`development' package to
install containing liblockfile.
" >&2;}
17356 { (exit 1); exit 1; }; }
17360 for ac_func in touchlock
17362 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17363 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17364 $as_echo_n "checking
for $ac_func...
" >&6; }
17365 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17366 $as_echo_n "(cached
) " >&6
17368 cat >conftest.$ac_ext <<_ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17376 #define $ac_func innocuous_$ac_func
17378 /* System header to define __stub macros and hopefully few prototypes,
17379 which can conflict with char $ac_func (); below.
17380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17381 <limits.h> exists even on freestanding compilers. */
17384 # include <limits.h>
17386 # include <assert.h>
17391 /* Override any GCC internal prototype to avoid an error.
17392 Use char because int might match the return type of a GCC
17393 builtin and then its argument prototype would still apply. */
17398 /* The GNU C library defines this for functions which it implements
17399 to always fail with ENOSYS. Some functions are actually named
17400 something starting with __ and the normal name is an alias. */
17401 #if defined __stub_$ac_func || defined __stub___$ac_func
17408 return $ac_func ();
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (ac_try="$ac_link"
17415 case "(($ac_try" in
17416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417 *) ac_try_echo=$ac_try;;
17419 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17420 $as_echo "$ac_try_echo") >&5
17421 (eval "$ac_link") 2>conftest.er1
17423 grep -v '^ *+' conftest.er1 >conftest.err
17425 cat conftest.err >&5
17426 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17427 (exit $ac_status); } && {
17428 test -z "$ac_c_werror_flag" ||
17429 test ! -s conftest.err
17430 } && test -s conftest$ac_exeext && {
17431 test "$cross_compiling" = yes ||
17432 $as_test_x conftest$ac_exeext
17434 eval "$as_ac_var=yes"
17436 $as_echo "$as_me: failed program was
:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17439 eval "$as_ac_var=no
"
17442 rm -rf conftest.dSYM
17443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17444 conftest$ac_exeext conftest.$ac_ext
17446 ac_res=`eval 'as_val=${'$as_ac_var'}
17447 $as_echo "$as_val"'`
17448 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17449 $as_echo "$ac_res" >&6; }
17450 if test `eval 'as_val=${'$as_ac_var'}
17451 $as_echo "$as_val"'` = yes; then
17452 cat >>confdefs.h <<_ACEOF
17453 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17460 for ac_header in maillock.h
17462 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17463 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17464 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17465 $as_echo_n "checking
for $ac_header...
" >&6; }
17466 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17467 $as_echo_n "(cached
) " >&6
17469 ac_res=`eval 'as_val=${'$as_ac_Header'}
17470 $as_echo "$as_val"'`
17471 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17472 $as_echo "$ac_res" >&6; }
17474 # Is the header compilable?
17475 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17476 $as_echo_n "checking
$ac_header usability...
" >&6; }
17477 cat >conftest.$ac_ext <<_ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17483 $ac_includes_default
17484 #include <$ac_header>
17486 rm -f conftest.$ac_objext
17487 if { (ac_try="$ac_compile"
17488 case "(($ac_try" in
17489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490 *) ac_try_echo=$ac_try;;
17492 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17493 $as_echo "$ac_try_echo") >&5
17494 (eval "$ac_compile") 2>conftest.er1
17496 grep -v '^ *+' conftest.er1 >conftest.err
17498 cat conftest.err >&5
17499 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17500 (exit $ac_status); } && {
17501 test -z "$ac_c_werror_flag" ||
17502 test ! -s conftest.err
17503 } && test -s conftest.$ac_objext; then
17504 ac_header_compiler=yes
17506 $as_echo "$as_me: failed program was
:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17509 ac_header_compiler=no
17512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17513 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17514 $as_echo "$ac_header_compiler" >&6; }
17516 # Is the header present?
17517 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17518 $as_echo_n "checking
$ac_header presence...
" >&6; }
17519 cat >conftest.$ac_ext <<_ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h. */
17525 #include <$ac_header>
17527 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17528 case "(($ac_try" in
17529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530 *) ac_try_echo=$ac_try;;
17532 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17533 $as_echo "$ac_try_echo") >&5
17534 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17536 grep -v '^ *+' conftest.er1 >conftest.err
17538 cat conftest.err >&5
17539 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17540 (exit $ac_status); } >/dev/null && {
17541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17542 test ! -s conftest.err
17544 ac_header_preproc=yes
17546 $as_echo "$as_me: failed program was
:" >&5
17547 sed 's/^/| /' conftest.$ac_ext >&5
17549 ac_header_preproc=no
17552 rm -f conftest.err conftest.$ac_ext
17553 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17554 $as_echo "$ac_header_preproc" >&6; }
17556 # So? What about this header?
17557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17559 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17560 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17561 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17562 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17563 ac_header_preproc=yes
17566 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17567 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17568 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17569 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17570 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17571 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17572 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17573 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17574 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17575 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17576 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17577 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17581 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17582 $as_echo_n "checking
for $ac_header...
" >&6; }
17583 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17584 $as_echo_n "(cached
) " >&6
17586 eval "$as_ac_Header=\
$ac_header_preproc"
17588 ac_res=`eval 'as_val=${'$as_ac_Header'}
17589 $as_echo "$as_val"'`
17590 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17591 $as_echo "$ac_res" >&6; }
17594 if test `eval 'as_val=${'$as_ac_Header'}
17595 $as_echo "$as_val"'` = yes; then
17596 cat >>confdefs.h <<_ACEOF
17597 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17606 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17607 ## interlock access to the mail spool. The alternative is a lock file named
17608 ## /usr/spool/mail/$USER.lock.
17611 aix4-2) mail_lock="lockf
" ;;
17613 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock
" ;;
17615 ## On GNU/Linux systems, both methods are used by various mail programs.
17616 ## I assume most people are using newer mailers that have heard of flock.
17617 ## Change this if you need to.
17618 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17619 ## configure gets the right answers, and that means *NOT* using flock.
17620 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17621 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17622 ## Debian maintainer hasn't provided a clean fix for Emacs.
17623 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17624 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17625 ## correct logic. -- fx
17626 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17627 ## liblockfile is a Free Software replacement for libmail, used on
17628 ## Debian systems and elsewhere. -rfr.
17631 if test $have_mail = yes || test $have_lockfile = yes; then
17632 test $ac_cv_header_maillock_h = yes && mail_lock=no
17638 case "$mail_lock" in
17640 cat >>confdefs.h <<\_ACEOF
17641 #define MAIL_USE_FLOCK 1
17646 cat >>confdefs.h <<\_ACEOF
17647 #define MAIL_USE_LOCKF 1
17651 *) BLESSMAIL_TARGET="need-blessmail
" ;;
17729 for ac_func in gethostname getdomainname dup2 \
17730 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17731 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17732 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17733 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17734 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17735 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17736 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17737 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17738 cfmakeraw cfsetspeed isnan copysign
17740 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17741 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17742 $as_echo_n "checking
for $ac_func...
" >&6; }
17743 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17744 $as_echo_n "(cached
) " >&6
17746 cat >conftest.$ac_ext <<_ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17754 #define $ac_func innocuous_$ac_func
17756 /* System header to define __stub macros and hopefully few prototypes,
17757 which can conflict with char $ac_func (); below.
17758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17759 <limits.h> exists even on freestanding compilers. */
17762 # include <limits.h>
17764 # include <assert.h>
17769 /* Override any GCC internal prototype to avoid an error.
17770 Use char because int might match the return type of a GCC
17771 builtin and then its argument prototype would still apply. */
17776 /* The GNU C library defines this for functions which it implements
17777 to always fail with ENOSYS. Some functions are actually named
17778 something starting with __ and the normal name is an alias. */
17779 #if defined __stub_$ac_func || defined __stub___$ac_func
17786 return $ac_func ();
17791 rm -f conftest.$ac_objext conftest$ac_exeext
17792 if { (ac_try="$ac_link"
17793 case "(($ac_try" in
17794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795 *) ac_try_echo=$ac_try;;
17797 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17798 $as_echo "$ac_try_echo") >&5
17799 (eval "$ac_link") 2>conftest.er1
17801 grep -v '^ *+' conftest.er1 >conftest.err
17803 cat conftest.err >&5
17804 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17805 (exit $ac_status); } && {
17806 test -z "$ac_c_werror_flag" ||
17807 test ! -s conftest.err
17808 } && test -s conftest$ac_exeext && {
17809 test "$cross_compiling" = yes ||
17810 $as_test_x conftest$ac_exeext
17812 eval "$as_ac_var=yes"
17814 $as_echo "$as_me: failed program was
:" >&5
17815 sed 's/^/| /' conftest.$ac_ext >&5
17817 eval "$as_ac_var=no
"
17820 rm -rf conftest.dSYM
17821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17822 conftest$ac_exeext conftest.$ac_ext
17824 ac_res=`eval 'as_val=${'$as_ac_var'}
17825 $as_echo "$as_val"'`
17826 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17827 $as_echo "$ac_res" >&6; }
17828 if test `eval 'as_val=${'$as_ac_var'}
17829 $as_echo "$as_val"'` = yes; then
17830 cat >>confdefs.h <<_ACEOF
17831 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17839 for ac_header in sys/un.h
17841 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17842 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17843 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17844 $as_echo_n "checking
for $ac_header...
" >&6; }
17845 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17846 $as_echo_n "(cached
) " >&6
17848 ac_res=`eval 'as_val=${'$as_ac_Header'}
17849 $as_echo "$as_val"'`
17850 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17851 $as_echo "$ac_res" >&6; }
17853 # Is the header compilable?
17854 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17855 $as_echo_n "checking
$ac_header usability...
" >&6; }
17856 cat >conftest.$ac_ext <<_ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h. */
17862 $ac_includes_default
17863 #include <$ac_header>
17865 rm -f conftest.$ac_objext
17866 if { (ac_try="$ac_compile"
17867 case "(($ac_try" in
17868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869 *) ac_try_echo=$ac_try;;
17871 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17872 $as_echo "$ac_try_echo") >&5
17873 (eval "$ac_compile") 2>conftest.er1
17875 grep -v '^ *+' conftest.er1 >conftest.err
17877 cat conftest.err >&5
17878 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17879 (exit $ac_status); } && {
17880 test -z "$ac_c_werror_flag" ||
17881 test ! -s conftest.err
17882 } && test -s conftest.$ac_objext; then
17883 ac_header_compiler=yes
17885 $as_echo "$as_me: failed program was
:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17888 ac_header_compiler=no
17891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17892 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17893 $as_echo "$ac_header_compiler" >&6; }
17895 # Is the header present?
17896 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17897 $as_echo_n "checking
$ac_header presence...
" >&6; }
17898 cat >conftest.$ac_ext <<_ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 #include <$ac_header>
17906 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17907 case "(($ac_try" in
17908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17909 *) ac_try_echo=$ac_try;;
17911 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17912 $as_echo "$ac_try_echo") >&5
17913 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17915 grep -v '^ *+' conftest.er1 >conftest.err
17917 cat conftest.err >&5
17918 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17919 (exit $ac_status); } >/dev/null && {
17920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17921 test ! -s conftest.err
17923 ac_header_preproc=yes
17925 $as_echo "$as_me: failed program was
:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17928 ac_header_preproc=no
17931 rm -f conftest.err conftest.$ac_ext
17932 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17933 $as_echo "$ac_header_preproc" >&6; }
17935 # So? What about this header?
17936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17938 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17939 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17940 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17941 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17942 ac_header_preproc=yes
17945 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17946 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17947 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17948 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17949 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17950 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17951 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17952 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17953 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17954 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17955 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17956 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17960 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17961 $as_echo_n "checking
for $ac_header...
" >&6; }
17962 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17963 $as_echo_n "(cached
) " >&6
17965 eval "$as_ac_Header=\
$ac_header_preproc"
17967 ac_res=`eval 'as_val=${'$as_ac_Header'}
17968 $as_echo "$as_val"'`
17969 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17970 $as_echo "$ac_res" >&6; }
17973 if test `eval 'as_val=${'$as_ac_Header'}
17974 $as_echo "$as_val"'` = yes; then
17975 cat >>confdefs.h <<_ACEOF
17976 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17988 for ac_header in $ac_header_list
17990 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17991 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17992 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17993 $as_echo_n "checking
for $ac_header...
" >&6; }
17994 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17995 $as_echo_n "(cached
) " >&6
17997 ac_res=`eval 'as_val=${'$as_ac_Header'}
17998 $as_echo "$as_val"'`
17999 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18000 $as_echo "$ac_res" >&6; }
18002 # Is the header compilable?
18003 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18004 $as_echo_n "checking
$ac_header usability...
" >&6; }
18005 cat >conftest.$ac_ext <<_ACEOF
18008 cat confdefs.h >>conftest.$ac_ext
18009 cat >>conftest.$ac_ext <<_ACEOF
18010 /* end confdefs.h. */
18011 $ac_includes_default
18012 #include <$ac_header>
18014 rm -f conftest.$ac_objext
18015 if { (ac_try="$ac_compile"
18016 case "(($ac_try" in
18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18020 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18021 $as_echo "$ac_try_echo") >&5
18022 (eval "$ac_compile") 2>conftest.er1
18024 grep -v '^ *+' conftest.er1 >conftest.err
18026 cat conftest.err >&5
18027 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18028 (exit $ac_status); } && {
18029 test -z "$ac_c_werror_flag" ||
18030 test ! -s conftest.err
18031 } && test -s conftest.$ac_objext; then
18032 ac_header_compiler=yes
18034 $as_echo "$as_me: failed program was
:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18037 ac_header_compiler=no
18040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18041 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18042 $as_echo "$ac_header_compiler" >&6; }
18044 # Is the header present?
18045 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18046 $as_echo_n "checking
$ac_header presence...
" >&6; }
18047 cat >conftest.$ac_ext <<_ACEOF
18050 cat confdefs.h >>conftest.$ac_ext
18051 cat >>conftest.$ac_ext <<_ACEOF
18052 /* end confdefs.h. */
18053 #include <$ac_header>
18055 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18056 case "(($ac_try" in
18057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058 *) ac_try_echo=$ac_try;;
18060 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18061 $as_echo "$ac_try_echo") >&5
18062 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18064 grep -v '^ *+' conftest.er1 >conftest.err
18066 cat conftest.err >&5
18067 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18068 (exit $ac_status); } >/dev/null && {
18069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18070 test ! -s conftest.err
18072 ac_header_preproc=yes
18074 $as_echo "$as_me: failed program was
:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18077 ac_header_preproc=no
18080 rm -f conftest.err conftest.$ac_ext
18081 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18082 $as_echo "$ac_header_preproc" >&6; }
18084 # So? What about this header?
18085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18087 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18088 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18089 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18090 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18091 ac_header_preproc=yes
18094 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18095 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18096 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18097 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18098 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18099 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18100 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18101 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18102 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18103 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18104 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18105 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18109 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
18110 $as_echo_n "checking
for $ac_header...
" >&6; }
18111 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18112 $as_echo_n "(cached
) " >&6
18114 eval "$as_ac_Header=\
$ac_header_preproc"
18116 ac_res=`eval 'as_val=${'$as_ac_Header'}
18117 $as_echo "$as_val"'`
18118 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18119 $as_echo "$ac_res" >&6; }
18122 if test `eval 'as_val=${'$as_ac_Header'}
18123 $as_echo "$as_val"'` = yes; then
18124 cat >>confdefs.h <<_ACEOF
18125 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18140 for ac_func in $ac_func_list
18142 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18143 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18144 $as_echo_n "checking
for $ac_func...
" >&6; }
18145 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18146 $as_echo_n "(cached
) " >&6
18148 cat >conftest.$ac_ext <<_ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18156 #define $ac_func innocuous_$ac_func
18158 /* System header to define __stub macros and hopefully few prototypes,
18159 which can conflict with char $ac_func (); below.
18160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18161 <limits.h> exists even on freestanding compilers. */
18164 # include <limits.h>
18166 # include <assert.h>
18171 /* Override any GCC internal prototype to avoid an error.
18172 Use char because int might match the return type of a GCC
18173 builtin and then its argument prototype would still apply. */
18178 /* The GNU C library defines this for functions which it implements
18179 to always fail with ENOSYS. Some functions are actually named
18180 something starting with __ and the normal name is an alias. */
18181 #if defined __stub_$ac_func || defined __stub___$ac_func
18188 return $ac_func ();
18193 rm -f conftest.$ac_objext conftest$ac_exeext
18194 if { (ac_try="$ac_link"
18195 case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18199 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18200 $as_echo "$ac_try_echo") >&5
18201 (eval "$ac_link") 2>conftest.er1
18203 grep -v '^ *+' conftest.er1 >conftest.err
18205 cat conftest.err >&5
18206 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18207 (exit $ac_status); } && {
18208 test -z "$ac_c_werror_flag" ||
18209 test ! -s conftest.err
18210 } && test -s conftest$ac_exeext && {
18211 test "$cross_compiling" = yes ||
18212 $as_test_x conftest$ac_exeext
18214 eval "$as_ac_var=yes"
18216 $as_echo "$as_me: failed program was
:" >&5
18217 sed 's/^/| /' conftest.$ac_ext >&5
18219 eval "$as_ac_var=no
"
18222 rm -rf conftest.dSYM
18223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18224 conftest$ac_exeext conftest.$ac_ext
18226 ac_res=`eval 'as_val=${'$as_ac_var'}
18227 $as_echo "$as_val"'`
18228 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18229 $as_echo "$ac_res" >&6; }
18230 if test `eval 'as_val=${'$as_ac_var'}
18231 $as_echo "$as_val"'` = yes; then
18232 cat >>confdefs.h <<_ACEOF
18233 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18255 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
18256 $as_echo_n "checking
for working mktime...
" >&6; }
18257 if test "${ac_cv_func_working_mktime+set}" = set; then
18258 $as_echo_n "(cached
) " >&6
18260 if test "$cross_compiling" = yes; then
18261 ac_cv_func_working_mktime=no
18263 cat >conftest.$ac_ext <<_ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h. */
18269 /* Test program from Paul Eggert and Tony Leneis. */
18270 #ifdef TIME_WITH_SYS_TIME
18271 # include <sys/time.h>
18274 # ifdef HAVE_SYS_TIME_H
18275 # include <sys/time.h>
18281 #include <limits.h>
18282 #include <stdlib.h>
18284 #ifdef HAVE_UNISTD_H
18285 # include <unistd.h>
18289 # define alarm(X) /* empty */
18292 /* Work around redefinition to rpl_putenv by other config tests. */
18295 static time_t time_t_max;
18296 static time_t time_t_min;
18298 /* Values we'll use to set the TZ environment variable. */
18299 static char *tz_strings[] = {
18300 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
18301 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
18303 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18305 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18306 Based on a problem report from Andreas Jaeger. */
18308 spring_forward_gap ()
18310 /* glibc (up to about 1998-10-07) failed this test. */
18313 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18314 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18315 on systems that don't support the Olson extension, or don't have the
18316 full zoneinfo tables installed. */
18317 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18326 return mktime (&tm) != (time_t) -1;
18334 return ! (lt = localtime (&now)) || mktime (lt) == now;
18341 return (mktime_test1 (now)
18342 && mktime_test1 ((time_t) (time_t_max - now))
18343 && mktime_test1 ((time_t) (time_t_min + now)));
18349 /* Based on code from Ariel Faigon. */
18359 return tm.tm_mon == 2 && tm.tm_mday == 31;
18368 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18369 now = mktime (&tm);
18370 if (now != (time_t) -1)
18372 struct tm *lt = localtime (&now);
18374 && lt->tm_year == tm.tm_year
18375 && lt->tm_mon == tm.tm_mon
18376 && lt->tm_mday == tm.tm_mday
18377 && lt->tm_hour == tm.tm_hour
18378 && lt->tm_min == tm.tm_min
18379 && lt->tm_sec == tm.tm_sec
18380 && lt->tm_yday == tm.tm_yday
18381 && lt->tm_wday == tm.tm_wday
18382 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18383 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18392 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18393 ignoring leap seconds. */
18394 unsigned long int answer = 2527315200UL;
18398 tm.tm_year = 2050 - 1900;
18401 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18404 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18405 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18406 on systems that don't support the Olson extension, or don't have the
18407 full zoneinfo tables installed. */
18408 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18412 /* Check that the result is either a failure, or close enough
18413 to the correct answer that we can assume the discrepancy is
18414 due to leap seconds. */
18415 return (t == (time_t) -1
18416 || (0 < t && answer - 120 <= t && t <= answer + 120));
18425 /* This test makes some buggy mktime implementations loop.
18426 Give up after 60 seconds; a mktime slower than that
18427 isn't worth using anyway. */
18432 t = (time_t_max << 1) + 1;
18433 if (t <= time_t_max)
18437 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18439 delta = time_t_max / 997; /* a suitable prime number */
18440 for (i = 0; i < N_STRINGS; i++)
18443 putenv (tz_strings[i]);
18445 for (t = 0; t <= time_t_max - delta; t += delta)
18446 if (! mktime_test (t))
18448 if (! (mktime_test ((time_t) 1)
18449 && mktime_test ((time_t) (60 * 60))
18450 && mktime_test ((time_t) (60 * 60 * 24))))
18453 for (j = 1; ; j <<= 1)
18454 if (! bigtime_test (j))
18456 else if (INT_MAX / 2 < j)
18458 if (! bigtime_test (INT_MAX))
18461 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18464 rm -f conftest$ac_exeext
18465 if { (ac_try="$ac_link"
18466 case "(($ac_try" in
18467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468 *) ac_try_echo=$ac_try;;
18470 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18471 $as_echo "$ac_try_echo") >&5
18472 (eval "$ac_link") 2>&5
18474 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18476 { (case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18480 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18481 $as_echo "$ac_try_echo") >&5
18482 (eval "$ac_try") 2>&5
18484 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18485 (exit $ac_status); }; }; then
18486 ac_cv_func_working_mktime=yes
18488 $as_echo "$as_me: program exited with status
$ac_status" >&5
18489 $as_echo "$as_me: failed program was
:" >&5
18490 sed 's/^/| /' conftest.$ac_ext >&5
18492 ( exit $ac_status )
18493 ac_cv_func_working_mktime=no
18495 rm -rf conftest.dSYM
18496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18501 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
18502 $as_echo "$ac_cv_func_working_mktime" >&6; }
18503 if test $ac_cv_func_working_mktime = no; then
18504 case " $LIBOBJS " in
18505 *" mktime.
$ac_objext "* ) ;;
18506 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
18512 if test "$ac_cv_func_working_mktime" = no; then
18514 cat >>confdefs.h <<\_ACEOF
18515 #define BROKEN_MKTIME 1
18520 ac_have_func=no # yes means we've found a way to get the load average.
18522 # Make sure getloadavg.c is where it belongs, at configure-time.
18523 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18524 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18525 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18526 { (exit 1); exit 1; }; }
18530 # Check for getloadavg, but be sure not to touch the cache variable.
18531 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18532 $as_echo_n "checking
for getloadavg...
" >&6; }
18533 if test "${ac_cv_func_getloadavg+set}" = set; then
18534 $as_echo_n "(cached
) " >&6
18536 cat >conftest.$ac_ext <<_ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h. */
18542 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18544 #define getloadavg innocuous_getloadavg
18546 /* System header to define __stub macros and hopefully few prototypes,
18547 which can conflict with char getloadavg (); below.
18548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18549 <limits.h> exists even on freestanding compilers. */
18552 # include <limits.h>
18554 # include <assert.h>
18559 /* Override any GCC internal prototype to avoid an error.
18560 Use char because int might match the return type of a GCC
18561 builtin and then its argument prototype would still apply. */
18565 char getloadavg ();
18566 /* The GNU C library defines this for functions which it implements
18567 to always fail with ENOSYS. Some functions are actually named
18568 something starting with __ and the normal name is an alias. */
18569 #if defined __stub_getloadavg || defined __stub___getloadavg
18576 return getloadavg ();
18581 rm -f conftest.$ac_objext conftest$ac_exeext
18582 if { (ac_try="$ac_link"
18583 case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18587 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18588 $as_echo "$ac_try_echo") >&5
18589 (eval "$ac_link") 2>conftest.er1
18591 grep -v '^ *+' conftest.er1 >conftest.err
18593 cat conftest.err >&5
18594 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18595 (exit $ac_status); } && {
18596 test -z "$ac_c_werror_flag" ||
18597 test ! -s conftest.err
18598 } && test -s conftest$ac_exeext && {
18599 test "$cross_compiling" = yes ||
18600 $as_test_x conftest$ac_exeext
18602 ac_cv_func_getloadavg=yes
18604 $as_echo "$as_me: failed program was
:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18607 ac_cv_func_getloadavg=no
18610 rm -rf conftest.dSYM
18611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18612 conftest$ac_exeext conftest.$ac_ext
18614 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18615 $as_echo "$ac_cv_func_getloadavg" >&6; }
18616 if test $ac_cv_func_getloadavg = yes; then
18621 ) && ac_have_func=yes
18623 # On HPUX9, an unprivileged user can get load averages through this function.
18625 for ac_func in pstat_getdynamic
18627 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18628 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18629 $as_echo_n "checking
for $ac_func...
" >&6; }
18630 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18631 $as_echo_n "(cached
) " >&6
18633 cat >conftest.$ac_ext <<_ACEOF
18636 cat confdefs.h >>conftest.$ac_ext
18637 cat >>conftest.$ac_ext <<_ACEOF
18638 /* end confdefs.h. */
18639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18641 #define $ac_func innocuous_$ac_func
18643 /* System header to define __stub macros and hopefully few prototypes,
18644 which can conflict with char $ac_func (); below.
18645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18646 <limits.h> exists even on freestanding compilers. */
18649 # include <limits.h>
18651 # include <assert.h>
18656 /* Override any GCC internal prototype to avoid an error.
18657 Use char because int might match the return type of a GCC
18658 builtin and then its argument prototype would still apply. */
18663 /* The GNU C library defines this for functions which it implements
18664 to always fail with ENOSYS. Some functions are actually named
18665 something starting with __ and the normal name is an alias. */
18666 #if defined __stub_$ac_func || defined __stub___$ac_func
18673 return $ac_func ();
18678 rm -f conftest.$ac_objext conftest$ac_exeext
18679 if { (ac_try="$ac_link"
18680 case "(($ac_try" in
18681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18682 *) ac_try_echo=$ac_try;;
18684 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18685 $as_echo "$ac_try_echo") >&5
18686 (eval "$ac_link") 2>conftest.er1
18688 grep -v '^ *+' conftest.er1 >conftest.err
18690 cat conftest.err >&5
18691 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18692 (exit $ac_status); } && {
18693 test -z "$ac_c_werror_flag" ||
18694 test ! -s conftest.err
18695 } && test -s conftest$ac_exeext && {
18696 test "$cross_compiling" = yes ||
18697 $as_test_x conftest$ac_exeext
18699 eval "$as_ac_var=yes"
18701 $as_echo "$as_me: failed program was
:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18704 eval "$as_ac_var=no
"
18707 rm -rf conftest.dSYM
18708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18709 conftest$ac_exeext conftest.$ac_ext
18711 ac_res=`eval 'as_val=${'$as_ac_var'}
18712 $as_echo "$as_val"'`
18713 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18714 $as_echo "$ac_res" >&6; }
18715 if test `eval 'as_val=${'$as_ac_var'}
18716 $as_echo "$as_val"'` = yes; then
18717 cat >>confdefs.h <<_ACEOF
18718 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18725 # Solaris has libkstat which does not require root.
18727 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18728 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18729 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18730 $as_echo_n "(cached
) " >&6
18732 ac_check_lib_save_LIBS=$LIBS
18733 LIBS="-lkstat $LIBS"
18734 cat >conftest.$ac_ext <<_ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18741 /* Override any GCC internal prototype to avoid an error.
18742 Use char because int might match the return type of a GCC
18743 builtin and then its argument prototype would still apply. */
18747 char kstat_open ();
18751 return kstat_open ();
18756 rm -f conftest.$ac_objext conftest$ac_exeext
18757 if { (ac_try="$ac_link"
18758 case "(($ac_try" in
18759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760 *) ac_try_echo=$ac_try;;
18762 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18763 $as_echo "$ac_try_echo") >&5
18764 (eval "$ac_link") 2>conftest.er1
18766 grep -v '^ *+' conftest.er1 >conftest.err
18768 cat conftest.err >&5
18769 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18770 (exit $ac_status); } && {
18771 test -z "$ac_c_werror_flag" ||
18772 test ! -s conftest.err
18773 } && test -s conftest$ac_exeext && {
18774 test "$cross_compiling" = yes ||
18775 $as_test_x conftest$ac_exeext
18777 ac_cv_lib_kstat_kstat_open=yes
18779 $as_echo "$as_me: failed program was
:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18782 ac_cv_lib_kstat_kstat_open=no
18785 rm -rf conftest.dSYM
18786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18787 conftest$ac_exeext conftest.$ac_ext
18788 LIBS=$ac_check_lib_save_LIBS
18790 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18791 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18792 if test $ac_cv_lib_kstat_kstat_open = yes; then
18793 cat >>confdefs.h <<_ACEOF
18794 #define HAVE_LIBKSTAT 1
18797 LIBS="-lkstat $LIBS"
18801 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18803 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18804 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18805 # to get the right answer into the cache.
18806 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18807 if test $ac_have_func = no; then
18808 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18809 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18810 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18811 $as_echo_n "(cached
) " >&6
18813 ac_check_lib_save_LIBS=$LIBS
18815 cat >conftest.$ac_ext <<_ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18822 /* Override any GCC internal prototype to avoid an error.
18823 Use char because int might match the return type of a GCC
18824 builtin and then its argument prototype would still apply. */
18832 return elf_begin ();
18837 rm -f conftest.$ac_objext conftest$ac_exeext
18838 if { (ac_try="$ac_link"
18839 case "(($ac_try" in
18840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18841 *) ac_try_echo=$ac_try;;
18843 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18844 $as_echo "$ac_try_echo") >&5
18845 (eval "$ac_link") 2>conftest.er1
18847 grep -v '^ *+' conftest.er1 >conftest.err
18849 cat conftest.err >&5
18850 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18851 (exit $ac_status); } && {
18852 test -z "$ac_c_werror_flag" ||
18853 test ! -s conftest.err
18854 } && test -s conftest$ac_exeext && {
18855 test "$cross_compiling" = yes ||
18856 $as_test_x conftest$ac_exeext
18858 ac_cv_lib_elf_elf_begin=yes
18860 $as_echo "$as_me: failed program was
:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18863 ac_cv_lib_elf_elf_begin=no
18866 rm -rf conftest.dSYM
18867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18868 conftest$ac_exeext conftest.$ac_ext
18869 LIBS=$ac_check_lib_save_LIBS
18871 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18872 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18873 if test $ac_cv_lib_elf_elf_begin = yes; then
18878 if test $ac_have_func = no; then
18879 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18880 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18881 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18882 $as_echo_n "(cached
) " >&6
18884 ac_check_lib_save_LIBS=$LIBS
18886 cat >conftest.$ac_ext <<_ACEOF
18889 cat confdefs.h >>conftest.$ac_ext
18890 cat >>conftest.$ac_ext <<_ACEOF
18891 /* end confdefs.h. */
18893 /* Override any GCC internal prototype to avoid an error.
18894 Use char because int might match the return type of a GCC
18895 builtin and then its argument prototype would still apply. */
18903 return kvm_open ();
18908 rm -f conftest.$ac_objext conftest$ac_exeext
18909 if { (ac_try="$ac_link"
18910 case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18914 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18915 $as_echo "$ac_try_echo") >&5
18916 (eval "$ac_link") 2>conftest.er1
18918 grep -v '^ *+' conftest.er1 >conftest.err
18920 cat conftest.err >&5
18921 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18922 (exit $ac_status); } && {
18923 test -z "$ac_c_werror_flag" ||
18924 test ! -s conftest.err
18925 } && test -s conftest$ac_exeext && {
18926 test "$cross_compiling" = yes ||
18927 $as_test_x conftest$ac_exeext
18929 ac_cv_lib_kvm_kvm_open=yes
18931 $as_echo "$as_me: failed program was
:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18934 ac_cv_lib_kvm_kvm_open=no
18937 rm -rf conftest.dSYM
18938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18939 conftest$ac_exeext conftest.$ac_ext
18940 LIBS=$ac_check_lib_save_LIBS
18942 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18943 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18944 if test $ac_cv_lib_kvm_kvm_open = yes; then
18948 # Check for the 4.4BSD definition of getloadavg.
18949 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18950 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18951 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18952 $as_echo_n "(cached
) " >&6
18954 ac_check_lib_save_LIBS=$LIBS
18955 LIBS="-lutil $LIBS"
18956 cat >conftest.$ac_ext <<_ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18963 /* Override any GCC internal prototype to avoid an error.
18964 Use char because int might match the return type of a GCC
18965 builtin and then its argument prototype would still apply. */
18969 char getloadavg ();
18973 return getloadavg ();
18978 rm -f conftest.$ac_objext conftest$ac_exeext
18979 if { (ac_try="$ac_link"
18980 case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18984 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18985 $as_echo "$ac_try_echo") >&5
18986 (eval "$ac_link") 2>conftest.er1
18988 grep -v '^ *+' conftest.er1 >conftest.err
18990 cat conftest.err >&5
18991 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18992 (exit $ac_status); } && {
18993 test -z "$ac_c_werror_flag" ||
18994 test ! -s conftest.err
18995 } && test -s conftest$ac_exeext && {
18996 test "$cross_compiling" = yes ||
18997 $as_test_x conftest$ac_exeext
18999 ac_cv_lib_util_getloadavg=yes
19001 $as_echo "$as_me: failed program was
:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19004 ac_cv_lib_util_getloadavg=no
19007 rm -rf conftest.dSYM
19008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19009 conftest$ac_exeext conftest.$ac_ext
19010 LIBS=$ac_check_lib_save_LIBS
19012 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
19013 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19014 if test $ac_cv_lib_util_getloadavg = yes; then
19015 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19020 if test $ac_have_func = no; then
19021 # There is a commonly available library for RS/6000 AIX.
19022 # Since it is not a standard part of AIX, it might be installed locally.
19023 ac_getloadavg_LIBS=$LIBS
19024 LIBS="-L/usr
/local
/lib
$LIBS"
19025 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
19026 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
19027 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19028 $as_echo_n "(cached
) " >&6
19030 ac_check_lib_save_LIBS=$LIBS
19031 LIBS="-lgetloadavg $LIBS"
19032 cat >conftest.$ac_ext <<_ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h. */
19039 /* Override any GCC internal prototype to avoid an error.
19040 Use char because int might match the return type of a GCC
19041 builtin and then its argument prototype would still apply. */
19045 char getloadavg ();
19049 return getloadavg ();
19054 rm -f conftest.$ac_objext conftest$ac_exeext
19055 if { (ac_try="$ac_link"
19056 case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19060 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19061 $as_echo "$ac_try_echo") >&5
19062 (eval "$ac_link") 2>conftest.er1
19064 grep -v '^ *+' conftest.er1 >conftest.err
19066 cat conftest.err >&5
19067 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19068 (exit $ac_status); } && {
19069 test -z "$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19071 } && test -s conftest$ac_exeext && {
19072 test "$cross_compiling" = yes ||
19073 $as_test_x conftest$ac_exeext
19075 ac_cv_lib_getloadavg_getloadavg=yes
19077 $as_echo "$as_me: failed program was
:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19080 ac_cv_lib_getloadavg_getloadavg=no
19083 rm -rf conftest.dSYM
19084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19085 conftest$ac_exeext conftest.$ac_ext
19086 LIBS=$ac_check_lib_save_LIBS
19088 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
19089 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19090 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19091 LIBS="-lgetloadavg $LIBS"
19093 LIBS=$ac_getloadavg_LIBS
19098 # Make sure it is really in the library, if we think we found it,
19099 # otherwise set up the replacement function.
19101 for ac_func in getloadavg
19103 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19104 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19105 $as_echo_n "checking
for $ac_func...
" >&6; }
19106 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19107 $as_echo_n "(cached
) " >&6
19109 cat >conftest.$ac_ext <<_ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19117 #define $ac_func innocuous_$ac_func
19119 /* System header to define __stub macros and hopefully few prototypes,
19120 which can conflict with char $ac_func (); below.
19121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19122 <limits.h> exists even on freestanding compilers. */
19125 # include <limits.h>
19127 # include <assert.h>
19132 /* Override any GCC internal prototype to avoid an error.
19133 Use char because int might match the return type of a GCC
19134 builtin and then its argument prototype would still apply. */
19139 /* The GNU C library defines this for functions which it implements
19140 to always fail with ENOSYS. Some functions are actually named
19141 something starting with __ and the normal name is an alias. */
19142 #if defined __stub_$ac_func || defined __stub___$ac_func
19149 return $ac_func ();
19154 rm -f conftest.$ac_objext conftest$ac_exeext
19155 if { (ac_try="$ac_link"
19156 case "(($ac_try" in
19157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158 *) ac_try_echo=$ac_try;;
19160 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19161 $as_echo "$ac_try_echo") >&5
19162 (eval "$ac_link") 2>conftest.er1
19164 grep -v '^ *+' conftest.er1 >conftest.err
19166 cat conftest.err >&5
19167 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19168 (exit $ac_status); } && {
19169 test -z "$ac_c_werror_flag" ||
19170 test ! -s conftest.err
19171 } && test -s conftest$ac_exeext && {
19172 test "$cross_compiling" = yes ||
19173 $as_test_x conftest$ac_exeext
19175 eval "$as_ac_var=yes"
19177 $as_echo "$as_me: failed program was
:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19180 eval "$as_ac_var=no
"
19183 rm -rf conftest.dSYM
19184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19185 conftest$ac_exeext conftest.$ac_ext
19187 ac_res=`eval 'as_val=${'$as_ac_var'}
19188 $as_echo "$as_val"'`
19189 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19190 $as_echo "$ac_res" >&6; }
19191 if test `eval 'as_val=${'$as_ac_var'}
19192 $as_echo "$as_val"'` = yes; then
19193 cat >>confdefs.h <<_ACEOF
19194 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19198 case " $LIBOBJS " in
19199 *" getloadavg.
$ac_objext "* ) ;;
19200 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
19205 cat >>confdefs.h <<\_ACEOF
19206 #define C_GETLOADAVG 1
19209 # Figure out what our getloadavg.c needs.
19211 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19212 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19213 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19214 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19215 $as_echo_n "(cached
) " >&6
19217 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19218 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19220 # Is the header compilable?
19221 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
19222 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
19223 cat >conftest.$ac_ext <<_ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h. */
19229 $ac_includes_default
19230 #include <sys/dg_sys_info.h>
19232 rm -f conftest.$ac_objext
19233 if { (ac_try="$ac_compile"
19234 case "(($ac_try" in
19235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236 *) ac_try_echo=$ac_try;;
19238 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19239 $as_echo "$ac_try_echo") >&5
19240 (eval "$ac_compile") 2>conftest.er1
19242 grep -v '^ *+' conftest.er1 >conftest.err
19244 cat conftest.err >&5
19245 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19246 (exit $ac_status); } && {
19247 test -z "$ac_c_werror_flag" ||
19248 test ! -s conftest.err
19249 } && test -s conftest.$ac_objext; then
19250 ac_header_compiler=yes
19252 $as_echo "$as_me: failed program was
:" >&5
19253 sed 's/^/| /' conftest.$ac_ext >&5
19255 ac_header_compiler=no
19258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19259 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19260 $as_echo "$ac_header_compiler" >&6; }
19262 # Is the header present?
19263 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
19264 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
19265 cat >conftest.$ac_ext <<_ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19271 #include <sys/dg_sys_info.h>
19273 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19274 case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19278 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19279 $as_echo "$ac_try_echo") >&5
19280 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19282 grep -v '^ *+' conftest.er1 >conftest.err
19284 cat conftest.err >&5
19285 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19286 (exit $ac_status); } >/dev/null && {
19287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19288 test ! -s conftest.err
19290 ac_header_preproc=yes
19292 $as_echo "$as_me: failed program was
:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19295 ac_header_preproc=no
19298 rm -f conftest.err conftest.$ac_ext
19299 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19300 $as_echo "$ac_header_preproc" >&6; }
19302 # So? What about this header?
19303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19305 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19306 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19307 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
19308 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
19309 ac_header_preproc=yes
19312 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
19313 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
19314 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
19315 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
19316 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
19317 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
19318 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19319 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19320 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
19321 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
19322 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
19323 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
19327 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19328 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19329 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19330 $as_echo_n "(cached
) " >&6
19332 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19334 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19335 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19338 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19341 cat >>confdefs.h <<\_ACEOF
19346 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
19347 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
19348 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19349 $as_echo_n "(cached
) " >&6
19351 ac_check_lib_save_LIBS=$LIBS
19353 cat >conftest.$ac_ext <<_ACEOF
19356 cat confdefs.h >>conftest.$ac_ext
19357 cat >>conftest.$ac_ext <<_ACEOF
19358 /* end confdefs.h. */
19360 /* Override any GCC internal prototype to avoid an error.
19361 Use char because int might match the return type of a GCC
19362 builtin and then its argument prototype would still apply. */
19366 char dg_sys_info ();
19370 return dg_sys_info ();
19375 rm -f conftest.$ac_objext conftest$ac_exeext
19376 if { (ac_try="$ac_link"
19377 case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19381 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19382 $as_echo "$ac_try_echo") >&5
19383 (eval "$ac_link") 2>conftest.er1
19385 grep -v '^ *+' conftest.er1 >conftest.err
19387 cat conftest.err >&5
19388 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19389 (exit $ac_status); } && {
19390 test -z "$ac_c_werror_flag" ||
19391 test ! -s conftest.err
19392 } && test -s conftest$ac_exeext && {
19393 test "$cross_compiling" = yes ||
19394 $as_test_x conftest$ac_exeext
19396 ac_cv_lib_dgc_dg_sys_info=yes
19398 $as_echo "$as_me: failed program was
:" >&5
19399 sed 's/^/| /' conftest.$ac_ext >&5
19401 ac_cv_lib_dgc_dg_sys_info=no
19404 rm -rf conftest.dSYM
19405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19406 conftest$ac_exeext conftest.$ac_ext
19407 LIBS=$ac_check_lib_save_LIBS
19409 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
19410 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19411 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19412 cat >>confdefs.h <<_ACEOF
19413 #define HAVE_LIBDGC 1
19424 if test "${ac_cv_header_locale_h+set}" = set; then
19425 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19426 $as_echo_n "checking
for locale.h...
" >&6; }
19427 if test "${ac_cv_header_locale_h+set}" = set; then
19428 $as_echo_n "(cached
) " >&6
19430 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19431 $as_echo "$ac_cv_header_locale_h" >&6; }
19433 # Is the header compilable?
19434 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19435 $as_echo_n "checking locale.h usability...
" >&6; }
19436 cat >conftest.$ac_ext <<_ACEOF
19439 cat confdefs.h >>conftest.$ac_ext
19440 cat >>conftest.$ac_ext <<_ACEOF
19441 /* end confdefs.h. */
19442 $ac_includes_default
19443 #include <locale.h>
19445 rm -f conftest.$ac_objext
19446 if { (ac_try="$ac_compile"
19447 case "(($ac_try" in
19448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449 *) ac_try_echo=$ac_try;;
19451 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19452 $as_echo "$ac_try_echo") >&5
19453 (eval "$ac_compile") 2>conftest.er1
19455 grep -v '^ *+' conftest.er1 >conftest.err
19457 cat conftest.err >&5
19458 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19459 (exit $ac_status); } && {
19460 test -z "$ac_c_werror_flag" ||
19461 test ! -s conftest.err
19462 } && test -s conftest.$ac_objext; then
19463 ac_header_compiler=yes
19465 $as_echo "$as_me: failed program was
:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19468 ac_header_compiler=no
19471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19472 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19473 $as_echo "$ac_header_compiler" >&6; }
19475 # Is the header present?
19476 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19477 $as_echo_n "checking locale.h presence...
" >&6; }
19478 cat >conftest.$ac_ext <<_ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19484 #include <locale.h>
19486 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19487 case "(($ac_try" in
19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19489 *) ac_try_echo=$ac_try;;
19491 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19492 $as_echo "$ac_try_echo") >&5
19493 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19495 grep -v '^ *+' conftest.er1 >conftest.err
19497 cat conftest.err >&5
19498 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19499 (exit $ac_status); } >/dev/null && {
19500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19501 test ! -s conftest.err
19503 ac_header_preproc=yes
19505 $as_echo "$as_me: failed program was
:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19508 ac_header_preproc=no
19511 rm -f conftest.err conftest.$ac_ext
19512 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19513 $as_echo "$ac_header_preproc" >&6; }
19515 # So? What about this header?
19516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19518 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19519 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19520 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19521 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19522 ac_header_preproc=yes
19525 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19526 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19527 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19528 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19529 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19530 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19531 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19532 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19533 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19534 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19535 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19536 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19540 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19541 $as_echo_n "checking
for locale.h...
" >&6; }
19542 if test "${ac_cv_header_locale_h+set}" = set; then
19543 $as_echo_n "(cached
) " >&6
19545 ac_cv_header_locale_h=$ac_header_preproc
19547 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19548 $as_echo "$ac_cv_header_locale_h" >&6; }
19554 for ac_func in setlocale
19556 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19557 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19558 $as_echo_n "checking
for $ac_func...
" >&6; }
19559 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19560 $as_echo_n "(cached
) " >&6
19562 cat >conftest.$ac_ext <<_ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19570 #define $ac_func innocuous_$ac_func
19572 /* System header to define __stub macros and hopefully few prototypes,
19573 which can conflict with char $ac_func (); below.
19574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19575 <limits.h> exists even on freestanding compilers. */
19578 # include <limits.h>
19580 # include <assert.h>
19585 /* Override any GCC internal prototype to avoid an error.
19586 Use char because int might match the return type of a GCC
19587 builtin and then its argument prototype would still apply. */
19592 /* The GNU C library defines this for functions which it implements
19593 to always fail with ENOSYS. Some functions are actually named
19594 something starting with __ and the normal name is an alias. */
19595 #if defined __stub_$ac_func || defined __stub___$ac_func
19602 return $ac_func ();
19607 rm -f conftest.$ac_objext conftest$ac_exeext
19608 if { (ac_try="$ac_link"
19609 case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19613 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19614 $as_echo "$ac_try_echo") >&5
19615 (eval "$ac_link") 2>conftest.er1
19617 grep -v '^ *+' conftest.er1 >conftest.err
19619 cat conftest.err >&5
19620 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19621 (exit $ac_status); } && {
19622 test -z "$ac_c_werror_flag" ||
19623 test ! -s conftest.err
19624 } && test -s conftest$ac_exeext && {
19625 test "$cross_compiling" = yes ||
19626 $as_test_x conftest$ac_exeext
19628 eval "$as_ac_var=yes"
19630 $as_echo "$as_me: failed program was
:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19633 eval "$as_ac_var=no
"
19636 rm -rf conftest.dSYM
19637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19638 conftest$ac_exeext conftest.$ac_ext
19640 ac_res=`eval 'as_val=${'$as_ac_var'}
19641 $as_echo "$as_val"'`
19642 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19643 $as_echo "$ac_res" >&6; }
19644 if test `eval 'as_val=${'$as_ac_var'}
19645 $as_echo "$as_val"'` = yes; then
19646 cat >>confdefs.h <<_ACEOF
19647 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19654 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19655 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19656 # Irix 4.0.5F has the header but not the library.
19657 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19660 cat >>confdefs.h <<\_ACEOF
19666 if test $ac_have_func = no; then
19667 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19668 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19669 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19670 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19671 $as_echo_n "(cached
) " >&6
19673 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19674 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19676 # Is the header compilable?
19677 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19678 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19679 cat >conftest.$ac_ext <<_ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 $ac_includes_default
19686 #include <inq_stats/cpustats.h>
19688 rm -f conftest.$ac_objext
19689 if { (ac_try="$ac_compile"
19690 case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19694 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19695 $as_echo "$ac_try_echo") >&5
19696 (eval "$ac_compile") 2>conftest.er1
19698 grep -v '^ *+' conftest.er1 >conftest.err
19700 cat conftest.err >&5
19701 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19702 (exit $ac_status); } && {
19703 test -z "$ac_c_werror_flag" ||
19704 test ! -s conftest.err
19705 } && test -s conftest.$ac_objext; then
19706 ac_header_compiler=yes
19708 $as_echo "$as_me: failed program was
:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19711 ac_header_compiler=no
19714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19715 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19716 $as_echo "$ac_header_compiler" >&6; }
19718 # Is the header present?
19719 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19720 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19721 cat >conftest.$ac_ext <<_ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h. */
19727 #include <inq_stats/cpustats.h>
19729 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19730 case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19734 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19735 $as_echo "$ac_try_echo") >&5
19736 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19738 grep -v '^ *+' conftest.er1 >conftest.err
19740 cat conftest.err >&5
19741 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19742 (exit $ac_status); } >/dev/null && {
19743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19744 test ! -s conftest.err
19746 ac_header_preproc=yes
19748 $as_echo "$as_me: failed program was
:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19751 ac_header_preproc=no
19754 rm -f conftest.err conftest.$ac_ext
19755 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19756 $as_echo "$ac_header_preproc" >&6; }
19758 # So? What about this header?
19759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19761 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19762 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19763 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19764 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19765 ac_header_preproc=yes
19768 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19769 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19770 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19771 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19772 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19773 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19774 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19775 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19776 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19777 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19778 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19779 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19783 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19784 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19785 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19786 $as_echo_n "(cached
) " >&6
19788 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19790 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19791 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19794 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19797 cat >>confdefs.h <<\_ACEOF
19802 cat >>confdefs.h <<\_ACEOF
19811 if test $ac_have_func = no; then
19812 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19813 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19814 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19815 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19816 $as_echo_n "(cached
) " >&6
19818 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19819 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19821 # Is the header compilable?
19822 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19823 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19824 cat >conftest.$ac_ext <<_ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830 $ac_includes_default
19831 #include <sys/cpustats.h>
19833 rm -f conftest.$ac_objext
19834 if { (ac_try="$ac_compile"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19840 $as_echo "$ac_try_echo") >&5
19841 (eval "$ac_compile") 2>conftest.er1
19843 grep -v '^ *+' conftest.er1 >conftest.err
19845 cat conftest.err >&5
19846 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19847 (exit $ac_status); } && {
19848 test -z "$ac_c_werror_flag" ||
19849 test ! -s conftest.err
19850 } && test -s conftest.$ac_objext; then
19851 ac_header_compiler=yes
19853 $as_echo "$as_me: failed program was
:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19856 ac_header_compiler=no
19859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19860 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19861 $as_echo "$ac_header_compiler" >&6; }
19863 # Is the header present?
19864 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19865 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19866 cat >conftest.$ac_ext <<_ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19872 #include <sys/cpustats.h>
19874 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19875 case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19879 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19880 $as_echo "$ac_try_echo") >&5
19881 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19883 grep -v '^ *+' conftest.er1 >conftest.err
19885 cat conftest.err >&5
19886 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19887 (exit $ac_status); } >/dev/null && {
19888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19889 test ! -s conftest.err
19891 ac_header_preproc=yes
19893 $as_echo "$as_me: failed program was
:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19896 ac_header_preproc=no
19899 rm -f conftest.err conftest.$ac_ext
19900 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19901 $as_echo "$ac_header_preproc" >&6; }
19903 # So? What about this header?
19904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19906 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19907 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19908 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19909 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19910 ac_header_preproc=yes
19913 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19914 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19915 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19916 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19917 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19918 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19919 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19920 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19921 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19922 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19923 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19924 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19928 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19929 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19930 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19931 $as_echo_n "(cached
) " >&6
19933 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19935 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19936 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19939 if test $ac_cv_header_sys_cpustats_h = yes; then
19940 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19949 if test $ac_have_func = no; then
19951 for ac_header in mach/mach.h
19953 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19954 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19955 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19956 $as_echo_n "checking
for $ac_header...
" >&6; }
19957 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19958 $as_echo_n "(cached
) " >&6
19960 ac_res=`eval 'as_val=${'$as_ac_Header'}
19961 $as_echo "$as_val"'`
19962 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19963 $as_echo "$ac_res" >&6; }
19965 # Is the header compilable?
19966 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19967 $as_echo_n "checking
$ac_header usability...
" >&6; }
19968 cat >conftest.$ac_ext <<_ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19974 $ac_includes_default
19975 #include <$ac_header>
19977 rm -f conftest.$ac_objext
19978 if { (ac_try="$ac_compile"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19983 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19984 $as_echo "$ac_try_echo") >&5
19985 (eval "$ac_compile") 2>conftest.er1
19987 grep -v '^ *+' conftest.er1 >conftest.err
19989 cat conftest.err >&5
19990 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19991 (exit $ac_status); } && {
19992 test -z "$ac_c_werror_flag" ||
19993 test ! -s conftest.err
19994 } && test -s conftest.$ac_objext; then
19995 ac_header_compiler=yes
19997 $as_echo "$as_me: failed program was
:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 ac_header_compiler=no
20003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20005 $as_echo "$ac_header_compiler" >&6; }
20007 # Is the header present?
20008 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20009 $as_echo_n "checking
$ac_header presence...
" >&6; }
20010 cat >conftest.$ac_ext <<_ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20016 #include <$ac_header>
20018 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20019 case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20023 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20024 $as_echo "$ac_try_echo") >&5
20025 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20027 grep -v '^ *+' conftest.er1 >conftest.err
20029 cat conftest.err >&5
20030 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20031 (exit $ac_status); } >/dev/null && {
20032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20033 test ! -s conftest.err
20035 ac_header_preproc=yes
20037 $as_echo "$as_me: failed program was
:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 ac_header_preproc=no
20043 rm -f conftest.err conftest.$ac_ext
20044 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20045 $as_echo "$ac_header_preproc" >&6; }
20047 # So? What about this header?
20048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20050 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20051 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20052 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20053 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20054 ac_header_preproc=yes
20057 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20058 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20059 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20060 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20061 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20062 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20063 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20064 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20065 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20066 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20067 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20068 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20072 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20073 $as_echo_n "checking
for $ac_header...
" >&6; }
20074 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20075 $as_echo_n "(cached
) " >&6
20077 eval "$as_ac_Header=\
$ac_header_preproc"
20079 ac_res=`eval 'as_val=${'$as_ac_Header'}
20080 $as_echo "$as_val"'`
20081 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20082 $as_echo "$ac_res" >&6; }
20085 if test `eval 'as_val=${'$as_ac_Header'}
20086 $as_echo "$as_val"'` = yes; then
20087 cat >>confdefs.h <<_ACEOF
20088 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20098 for ac_header in nlist.h
20100 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20101 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20102 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20103 $as_echo_n "checking
for $ac_header...
" >&6; }
20104 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20105 $as_echo_n "(cached
) " >&6
20107 ac_res=`eval 'as_val=${'$as_ac_Header'}
20108 $as_echo "$as_val"'`
20109 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20110 $as_echo "$ac_res" >&6; }
20112 # Is the header compilable?
20113 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20114 $as_echo_n "checking
$ac_header usability...
" >&6; }
20115 cat >conftest.$ac_ext <<_ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20121 $ac_includes_default
20122 #include <$ac_header>
20124 rm -f conftest.$ac_objext
20125 if { (ac_try="$ac_compile"
20126 case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20130 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20131 $as_echo "$ac_try_echo") >&5
20132 (eval "$ac_compile") 2>conftest.er1
20134 grep -v '^ *+' conftest.er1 >conftest.err
20136 cat conftest.err >&5
20137 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20138 (exit $ac_status); } && {
20139 test -z "$ac_c_werror_flag" ||
20140 test ! -s conftest.err
20141 } && test -s conftest.$ac_objext; then
20142 ac_header_compiler=yes
20144 $as_echo "$as_me: failed program was
:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20147 ac_header_compiler=no
20150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20151 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20152 $as_echo "$ac_header_compiler" >&6; }
20154 # Is the header present?
20155 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20156 $as_echo_n "checking
$ac_header presence...
" >&6; }
20157 cat >conftest.$ac_ext <<_ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 #include <$ac_header>
20165 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20166 case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20170 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20171 $as_echo "$ac_try_echo") >&5
20172 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20174 grep -v '^ *+' conftest.er1 >conftest.err
20176 cat conftest.err >&5
20177 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20178 (exit $ac_status); } >/dev/null && {
20179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20180 test ! -s conftest.err
20182 ac_header_preproc=yes
20184 $as_echo "$as_me: failed program was
:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20187 ac_header_preproc=no
20190 rm -f conftest.err conftest.$ac_ext
20191 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20192 $as_echo "$ac_header_preproc" >&6; }
20194 # So? What about this header?
20195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20197 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20198 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20199 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20200 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20201 ac_header_preproc=yes
20204 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20205 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20206 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20207 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20208 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20209 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20210 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20211 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20212 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20213 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20214 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20215 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20219 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20220 $as_echo_n "checking
for $ac_header...
" >&6; }
20221 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20222 $as_echo_n "(cached
) " >&6
20224 eval "$as_ac_Header=\
$ac_header_preproc"
20226 ac_res=`eval 'as_val=${'$as_ac_Header'}
20227 $as_echo "$as_val"'`
20228 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20229 $as_echo "$ac_res" >&6; }
20232 if test `eval 'as_val=${'$as_ac_Header'}
20233 $as_echo "$as_val"'` = yes; then
20234 cat >>confdefs.h <<_ACEOF
20235 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20237 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
20238 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
20239 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20240 $as_echo_n "(cached
) " >&6
20242 cat >conftest.$ac_ext <<_ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20253 static struct nlist ac_aggr;
20254 if (ac_aggr.n_un.n_name)
20260 rm -f conftest.$ac_objext
20261 if { (ac_try="$ac_compile"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20266 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20267 $as_echo "$ac_try_echo") >&5
20268 (eval "$ac_compile") 2>conftest.er1
20270 grep -v '^ *+' conftest.er1 >conftest.err
20272 cat conftest.err >&5
20273 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20274 (exit $ac_status); } && {
20275 test -z "$ac_c_werror_flag" ||
20276 test ! -s conftest.err
20277 } && test -s conftest.$ac_objext; then
20278 ac_cv_member_struct_nlist_n_un_n_name=yes
20280 $as_echo "$as_me: failed program was
:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20283 cat >conftest.$ac_ext <<_ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20294 static struct nlist ac_aggr;
20295 if (sizeof ac_aggr.n_un.n_name)
20301 rm -f conftest.$ac_objext
20302 if { (ac_try="$ac_compile"
20303 case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20307 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20308 $as_echo "$ac_try_echo") >&5
20309 (eval "$ac_compile") 2>conftest.er1
20311 grep -v '^ *+' conftest.er1 >conftest.err
20313 cat conftest.err >&5
20314 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20315 (exit $ac_status); } && {
20316 test -z "$ac_c_werror_flag" ||
20317 test ! -s conftest.err
20318 } && test -s conftest.$ac_objext; then
20319 ac_cv_member_struct_nlist_n_un_n_name=yes
20321 $as_echo "$as_me: failed program was
:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 ac_cv_member_struct_nlist_n_un_n_name=no
20327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20332 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20333 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20334 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20336 cat >>confdefs.h <<_ACEOF
20337 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20341 cat >>confdefs.h <<\_ACEOF
20342 #define NLIST_NAME_UNION 1
20356 # Some definitions of getloadavg require that the program be installed setgid.
20357 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
20358 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
20359 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20360 $as_echo_n "(cached
) " >&6
20362 cat >conftest.$ac_ext <<_ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20368 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
20369 #ifdef LDAV_PRIVILEGED
20370 Yowza Am I SETGID yet
20373 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
20374 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
20375 ac_cv_func_getloadavg_setgid=yes
20377 ac_cv_func_getloadavg_setgid=no
20382 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
20383 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20384 if test $ac_cv_func_getloadavg_setgid = yes; then
20387 cat >>confdefs.h <<\_ACEOF
20388 #define GETLOADAVG_PRIVILEGED 1
20395 if test $ac_cv_func_getloadavg_setgid = yes; then
20396 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
20397 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
20398 if test "${ac_cv_group_kmem+set}" = set; then
20399 $as_echo_n "(cached
) " >&6
20401 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20402 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20403 # If we got an error (system does not support symlinks), try without -L.
20404 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20405 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20406 | sed -ne 's/[ ][ ]*/ /g;
20407 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20411 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
20412 $as_echo "$ac_cv_group_kmem" >&6; }
20413 KMEM_GROUP=$ac_cv_group_kmem
20415 if test "x
$ac_save_LIBS" = x; then
20416 GETLOADAVG_LIBS=$LIBS
20418 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
20424 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
20425 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
20426 if test "${ac_cv_sys_largefile_source+set}" = set; then
20427 $as_echo_n "(cached
) " >&6
20430 cat >conftest.$ac_ext <<_ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20436 #include <sys/types.h> /* for off_t */
20441 int (*fp) (FILE *, off_t, int) = fseeko;
20442 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20447 rm -f conftest.$ac_objext conftest$ac_exeext
20448 if { (ac_try="$ac_link"
20449 case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20453 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20454 $as_echo "$ac_try_echo") >&5
20455 (eval "$ac_link") 2>conftest.er1
20457 grep -v '^ *+' conftest.er1 >conftest.err
20459 cat conftest.err >&5
20460 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20461 (exit $ac_status); } && {
20462 test -z "$ac_c_werror_flag" ||
20463 test ! -s conftest.err
20464 } && test -s conftest$ac_exeext && {
20465 test "$cross_compiling" = yes ||
20466 $as_test_x conftest$ac_exeext
20468 ac_cv_sys_largefile_source=no; break
20470 $as_echo "$as_me: failed program was
:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20476 rm -rf conftest.dSYM
20477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20478 conftest$ac_exeext conftest.$ac_ext
20479 cat >conftest.$ac_ext <<_ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20485 #define _LARGEFILE_SOURCE 1
20486 #include <sys/types.h> /* for off_t */
20491 int (*fp) (FILE *, off_t, int) = fseeko;
20492 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20497 rm -f conftest.$ac_objext conftest$ac_exeext
20498 if { (ac_try="$ac_link"
20499 case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20503 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20504 $as_echo "$ac_try_echo") >&5
20505 (eval "$ac_link") 2>conftest.er1
20507 grep -v '^ *+' conftest.er1 >conftest.err
20509 cat conftest.err >&5
20510 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20511 (exit $ac_status); } && {
20512 test -z "$ac_c_werror_flag" ||
20513 test ! -s conftest.err
20514 } && test -s conftest$ac_exeext && {
20515 test "$cross_compiling" = yes ||
20516 $as_test_x conftest$ac_exeext
20518 ac_cv_sys_largefile_source=1; break
20520 $as_echo "$as_me: failed program was
:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20526 rm -rf conftest.dSYM
20527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20528 conftest$ac_exeext conftest.$ac_ext
20529 ac_cv_sys_largefile_source=unknown
20533 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20534 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20535 case $ac_cv_sys_largefile_source in #(
20538 cat >>confdefs.h <<_ACEOF
20539 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20545 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20546 # in glibc 2.1.3, but that breaks too many other things.
20547 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20548 if test $ac_cv_sys_largefile_source != unknown; then
20550 cat >>confdefs.h <<\_ACEOF
20551 #define HAVE_FSEEKO 1
20557 # Configure getopt.
20558 # getopt.m4 serial 10
20560 # The getopt module assume you want GNU getopt, with getopt_long etc,
20561 # rather than vanilla POSIX getopt. This means your your code should
20562 # always include <getopt.h> for the getopt prototypes.
20574 # Prerequisites of lib/getopt*.
20581 for ac_header in getopt.h
20583 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20584 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20585 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20586 $as_echo_n "checking
for $ac_header...
" >&6; }
20587 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20588 $as_echo_n "(cached
) " >&6
20590 ac_res=`eval 'as_val=${'$as_ac_Header'}
20591 $as_echo "$as_val"'`
20592 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20593 $as_echo "$ac_res" >&6; }
20595 # Is the header compilable?
20596 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20597 $as_echo_n "checking
$ac_header usability...
" >&6; }
20598 cat >conftest.$ac_ext <<_ACEOF
20601 cat confdefs.h >>conftest.$ac_ext
20602 cat >>conftest.$ac_ext <<_ACEOF
20603 /* end confdefs.h. */
20604 $ac_includes_default
20605 #include <$ac_header>
20607 rm -f conftest.$ac_objext
20608 if { (ac_try="$ac_compile"
20609 case "(($ac_try" in
20610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20611 *) ac_try_echo=$ac_try;;
20613 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20614 $as_echo "$ac_try_echo") >&5
20615 (eval "$ac_compile") 2>conftest.er1
20617 grep -v '^ *+' conftest.er1 >conftest.err
20619 cat conftest.err >&5
20620 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20621 (exit $ac_status); } && {
20622 test -z "$ac_c_werror_flag" ||
20623 test ! -s conftest.err
20624 } && test -s conftest.$ac_objext; then
20625 ac_header_compiler=yes
20627 $as_echo "$as_me: failed program was
:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20630 ac_header_compiler=no
20633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20634 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20635 $as_echo "$ac_header_compiler" >&6; }
20637 # Is the header present?
20638 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20639 $as_echo_n "checking
$ac_header presence...
" >&6; }
20640 cat >conftest.$ac_ext <<_ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h. */
20646 #include <$ac_header>
20648 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20649 case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20653 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20654 $as_echo "$ac_try_echo") >&5
20655 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20657 grep -v '^ *+' conftest.er1 >conftest.err
20659 cat conftest.err >&5
20660 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20661 (exit $ac_status); } >/dev/null && {
20662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20663 test ! -s conftest.err
20665 ac_header_preproc=yes
20667 $as_echo "$as_me: failed program was
:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20670 ac_header_preproc=no
20673 rm -f conftest.err conftest.$ac_ext
20674 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20675 $as_echo "$ac_header_preproc" >&6; }
20677 # So? What about this header?
20678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20680 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20681 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20682 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20684 ac_header_preproc=yes
20687 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20688 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20689 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20690 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20691 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20692 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20693 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20694 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20695 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20697 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20698 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20702 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20703 $as_echo_n "checking
for $ac_header...
" >&6; }
20704 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20705 $as_echo_n "(cached
) " >&6
20707 eval "$as_ac_Header=\
$ac_header_preproc"
20709 ac_res=`eval 'as_val=${'$as_ac_Header'}
20710 $as_echo "$as_val"'`
20711 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20712 $as_echo "$ac_res" >&6; }
20715 if test `eval 'as_val=${'$as_ac_Header'}
20716 $as_echo "$as_val"'` = yes; then
20717 cat >>confdefs.h <<_ACEOF
20718 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20727 if test -z "$GETOPT_H"; then
20729 for ac_func in getopt_long_only
20731 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20732 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20733 $as_echo_n "checking
for $ac_func...
" >&6; }
20734 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20735 $as_echo_n "(cached
) " >&6
20737 cat >conftest.$ac_ext <<_ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20745 #define $ac_func innocuous_$ac_func
20747 /* System header to define __stub macros and hopefully few prototypes,
20748 which can conflict with char $ac_func (); below.
20749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20750 <limits.h> exists even on freestanding compilers. */
20753 # include <limits.h>
20755 # include <assert.h>
20760 /* Override any GCC internal prototype to avoid an error.
20761 Use char because int might match the return type of a GCC
20762 builtin and then its argument prototype would still apply. */
20767 /* The GNU C library defines this for functions which it implements
20768 to always fail with ENOSYS. Some functions are actually named
20769 something starting with __ and the normal name is an alias. */
20770 #if defined __stub_$ac_func || defined __stub___$ac_func
20777 return $ac_func ();
20782 rm -f conftest.$ac_objext conftest$ac_exeext
20783 if { (ac_try="$ac_link"
20784 case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20788 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20789 $as_echo "$ac_try_echo") >&5
20790 (eval "$ac_link") 2>conftest.er1
20792 grep -v '^ *+' conftest.er1 >conftest.err
20794 cat conftest.err >&5
20795 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20796 (exit $ac_status); } && {
20797 test -z "$ac_c_werror_flag" ||
20798 test ! -s conftest.err
20799 } && test -s conftest$ac_exeext && {
20800 test "$cross_compiling" = yes ||
20801 $as_test_x conftest$ac_exeext
20803 eval "$as_ac_var=yes"
20805 $as_echo "$as_me: failed program was
:" >&5
20806 sed 's/^/| /' conftest.$ac_ext >&5
20808 eval "$as_ac_var=no
"
20811 rm -rf conftest.dSYM
20812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20813 conftest$ac_exeext conftest.$ac_ext
20815 ac_res=`eval 'as_val=${'$as_ac_var'}
20816 $as_echo "$as_val"'`
20817 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20818 $as_echo "$ac_res" >&6; }
20819 if test `eval 'as_val=${'$as_ac_var'}
20820 $as_echo "$as_val"'` = yes; then
20821 cat >>confdefs.h <<_ACEOF
20822 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20832 if test -z "$GETOPT_H"; then
20833 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20834 $as_echo_n "checking whether optreset is declared...
" >&6; }
20835 if test "${ac_cv_have_decl_optreset+set}" = set; then
20836 $as_echo_n "(cached
) " >&6
20838 cat >conftest.$ac_ext <<_ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h. */
20844 #include <getopt.h>
20857 rm -f conftest.$ac_objext
20858 if { (ac_try="$ac_compile"
20859 case "(($ac_try" in
20860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20861 *) ac_try_echo=$ac_try;;
20863 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20864 $as_echo "$ac_try_echo") >&5
20865 (eval "$ac_compile") 2>conftest.er1
20867 grep -v '^ *+' conftest.er1 >conftest.err
20869 cat conftest.err >&5
20870 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20871 (exit $ac_status); } && {
20872 test -z "$ac_c_werror_flag" ||
20873 test ! -s conftest.err
20874 } && test -s conftest.$ac_objext; then
20875 ac_cv_have_decl_optreset=yes
20877 $as_echo "$as_me: failed program was
:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20880 ac_cv_have_decl_optreset=no
20883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20885 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20886 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20887 if test $ac_cv_have_decl_optreset = yes; then
20893 if test -z "$GETOPT_H"; then
20894 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20895 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20896 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20897 $as_echo_n "(cached
) " >&6
20899 if test "$cross_compiling" = yes; then
20900 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20901 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20902 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20903 $as_echo_n "(cached
) " >&6
20905 cat >conftest.$ac_ext <<_ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 #include <getopt.h>
20916 #ifndef getopt_clip
20917 (void) getopt_clip;
20924 rm -f conftest.$ac_objext
20925 if { (ac_try="$ac_compile"
20926 case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20930 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20931 $as_echo "$ac_try_echo") >&5
20932 (eval "$ac_compile") 2>conftest.er1
20934 grep -v '^ *+' conftest.er1 >conftest.err
20936 cat conftest.err >&5
20937 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20938 (exit $ac_status); } && {
20939 test -z "$ac_c_werror_flag" ||
20940 test ! -s conftest.err
20941 } && test -s conftest.$ac_objext; then
20942 ac_cv_have_decl_getopt_clip=yes
20944 $as_echo "$as_me: failed program was
:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20947 ac_cv_have_decl_getopt_clip=no
20950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20952 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20953 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20954 if test $ac_cv_have_decl_getopt_clip = yes; then
20955 gl_cv_func_gnu_getopt=no
20957 gl_cv_func_gnu_getopt=yes
20961 cat >conftest.$ac_ext <<_ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20967 #include <getopt.h>
20973 myargv[0] = "conftest
";
20976 return getopt (2, myargv, "+a
") != '?';
20982 rm -f conftest$ac_exeext
20983 if { (ac_try="$ac_link"
20984 case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20988 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20989 $as_echo "$ac_try_echo") >&5
20990 (eval "$ac_link") 2>&5
20992 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20994 { (case "(($ac_try" in
20995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996 *) ac_try_echo=$ac_try;;
20998 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20999 $as_echo "$ac_try_echo") >&5
21000 (eval "$ac_try") 2>&5
21002 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21003 (exit $ac_status); }; }; then
21004 gl_cv_func_gnu_getopt=yes
21006 $as_echo "$as_me: program exited with status
$ac_status" >&5
21007 $as_echo "$as_me: failed program was
:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21010 ( exit $ac_status )
21011 gl_cv_func_gnu_getopt=no
21013 rm -rf conftest.dSYM
21014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21019 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
21020 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21021 if test "$gl_cv_func_gnu_getopt" = "no
"; then
21028 if test -n "$GETOPT_H"; then
21033 cat >>confdefs.h <<\_ACEOF
21034 #define __GETOPT_PREFIX rpl_
21040 GETOPTOBJS='getopt.o getopt1.o'
21047 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
21048 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
21049 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21050 $as_echo_n "(cached
) " >&6
21052 # Use it with a single arg.
21053 cat >conftest.$ac_ext <<_ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 $ac_includes_default
21068 rm -f conftest.$ac_objext
21069 if { (ac_try="$ac_compile"
21070 case "(($ac_try" in
21071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072 *) ac_try_echo=$ac_try;;
21074 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21075 $as_echo "$ac_try_echo") >&5
21076 (eval "$ac_compile") 2>conftest.er1
21078 grep -v '^ *+' conftest.er1 >conftest.err
21080 cat conftest.err >&5
21081 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21082 (exit $ac_status); } && {
21083 test -z "$ac_c_werror_flag" ||
21084 test ! -s conftest.err
21085 } && test -s conftest.$ac_objext; then
21086 ac_cv_func_getpgrp_void=no
21088 $as_echo "$as_me: failed program was
:" >&5
21089 sed 's/^/| /' conftest.$ac_ext >&5
21091 ac_cv_func_getpgrp_void=yes
21094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21097 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
21098 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21099 if test $ac_cv_func_getpgrp_void = yes; then
21101 cat >>confdefs.h <<\_ACEOF
21102 #define GETPGRP_VOID 1
21109 for ac_func in strftime
21111 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21112 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21113 $as_echo_n "checking
for $ac_func...
" >&6; }
21114 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21115 $as_echo_n "(cached
) " >&6
21117 cat >conftest.$ac_ext <<_ACEOF
21120 cat confdefs.h >>conftest.$ac_ext
21121 cat >>conftest.$ac_ext <<_ACEOF
21122 /* end confdefs.h. */
21123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21125 #define $ac_func innocuous_$ac_func
21127 /* System header to define __stub macros and hopefully few prototypes,
21128 which can conflict with char $ac_func (); below.
21129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21130 <limits.h> exists even on freestanding compilers. */
21133 # include <limits.h>
21135 # include <assert.h>
21140 /* Override any GCC internal prototype to avoid an error.
21141 Use char because int might match the return type of a GCC
21142 builtin and then its argument prototype would still apply. */
21147 /* The GNU C library defines this for functions which it implements
21148 to always fail with ENOSYS. Some functions are actually named
21149 something starting with __ and the normal name is an alias. */
21150 #if defined __stub_$ac_func || defined __stub___$ac_func
21157 return $ac_func ();
21162 rm -f conftest.$ac_objext conftest$ac_exeext
21163 if { (ac_try="$ac_link"
21164 case "(($ac_try" in
21165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21166 *) ac_try_echo=$ac_try;;
21168 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21169 $as_echo "$ac_try_echo") >&5
21170 (eval "$ac_link") 2>conftest.er1
21172 grep -v '^ *+' conftest.er1 >conftest.err
21174 cat conftest.err >&5
21175 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21176 (exit $ac_status); } && {
21177 test -z "$ac_c_werror_flag" ||
21178 test ! -s conftest.err
21179 } && test -s conftest$ac_exeext && {
21180 test "$cross_compiling" = yes ||
21181 $as_test_x conftest$ac_exeext
21183 eval "$as_ac_var=yes"
21185 $as_echo "$as_me: failed program was
:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21188 eval "$as_ac_var=no
"
21191 rm -rf conftest.dSYM
21192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21193 conftest$ac_exeext conftest.$ac_ext
21195 ac_res=`eval 'as_val=${'$as_ac_var'}
21196 $as_echo "$as_val"'`
21197 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21198 $as_echo "$ac_res" >&6; }
21199 if test `eval 'as_val=${'$as_ac_var'}
21200 $as_echo "$as_val"'` = yes; then
21201 cat >>confdefs.h <<_ACEOF
21202 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21206 # strftime is in -lintl on SCO UNIX.
21207 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
21208 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
21209 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21210 $as_echo_n "(cached
) " >&6
21212 ac_check_lib_save_LIBS=$LIBS
21213 LIBS="-lintl $LIBS"
21214 cat >conftest.$ac_ext <<_ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h. */
21221 /* Override any GCC internal prototype to avoid an error.
21222 Use char because int might match the return type of a GCC
21223 builtin and then its argument prototype would still apply. */
21231 return strftime ();
21236 rm -f conftest.$ac_objext conftest$ac_exeext
21237 if { (ac_try="$ac_link"
21238 case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21242 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21243 $as_echo "$ac_try_echo") >&5
21244 (eval "$ac_link") 2>conftest.er1
21246 grep -v '^ *+' conftest.er1 >conftest.err
21248 cat conftest.err >&5
21249 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21250 (exit $ac_status); } && {
21251 test -z "$ac_c_werror_flag" ||
21252 test ! -s conftest.err
21253 } && test -s conftest$ac_exeext && {
21254 test "$cross_compiling" = yes ||
21255 $as_test_x conftest$ac_exeext
21257 ac_cv_lib_intl_strftime=yes
21259 $as_echo "$as_me: failed program was
:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21262 ac_cv_lib_intl_strftime=no
21265 rm -rf conftest.dSYM
21266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21267 conftest$ac_exeext conftest.$ac_ext
21268 LIBS=$ac_check_lib_save_LIBS
21270 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
21271 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21272 if test $ac_cv_lib_intl_strftime = yes; then
21273 cat >>confdefs.h <<\_ACEOF
21274 #define HAVE_STRFTIME 1
21277 LIBS="-lintl $LIBS"
21286 for ac_func in grantpt
21288 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21289 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21290 $as_echo_n "checking
for $ac_func...
" >&6; }
21291 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21292 $as_echo_n "(cached
) " >&6
21294 cat >conftest.$ac_ext <<_ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h. */
21300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21302 #define $ac_func innocuous_$ac_func
21304 /* System header to define __stub macros and hopefully few prototypes,
21305 which can conflict with char $ac_func (); below.
21306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21307 <limits.h> exists even on freestanding compilers. */
21310 # include <limits.h>
21312 # include <assert.h>
21317 /* Override any GCC internal prototype to avoid an error.
21318 Use char because int might match the return type of a GCC
21319 builtin and then its argument prototype would still apply. */
21324 /* The GNU C library defines this for functions which it implements
21325 to always fail with ENOSYS. Some functions are actually named
21326 something starting with __ and the normal name is an alias. */
21327 #if defined __stub_$ac_func || defined __stub___$ac_func
21334 return $ac_func ();
21339 rm -f conftest.$ac_objext conftest$ac_exeext
21340 if { (ac_try="$ac_link"
21341 case "(($ac_try" in
21342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343 *) ac_try_echo=$ac_try;;
21345 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21346 $as_echo "$ac_try_echo") >&5
21347 (eval "$ac_link") 2>conftest.er1
21349 grep -v '^ *+' conftest.er1 >conftest.err
21351 cat conftest.err >&5
21352 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21353 (exit $ac_status); } && {
21354 test -z "$ac_c_werror_flag" ||
21355 test ! -s conftest.err
21356 } && test -s conftest$ac_exeext && {
21357 test "$cross_compiling" = yes ||
21358 $as_test_x conftest$ac_exeext
21360 eval "$as_ac_var=yes"
21362 $as_echo "$as_me: failed program was
:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21365 eval "$as_ac_var=no
"
21368 rm -rf conftest.dSYM
21369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21370 conftest$ac_exeext conftest.$ac_ext
21372 ac_res=`eval 'as_val=${'$as_ac_var'}
21373 $as_echo "$as_val"'`
21374 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21375 $as_echo "$ac_res" >&6; }
21376 if test `eval 'as_val=${'$as_ac_var'}
21377 $as_echo "$as_val"'` = yes; then
21378 cat >>confdefs.h <<_ACEOF
21379 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21386 # PTY-related GNU extensions.
21388 for ac_func in getpt
21390 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21391 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21392 $as_echo_n "checking
for $ac_func...
" >&6; }
21393 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21394 $as_echo_n "(cached
) " >&6
21396 cat >conftest.$ac_ext <<_ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21404 #define $ac_func innocuous_$ac_func
21406 /* System header to define __stub macros and hopefully few prototypes,
21407 which can conflict with char $ac_func (); below.
21408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21409 <limits.h> exists even on freestanding compilers. */
21412 # include <limits.h>
21414 # include <assert.h>
21419 /* Override any GCC internal prototype to avoid an error.
21420 Use char because int might match the return type of a GCC
21421 builtin and then its argument prototype would still apply. */
21426 /* The GNU C library defines this for functions which it implements
21427 to always fail with ENOSYS. Some functions are actually named
21428 something starting with __ and the normal name is an alias. */
21429 #if defined __stub_$ac_func || defined __stub___$ac_func
21436 return $ac_func ();
21441 rm -f conftest.$ac_objext conftest$ac_exeext
21442 if { (ac_try="$ac_link"
21443 case "(($ac_try" in
21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445 *) ac_try_echo=$ac_try;;
21447 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21448 $as_echo "$ac_try_echo") >&5
21449 (eval "$ac_link") 2>conftest.er1
21451 grep -v '^ *+' conftest.er1 >conftest.err
21453 cat conftest.err >&5
21454 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21455 (exit $ac_status); } && {
21456 test -z "$ac_c_werror_flag" ||
21457 test ! -s conftest.err
21458 } && test -s conftest$ac_exeext && {
21459 test "$cross_compiling" = yes ||
21460 $as_test_x conftest$ac_exeext
21462 eval "$as_ac_var=yes"
21464 $as_echo "$as_me: failed program was
:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21467 eval "$as_ac_var=no
"
21470 rm -rf conftest.dSYM
21471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21472 conftest$ac_exeext conftest.$ac_ext
21474 ac_res=`eval 'as_val=${'$as_ac_var'}
21475 $as_echo "$as_val"'`
21476 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21477 $as_echo "$ac_res" >&6; }
21478 if test `eval 'as_val=${'$as_ac_var'}
21479 $as_echo "$as_val"'` = yes; then
21480 cat >>confdefs.h <<_ACEOF
21481 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21488 # Check this now, so that we will NOT find the above functions in ncurses.
21489 # That is because we have not set up to link ncurses in lib-src.
21490 # It's better to believe a function is not available
21491 # than to expect to find it in ncurses.
21492 # Also we need tputs and friends to be able to build at all.
21493 have_tputs_et_al=true
21494 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21495 $as_echo_n "checking
for library containing tputs...
" >&6; }
21496 if test "${ac_cv_search_tputs+set}" = set; then
21497 $as_echo_n "(cached
) " >&6
21499 ac_func_search_save_LIBS=$LIBS
21500 cat >conftest.$ac_ext <<_ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h. */
21507 /* Override any GCC internal prototype to avoid an error.
21508 Use char because int might match the return type of a GCC
21509 builtin and then its argument prototype would still apply. */
21522 for ac_lib in '' ncurses terminfo termcap; do
21523 if test -z "$ac_lib"; then
21524 ac_res="none required
"
21527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21529 rm -f conftest.$ac_objext conftest$ac_exeext
21530 if { (ac_try="$ac_link"
21531 case "(($ac_try" in
21532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21533 *) ac_try_echo=$ac_try;;
21535 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21536 $as_echo "$ac_try_echo") >&5
21537 (eval "$ac_link") 2>conftest.er1
21539 grep -v '^ *+' conftest.er1 >conftest.err
21541 cat conftest.err >&5
21542 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21543 (exit $ac_status); } && {
21544 test -z "$ac_c_werror_flag" ||
21545 test ! -s conftest.err
21546 } && test -s conftest$ac_exeext && {
21547 test "$cross_compiling" = yes ||
21548 $as_test_x conftest$ac_exeext
21550 ac_cv_search_tputs=$ac_res
21552 $as_echo "$as_me: failed program was
:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21558 rm -rf conftest.dSYM
21559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21561 if test "${ac_cv_search_tputs+set}" = set; then
21565 if test "${ac_cv_search_tputs+set}" = set; then
21568 ac_cv_search_tputs=no
21570 rm conftest.$ac_ext
21571 LIBS=$ac_func_search_save_LIBS
21573 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21574 $as_echo "$ac_cv_search_tputs" >&6; }
21575 ac_res=$ac_cv_search_tputs
21576 if test "$ac_res" != no; then
21577 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21580 have_tputs_et_al=false
21583 if test "$have_tputs_et_al" != true; then
21584 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21585 Maybe some development libraries/packages are missing? Try installing
21586 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21587 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21588 Maybe some development libraries
/packages are missing? Try installing
21589 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21590 { (exit 1); exit 1; }; }
21592 # Must define this when any termcap library is found.
21594 cat >>confdefs.h <<\_ACEOF
21595 #define HAVE_LIBNCURSES 1
21598 ## FIXME This was the cpp logic, but I am not sure it is right.
21599 ## The above test has not necessarily found libncurses.
21600 HAVE_LIBNCURSES=yes
21602 ## Use terminfo instead of termcap?
21603 ## Note only system files NOT using terminfo are:
21604 ## bsd-common, freebsd < 40000, ms-w32, msdos, netbsd, and
21605 ## darwin|gnu without ncurses.
21609 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21610 ## hpux10-20: Use the system provided termcap(3) library.
21611 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21612 ## is necessary. Otherwise Emacs dumps core when run -nw.
21613 aix4-2|cygwin|hpux*|irix6-5|openbsd|usg5-4|sol2*|unixware) TERMINFO=yes ;;
21615 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21616 ## The ncurses library has been moved out of the System framework in
21617 ## Mac OS X 10.2. So if configure detects it, set the command-line
21618 ## option to use it.
21620 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21621 if test "x
$HAVE_LIBNCURSES" = "xyes
"; then
21623 LIBS_TERMCAP="-lncurses"
21628 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo
" >&5
21629 $as_echo_n "checking whether FreeBSD is new enough to use terminfo...
" >&6; }
21630 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21631 $as_echo_n "(cached
) " >&6
21633 cat >conftest.$ac_ext <<_ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h. */
21639 #include <osreldate.h>
21643 #if __FreeBSD_version < 400000
21651 rm -f conftest.$ac_objext conftest$ac_exeext
21652 if { (ac_try="$ac_link"
21653 case "(($ac_try" in
21654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655 *) ac_try_echo=$ac_try;;
21657 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21658 $as_echo "$ac_try_echo") >&5
21659 (eval "$ac_link") 2>conftest.er1
21661 grep -v '^ *+' conftest.er1 >conftest.err
21663 cat conftest.err >&5
21664 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21665 (exit $ac_status); } && {
21666 test -z "$ac_c_werror_flag" ||
21667 test ! -s conftest.err
21668 } && test -s conftest$ac_exeext && {
21669 test "$cross_compiling" = yes ||
21670 $as_test_x conftest$ac_exeext
21672 emacs_cv_freebsd_terminfo=yes
21674 $as_echo "$as_me: failed program was
:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21677 emacs_cv_freebsd_terminfo=no
21680 rm -rf conftest.dSYM
21681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21682 conftest$ac_exeext conftest.$ac_ext
21686 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_freebsd_terminfo" >&5
21687 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21689 if test $emacs_cv_freebsd_terminfo = yes; then
21691 LIBS_TERMCAP="-lncurses"
21693 LIBS_TERMCAP="-ltermcap"
21700 ## hpux: Make sure we get select from libc rather than from libcurses
21701 ## because libcurses on HPUX 10.10 has a broken version of select.
21702 ## We used to use -lc -lcurses, but this may be cleaner.
21703 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
21705 openbsd) LIBS_TERMCAP="-lncurses" ;;
21707 ## Must use system termcap, if we use any termcap. It does special things.
21708 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21711 TERMCAP_OBJ=tparam.o
21712 if test $TERMINFO = yes; then
21714 cat >>confdefs.h <<\_ACEOF
21719 ## Default used to be -ltermcap. Add a case above if need something else.
21720 test "x
$LIBS_TERMCAP" = "x
" && LIBS_TERMCAP="-lcurses"
21722 TERMCAP_OBJ=terminfo.o
21728 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21730 cat >conftest.$ac_ext <<_ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h. */
21736 #include <netinet/in.h>
21737 #include <arpa/nameser.h>
21738 #include <resolv.h>
21747 rm -f conftest.$ac_objext conftest$ac_exeext
21748 if { (ac_try="$ac_link"
21749 case "(($ac_try" in
21750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751 *) ac_try_echo=$ac_try;;
21753 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21754 $as_echo "$ac_try_echo") >&5
21755 (eval "$ac_link") 2>conftest.er1
21757 grep -v '^ *+' conftest.er1 >conftest.err
21759 cat conftest.err >&5
21760 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21761 (exit $ac_status); } && {
21762 test -z "$ac_c_werror_flag" ||
21763 test ! -s conftest.err
21764 } && test -s conftest$ac_exeext && {
21765 test "$cross_compiling" = yes ||
21766 $as_test_x conftest$ac_exeext
21770 $as_echo "$as_me: failed program was
:" >&5
21771 sed 's/^/| /' conftest.$ac_ext >&5
21776 rm -rf conftest.dSYM
21777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21778 conftest$ac_exeext conftest.$ac_ext
21779 if test "$have_res_init" = no; then
21781 LIBS="$LIBS -lresolv"
21782 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21783 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21784 cat >conftest.$ac_ext <<_ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21790 #include <netinet/in.h>
21791 #include <arpa/nameser.h>
21792 #include <resolv.h>
21801 rm -f conftest.$ac_objext conftest$ac_exeext
21802 if { (ac_try="$ac_link"
21803 case "(($ac_try" in
21804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21805 *) ac_try_echo=$ac_try;;
21807 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21808 $as_echo "$ac_try_echo") >&5
21809 (eval "$ac_link") 2>conftest.er1
21811 grep -v '^ *+' conftest.er1 >conftest.err
21813 cat conftest.err >&5
21814 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21815 (exit $ac_status); } && {
21816 test -z "$ac_c_werror_flag" ||
21817 test ! -s conftest.err
21818 } && test -s conftest$ac_exeext && {
21819 test "$cross_compiling" = yes ||
21820 $as_test_x conftest$ac_exeext
21824 $as_echo "$as_me: failed program was
:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21830 rm -rf conftest.dSYM
21831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21832 conftest$ac_exeext conftest.$ac_ext
21833 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21834 $as_echo "$have_res_init" >&6; }
21835 if test "$have_res_init" = yes ; then
21841 if test "$have_res_init" = yes; then
21843 cat >>confdefs.h <<\_ACEOF
21844 #define HAVE_RES_INIT 1
21849 # Do we need the Hesiod library to provide the support routines?
21851 if test "$with_hesiod" != no ; then
21852 # Don't set $LIBS here -- see comments above. FIXME which comments?
21853 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21854 $as_echo_n "checking
for res_send...
" >&6; }
21855 if test "${ac_cv_func_res_send+set}" = set; then
21856 $as_echo_n "(cached
) " >&6
21858 cat >conftest.$ac_ext <<_ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21864 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21866 #define res_send innocuous_res_send
21868 /* System header to define __stub macros and hopefully few prototypes,
21869 which can conflict with char res_send (); below.
21870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21871 <limits.h> exists even on freestanding compilers. */
21874 # include <limits.h>
21876 # include <assert.h>
21881 /* Override any GCC internal prototype to avoid an error.
21882 Use char because int might match the return type of a GCC
21883 builtin and then its argument prototype would still apply. */
21888 /* The GNU C library defines this for functions which it implements
21889 to always fail with ENOSYS. Some functions are actually named
21890 something starting with __ and the normal name is an alias. */
21891 #if defined __stub_res_send || defined __stub___res_send
21898 return res_send ();
21903 rm -f conftest.$ac_objext conftest$ac_exeext
21904 if { (ac_try="$ac_link"
21905 case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21909 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21910 $as_echo "$ac_try_echo") >&5
21911 (eval "$ac_link") 2>conftest.er1
21913 grep -v '^ *+' conftest.er1 >conftest.err
21915 cat conftest.err >&5
21916 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21917 (exit $ac_status); } && {
21918 test -z "$ac_c_werror_flag" ||
21919 test ! -s conftest.err
21920 } && test -s conftest$ac_exeext && {
21921 test "$cross_compiling" = yes ||
21922 $as_test_x conftest$ac_exeext
21924 ac_cv_func_res_send=yes
21926 $as_echo "$as_me: failed program was
:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21929 ac_cv_func_res_send=no
21932 rm -rf conftest.dSYM
21933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21934 conftest$ac_exeext conftest.$ac_ext
21936 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21937 $as_echo "$ac_cv_func_res_send" >&6; }
21938 if test $ac_cv_func_res_send = yes; then
21941 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21942 $as_echo_n "checking
for __res_send...
" >&6; }
21943 if test "${ac_cv_func___res_send+set}" = set; then
21944 $as_echo_n "(cached
) " >&6
21946 cat >conftest.$ac_ext <<_ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21952 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21954 #define __res_send innocuous___res_send
21956 /* System header to define __stub macros and hopefully few prototypes,
21957 which can conflict with char __res_send (); below.
21958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21959 <limits.h> exists even on freestanding compilers. */
21962 # include <limits.h>
21964 # include <assert.h>
21969 /* Override any GCC internal prototype to avoid an error.
21970 Use char because int might match the return type of a GCC
21971 builtin and then its argument prototype would still apply. */
21975 char __res_send ();
21976 /* The GNU C library defines this for functions which it implements
21977 to always fail with ENOSYS. Some functions are actually named
21978 something starting with __ and the normal name is an alias. */
21979 #if defined __stub___res_send || defined __stub_____res_send
21986 return __res_send ();
21991 rm -f conftest.$ac_objext conftest$ac_exeext
21992 if { (ac_try="$ac_link"
21993 case "(($ac_try" in
21994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21997 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21998 $as_echo "$ac_try_echo") >&5
21999 (eval "$ac_link") 2>conftest.er1
22001 grep -v '^ *+' conftest.er1 >conftest.err
22003 cat conftest.err >&5
22004 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22005 (exit $ac_status); } && {
22006 test -z "$ac_c_werror_flag" ||
22007 test ! -s conftest.err
22008 } && test -s conftest$ac_exeext && {
22009 test "$cross_compiling" = yes ||
22010 $as_test_x conftest$ac_exeext
22012 ac_cv_func___res_send=yes
22014 $as_echo "$as_me: failed program was
:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22017 ac_cv_func___res_send=no
22020 rm -rf conftest.dSYM
22021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22022 conftest$ac_exeext conftest.$ac_ext
22024 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
22025 $as_echo "$ac_cv_func___res_send" >&6; }
22026 if test $ac_cv_func___res_send = yes; then
22029 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
22030 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
22031 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22032 $as_echo_n "(cached
) " >&6
22034 ac_check_lib_save_LIBS=$LIBS
22035 LIBS="-lresolv $LIBS"
22036 cat >conftest.$ac_ext <<_ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h. */
22043 /* Override any GCC internal prototype to avoid an error.
22044 Use char because int might match the return type of a GCC
22045 builtin and then its argument prototype would still apply. */
22053 return res_send ();
22058 rm -f conftest.$ac_objext conftest$ac_exeext
22059 if { (ac_try="$ac_link"
22060 case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22064 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22065 $as_echo "$ac_try_echo") >&5
22066 (eval "$ac_link") 2>conftest.er1
22068 grep -v '^ *+' conftest.er1 >conftest.err
22070 cat conftest.err >&5
22071 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22072 (exit $ac_status); } && {
22073 test -z "$ac_c_werror_flag" ||
22074 test ! -s conftest.err
22075 } && test -s conftest$ac_exeext && {
22076 test "$cross_compiling" = yes ||
22077 $as_test_x conftest$ac_exeext
22079 ac_cv_lib_resolv_res_send=yes
22081 $as_echo "$as_me: failed program was
:" >&5
22082 sed 's/^/| /' conftest.$ac_ext >&5
22084 ac_cv_lib_resolv_res_send=no
22087 rm -rf conftest.dSYM
22088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22089 conftest$ac_exeext conftest.$ac_ext
22090 LIBS=$ac_check_lib_save_LIBS
22092 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
22093 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22094 if test $ac_cv_lib_resolv_res_send = yes; then
22097 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
22098 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
22099 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22100 $as_echo_n "(cached
) " >&6
22102 ac_check_lib_save_LIBS=$LIBS
22103 LIBS="-lresolv $LIBS"
22104 cat >conftest.$ac_ext <<_ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22111 /* Override any GCC internal prototype to avoid an error.
22112 Use char because int might match the return type of a GCC
22113 builtin and then its argument prototype would still apply. */
22117 char __res_send ();
22121 return __res_send ();
22126 rm -f conftest.$ac_objext conftest$ac_exeext
22127 if { (ac_try="$ac_link"
22128 case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22132 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22133 $as_echo "$ac_try_echo") >&5
22134 (eval "$ac_link") 2>conftest.er1
22136 grep -v '^ *+' conftest.er1 >conftest.err
22138 cat conftest.err >&5
22139 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22140 (exit $ac_status); } && {
22141 test -z "$ac_c_werror_flag" ||
22142 test ! -s conftest.err
22143 } && test -s conftest$ac_exeext && {
22144 test "$cross_compiling" = yes ||
22145 $as_test_x conftest$ac_exeext
22147 ac_cv_lib_resolv___res_send=yes
22149 $as_echo "$as_me: failed program was
:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22152 ac_cv_lib_resolv___res_send=no
22155 rm -rf conftest.dSYM
22156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22157 conftest$ac_exeext conftest.$ac_ext
22158 LIBS=$ac_check_lib_save_LIBS
22160 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
22161 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22162 if test $ac_cv_lib_resolv___res_send = yes; then
22172 if test "$resolv" = yes ; then
22177 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
22178 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
22179 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22180 $as_echo_n "(cached
) " >&6
22182 cat >conftest.$ac_ext <<_ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h. */
22188 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22190 #define hes_getmailhost innocuous_hes_getmailhost
22192 /* System header to define __stub macros and hopefully few prototypes,
22193 which can conflict with char hes_getmailhost (); below.
22194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22195 <limits.h> exists even on freestanding compilers. */
22198 # include <limits.h>
22200 # include <assert.h>
22203 #undef hes_getmailhost
22205 /* Override any GCC internal prototype to avoid an error.
22206 Use char because int might match the return type of a GCC
22207 builtin and then its argument prototype would still apply. */
22211 char hes_getmailhost ();
22212 /* The GNU C library defines this for functions which it implements
22213 to always fail with ENOSYS. Some functions are actually named
22214 something starting with __ and the normal name is an alias. */
22215 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22222 return hes_getmailhost ();
22227 rm -f conftest.$ac_objext conftest$ac_exeext
22228 if { (ac_try="$ac_link"
22229 case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22233 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22234 $as_echo "$ac_try_echo") >&5
22235 (eval "$ac_link") 2>conftest.er1
22237 grep -v '^ *+' conftest.er1 >conftest.err
22239 cat conftest.err >&5
22240 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22241 (exit $ac_status); } && {
22242 test -z "$ac_c_werror_flag" ||
22243 test ! -s conftest.err
22244 } && test -s conftest$ac_exeext && {
22245 test "$cross_compiling" = yes ||
22246 $as_test_x conftest$ac_exeext
22248 ac_cv_func_hes_getmailhost=yes
22250 $as_echo "$as_me: failed program was
:" >&5
22251 sed 's/^/| /' conftest.$ac_ext >&5
22253 ac_cv_func_hes_getmailhost=no
22256 rm -rf conftest.dSYM
22257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22258 conftest$ac_exeext conftest.$ac_ext
22260 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
22261 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22262 if test $ac_cv_func_hes_getmailhost = yes; then
22265 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
22266 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
22267 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22268 $as_echo_n "(cached
) " >&6
22270 ac_check_lib_save_LIBS=$LIBS
22271 LIBS="-lhesiod $RESOLVLIB $LIBS"
22272 cat >conftest.$ac_ext <<_ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h. */
22279 /* Override any GCC internal prototype to avoid an error.
22280 Use char because int might match the return type of a GCC
22281 builtin and then its argument prototype would still apply. */
22285 char hes_getmailhost ();
22289 return hes_getmailhost ();
22294 rm -f conftest.$ac_objext conftest$ac_exeext
22295 if { (ac_try="$ac_link"
22296 case "(($ac_try" in
22297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298 *) ac_try_echo=$ac_try;;
22300 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22301 $as_echo "$ac_try_echo") >&5
22302 (eval "$ac_link") 2>conftest.er1
22304 grep -v '^ *+' conftest.er1 >conftest.err
22306 cat conftest.err >&5
22307 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22308 (exit $ac_status); } && {
22309 test -z "$ac_c_werror_flag" ||
22310 test ! -s conftest.err
22311 } && test -s conftest$ac_exeext && {
22312 test "$cross_compiling" = yes ||
22313 $as_test_x conftest$ac_exeext
22315 ac_cv_lib_hesiod_hes_getmailhost=yes
22317 $as_echo "$as_me: failed program was
:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22320 ac_cv_lib_hesiod_hes_getmailhost=no
22323 rm -rf conftest.dSYM
22324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22325 conftest$ac_exeext conftest.$ac_ext
22326 LIBS=$ac_check_lib_save_LIBS
22328 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22329 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22330 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
22339 if test x"$hesiod" = xyes; then
22341 cat >>confdefs.h <<\_ACEOF
22342 #define HAVE_LIBHESIOD 1
22350 # Do we need libresolv (due to res_init or Hesiod)?
22351 if test "$resolv" = yes ; then
22353 cat >>confdefs.h <<\_ACEOF
22354 #define HAVE_LIBRESOLV 1
22363 # These tell us which Kerberos-related libraries to use.
22370 if test "${with_kerberos}" != no; then
22371 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
22372 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
22373 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22374 $as_echo_n "(cached
) " >&6
22376 ac_check_lib_save_LIBS=$LIBS
22377 LIBS="-lcom_err $LIBS"
22378 cat >conftest.$ac_ext <<_ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h. */
22385 /* Override any GCC internal prototype to avoid an error.
22386 Use char because int might match the return type of a GCC
22387 builtin and then its argument prototype would still apply. */
22400 rm -f conftest.$ac_objext conftest$ac_exeext
22401 if { (ac_try="$ac_link"
22402 case "(($ac_try" in
22403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404 *) ac_try_echo=$ac_try;;
22406 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22407 $as_echo "$ac_try_echo") >&5
22408 (eval "$ac_link") 2>conftest.er1
22410 grep -v '^ *+' conftest.er1 >conftest.err
22412 cat conftest.err >&5
22413 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22414 (exit $ac_status); } && {
22415 test -z "$ac_c_werror_flag" ||
22416 test ! -s conftest.err
22417 } && test -s conftest$ac_exeext && {
22418 test "$cross_compiling" = yes ||
22419 $as_test_x conftest$ac_exeext
22421 ac_cv_lib_com_err_com_err=yes
22423 $as_echo "$as_me: failed program was
:" >&5
22424 sed 's/^/| /' conftest.$ac_ext >&5
22426 ac_cv_lib_com_err_com_err=no
22429 rm -rf conftest.dSYM
22430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22431 conftest$ac_exeext conftest.$ac_ext
22432 LIBS=$ac_check_lib_save_LIBS
22434 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
22435 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22436 if test $ac_cv_lib_com_err_com_err = yes; then
22442 if test $have_com_err = yes; then
22443 COM_ERRLIB=-lcom_err
22444 LIBS="$COM_ERRLIB $LIBS"
22446 cat >>confdefs.h <<\_ACEOF
22447 #define HAVE_LIBCOM_ERR 1
22451 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
22452 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
22453 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22454 $as_echo_n "(cached
) " >&6
22456 ac_check_lib_save_LIBS=$LIBS
22457 LIBS="-lcrypto $LIBS"
22458 cat >conftest.$ac_ext <<_ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22465 /* Override any GCC internal prototype to avoid an error.
22466 Use char because int might match the return type of a GCC
22467 builtin and then its argument prototype would still apply. */
22471 char mit_des_cbc_encrypt ();
22475 return mit_des_cbc_encrypt ();
22480 rm -f conftest.$ac_objext conftest$ac_exeext
22481 if { (ac_try="$ac_link"
22482 case "(($ac_try" in
22483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484 *) ac_try_echo=$ac_try;;
22486 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22487 $as_echo "$ac_try_echo") >&5
22488 (eval "$ac_link") 2>conftest.er1
22490 grep -v '^ *+' conftest.er1 >conftest.err
22492 cat conftest.err >&5
22493 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22494 (exit $ac_status); } && {
22495 test -z "$ac_c_werror_flag" ||
22496 test ! -s conftest.err
22497 } && test -s conftest$ac_exeext && {
22498 test "$cross_compiling" = yes ||
22499 $as_test_x conftest$ac_exeext
22501 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22503 $as_echo "$as_me: failed program was
:" >&5
22504 sed 's/^/| /' conftest.$ac_ext >&5
22506 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22509 rm -rf conftest.dSYM
22510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22511 conftest$ac_exeext conftest.$ac_ext
22512 LIBS=$ac_check_lib_save_LIBS
22514 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22515 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22516 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22522 if test $have_crypto = yes; then
22524 LIBS="$CRYPTOLIB $LIBS"
22526 cat >>confdefs.h <<\_ACEOF
22527 #define HAVE_LIBCRYPTO 1
22531 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
22532 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
22533 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22534 $as_echo_n "(cached
) " >&6
22536 ac_check_lib_save_LIBS=$LIBS
22537 LIBS="-lk5crypto $LIBS"
22538 cat >conftest.$ac_ext <<_ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22545 /* Override any GCC internal prototype to avoid an error.
22546 Use char because int might match the return type of a GCC
22547 builtin and then its argument prototype would still apply. */
22551 char mit_des_cbc_encrypt ();
22555 return mit_des_cbc_encrypt ();
22560 rm -f conftest.$ac_objext conftest$ac_exeext
22561 if { (ac_try="$ac_link"
22562 case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22566 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22567 $as_echo "$ac_try_echo") >&5
22568 (eval "$ac_link") 2>conftest.er1
22570 grep -v '^ *+' conftest.er1 >conftest.err
22572 cat conftest.err >&5
22573 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22574 (exit $ac_status); } && {
22575 test -z "$ac_c_werror_flag" ||
22576 test ! -s conftest.err
22577 } && test -s conftest$ac_exeext && {
22578 test "$cross_compiling" = yes ||
22579 $as_test_x conftest$ac_exeext
22581 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22583 $as_echo "$as_me: failed program was
:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22586 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22589 rm -rf conftest.dSYM
22590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22591 conftest$ac_exeext conftest.$ac_ext
22592 LIBS=$ac_check_lib_save_LIBS
22594 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22595 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22596 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22602 if test $have_k5crypto = yes; then
22603 CRYPTOLIB=-lk5crypto
22604 LIBS="$CRYPTOLIB $LIBS"
22606 cat >>confdefs.h <<\_ACEOF
22607 #define HAVE_LIBK5CRYPTO 1
22611 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22612 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22613 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22614 $as_echo_n "(cached
) " >&6
22616 ac_check_lib_save_LIBS=$LIBS
22617 LIBS="-lkrb5 $LIBS"
22618 cat >conftest.$ac_ext <<_ACEOF
22621 cat confdefs.h >>conftest.$ac_ext
22622 cat >>conftest.$ac_ext <<_ACEOF
22623 /* end confdefs.h. */
22625 /* Override any GCC internal prototype to avoid an error.
22626 Use char because int might match the return type of a GCC
22627 builtin and then its argument prototype would still apply. */
22631 char krb5_init_context ();
22635 return krb5_init_context ();
22640 rm -f conftest.$ac_objext conftest$ac_exeext
22641 if { (ac_try="$ac_link"
22642 case "(($ac_try" in
22643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22644 *) ac_try_echo=$ac_try;;
22646 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22647 $as_echo "$ac_try_echo") >&5
22648 (eval "$ac_link") 2>conftest.er1
22650 grep -v '^ *+' conftest.er1 >conftest.err
22652 cat conftest.err >&5
22653 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22654 (exit $ac_status); } && {
22655 test -z "$ac_c_werror_flag" ||
22656 test ! -s conftest.err
22657 } && test -s conftest$ac_exeext && {
22658 test "$cross_compiling" = yes ||
22659 $as_test_x conftest$ac_exeext
22661 ac_cv_lib_krb5_krb5_init_context=yes
22663 $as_echo "$as_me: failed program was
:" >&5
22664 sed 's/^/| /' conftest.$ac_ext >&5
22666 ac_cv_lib_krb5_krb5_init_context=no
22669 rm -rf conftest.dSYM
22670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22671 conftest$ac_exeext conftest.$ac_ext
22672 LIBS=$ac_check_lib_save_LIBS
22674 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22675 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22676 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22682 if test $have_krb5=yes; then
22684 LIBS="$KRB5LIB $LIBS"
22686 cat >>confdefs.h <<\_ACEOF
22687 #define HAVE_LIBKRB5 1
22691 if test "${with_kerberos5}" = no; then
22692 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22693 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22694 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22695 $as_echo_n "(cached
) " >&6
22697 ac_check_lib_save_LIBS=$LIBS
22698 LIBS="-ldes425 $LIBS"
22699 cat >conftest.$ac_ext <<_ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h. */
22706 /* Override any GCC internal prototype to avoid an error.
22707 Use char because int might match the return type of a GCC
22708 builtin and then its argument prototype would still apply. */
22712 char des_cbc_encrypt ();
22716 return des_cbc_encrypt ();
22721 rm -f conftest.$ac_objext conftest$ac_exeext
22722 if { (ac_try="$ac_link"
22723 case "(($ac_try" in
22724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725 *) ac_try_echo=$ac_try;;
22727 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22728 $as_echo "$ac_try_echo") >&5
22729 (eval "$ac_link") 2>conftest.er1
22731 grep -v '^ *+' conftest.er1 >conftest.err
22733 cat conftest.err >&5
22734 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22735 (exit $ac_status); } && {
22736 test -z "$ac_c_werror_flag" ||
22737 test ! -s conftest.err
22738 } && test -s conftest$ac_exeext && {
22739 test "$cross_compiling" = yes ||
22740 $as_test_x conftest$ac_exeext
22742 ac_cv_lib_des425_des_cbc_encrypt=yes
22744 $as_echo "$as_me: failed program was
:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22747 ac_cv_lib_des425_des_cbc_encrypt=no
22750 rm -rf conftest.dSYM
22751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22752 conftest$ac_exeext conftest.$ac_ext
22753 LIBS=$ac_check_lib_save_LIBS
22755 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22756 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22757 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22763 if test $have_des425 = yes; then
22765 LIBS="$DESLIB $LIBS"
22767 cat >>confdefs.h <<\_ACEOF
22768 #define HAVE_LIBDES425 1
22772 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22773 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22774 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22775 $as_echo_n "(cached
) " >&6
22777 ac_check_lib_save_LIBS=$LIBS
22779 cat >conftest.$ac_ext <<_ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h. */
22786 /* Override any GCC internal prototype to avoid an error.
22787 Use char because int might match the return type of a GCC
22788 builtin and then its argument prototype would still apply. */
22792 char des_cbc_encrypt ();
22796 return des_cbc_encrypt ();
22801 rm -f conftest.$ac_objext conftest$ac_exeext
22802 if { (ac_try="$ac_link"
22803 case "(($ac_try" in
22804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805 *) ac_try_echo=$ac_try;;
22807 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22808 $as_echo "$ac_try_echo") >&5
22809 (eval "$ac_link") 2>conftest.er1
22811 grep -v '^ *+' conftest.er1 >conftest.err
22813 cat conftest.err >&5
22814 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22815 (exit $ac_status); } && {
22816 test -z "$ac_c_werror_flag" ||
22817 test ! -s conftest.err
22818 } && test -s conftest$ac_exeext && {
22819 test "$cross_compiling" = yes ||
22820 $as_test_x conftest$ac_exeext
22822 ac_cv_lib_des_des_cbc_encrypt=yes
22824 $as_echo "$as_me: failed program was
:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22827 ac_cv_lib_des_des_cbc_encrypt=no
22830 rm -rf conftest.dSYM
22831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22832 conftest$ac_exeext conftest.$ac_ext
22833 LIBS=$ac_check_lib_save_LIBS
22835 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22836 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22837 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22843 if test $have_des = yes; then
22845 LIBS="$DESLIB $LIBS"
22847 cat >>confdefs.h <<\_ACEOF
22848 #define HAVE_LIBDES 1
22853 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22854 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22855 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22856 $as_echo_n "(cached
) " >&6
22858 ac_check_lib_save_LIBS=$LIBS
22859 LIBS="-lkrb4 $LIBS"
22860 cat >conftest.$ac_ext <<_ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h. */
22867 /* Override any GCC internal prototype to avoid an error.
22868 Use char because int might match the return type of a GCC
22869 builtin and then its argument prototype would still apply. */
22873 char krb_get_cred ();
22877 return krb_get_cred ();
22882 rm -f conftest.$ac_objext conftest$ac_exeext
22883 if { (ac_try="$ac_link"
22884 case "(($ac_try" in
22885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886 *) ac_try_echo=$ac_try;;
22888 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22889 $as_echo "$ac_try_echo") >&5
22890 (eval "$ac_link") 2>conftest.er1
22892 grep -v '^ *+' conftest.er1 >conftest.err
22894 cat conftest.err >&5
22895 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22896 (exit $ac_status); } && {
22897 test -z "$ac_c_werror_flag" ||
22898 test ! -s conftest.err
22899 } && test -s conftest$ac_exeext && {
22900 test "$cross_compiling" = yes ||
22901 $as_test_x conftest$ac_exeext
22903 ac_cv_lib_krb4_krb_get_cred=yes
22905 $as_echo "$as_me: failed program was
:" >&5
22906 sed 's/^/| /' conftest.$ac_ext >&5
22908 ac_cv_lib_krb4_krb_get_cred=no
22911 rm -rf conftest.dSYM
22912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22913 conftest$ac_exeext conftest.$ac_ext
22914 LIBS=$ac_check_lib_save_LIBS
22916 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22917 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22918 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22924 if test $have_krb4 = yes; then
22926 LIBS="$KRB4LIB $LIBS"
22928 cat >>confdefs.h <<\_ACEOF
22929 #define HAVE_LIBKRB4 1
22933 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22934 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22935 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22936 $as_echo_n "(cached
) " >&6
22938 ac_check_lib_save_LIBS=$LIBS
22940 cat >conftest.$ac_ext <<_ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22947 /* Override any GCC internal prototype to avoid an error.
22948 Use char because int might match the return type of a GCC
22949 builtin and then its argument prototype would still apply. */
22953 char krb_get_cred ();
22957 return krb_get_cred ();
22962 rm -f conftest.$ac_objext conftest$ac_exeext
22963 if { (ac_try="$ac_link"
22964 case "(($ac_try" in
22965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22968 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22969 $as_echo "$ac_try_echo") >&5
22970 (eval "$ac_link") 2>conftest.er1
22972 grep -v '^ *+' conftest.er1 >conftest.err
22974 cat conftest.err >&5
22975 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22976 (exit $ac_status); } && {
22977 test -z "$ac_c_werror_flag" ||
22978 test ! -s conftest.err
22979 } && test -s conftest$ac_exeext && {
22980 test "$cross_compiling" = yes ||
22981 $as_test_x conftest$ac_exeext
22983 ac_cv_lib_krb_krb_get_cred=yes
22985 $as_echo "$as_me: failed program was
:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22988 ac_cv_lib_krb_krb_get_cred=no
22991 rm -rf conftest.dSYM
22992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22993 conftest$ac_exeext conftest.$ac_ext
22994 LIBS=$ac_check_lib_save_LIBS
22996 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22997 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22998 if test $ac_cv_lib_krb_krb_get_cred = yes; then
23004 if test $have_krb = yes; then
23006 LIBS="$KRB4LIB $LIBS"
23008 cat >>confdefs.h <<\_ACEOF
23009 #define HAVE_LIBKRB 1
23016 if test "${with_kerberos5}" != no; then
23018 for ac_header in krb5.h
23020 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23021 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23022 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23023 $as_echo_n "checking
for $ac_header...
" >&6; }
23024 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23025 $as_echo_n "(cached
) " >&6
23027 ac_res=`eval 'as_val=${'$as_ac_Header'}
23028 $as_echo "$as_val"'`
23029 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23030 $as_echo "$ac_res" >&6; }
23032 # Is the header compilable?
23033 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23034 $as_echo_n "checking
$ac_header usability...
" >&6; }
23035 cat >conftest.$ac_ext <<_ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h. */
23041 $ac_includes_default
23042 #include <$ac_header>
23044 rm -f conftest.$ac_objext
23045 if { (ac_try="$ac_compile"
23046 case "(($ac_try" in
23047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048 *) ac_try_echo=$ac_try;;
23050 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23051 $as_echo "$ac_try_echo") >&5
23052 (eval "$ac_compile") 2>conftest.er1
23054 grep -v '^ *+' conftest.er1 >conftest.err
23056 cat conftest.err >&5
23057 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23058 (exit $ac_status); } && {
23059 test -z "$ac_c_werror_flag" ||
23060 test ! -s conftest.err
23061 } && test -s conftest.$ac_objext; then
23062 ac_header_compiler=yes
23064 $as_echo "$as_me: failed program was
:" >&5
23065 sed 's/^/| /' conftest.$ac_ext >&5
23067 ac_header_compiler=no
23070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23071 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23072 $as_echo "$ac_header_compiler" >&6; }
23074 # Is the header present?
23075 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23076 $as_echo_n "checking
$ac_header presence...
" >&6; }
23077 cat >conftest.$ac_ext <<_ACEOF
23080 cat confdefs.h >>conftest.$ac_ext
23081 cat >>conftest.$ac_ext <<_ACEOF
23082 /* end confdefs.h. */
23083 #include <$ac_header>
23085 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23086 case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23090 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23091 $as_echo "$ac_try_echo") >&5
23092 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23094 grep -v '^ *+' conftest.er1 >conftest.err
23096 cat conftest.err >&5
23097 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23098 (exit $ac_status); } >/dev/null && {
23099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23100 test ! -s conftest.err
23102 ac_header_preproc=yes
23104 $as_echo "$as_me: failed program was
:" >&5
23105 sed 's/^/| /' conftest.$ac_ext >&5
23107 ac_header_preproc=no
23110 rm -f conftest.err conftest.$ac_ext
23111 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23112 $as_echo "$ac_header_preproc" >&6; }
23114 # So? What about this header?
23115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23117 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23118 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23119 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23120 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23121 ac_header_preproc=yes
23124 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23125 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23126 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23127 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23128 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23129 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23130 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23131 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23132 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23133 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23134 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23135 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23139 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23140 $as_echo_n "checking
for $ac_header...
" >&6; }
23141 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23142 $as_echo_n "(cached
) " >&6
23144 eval "$as_ac_Header=\
$ac_header_preproc"
23146 ac_res=`eval 'as_val=${'$as_ac_Header'}
23147 $as_echo "$as_val"'`
23148 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23149 $as_echo "$ac_res" >&6; }
23152 if test `eval 'as_val=${'$as_ac_Header'}
23153 $as_echo "$as_val"'` = yes; then
23154 cat >>confdefs.h <<_ACEOF
23155 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23157 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
23158 $as_echo_n "checking
for krb5_error.text...
" >&6; }
23159 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23160 $as_echo_n "(cached
) " >&6
23162 cat >conftest.$ac_ext <<_ACEOF
23165 cat confdefs.h >>conftest.$ac_ext
23166 cat >>conftest.$ac_ext <<_ACEOF
23167 /* end confdefs.h. */
23173 static krb5_error ac_aggr;
23180 rm -f conftest.$ac_objext
23181 if { (ac_try="$ac_compile"
23182 case "(($ac_try" in
23183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23184 *) ac_try_echo=$ac_try;;
23186 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23187 $as_echo "$ac_try_echo") >&5
23188 (eval "$ac_compile") 2>conftest.er1
23190 grep -v '^ *+' conftest.er1 >conftest.err
23192 cat conftest.err >&5
23193 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23194 (exit $ac_status); } && {
23195 test -z "$ac_c_werror_flag" ||
23196 test ! -s conftest.err
23197 } && test -s conftest.$ac_objext; then
23198 ac_cv_member_krb5_error_text=yes
23200 $as_echo "$as_me: failed program was
:" >&5
23201 sed 's/^/| /' conftest.$ac_ext >&5
23203 cat >conftest.$ac_ext <<_ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h. */
23214 static krb5_error ac_aggr;
23215 if (sizeof ac_aggr.text)
23221 rm -f conftest.$ac_objext
23222 if { (ac_try="$ac_compile"
23223 case "(($ac_try" in
23224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225 *) ac_try_echo=$ac_try;;
23227 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23228 $as_echo "$ac_try_echo") >&5
23229 (eval "$ac_compile") 2>conftest.er1
23231 grep -v '^ *+' conftest.er1 >conftest.err
23233 cat conftest.err >&5
23234 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23235 (exit $ac_status); } && {
23236 test -z "$ac_c_werror_flag" ||
23237 test ! -s conftest.err
23238 } && test -s conftest.$ac_objext; then
23239 ac_cv_member_krb5_error_text=yes
23241 $as_echo "$as_me: failed program was
:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23244 ac_cv_member_krb5_error_text=no
23247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23252 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
23253 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23254 if test $ac_cv_member_krb5_error_text = yes; then
23256 cat >>confdefs.h <<_ACEOF
23257 #define HAVE_KRB5_ERROR_TEXT 1
23262 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
23263 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
23264 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23265 $as_echo_n "(cached
) " >&6
23267 cat >conftest.$ac_ext <<_ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h. */
23278 static krb5_error ac_aggr;
23279 if (ac_aggr.e_text)
23285 rm -f conftest.$ac_objext
23286 if { (ac_try="$ac_compile"
23287 case "(($ac_try" in
23288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23289 *) ac_try_echo=$ac_try;;
23291 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23292 $as_echo "$ac_try_echo") >&5
23293 (eval "$ac_compile") 2>conftest.er1
23295 grep -v '^ *+' conftest.er1 >conftest.err
23297 cat conftest.err >&5
23298 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23299 (exit $ac_status); } && {
23300 test -z "$ac_c_werror_flag" ||
23301 test ! -s conftest.err
23302 } && test -s conftest.$ac_objext; then
23303 ac_cv_member_krb5_error_e_text=yes
23305 $as_echo "$as_me: failed program was
:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23308 cat >conftest.$ac_ext <<_ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h. */
23319 static krb5_error ac_aggr;
23320 if (sizeof ac_aggr.e_text)
23326 rm -f conftest.$ac_objext
23327 if { (ac_try="$ac_compile"
23328 case "(($ac_try" in
23329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330 *) ac_try_echo=$ac_try;;
23332 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23333 $as_echo "$ac_try_echo") >&5
23334 (eval "$ac_compile") 2>conftest.er1
23336 grep -v '^ *+' conftest.er1 >conftest.err
23338 cat conftest.err >&5
23339 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23340 (exit $ac_status); } && {
23341 test -z "$ac_c_werror_flag" ||
23342 test ! -s conftest.err
23343 } && test -s conftest.$ac_objext; then
23344 ac_cv_member_krb5_error_e_text=yes
23346 $as_echo "$as_me: failed program was
:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23349 ac_cv_member_krb5_error_e_text=no
23352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23357 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
23358 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23359 if test $ac_cv_member_krb5_error_e_text = yes; then
23361 cat >>confdefs.h <<_ACEOF
23362 #define HAVE_KRB5_ERROR_E_TEXT 1
23374 for ac_header in des.h
23376 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23377 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23378 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23379 $as_echo_n "checking
for $ac_header...
" >&6; }
23380 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23381 $as_echo_n "(cached
) " >&6
23383 ac_res=`eval 'as_val=${'$as_ac_Header'}
23384 $as_echo "$as_val"'`
23385 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23386 $as_echo "$ac_res" >&6; }
23388 # Is the header compilable?
23389 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23390 $as_echo_n "checking
$ac_header usability...
" >&6; }
23391 cat >conftest.$ac_ext <<_ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23397 $ac_includes_default
23398 #include <$ac_header>
23400 rm -f conftest.$ac_objext
23401 if { (ac_try="$ac_compile"
23402 case "(($ac_try" in
23403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23404 *) ac_try_echo=$ac_try;;
23406 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23407 $as_echo "$ac_try_echo") >&5
23408 (eval "$ac_compile") 2>conftest.er1
23410 grep -v '^ *+' conftest.er1 >conftest.err
23412 cat conftest.err >&5
23413 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23414 (exit $ac_status); } && {
23415 test -z "$ac_c_werror_flag" ||
23416 test ! -s conftest.err
23417 } && test -s conftest.$ac_objext; then
23418 ac_header_compiler=yes
23420 $as_echo "$as_me: failed program was
:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23423 ac_header_compiler=no
23426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23427 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23428 $as_echo "$ac_header_compiler" >&6; }
23430 # Is the header present?
23431 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23432 $as_echo_n "checking
$ac_header presence...
" >&6; }
23433 cat >conftest.$ac_ext <<_ACEOF
23436 cat confdefs.h >>conftest.$ac_ext
23437 cat >>conftest.$ac_ext <<_ACEOF
23438 /* end confdefs.h. */
23439 #include <$ac_header>
23441 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23442 case "(($ac_try" in
23443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444 *) ac_try_echo=$ac_try;;
23446 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23447 $as_echo "$ac_try_echo") >&5
23448 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23450 grep -v '^ *+' conftest.er1 >conftest.err
23452 cat conftest.err >&5
23453 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23454 (exit $ac_status); } >/dev/null && {
23455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23456 test ! -s conftest.err
23458 ac_header_preproc=yes
23460 $as_echo "$as_me: failed program was
:" >&5
23461 sed 's/^/| /' conftest.$ac_ext >&5
23463 ac_header_preproc=no
23466 rm -f conftest.err conftest.$ac_ext
23467 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23468 $as_echo "$ac_header_preproc" >&6; }
23470 # So? What about this header?
23471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23473 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23474 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23475 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23476 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23477 ac_header_preproc=yes
23480 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23481 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23482 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23483 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23484 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23485 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23486 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23487 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23488 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23489 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23490 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23491 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23495 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23496 $as_echo_n "checking
for $ac_header...
" >&6; }
23497 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23498 $as_echo_n "(cached
) " >&6
23500 eval "$as_ac_Header=\
$ac_header_preproc"
23502 ac_res=`eval 'as_val=${'$as_ac_Header'}
23503 $as_echo "$as_val"'`
23504 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23505 $as_echo "$ac_res" >&6; }
23508 if test `eval 'as_val=${'$as_ac_Header'}
23509 $as_echo "$as_val"'` = yes; then
23510 cat >>confdefs.h <<_ACEOF
23511 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23516 for ac_header in kerberosIV/des.h
23518 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23519 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23520 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23521 $as_echo_n "checking
for $ac_header...
" >&6; }
23522 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23523 $as_echo_n "(cached
) " >&6
23525 ac_res=`eval 'as_val=${'$as_ac_Header'}
23526 $as_echo "$as_val"'`
23527 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23528 $as_echo "$ac_res" >&6; }
23530 # Is the header compilable?
23531 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23532 $as_echo_n "checking
$ac_header usability...
" >&6; }
23533 cat >conftest.$ac_ext <<_ACEOF
23536 cat confdefs.h >>conftest.$ac_ext
23537 cat >>conftest.$ac_ext <<_ACEOF
23538 /* end confdefs.h. */
23539 $ac_includes_default
23540 #include <$ac_header>
23542 rm -f conftest.$ac_objext
23543 if { (ac_try="$ac_compile"
23544 case "(($ac_try" in
23545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546 *) ac_try_echo=$ac_try;;
23548 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23549 $as_echo "$ac_try_echo") >&5
23550 (eval "$ac_compile") 2>conftest.er1
23552 grep -v '^ *+' conftest.er1 >conftest.err
23554 cat conftest.err >&5
23555 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23556 (exit $ac_status); } && {
23557 test -z "$ac_c_werror_flag" ||
23558 test ! -s conftest.err
23559 } && test -s conftest.$ac_objext; then
23560 ac_header_compiler=yes
23562 $as_echo "$as_me: failed program was
:" >&5
23563 sed 's/^/| /' conftest.$ac_ext >&5
23565 ac_header_compiler=no
23568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23569 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23570 $as_echo "$ac_header_compiler" >&6; }
23572 # Is the header present?
23573 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23574 $as_echo_n "checking
$ac_header presence...
" >&6; }
23575 cat >conftest.$ac_ext <<_ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23581 #include <$ac_header>
23583 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23584 case "(($ac_try" in
23585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586 *) ac_try_echo=$ac_try;;
23588 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23589 $as_echo "$ac_try_echo") >&5
23590 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23592 grep -v '^ *+' conftest.er1 >conftest.err
23594 cat conftest.err >&5
23595 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23596 (exit $ac_status); } >/dev/null && {
23597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23598 test ! -s conftest.err
23600 ac_header_preproc=yes
23602 $as_echo "$as_me: failed program was
:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23605 ac_header_preproc=no
23608 rm -f conftest.err conftest.$ac_ext
23609 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23610 $as_echo "$ac_header_preproc" >&6; }
23612 # So? What about this header?
23613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23615 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23616 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23617 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23619 ac_header_preproc=yes
23622 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23623 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23624 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23625 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23626 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23627 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23628 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23629 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23630 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23631 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23632 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23633 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23637 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23638 $as_echo_n "checking
for $ac_header...
" >&6; }
23639 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23640 $as_echo_n "(cached
) " >&6
23642 eval "$as_ac_Header=\
$ac_header_preproc"
23644 ac_res=`eval 'as_val=${'$as_ac_Header'}
23645 $as_echo "$as_val"'`
23646 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23647 $as_echo "$ac_res" >&6; }
23650 if test `eval 'as_val=${'$as_ac_Header'}
23651 $as_echo "$as_val"'` = yes; then
23652 cat >>confdefs.h <<_ACEOF
23653 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23658 for ac_header in kerberos/des.h
23660 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23661 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23662 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23663 $as_echo_n "checking
for $ac_header...
" >&6; }
23664 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23665 $as_echo_n "(cached
) " >&6
23667 ac_res=`eval 'as_val=${'$as_ac_Header'}
23668 $as_echo "$as_val"'`
23669 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23670 $as_echo "$ac_res" >&6; }
23672 # Is the header compilable?
23673 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23674 $as_echo_n "checking
$ac_header usability...
" >&6; }
23675 cat >conftest.$ac_ext <<_ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23681 $ac_includes_default
23682 #include <$ac_header>
23684 rm -f conftest.$ac_objext
23685 if { (ac_try="$ac_compile"
23686 case "(($ac_try" in
23687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688 *) ac_try_echo=$ac_try;;
23690 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23691 $as_echo "$ac_try_echo") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23694 grep -v '^ *+' conftest.er1 >conftest.err
23696 cat conftest.err >&5
23697 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23698 (exit $ac_status); } && {
23699 test -z "$ac_c_werror_flag" ||
23700 test ! -s conftest.err
23701 } && test -s conftest.$ac_objext; then
23702 ac_header_compiler=yes
23704 $as_echo "$as_me: failed program was
:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23707 ac_header_compiler=no
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23711 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23712 $as_echo "$ac_header_compiler" >&6; }
23714 # Is the header present?
23715 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23716 $as_echo_n "checking
$ac_header presence...
" >&6; }
23717 cat >conftest.$ac_ext <<_ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h. */
23723 #include <$ac_header>
23725 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23726 case "(($ac_try" in
23727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23728 *) ac_try_echo=$ac_try;;
23730 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23731 $as_echo "$ac_try_echo") >&5
23732 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23734 grep -v '^ *+' conftest.er1 >conftest.err
23736 cat conftest.err >&5
23737 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23738 (exit $ac_status); } >/dev/null && {
23739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23740 test ! -s conftest.err
23742 ac_header_preproc=yes
23744 $as_echo "$as_me: failed program was
:" >&5
23745 sed 's/^/| /' conftest.$ac_ext >&5
23747 ac_header_preproc=no
23750 rm -f conftest.err conftest.$ac_ext
23751 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23752 $as_echo "$ac_header_preproc" >&6; }
23754 # So? What about this header?
23755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23757 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23758 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23759 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23761 ac_header_preproc=yes
23764 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23765 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23766 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23767 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23768 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23769 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23770 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23771 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23772 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23773 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23774 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23775 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23779 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23780 $as_echo_n "checking
for $ac_header...
" >&6; }
23781 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23782 $as_echo_n "(cached
) " >&6
23784 eval "$as_ac_Header=\
$ac_header_preproc"
23786 ac_res=`eval 'as_val=${'$as_ac_Header'}
23787 $as_echo "$as_val"'`
23788 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23789 $as_echo "$ac_res" >&6; }
23792 if test `eval 'as_val=${'$as_ac_Header'}
23793 $as_echo "$as_val"'` = yes; then
23794 cat >>confdefs.h <<_ACEOF
23795 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23811 for ac_header in krb.h
23813 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23814 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23815 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23816 $as_echo_n "checking
for $ac_header...
" >&6; }
23817 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23818 $as_echo_n "(cached
) " >&6
23820 ac_res=`eval 'as_val=${'$as_ac_Header'}
23821 $as_echo "$as_val"'`
23822 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23823 $as_echo "$ac_res" >&6; }
23825 # Is the header compilable?
23826 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23827 $as_echo_n "checking
$ac_header usability...
" >&6; }
23828 cat >conftest.$ac_ext <<_ACEOF
23831 cat confdefs.h >>conftest.$ac_ext
23832 cat >>conftest.$ac_ext <<_ACEOF
23833 /* end confdefs.h. */
23834 $ac_includes_default
23835 #include <$ac_header>
23837 rm -f conftest.$ac_objext
23838 if { (ac_try="$ac_compile"
23839 case "(($ac_try" in
23840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23841 *) ac_try_echo=$ac_try;;
23843 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23844 $as_echo "$ac_try_echo") >&5
23845 (eval "$ac_compile") 2>conftest.er1
23847 grep -v '^ *+' conftest.er1 >conftest.err
23849 cat conftest.err >&5
23850 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23851 (exit $ac_status); } && {
23852 test -z "$ac_c_werror_flag" ||
23853 test ! -s conftest.err
23854 } && test -s conftest.$ac_objext; then
23855 ac_header_compiler=yes
23857 $as_echo "$as_me: failed program was
:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23860 ac_header_compiler=no
23863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23864 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23865 $as_echo "$ac_header_compiler" >&6; }
23867 # Is the header present?
23868 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23869 $as_echo_n "checking
$ac_header presence...
" >&6; }
23870 cat >conftest.$ac_ext <<_ACEOF
23873 cat confdefs.h >>conftest.$ac_ext
23874 cat >>conftest.$ac_ext <<_ACEOF
23875 /* end confdefs.h. */
23876 #include <$ac_header>
23878 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23879 case "(($ac_try" in
23880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23881 *) ac_try_echo=$ac_try;;
23883 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23884 $as_echo "$ac_try_echo") >&5
23885 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23887 grep -v '^ *+' conftest.er1 >conftest.err
23889 cat conftest.err >&5
23890 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23891 (exit $ac_status); } >/dev/null && {
23892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23893 test ! -s conftest.err
23895 ac_header_preproc=yes
23897 $as_echo "$as_me: failed program was
:" >&5
23898 sed 's/^/| /' conftest.$ac_ext >&5
23900 ac_header_preproc=no
23903 rm -f conftest.err conftest.$ac_ext
23904 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23905 $as_echo "$ac_header_preproc" >&6; }
23907 # So? What about this header?
23908 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23910 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23911 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23912 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23913 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23914 ac_header_preproc=yes
23917 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23918 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23919 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23920 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23921 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23922 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23923 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23924 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23925 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23927 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23928 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23932 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23933 $as_echo_n "checking
for $ac_header...
" >&6; }
23934 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23935 $as_echo_n "(cached
) " >&6
23937 eval "$as_ac_Header=\
$ac_header_preproc"
23939 ac_res=`eval 'as_val=${'$as_ac_Header'}
23940 $as_echo "$as_val"'`
23941 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23942 $as_echo "$ac_res" >&6; }
23945 if test `eval 'as_val=${'$as_ac_Header'}
23946 $as_echo "$as_val"'` = yes; then
23947 cat >>confdefs.h <<_ACEOF
23948 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23953 for ac_header in kerberosIV/krb.h
23955 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23956 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23957 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23958 $as_echo_n "checking
for $ac_header...
" >&6; }
23959 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23960 $as_echo_n "(cached
) " >&6
23962 ac_res=`eval 'as_val=${'$as_ac_Header'}
23963 $as_echo "$as_val"'`
23964 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23965 $as_echo "$ac_res" >&6; }
23967 # Is the header compilable?
23968 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23969 $as_echo_n "checking
$ac_header usability...
" >&6; }
23970 cat >conftest.$ac_ext <<_ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h. */
23976 $ac_includes_default
23977 #include <$ac_header>
23979 rm -f conftest.$ac_objext
23980 if { (ac_try="$ac_compile"
23981 case "(($ac_try" in
23982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23983 *) ac_try_echo=$ac_try;;
23985 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23986 $as_echo "$ac_try_echo") >&5
23987 (eval "$ac_compile") 2>conftest.er1
23989 grep -v '^ *+' conftest.er1 >conftest.err
23991 cat conftest.err >&5
23992 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23993 (exit $ac_status); } && {
23994 test -z "$ac_c_werror_flag" ||
23995 test ! -s conftest.err
23996 } && test -s conftest.$ac_objext; then
23997 ac_header_compiler=yes
23999 $as_echo "$as_me: failed program was
:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24002 ac_header_compiler=no
24005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24006 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24007 $as_echo "$ac_header_compiler" >&6; }
24009 # Is the header present?
24010 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24011 $as_echo_n "checking
$ac_header presence...
" >&6; }
24012 cat >conftest.$ac_ext <<_ACEOF
24015 cat confdefs.h >>conftest.$ac_ext
24016 cat >>conftest.$ac_ext <<_ACEOF
24017 /* end confdefs.h. */
24018 #include <$ac_header>
24020 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24021 case "(($ac_try" in
24022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24023 *) ac_try_echo=$ac_try;;
24025 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24026 $as_echo "$ac_try_echo") >&5
24027 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24029 grep -v '^ *+' conftest.er1 >conftest.err
24031 cat conftest.err >&5
24032 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24033 (exit $ac_status); } >/dev/null && {
24034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24035 test ! -s conftest.err
24037 ac_header_preproc=yes
24039 $as_echo "$as_me: failed program was
:" >&5
24040 sed 's/^/| /' conftest.$ac_ext >&5
24042 ac_header_preproc=no
24045 rm -f conftest.err conftest.$ac_ext
24046 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24047 $as_echo "$ac_header_preproc" >&6; }
24049 # So? What about this header?
24050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24052 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24053 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24054 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24055 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24056 ac_header_preproc=yes
24059 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24060 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24061 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24062 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24063 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24064 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24065 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24066 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24067 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24069 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24070 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24074 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24075 $as_echo_n "checking
for $ac_header...
" >&6; }
24076 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24077 $as_echo_n "(cached
) " >&6
24079 eval "$as_ac_Header=\
$ac_header_preproc"
24081 ac_res=`eval 'as_val=${'$as_ac_Header'}
24082 $as_echo "$as_val"'`
24083 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24084 $as_echo "$ac_res" >&6; }
24087 if test `eval 'as_val=${'$as_ac_Header'}
24088 $as_echo "$as_val"'` = yes; then
24089 cat >>confdefs.h <<_ACEOF
24090 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24095 for ac_header in kerberos/krb.h
24097 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24098 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24099 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24100 $as_echo_n "checking
for $ac_header...
" >&6; }
24101 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24102 $as_echo_n "(cached
) " >&6
24104 ac_res=`eval 'as_val=${'$as_ac_Header'}
24105 $as_echo "$as_val"'`
24106 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24107 $as_echo "$ac_res" >&6; }
24109 # Is the header compilable?
24110 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24111 $as_echo_n "checking
$ac_header usability...
" >&6; }
24112 cat >conftest.$ac_ext <<_ACEOF
24115 cat confdefs.h >>conftest.$ac_ext
24116 cat >>conftest.$ac_ext <<_ACEOF
24117 /* end confdefs.h. */
24118 $ac_includes_default
24119 #include <$ac_header>
24121 rm -f conftest.$ac_objext
24122 if { (ac_try="$ac_compile"
24123 case "(($ac_try" in
24124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24125 *) ac_try_echo=$ac_try;;
24127 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24128 $as_echo "$ac_try_echo") >&5
24129 (eval "$ac_compile") 2>conftest.er1
24131 grep -v '^ *+' conftest.er1 >conftest.err
24133 cat conftest.err >&5
24134 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24135 (exit $ac_status); } && {
24136 test -z "$ac_c_werror_flag" ||
24137 test ! -s conftest.err
24138 } && test -s conftest.$ac_objext; then
24139 ac_header_compiler=yes
24141 $as_echo "$as_me: failed program was
:" >&5
24142 sed 's/^/| /' conftest.$ac_ext >&5
24144 ac_header_compiler=no
24147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24148 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24149 $as_echo "$ac_header_compiler" >&6; }
24151 # Is the header present?
24152 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24153 $as_echo_n "checking
$ac_header presence...
" >&6; }
24154 cat >conftest.$ac_ext <<_ACEOF
24157 cat confdefs.h >>conftest.$ac_ext
24158 cat >>conftest.$ac_ext <<_ACEOF
24159 /* end confdefs.h. */
24160 #include <$ac_header>
24162 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24163 case "(($ac_try" in
24164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165 *) ac_try_echo=$ac_try;;
24167 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24168 $as_echo "$ac_try_echo") >&5
24169 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24171 grep -v '^ *+' conftest.er1 >conftest.err
24173 cat conftest.err >&5
24174 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24175 (exit $ac_status); } >/dev/null && {
24176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24177 test ! -s conftest.err
24179 ac_header_preproc=yes
24181 $as_echo "$as_me: failed program was
:" >&5
24182 sed 's/^/| /' conftest.$ac_ext >&5
24184 ac_header_preproc=no
24187 rm -f conftest.err conftest.$ac_ext
24188 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24189 $as_echo "$ac_header_preproc" >&6; }
24191 # So? What about this header?
24192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24194 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24195 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24196 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24197 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24198 ac_header_preproc=yes
24201 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24202 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24203 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24204 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24205 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24206 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24207 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24208 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24209 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24211 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24212 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24216 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24217 $as_echo_n "checking
for $ac_header...
" >&6; }
24218 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24219 $as_echo_n "(cached
) " >&6
24221 eval "$as_ac_Header=\
$ac_header_preproc"
24223 ac_res=`eval 'as_val=${'$as_ac_Header'}
24224 $as_echo "$as_val"'`
24225 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24226 $as_echo "$ac_res" >&6; }
24229 if test `eval 'as_val=${'$as_ac_Header'}
24230 $as_echo "$as_val"'` = yes; then
24231 cat >>confdefs.h <<_ACEOF
24232 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24249 for ac_header in com_err.h
24251 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24252 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24253 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24254 $as_echo_n "checking
for $ac_header...
" >&6; }
24255 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24256 $as_echo_n "(cached
) " >&6
24258 ac_res=`eval 'as_val=${'$as_ac_Header'}
24259 $as_echo "$as_val"'`
24260 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24261 $as_echo "$ac_res" >&6; }
24263 # Is the header compilable?
24264 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24265 $as_echo_n "checking
$ac_header usability...
" >&6; }
24266 cat >conftest.$ac_ext <<_ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h. */
24272 $ac_includes_default
24273 #include <$ac_header>
24275 rm -f conftest.$ac_objext
24276 if { (ac_try="$ac_compile"
24277 case "(($ac_try" in
24278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24279 *) ac_try_echo=$ac_try;;
24281 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24282 $as_echo "$ac_try_echo") >&5
24283 (eval "$ac_compile") 2>conftest.er1
24285 grep -v '^ *+' conftest.er1 >conftest.err
24287 cat conftest.err >&5
24288 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24289 (exit $ac_status); } && {
24290 test -z "$ac_c_werror_flag" ||
24291 test ! -s conftest.err
24292 } && test -s conftest.$ac_objext; then
24293 ac_header_compiler=yes
24295 $as_echo "$as_me: failed program was
:" >&5
24296 sed 's/^/| /' conftest.$ac_ext >&5
24298 ac_header_compiler=no
24301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24302 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24303 $as_echo "$ac_header_compiler" >&6; }
24305 # Is the header present?
24306 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24307 $as_echo_n "checking
$ac_header presence...
" >&6; }
24308 cat >conftest.$ac_ext <<_ACEOF
24311 cat confdefs.h >>conftest.$ac_ext
24312 cat >>conftest.$ac_ext <<_ACEOF
24313 /* end confdefs.h. */
24314 #include <$ac_header>
24316 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24317 case "(($ac_try" in
24318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24319 *) ac_try_echo=$ac_try;;
24321 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24322 $as_echo "$ac_try_echo") >&5
24323 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24325 grep -v '^ *+' conftest.er1 >conftest.err
24327 cat conftest.err >&5
24328 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24329 (exit $ac_status); } >/dev/null && {
24330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24331 test ! -s conftest.err
24333 ac_header_preproc=yes
24335 $as_echo "$as_me: failed program was
:" >&5
24336 sed 's/^/| /' conftest.$ac_ext >&5
24338 ac_header_preproc=no
24341 rm -f conftest.err conftest.$ac_ext
24342 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24343 $as_echo "$ac_header_preproc" >&6; }
24345 # So? What about this header?
24346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24348 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24349 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24350 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24351 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24352 ac_header_preproc=yes
24355 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24356 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24357 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24358 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24359 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24360 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24361 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24362 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24363 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24364 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24365 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24366 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24370 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24371 $as_echo_n "checking
for $ac_header...
" >&6; }
24372 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24373 $as_echo_n "(cached
) " >&6
24375 eval "$as_ac_Header=\
$ac_header_preproc"
24377 ac_res=`eval 'as_val=${'$as_ac_Header'}
24378 $as_echo "$as_val"'`
24379 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24380 $as_echo "$ac_res" >&6; }
24383 if test `eval 'as_val=${'$as_ac_Header'}
24384 $as_echo "$as_val"'` = yes; then
24385 cat >>confdefs.h <<_ACEOF
24386 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24401 # Solaris requires -lintl if you want strerror (which calls dgettext)
24402 # to return localized messages.
24404 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
24405 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
24406 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24407 $as_echo_n "(cached
) " >&6
24409 ac_check_lib_save_LIBS=$LIBS
24410 LIBS="-lintl $LIBS"
24411 cat >conftest.$ac_ext <<_ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h. */
24418 /* Override any GCC internal prototype to avoid an error.
24419 Use char because int might match the return type of a GCC
24420 builtin and then its argument prototype would still apply. */
24428 return dgettext ();
24433 rm -f conftest.$ac_objext conftest$ac_exeext
24434 if { (ac_try="$ac_link"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24439 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24440 $as_echo "$ac_try_echo") >&5
24441 (eval "$ac_link") 2>conftest.er1
24443 grep -v '^ *+' conftest.er1 >conftest.err
24445 cat conftest.err >&5
24446 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24447 (exit $ac_status); } && {
24448 test -z "$ac_c_werror_flag" ||
24449 test ! -s conftest.err
24450 } && test -s conftest$ac_exeext && {
24451 test "$cross_compiling" = yes ||
24452 $as_test_x conftest$ac_exeext
24454 ac_cv_lib_intl_dgettext=yes
24456 $as_echo "$as_me: failed program was
:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24459 ac_cv_lib_intl_dgettext=no
24462 rm -rf conftest.dSYM
24463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24464 conftest$ac_exeext conftest.$ac_ext
24465 LIBS=$ac_check_lib_save_LIBS
24467 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
24468 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24469 if test $ac_cv_lib_intl_dgettext = yes; then
24470 cat >>confdefs.h <<_ACEOF
24471 #define HAVE_LIBINTL 1
24474 LIBS="-lintl $LIBS"
24479 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
24480 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
24481 if test "${emacs_cv_localtime_cache+set}" = set; then
24482 $as_echo_n "(cached
) " >&6
24484 if test x$ac_cv_func_tzset = xyes; then
24485 if test "$cross_compiling" = yes; then
24486 # If we have tzset, assume the worst when cross-compiling.
24487 emacs_cv_localtime_cache=yes
24489 cat >conftest.$ac_ext <<_ACEOF
24492 cat confdefs.h >>conftest.$ac_ext
24493 cat >>conftest.$ac_ext <<_ACEOF
24494 /* end confdefs.h. */
24496 extern char **environ;
24500 for (to = from = environ; (*to = *from); from++)
24501 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24504 char TZ_GMT0[] = "TZ
=GMT0
";
24505 char TZ_PST8[] = "TZ
=PST8
";
24508 time_t now = time ((time_t *) 0);
24509 int hour_GMT0, hour_unset;
24510 if (putenv (TZ_GMT0) != 0)
24512 hour_GMT0 = localtime (&now)->tm_hour;
24514 hour_unset = localtime (&now)->tm_hour;
24515 if (putenv (TZ_PST8) != 0)
24517 if (localtime (&now)->tm_hour == hour_GMT0)
24520 if (localtime (&now)->tm_hour != hour_unset)
24525 rm -f conftest$ac_exeext
24526 if { (ac_try="$ac_link"
24527 case "(($ac_try" in
24528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24529 *) ac_try_echo=$ac_try;;
24531 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24532 $as_echo "$ac_try_echo") >&5
24533 (eval "$ac_link") 2>&5
24535 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24537 { (case "(($ac_try" in
24538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539 *) ac_try_echo=$ac_try;;
24541 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24542 $as_echo "$ac_try_echo") >&5
24543 (eval "$ac_try") 2>&5
24545 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24546 (exit $ac_status); }; }; then
24547 emacs_cv_localtime_cache=no
24549 $as_echo "$as_me: program exited with status
$ac_status" >&5
24550 $as_echo "$as_me: failed program was
:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24553 ( exit $ac_status )
24554 emacs_cv_localtime_cache=yes
24556 rm -rf conftest.dSYM
24557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24562 # If we lack tzset, report that localtime does not cache TZ,
24563 # since we can't invalidate the cache if we don't have tzset.
24564 emacs_cv_localtime_cache=no
24567 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24568 $as_echo "$emacs_cv_localtime_cache" >&6; }
24569 if test $emacs_cv_localtime_cache = yes; then
24571 cat >>confdefs.h <<\_ACEOF
24572 #define LOCALTIME_CACHE 1
24577 if test "x
$HAVE_TIMEVAL" = xyes; then
24579 for ac_func in gettimeofday
24581 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24582 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24583 $as_echo_n "checking
for $ac_func...
" >&6; }
24584 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24585 $as_echo_n "(cached
) " >&6
24587 cat >conftest.$ac_ext <<_ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24595 #define $ac_func innocuous_$ac_func
24597 /* System header to define __stub macros and hopefully few prototypes,
24598 which can conflict with char $ac_func (); below.
24599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24600 <limits.h> exists even on freestanding compilers. */
24603 # include <limits.h>
24605 # include <assert.h>
24610 /* Override any GCC internal prototype to avoid an error.
24611 Use char because int might match the return type of a GCC
24612 builtin and then its argument prototype would still apply. */
24617 /* The GNU C library defines this for functions which it implements
24618 to always fail with ENOSYS. Some functions are actually named
24619 something starting with __ and the normal name is an alias. */
24620 #if defined __stub_$ac_func || defined __stub___$ac_func
24627 return $ac_func ();
24632 rm -f conftest.$ac_objext conftest$ac_exeext
24633 if { (ac_try="$ac_link"
24634 case "(($ac_try" in
24635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24636 *) ac_try_echo=$ac_try;;
24638 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24639 $as_echo "$ac_try_echo") >&5
24640 (eval "$ac_link") 2>conftest.er1
24642 grep -v '^ *+' conftest.er1 >conftest.err
24644 cat conftest.err >&5
24645 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24646 (exit $ac_status); } && {
24647 test -z "$ac_c_werror_flag" ||
24648 test ! -s conftest.err
24649 } && test -s conftest$ac_exeext && {
24650 test "$cross_compiling" = yes ||
24651 $as_test_x conftest$ac_exeext
24653 eval "$as_ac_var=yes"
24655 $as_echo "$as_me: failed program was
:" >&5
24656 sed 's/^/| /' conftest.$ac_ext >&5
24658 eval "$as_ac_var=no
"
24661 rm -rf conftest.dSYM
24662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24663 conftest$ac_exeext conftest.$ac_ext
24665 ac_res=`eval 'as_val=${'$as_ac_var'}
24666 $as_echo "$as_val"'`
24667 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24668 $as_echo "$ac_res" >&6; }
24669 if test `eval 'as_val=${'$as_ac_var'}
24670 $as_echo "$as_val"'` = yes; then
24671 cat >>confdefs.h <<_ACEOF
24672 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24678 if test $ac_cv_func_gettimeofday = yes; then
24679 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24680 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24681 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24682 $as_echo_n "(cached
) " >&6
24684 cat >conftest.$ac_ext <<_ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h. */
24691 #ifdef TIME_WITH_SYS_TIME
24692 #include <sys/time.h>
24695 #ifdef HAVE_SYS_TIME_H
24696 #include <sys/time.h>
24704 struct timeval time;
24705 gettimeofday (&time, 0);
24710 rm -f conftest.$ac_objext
24711 if { (ac_try="$ac_compile"
24712 case "(($ac_try" in
24713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714 *) ac_try_echo=$ac_try;;
24716 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24717 $as_echo "$ac_try_echo") >&5
24718 (eval "$ac_compile") 2>conftest.er1
24720 grep -v '^ *+' conftest.er1 >conftest.err
24722 cat conftest.err >&5
24723 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24724 (exit $ac_status); } && {
24725 test -z "$ac_c_werror_flag" ||
24726 test ! -s conftest.err
24727 } && test -s conftest.$ac_objext; then
24728 emacs_cv_gettimeofday_two_arguments=yes
24730 $as_echo "$as_me: failed program was
:" >&5
24731 sed 's/^/| /' conftest.$ac_ext >&5
24733 emacs_cv_gettimeofday_two_arguments=no
24736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24738 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24739 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24740 if test $emacs_cv_gettimeofday_two_arguments = no; then
24742 cat >>confdefs.h <<\_ACEOF
24743 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24751 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24752 $as_echo_n "checking
for socket...
" >&6; }
24753 if test "${ac_cv_func_socket+set}" = set; then
24754 $as_echo_n "(cached
) " >&6
24756 cat >conftest.$ac_ext <<_ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h. */
24762 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24764 #define socket innocuous_socket
24766 /* System header to define __stub macros and hopefully few prototypes,
24767 which can conflict with char socket (); below.
24768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24769 <limits.h> exists even on freestanding compilers. */
24772 # include <limits.h>
24774 # include <assert.h>
24779 /* Override any GCC internal prototype to avoid an error.
24780 Use char because int might match the return type of a GCC
24781 builtin and then its argument prototype would still apply. */
24786 /* The GNU C library defines this for functions which it implements
24787 to always fail with ENOSYS. Some functions are actually named
24788 something starting with __ and the normal name is an alias. */
24789 #if defined __stub_socket || defined __stub___socket
24801 rm -f conftest.$ac_objext conftest$ac_exeext
24802 if { (ac_try="$ac_link"
24803 case "(($ac_try" in
24804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805 *) ac_try_echo=$ac_try;;
24807 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24808 $as_echo "$ac_try_echo") >&5
24809 (eval "$ac_link") 2>conftest.er1
24811 grep -v '^ *+' conftest.er1 >conftest.err
24813 cat conftest.err >&5
24814 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24815 (exit $ac_status); } && {
24816 test -z "$ac_c_werror_flag" ||
24817 test ! -s conftest.err
24818 } && test -s conftest$ac_exeext && {
24819 test "$cross_compiling" = yes ||
24820 $as_test_x conftest$ac_exeext
24822 ac_cv_func_socket=yes
24824 $as_echo "$as_me: failed program was
:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24827 ac_cv_func_socket=no
24830 rm -rf conftest.dSYM
24831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24832 conftest$ac_exeext conftest.$ac_ext
24834 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24835 $as_echo "$ac_cv_func_socket" >&6; }
24836 if test $ac_cv_func_socket = yes; then
24842 if test $ok_so_far = yes; then
24843 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24844 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24845 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24846 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24847 $as_echo_n "(cached
) " >&6
24849 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24850 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24852 # Is the header compilable?
24853 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24854 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24855 cat >conftest.$ac_ext <<_ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h. */
24861 $ac_includes_default
24862 #include <netinet/in.h>
24864 rm -f conftest.$ac_objext
24865 if { (ac_try="$ac_compile"
24866 case "(($ac_try" in
24867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24870 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24871 $as_echo "$ac_try_echo") >&5
24872 (eval "$ac_compile") 2>conftest.er1
24874 grep -v '^ *+' conftest.er1 >conftest.err
24876 cat conftest.err >&5
24877 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24878 (exit $ac_status); } && {
24879 test -z "$ac_c_werror_flag" ||
24880 test ! -s conftest.err
24881 } && test -s conftest.$ac_objext; then
24882 ac_header_compiler=yes
24884 $as_echo "$as_me: failed program was
:" >&5
24885 sed 's/^/| /' conftest.$ac_ext >&5
24887 ac_header_compiler=no
24890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24892 $as_echo "$ac_header_compiler" >&6; }
24894 # Is the header present?
24895 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24896 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24897 cat >conftest.$ac_ext <<_ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h. */
24903 #include <netinet/in.h>
24905 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24906 case "(($ac_try" in
24907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24908 *) ac_try_echo=$ac_try;;
24910 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24911 $as_echo "$ac_try_echo") >&5
24912 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24914 grep -v '^ *+' conftest.er1 >conftest.err
24916 cat conftest.err >&5
24917 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24918 (exit $ac_status); } >/dev/null && {
24919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24920 test ! -s conftest.err
24922 ac_header_preproc=yes
24924 $as_echo "$as_me: failed program was
:" >&5
24925 sed 's/^/| /' conftest.$ac_ext >&5
24927 ac_header_preproc=no
24930 rm -f conftest.err conftest.$ac_ext
24931 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24932 $as_echo "$ac_header_preproc" >&6; }
24934 # So? What about this header?
24935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24937 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24938 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24939 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24940 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24941 ac_header_preproc=yes
24944 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24945 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24946 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24947 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24948 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24949 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24950 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24951 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24952 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24953 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24954 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24955 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24959 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24960 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24961 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24962 $as_echo_n "(cached
) " >&6
24964 ac_cv_header_netinet_in_h=$ac_header_preproc
24966 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24967 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24970 if test $ac_cv_header_netinet_in_h = yes; then
24978 if test $ok_so_far = yes; then
24979 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24980 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24981 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24982 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24983 $as_echo_n "(cached
) " >&6
24985 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24986 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24988 # Is the header compilable?
24989 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24990 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
24991 cat >conftest.$ac_ext <<_ACEOF
24994 cat confdefs.h >>conftest.$ac_ext
24995 cat >>conftest.$ac_ext <<_ACEOF
24996 /* end confdefs.h. */
24997 $ac_includes_default
24998 #include <arpa/inet.h>
25000 rm -f conftest.$ac_objext
25001 if { (ac_try="$ac_compile"
25002 case "(($ac_try" in
25003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25004 *) ac_try_echo=$ac_try;;
25006 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25007 $as_echo "$ac_try_echo") >&5
25008 (eval "$ac_compile") 2>conftest.er1
25010 grep -v '^ *+' conftest.er1 >conftest.err
25012 cat conftest.err >&5
25013 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25014 (exit $ac_status); } && {
25015 test -z "$ac_c_werror_flag" ||
25016 test ! -s conftest.err
25017 } && test -s conftest.$ac_objext; then
25018 ac_header_compiler=yes
25020 $as_echo "$as_me: failed program was
:" >&5
25021 sed 's/^/| /' conftest.$ac_ext >&5
25023 ac_header_compiler=no
25026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25027 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25028 $as_echo "$ac_header_compiler" >&6; }
25030 # Is the header present?
25031 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
25032 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
25033 cat >conftest.$ac_ext <<_ACEOF
25036 cat confdefs.h >>conftest.$ac_ext
25037 cat >>conftest.$ac_ext <<_ACEOF
25038 /* end confdefs.h. */
25039 #include <arpa/inet.h>
25041 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25042 case "(($ac_try" in
25043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044 *) ac_try_echo=$ac_try;;
25046 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25047 $as_echo "$ac_try_echo") >&5
25048 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25050 grep -v '^ *+' conftest.er1 >conftest.err
25052 cat conftest.err >&5
25053 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25054 (exit $ac_status); } >/dev/null && {
25055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25056 test ! -s conftest.err
25058 ac_header_preproc=yes
25060 $as_echo "$as_me: failed program was
:" >&5
25061 sed 's/^/| /' conftest.$ac_ext >&5
25063 ac_header_preproc=no
25066 rm -f conftest.err conftest.$ac_ext
25067 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25068 $as_echo "$ac_header_preproc" >&6; }
25070 # So? What about this header?
25071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25073 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25074 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25075 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
25076 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
25077 ac_header_preproc=yes
25080 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
25081 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
25082 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
25083 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
25084 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
25085 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
25086 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25087 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25088 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
25089 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
25090 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
25091 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
25095 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
25096 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
25097 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25098 $as_echo_n "(cached
) " >&6
25100 ac_cv_header_arpa_inet_h=$ac_header_preproc
25102 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
25103 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25106 if test $ac_cv_header_arpa_inet_h = yes; then
25114 if test $ok_so_far = yes; then
25116 cat >>confdefs.h <<\_ACEOF
25117 #define HAVE_INET_SOCKETS 1
25123 for ac_header in sys/ioctl.h
25125 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25126 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25127 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25128 $as_echo_n "checking
for $ac_header...
" >&6; }
25129 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25130 $as_echo_n "(cached
) " >&6
25132 ac_res=`eval 'as_val=${'$as_ac_Header'}
25133 $as_echo "$as_val"'`
25134 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25135 $as_echo "$ac_res" >&6; }
25137 # Is the header compilable?
25138 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25139 $as_echo_n "checking
$ac_header usability...
" >&6; }
25140 cat >conftest.$ac_ext <<_ACEOF
25143 cat confdefs.h >>conftest.$ac_ext
25144 cat >>conftest.$ac_ext <<_ACEOF
25145 /* end confdefs.h. */
25146 $ac_includes_default
25147 #include <$ac_header>
25149 rm -f conftest.$ac_objext
25150 if { (ac_try="$ac_compile"
25151 case "(($ac_try" in
25152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25153 *) ac_try_echo=$ac_try;;
25155 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25156 $as_echo "$ac_try_echo") >&5
25157 (eval "$ac_compile") 2>conftest.er1
25159 grep -v '^ *+' conftest.er1 >conftest.err
25161 cat conftest.err >&5
25162 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25163 (exit $ac_status); } && {
25164 test -z "$ac_c_werror_flag" ||
25165 test ! -s conftest.err
25166 } && test -s conftest.$ac_objext; then
25167 ac_header_compiler=yes
25169 $as_echo "$as_me: failed program was
:" >&5
25170 sed 's/^/| /' conftest.$ac_ext >&5
25172 ac_header_compiler=no
25175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25176 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25177 $as_echo "$ac_header_compiler" >&6; }
25179 # Is the header present?
25180 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25181 $as_echo_n "checking
$ac_header presence...
" >&6; }
25182 cat >conftest.$ac_ext <<_ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h. */
25188 #include <$ac_header>
25190 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25191 case "(($ac_try" in
25192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25193 *) ac_try_echo=$ac_try;;
25195 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25196 $as_echo "$ac_try_echo") >&5
25197 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25199 grep -v '^ *+' conftest.er1 >conftest.err
25201 cat conftest.err >&5
25202 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25203 (exit $ac_status); } >/dev/null && {
25204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25205 test ! -s conftest.err
25207 ac_header_preproc=yes
25209 $as_echo "$as_me: failed program was
:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25212 ac_header_preproc=no
25215 rm -f conftest.err conftest.$ac_ext
25216 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25217 $as_echo "$ac_header_preproc" >&6; }
25219 # So? What about this header?
25220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25222 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25223 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25224 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25226 ac_header_preproc=yes
25229 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25230 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25231 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25232 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25233 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25234 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25235 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25236 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25237 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25238 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25239 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25240 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25244 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25245 $as_echo_n "checking
for $ac_header...
" >&6; }
25246 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25247 $as_echo_n "(cached
) " >&6
25249 eval "$as_ac_Header=\
$ac_header_preproc"
25251 ac_res=`eval 'as_val=${'$as_ac_Header'}
25252 $as_echo "$as_val"'`
25253 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25254 $as_echo "$ac_res" >&6; }
25257 if test `eval 'as_val=${'$as_ac_Header'}
25258 $as_echo "$as_val"'` = yes; then
25259 cat >>confdefs.h <<_ACEOF
25260 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25268 if test -f /usr/lpp/X11/bin/smt.exp; then
25270 cat >>confdefs.h <<\_ACEOF
25271 #define HAVE_AIX_SMT_EXP 1
25276 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
25277 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
25278 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25279 { $as_echo "$as_me:$LINENO: result
: yes" >&5
25280 $as_echo "yes" >&6; }
25282 cat >>confdefs.h <<\_ACEOF
25283 #define HAVE_DEV_PTMX 1
25287 { $as_echo "$as_me:$LINENO: result
: no
" >&5
25288 $as_echo "no
" >&6; }
25291 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
25292 $as_echo_n "checking
for pid_t...
" >&6; }
25293 if test "${ac_cv_type_pid_t+set}" = set; then
25294 $as_echo_n "(cached
) " >&6
25296 ac_cv_type_pid_t=no
25297 cat >conftest.$ac_ext <<_ACEOF
25300 cat confdefs.h >>conftest.$ac_ext
25301 cat >>conftest.$ac_ext <<_ACEOF
25302 /* end confdefs.h. */
25303 $ac_includes_default
25307 if (sizeof (pid_t))
25313 rm -f conftest.$ac_objext
25314 if { (ac_try="$ac_compile"
25315 case "(($ac_try" in
25316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25317 *) ac_try_echo=$ac_try;;
25319 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25320 $as_echo "$ac_try_echo") >&5
25321 (eval "$ac_compile") 2>conftest.er1
25323 grep -v '^ *+' conftest.er1 >conftest.err
25325 cat conftest.err >&5
25326 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25327 (exit $ac_status); } && {
25328 test -z "$ac_c_werror_flag" ||
25329 test ! -s conftest.err
25330 } && test -s conftest.$ac_objext; then
25331 cat >conftest.$ac_ext <<_ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h. */
25337 $ac_includes_default
25341 if (sizeof ((pid_t)))
25347 rm -f conftest.$ac_objext
25348 if { (ac_try="$ac_compile"
25349 case "(($ac_try" in
25350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25351 *) ac_try_echo=$ac_try;;
25353 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25354 $as_echo "$ac_try_echo") >&5
25355 (eval "$ac_compile") 2>conftest.er1
25357 grep -v '^ *+' conftest.er1 >conftest.err
25359 cat conftest.err >&5
25360 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25361 (exit $ac_status); } && {
25362 test -z "$ac_c_werror_flag" ||
25363 test ! -s conftest.err
25364 } && test -s conftest.$ac_objext; then
25367 $as_echo "$as_me: failed program was
:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25370 ac_cv_type_pid_t=yes
25373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25375 $as_echo "$as_me: failed program was
:" >&5
25376 sed 's/^/| /' conftest.$ac_ext >&5
25381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25383 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
25384 $as_echo "$ac_cv_type_pid_t" >&6; }
25385 if test $ac_cv_type_pid_t = yes; then
25389 cat >>confdefs.h <<_ACEOF
25396 for ac_header in vfork.h
25398 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25399 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25400 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25401 $as_echo_n "checking
for $ac_header...
" >&6; }
25402 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25403 $as_echo_n "(cached
) " >&6
25405 ac_res=`eval 'as_val=${'$as_ac_Header'}
25406 $as_echo "$as_val"'`
25407 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25408 $as_echo "$ac_res" >&6; }
25410 # Is the header compilable?
25411 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25412 $as_echo_n "checking
$ac_header usability...
" >&6; }
25413 cat >conftest.$ac_ext <<_ACEOF
25416 cat confdefs.h >>conftest.$ac_ext
25417 cat >>conftest.$ac_ext <<_ACEOF
25418 /* end confdefs.h. */
25419 $ac_includes_default
25420 #include <$ac_header>
25422 rm -f conftest.$ac_objext
25423 if { (ac_try="$ac_compile"
25424 case "(($ac_try" in
25425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25426 *) ac_try_echo=$ac_try;;
25428 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25429 $as_echo "$ac_try_echo") >&5
25430 (eval "$ac_compile") 2>conftest.er1
25432 grep -v '^ *+' conftest.er1 >conftest.err
25434 cat conftest.err >&5
25435 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25436 (exit $ac_status); } && {
25437 test -z "$ac_c_werror_flag" ||
25438 test ! -s conftest.err
25439 } && test -s conftest.$ac_objext; then
25440 ac_header_compiler=yes
25442 $as_echo "$as_me: failed program was
:" >&5
25443 sed 's/^/| /' conftest.$ac_ext >&5
25445 ac_header_compiler=no
25448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25449 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25450 $as_echo "$ac_header_compiler" >&6; }
25452 # Is the header present?
25453 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25454 $as_echo_n "checking
$ac_header presence...
" >&6; }
25455 cat >conftest.$ac_ext <<_ACEOF
25458 cat confdefs.h >>conftest.$ac_ext
25459 cat >>conftest.$ac_ext <<_ACEOF
25460 /* end confdefs.h. */
25461 #include <$ac_header>
25463 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25464 case "(($ac_try" in
25465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25466 *) ac_try_echo=$ac_try;;
25468 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25469 $as_echo "$ac_try_echo") >&5
25470 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25472 grep -v '^ *+' conftest.er1 >conftest.err
25474 cat conftest.err >&5
25475 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25476 (exit $ac_status); } >/dev/null && {
25477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25478 test ! -s conftest.err
25480 ac_header_preproc=yes
25482 $as_echo "$as_me: failed program was
:" >&5
25483 sed 's/^/| /' conftest.$ac_ext >&5
25485 ac_header_preproc=no
25488 rm -f conftest.err conftest.$ac_ext
25489 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25490 $as_echo "$ac_header_preproc" >&6; }
25492 # So? What about this header?
25493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25495 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25496 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25497 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25498 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25499 ac_header_preproc=yes
25502 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25503 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25504 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25505 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25506 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25507 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25508 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25509 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25510 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25511 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25512 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25513 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25517 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25518 $as_echo_n "checking
for $ac_header...
" >&6; }
25519 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25520 $as_echo_n "(cached
) " >&6
25522 eval "$as_ac_Header=\
$ac_header_preproc"
25524 ac_res=`eval 'as_val=${'$as_ac_Header'}
25525 $as_echo "$as_val"'`
25526 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25527 $as_echo "$ac_res" >&6; }
25530 if test `eval 'as_val=${'$as_ac_Header'}
25531 $as_echo "$as_val"'` = yes; then
25532 cat >>confdefs.h <<_ACEOF
25533 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25542 for ac_func in fork vfork
25544 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25545 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
25546 $as_echo_n "checking
for $ac_func...
" >&6; }
25547 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25548 $as_echo_n "(cached
) " >&6
25550 cat >conftest.$ac_ext <<_ACEOF
25553 cat confdefs.h >>conftest.$ac_ext
25554 cat >>conftest.$ac_ext <<_ACEOF
25555 /* end confdefs.h. */
25556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25558 #define $ac_func innocuous_$ac_func
25560 /* System header to define __stub macros and hopefully few prototypes,
25561 which can conflict with char $ac_func (); below.
25562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25563 <limits.h> exists even on freestanding compilers. */
25566 # include <limits.h>
25568 # include <assert.h>
25573 /* Override any GCC internal prototype to avoid an error.
25574 Use char because int might match the return type of a GCC
25575 builtin and then its argument prototype would still apply. */
25580 /* The GNU C library defines this for functions which it implements
25581 to always fail with ENOSYS. Some functions are actually named
25582 something starting with __ and the normal name is an alias. */
25583 #if defined __stub_$ac_func || defined __stub___$ac_func
25590 return $ac_func ();
25595 rm -f conftest.$ac_objext conftest$ac_exeext
25596 if { (ac_try="$ac_link"
25597 case "(($ac_try" in
25598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25599 *) ac_try_echo=$ac_try;;
25601 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25602 $as_echo "$ac_try_echo") >&5
25603 (eval "$ac_link") 2>conftest.er1
25605 grep -v '^ *+' conftest.er1 >conftest.err
25607 cat conftest.err >&5
25608 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25609 (exit $ac_status); } && {
25610 test -z "$ac_c_werror_flag" ||
25611 test ! -s conftest.err
25612 } && test -s conftest$ac_exeext && {
25613 test "$cross_compiling" = yes ||
25614 $as_test_x conftest$ac_exeext
25616 eval "$as_ac_var=yes"
25618 $as_echo "$as_me: failed program was
:" >&5
25619 sed 's/^/| /' conftest.$ac_ext >&5
25621 eval "$as_ac_var=no
"
25624 rm -rf conftest.dSYM
25625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25626 conftest$ac_exeext conftest.$ac_ext
25628 ac_res=`eval 'as_val=${'$as_ac_var'}
25629 $as_echo "$as_val"'`
25630 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25631 $as_echo "$ac_res" >&6; }
25632 if test `eval 'as_val=${'$as_ac_var'}
25633 $as_echo "$as_val"'` = yes; then
25634 cat >>confdefs.h <<_ACEOF
25635 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25641 if test "x
$ac_cv_func_fork" = xyes; then
25642 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25643 $as_echo_n "checking
for working fork...
" >&6; }
25644 if test "${ac_cv_func_fork_works+set}" = set; then
25645 $as_echo_n "(cached
) " >&6
25647 if test "$cross_compiling" = yes; then
25648 ac_cv_func_fork_works=cross
25650 cat >conftest.$ac_ext <<_ACEOF
25653 cat confdefs.h >>conftest.$ac_ext
25654 cat >>conftest.$ac_ext <<_ACEOF
25655 /* end confdefs.h. */
25656 $ac_includes_default
25661 /* By Ruediger Kuhlmann. */
25662 return fork () < 0;
25668 rm -f conftest$ac_exeext
25669 if { (ac_try="$ac_link"
25670 case "(($ac_try" in
25671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25672 *) ac_try_echo=$ac_try;;
25674 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25675 $as_echo "$ac_try_echo") >&5
25676 (eval "$ac_link") 2>&5
25678 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25680 { (case "(($ac_try" in
25681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25682 *) ac_try_echo=$ac_try;;
25684 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25685 $as_echo "$ac_try_echo") >&5
25686 (eval "$ac_try") 2>&5
25688 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25689 (exit $ac_status); }; }; then
25690 ac_cv_func_fork_works=yes
25692 $as_echo "$as_me: program exited with status
$ac_status" >&5
25693 $as_echo "$as_me: failed program was
:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25696 ( exit $ac_status )
25697 ac_cv_func_fork_works=no
25699 rm -rf conftest.dSYM
25700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25705 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25706 $as_echo "$ac_cv_func_fork_works" >&6; }
25709 ac_cv_func_fork_works=$ac_cv_func_fork
25711 if test "x
$ac_cv_func_fork_works" = xcross; then
25713 *-*-amigaos* | *-*-msdosdjgpp*)
25714 # Override, as these systems have only a dummy fork() stub
25715 ac_cv_func_fork_works=no
25718 ac_cv_func_fork_works=yes
25721 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25722 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25724 ac_cv_func_vfork_works=$ac_cv_func_vfork
25725 if test "x
$ac_cv_func_vfork" = xyes; then
25726 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25727 $as_echo_n "checking
for working vfork...
" >&6; }
25728 if test "${ac_cv_func_vfork_works+set}" = set; then
25729 $as_echo_n "(cached
) " >&6
25731 if test "$cross_compiling" = yes; then
25732 ac_cv_func_vfork_works=cross
25734 cat >conftest.$ac_ext <<_ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h. */
25740 /* Thanks to Paul Eggert for this test. */
25741 $ac_includes_default
25742 #include <sys/wait.h>
25743 #ifdef HAVE_VFORK_H
25744 # include <vfork.h>
25746 /* On some sparc systems, changes by the child to local and incoming
25747 argument registers are propagated back to the parent. The compiler
25748 is told about this with #include <vfork.h>, but some compilers
25749 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25750 static variable whose address is put into a register that is
25751 clobbered by the vfork. */
25754 sparc_address_test (int arg)
25756 sparc_address_test (arg) int arg;
25759 static pid_t child;
25777 pid_t parent = getpid ();
25780 sparc_address_test (0);
25785 /* Here is another test for sparc vfork register problems. This
25786 test uses lots of local variables, at least as many local
25787 variables as main has allocated so far including compiler
25788 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25789 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25790 reuse the register of parent for one of the local variables,
25791 since it will think that parent can't possibly be used any more
25792 in this routine. Assigning to the local variable will thus
25793 munge parent in the parent process. */
25795 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25796 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25797 /* Convince the compiler that p..p7 are live; otherwise, it might
25798 use the same hardware register for all 8 local variables. */
25799 if (p != p1 || p != p2 || p != p3 || p != p4
25800 || p != p5 || p != p6 || p != p7)
25803 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25804 from child file descriptors. If the child closes a descriptor
25805 before it execs or exits, this munges the parent's descriptor
25806 as well. Test for this by closing stdout in the child. */
25807 _exit(close(fileno(stdout)) != 0);
25812 while (wait(&status) != child)
25815 /* Was there some problem with vforking? */
25818 /* Did the child fail? (This shouldn't happen.) */
25821 /* Did the vfork/compiler bug occur? */
25822 || parent != getpid()
25824 /* Did the file descriptor bug occur? */
25825 || fstat(fileno(stdout), &st) != 0
25830 rm -f conftest$ac_exeext
25831 if { (ac_try="$ac_link"
25832 case "(($ac_try" in
25833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834 *) ac_try_echo=$ac_try;;
25836 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25837 $as_echo "$ac_try_echo") >&5
25838 (eval "$ac_link") 2>&5
25840 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25842 { (case "(($ac_try" in
25843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844 *) ac_try_echo=$ac_try;;
25846 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25847 $as_echo "$ac_try_echo") >&5
25848 (eval "$ac_try") 2>&5
25850 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25851 (exit $ac_status); }; }; then
25852 ac_cv_func_vfork_works=yes
25854 $as_echo "$as_me: program exited with status
$ac_status" >&5
25855 $as_echo "$as_me: failed program was
:" >&5
25856 sed 's/^/| /' conftest.$ac_ext >&5
25858 ( exit $ac_status )
25859 ac_cv_func_vfork_works=no
25861 rm -rf conftest.dSYM
25862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25867 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25868 $as_echo "$ac_cv_func_vfork_works" >&6; }
25871 if test "x
$ac_cv_func_fork_works" = xcross; then
25872 ac_cv_func_vfork_works=$ac_cv_func_vfork
25873 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25874 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25877 if test "x
$ac_cv_func_vfork_works" = xyes; then
25879 cat >>confdefs.h <<\_ACEOF
25880 #define HAVE_WORKING_VFORK 1
25885 cat >>confdefs.h <<\_ACEOF
25890 if test "x
$ac_cv_func_fork_works" = xyes; then
25892 cat >>confdefs.h <<\_ACEOF
25893 #define HAVE_WORKING_FORK 1
25899 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25900 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25901 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25902 $as_echo_n "(cached
) " >&6
25904 cat >conftest.$ac_ext <<_ACEOF
25907 cat confdefs.h >>conftest.$ac_ext
25908 cat >>conftest.$ac_ext <<_ACEOF
25909 /* end confdefs.h. */
25910 #include <langinfo.h>
25914 char* cs = nl_langinfo(CODESET);
25919 rm -f conftest.$ac_objext conftest$ac_exeext
25920 if { (ac_try="$ac_link"
25921 case "(($ac_try" in
25922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25923 *) ac_try_echo=$ac_try;;
25925 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25926 $as_echo "$ac_try_echo") >&5
25927 (eval "$ac_link") 2>conftest.er1
25929 grep -v '^ *+' conftest.er1 >conftest.err
25931 cat conftest.err >&5
25932 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25933 (exit $ac_status); } && {
25934 test -z "$ac_c_werror_flag" ||
25935 test ! -s conftest.err
25936 } && test -s conftest$ac_exeext && {
25937 test "$cross_compiling" = yes ||
25938 $as_test_x conftest$ac_exeext
25940 emacs_cv_langinfo_codeset=yes
25942 $as_echo "$as_me: failed program was
:" >&5
25943 sed 's/^/| /' conftest.$ac_ext >&5
25945 emacs_cv_langinfo_codeset=no
25948 rm -rf conftest.dSYM
25949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25950 conftest$ac_exeext conftest.$ac_ext
25953 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25954 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25955 if test $emacs_cv_langinfo_codeset = yes; then
25957 cat >>confdefs.h <<\_ACEOF
25958 #define HAVE_LANGINFO_CODESET 1
25963 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25964 $as_echo_n "checking
for size_t...
" >&6; }
25965 if test "${ac_cv_type_size_t+set}" = set; then
25966 $as_echo_n "(cached
) " >&6
25968 ac_cv_type_size_t=no
25969 cat >conftest.$ac_ext <<_ACEOF
25972 cat confdefs.h >>conftest.$ac_ext
25973 cat >>conftest.$ac_ext <<_ACEOF
25974 /* end confdefs.h. */
25975 $ac_includes_default
25979 if (sizeof (size_t))
25985 rm -f conftest.$ac_objext
25986 if { (ac_try="$ac_compile"
25987 case "(($ac_try" in
25988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989 *) ac_try_echo=$ac_try;;
25991 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25992 $as_echo "$ac_try_echo") >&5
25993 (eval "$ac_compile") 2>conftest.er1
25995 grep -v '^ *+' conftest.er1 >conftest.err
25997 cat conftest.err >&5
25998 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25999 (exit $ac_status); } && {
26000 test -z "$ac_c_werror_flag" ||
26001 test ! -s conftest.err
26002 } && test -s conftest.$ac_objext; then
26003 cat >conftest.$ac_ext <<_ACEOF
26006 cat confdefs.h >>conftest.$ac_ext
26007 cat >>conftest.$ac_ext <<_ACEOF
26008 /* end confdefs.h. */
26009 $ac_includes_default
26013 if (sizeof ((size_t)))
26019 rm -f conftest.$ac_objext
26020 if { (ac_try="$ac_compile"
26021 case "(($ac_try" in
26022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26023 *) ac_try_echo=$ac_try;;
26025 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26026 $as_echo "$ac_try_echo") >&5
26027 (eval "$ac_compile") 2>conftest.er1
26029 grep -v '^ *+' conftest.er1 >conftest.err
26031 cat conftest.err >&5
26032 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26033 (exit $ac_status); } && {
26034 test -z "$ac_c_werror_flag" ||
26035 test ! -s conftest.err
26036 } && test -s conftest.$ac_objext; then
26039 $as_echo "$as_me: failed program was
:" >&5
26040 sed 's/^/| /' conftest.$ac_ext >&5
26042 ac_cv_type_size_t=yes
26045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26047 $as_echo "$as_me: failed program was
:" >&5
26048 sed 's/^/| /' conftest.$ac_ext >&5
26053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26055 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
26056 $as_echo "$ac_cv_type_size_t" >&6; }
26057 if test $ac_cv_type_size_t = yes; then
26059 cat >>confdefs.h <<_ACEOF
26060 #define HAVE_SIZE_T 1
26067 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
26068 $as_echo_n "checking
for mbstate_t...
" >&6; }
26069 if test "${ac_cv_type_mbstate_t+set}" = set; then
26070 $as_echo_n "(cached
) " >&6
26072 cat >conftest.$ac_ext <<_ACEOF
26075 cat confdefs.h >>conftest.$ac_ext
26076 cat >>conftest.$ac_ext <<_ACEOF
26077 /* end confdefs.h. */
26078 $ac_includes_default
26079 # include <wchar.h>
26083 mbstate_t x; return sizeof x;
26088 rm -f conftest.$ac_objext
26089 if { (ac_try="$ac_compile"
26090 case "(($ac_try" in
26091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26092 *) ac_try_echo=$ac_try;;
26094 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26095 $as_echo "$ac_try_echo") >&5
26096 (eval "$ac_compile") 2>conftest.er1
26098 grep -v '^ *+' conftest.er1 >conftest.err
26100 cat conftest.err >&5
26101 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26102 (exit $ac_status); } && {
26103 test -z "$ac_c_werror_flag" ||
26104 test ! -s conftest.err
26105 } && test -s conftest.$ac_objext; then
26106 ac_cv_type_mbstate_t=yes
26108 $as_echo "$as_me: failed program was
:" >&5
26109 sed 's/^/| /' conftest.$ac_ext >&5
26111 ac_cv_type_mbstate_t=no
26114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26116 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
26117 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26118 if test $ac_cv_type_mbstate_t = yes; then
26120 cat >>confdefs.h <<\_ACEOF
26121 #define HAVE_MBSTATE_T 1
26126 cat >>confdefs.h <<\_ACEOF
26127 #define mbstate_t int
26132 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
26133 $as_echo_n "checking
for C restrict keyword...
" >&6; }
26134 if test "${emacs_cv_c_restrict+set}" = set; then
26135 $as_echo_n "(cached
) " >&6
26137 cat >conftest.$ac_ext <<_ACEOF
26140 cat confdefs.h >>conftest.$ac_ext
26141 cat >>conftest.$ac_ext <<_ACEOF
26142 /* end confdefs.h. */
26143 void fred (int *restrict x);
26152 rm -f conftest.$ac_objext
26153 if { (ac_try="$ac_compile"
26154 case "(($ac_try" in
26155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26156 *) ac_try_echo=$ac_try;;
26158 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26159 $as_echo "$ac_try_echo") >&5
26160 (eval "$ac_compile") 2>conftest.er1
26162 grep -v '^ *+' conftest.er1 >conftest.err
26164 cat conftest.err >&5
26165 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26166 (exit $ac_status); } && {
26167 test -z "$ac_c_werror_flag" ||
26168 test ! -s conftest.err
26169 } && test -s conftest.$ac_objext; then
26170 emacs_cv_c_restrict=yes
26172 $as_echo "$as_me: failed program was
:" >&5
26173 sed 's/^/| /' conftest.$ac_ext >&5
26175 cat >conftest.$ac_ext <<_ACEOF
26178 cat confdefs.h >>conftest.$ac_ext
26179 cat >>conftest.$ac_ext <<_ACEOF
26180 /* end confdefs.h. */
26181 void fred (int *__restrict x);
26190 rm -f conftest.$ac_objext
26191 if { (ac_try="$ac_compile"
26192 case "(($ac_try" in
26193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26196 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26197 $as_echo "$ac_try_echo") >&5
26198 (eval "$ac_compile") 2>conftest.er1
26200 grep -v '^ *+' conftest.er1 >conftest.err
26202 cat conftest.err >&5
26203 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26204 (exit $ac_status); } && {
26205 test -z "$ac_c_werror_flag" ||
26206 test ! -s conftest.err
26207 } && test -s conftest.$ac_objext; then
26208 emacs_cv_c_restrict=__restrict
26210 $as_echo "$as_me: failed program was
:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26213 emacs_cv_c_restrict=no
26216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26221 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
26222 $as_echo "$emacs_cv_c_restrict" >&6; }
26223 case "$emacs_cv_c_restrict" in
26224 yes) emacs_restrict=restrict;;
26225 no) emacs_restrict="";;
26226 *) emacs_restrict="$emacs_cv_c_restrict";;
26228 if test "$emacs_restrict" != __restrict; then
26230 cat >>confdefs.h <<_ACEOF
26231 #define __restrict $emacs_restrict
26236 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
26237 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
26238 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26239 $as_echo_n "(cached
) " >&6
26241 cat >conftest.$ac_ext <<_ACEOF
26244 cat confdefs.h >>conftest.$ac_ext
26245 cat >>conftest.$ac_ext <<_ACEOF
26246 /* end confdefs.h. */
26247 void fred (int x[__restrict]);
26256 rm -f conftest.$ac_objext
26257 if { (ac_try="$ac_compile"
26258 case "(($ac_try" in
26259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26260 *) ac_try_echo=$ac_try;;
26262 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26263 $as_echo "$ac_try_echo") >&5
26264 (eval "$ac_compile") 2>conftest.er1
26266 grep -v '^ *+' conftest.er1 >conftest.err
26268 cat conftest.err >&5
26269 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26270 (exit $ac_status); } && {
26271 test -z "$ac_c_werror_flag" ||
26272 test ! -s conftest.err
26273 } && test -s conftest.$ac_objext; then
26274 emacs_cv_c_restrict_arr=yes
26276 $as_echo "$as_me: failed program was
:" >&5
26277 sed 's/^/| /' conftest.$ac_ext >&5
26279 emacs_cv_c_restrict_arr=no
26282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26284 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
26285 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26286 if test "$emacs_cv_c_restrict_arr" = yes; then
26288 cat >>confdefs.h <<\_ACEOF
26289 #define __restrict_arr __restrict
26296 # Set up the CFLAGS for real compilation, so we can substitute it.
26297 CFLAGS="$REAL_CFLAGS"
26298 CPPFLAGS="$REAL_CPPFLAGS"
26300 ## Hack to detect a buggy GCC version.
26301 if test "x
$GCC" = xyes \
26302 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26303 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26304 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26305 { { $as_echo "$as_me:$LINENO: error
: GCC
4.5.0 has problems compiling Emacs
; see etc
/PROBLEMS
'." >&5
26306 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'.
" >&2;}
26307 { (exit 1); exit 1; }; }
26310 #### Find out which version of Emacs this is.
26311 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
26312 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
26313 if test x"${version}" = x; then
26314 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
26315 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
26316 { (exit 1); exit 1; }; }
26318 if test x"${version}" != x"$PACKAGE_VERSION"; then
26319 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
26320 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
26323 ### Specify what sort of things we'll be editing into Makefile and config.h.
26324 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26349 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
26350 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
26351 ## end of LIBX_BASE, but nothing ever set it.
26356 ## Used in lwlib/Makefile.in.
26371 cat >>confdefs.h
<<_ACEOF
26372 #define EMACS_CONFIGURATION "${canonical}"
26376 cat >>confdefs.h
<<_ACEOF
26377 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26381 cat >>confdefs.h
<<_ACEOF
26382 #define config_machfile "${machfile}"
26386 cat >>confdefs.h
<<_ACEOF
26387 #define config_opsysfile "${opsysfile}"
26393 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26395 cat >>confdefs.h
<<\_ACEOF
26396 #define HAVE_X_WINDOWS 1
26400 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26407 if test "${USE_X_TOOLKIT}" != "none" ; then
26408 WIDGET_OBJ
=widget.o
26410 cat >>confdefs.h
<<\_ACEOF
26411 #define USE_X_TOOLKIT 1
26414 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26416 cat >>confdefs.h
<<\_ACEOF
26417 #define USE_LUCID 1
26420 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26422 cat >>confdefs.h
<<\_ACEOF
26423 #define USE_MOTIF 1
26429 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26430 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
26434 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26435 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26436 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
26440 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26441 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
26444 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
26450 case "$USE_X_TOOLKIT" in
26451 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
26452 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
26453 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
26457 if test "$USE_X_TOOLKIT" = "none"; then
26458 LIBXT_OTHER
="\$(LIBXSM)"
26460 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26464 ## The X Menu stuff is present in the X10 distribution, but missing
26465 ## from X11. If we have X10, just use the installed library;
26466 ## otherwise, use our own copy.
26467 if test "${HAVE_X11}" = "yes" ; then
26469 cat >>confdefs.h
<<\_ACEOF
26474 if test "$USE_X_TOOLKIT" = "none"; then
26475 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
26477 OLDXMENU
="\${lwlibdir}liblw.a"
26479 LIBXMENU
="\$(OLDXMENU)"
26480 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
26487 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
26496 if test "${HAVE_MENUS}" = "yes" ; then
26498 cat >>confdefs.h
<<\_ACEOF
26499 #define HAVE_MENUS 1
26503 if test "${GNU_MALLOC}" = "yes" ; then
26505 cat >>confdefs.h
<<\_ACEOF
26506 #define GNU_MALLOC 1
26510 if test "${REL_ALLOC}" = "yes" ; then
26512 cat >>confdefs.h
<<\_ACEOF
26513 #define REL_ALLOC 1
26519 if test "$opsys" = "cygwin"; then
26520 CYGWIN_OBJ
="sheap.o"
26521 ## Cygwin differs because of its unexec().
26523 POST_ALLOC_OBJ
="lastfile.o vm-limit.o"
26526 PRE_ALLOC_OBJ
=lastfile.o
26527 POST_ALLOC_OBJ
="\$(vmlimitobj)"
26535 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
26538 ## The -headerpad option tells ld (see man page) to leave room at the
26539 ## end of the header for adding load commands. Needed for dumping.
26540 ## 0x690 is the total size of 30 segment load commands (at 56
26541 ## each); under Cocoa 31 commands are required.
26542 if test "$HAVE_NS" = "yes"; then
26543 libs_nsgui
="-framework AppKit"
26544 headerpad_extra
=6C8
26547 headerpad_extra
=690
26549 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26552 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
26557 ## This exists because src/Makefile.in did some extra fiddling around
26558 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26559 ## #ifndef LD_SWITCH_SYSTEM
26560 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26561 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26562 ## not using gcc, darwin system not on an alpha (ie darwin, since
26563 ## darwin + alpha does not occur).
26564 ## Note that unlike L_S_S, this is not used in ac_link.
26565 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26566 test "$opsys" = "darwin"; then
26567 LD_SWITCH_SYSTEM_EXTRA
="-X"
26569 LD_SWITCH_SYSTEM_EXTRA
=
26575 if test "x$GCC" = "xyes"; then
26578 ## cygwin: don't link against static libgcc.
26579 cygwin|freebsd|netbsd|openbsd
) LIB_GCC
= ;;
26582 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26583 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26584 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26585 if test "$machine" = "arm"; then
26588 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26589 ## immediately undefine it again and redefine it to empty.
26590 ## Was the C_SWITCH_X_SITE part really necessary?
26591 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26596 ## Ask GCC where to find libgcc.a.
26597 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26604 ## If we're using X11/GNUstep, define some consequences.
26605 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
26607 cat >>confdefs.h
<<\_ACEOF
26608 #define HAVE_WINDOW_SYSTEM 1
26612 cat >>confdefs.h
<<\_ACEOF
26613 #define HAVE_MOUSE 1
26616 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
26617 TOOLTIP_SUPPORT
="\${lispsource}mouse.elc"
26619 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
26620 test "$HAVE_X_WINDOWS" = "yes" && \
26621 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
26633 #### Report on what we decided to do.
26634 #### Report GTK as a toolkit, even if it doesn't use Xt.
26635 #### It makes printing result more understandable as using GTK sets
26636 #### toolkit_scroll_bars to yes by default.
26637 if test "${HAVE_GTK}" = "yes"; then
26642 Configured for \`${canonical}'.
26644 Where should the build process find the source code? ${srcdir}
26645 What operating system and machine description files should Emacs use?
26646 \`${opsysfile}' and \`${machfile}'
26647 What compiler should emacs be built with? ${CC} ${CFLAGS}
26648 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26649 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26650 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26651 What window system should Emacs use? ${window_system}
26652 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26654 if test -n "${x_includes}"; then
26655 echo " Where do we find X Windows header files? ${x_includes}"
26657 echo " Where do we find X Windows header files? Standard dirs"
26659 if test -n "${x_libraries}"; then
26660 echo " Where do we find X Windows libraries? ${x_libraries}"
26662 echo " Where do we find X Windows libraries? Standard dirs"
26665 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26666 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26667 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26668 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26669 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26670 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26671 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26672 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26673 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26674 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26675 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26677 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26678 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26679 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26680 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26682 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26685 if test $USE_XASSERTS = yes; then
26686 echo " Compiling with asserts turned on."
26687 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
26692 if test "$HAVE_NS" = "yes"; then
26694 echo "You must run \"make install\" in order to test the built application.
26695 The installed application will go to nextstep/Emacs.app and can be
26696 run or moved from there."
26697 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26698 echo "The application will be fully self-contained."
26700 echo "The lisp resources for the application will be installed under ${prefix}.
26701 You may need to run \"make install\" with sudo. The application will fail
26702 to run if these resources are not installed."
26707 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26708 echo "D-Bus integration has been tested for GNU/Linux only."
26713 # Remove any trailing slashes in these variables.
26714 test "${prefix}" != NONE
&&
26715 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26716 test "${exec_prefix}" != NONE
&&
26717 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26719 # Now get this: Some word that is part of the ${srcdir} directory name
26720 # or the ${configuration} value might, just might, happen to be an
26721 # identifier like `sun4' or `i386' or something, and be predefined by
26722 # the C preprocessor to some helpful value like 1, or maybe the empty
26723 # string. Needless to say consequent macro substitutions are less
26724 # than conducive to the makefile finding the correct directory.
26725 cpp_undefs
="`echo $srcdir $configuration $canonical unix mktime register X11 |
26726 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26727 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26729 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26730 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26731 ## from Makefile.c can correctly provide the arg `-traditional' to the
26734 cat >conftest.
$ac_ext <<_ACEOF
26737 cat confdefs.h
>>conftest.
$ac_ext
26738 cat >>conftest.
$ac_ext <<_ACEOF
26739 /* end confdefs.h. */
26742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26743 $EGREP "yes..yes" >/dev
/null
2>&1; then
26744 CPP_NEED_TRADITIONAL
=no
26746 CPP_NEED_TRADITIONAL
=yes
26751 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"
26753 ac_config_commands
="$ac_config_commands default"
26755 cat >confcache
<<\_ACEOF
26756 # This file is a shell script that caches the results of configure
26757 # tests run on this system so they can be shared between configure
26758 # scripts and configure runs, see configure's option --config-cache.
26759 # It is not useful on other systems. If it contains results you don't
26760 # want to keep, you may remove or edit it.
26762 # config.status only pays attention to the cache file if you give it
26763 # the --recheck option to rerun configure.
26765 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26766 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26767 # following values.
26771 # The following way of writing the cache mishandles newlines in values,
26772 # but we know of no workaround that is simple, portable, and efficient.
26773 # So, we kill variables containing newlines.
26774 # Ultrix sh set writes to stderr and can't be redirected directly,
26775 # and sets the high bit in the cache file unless we assign to the vars.
26777 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26778 eval ac_val
=\$
$ac_var
26782 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26783 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26786 _ | IFS | as_nl
) ;; #(
26787 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26788 *) $as_unset $ac_var ;;
26794 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26795 *${as_nl}ac_space
=\
*)
26796 # `set' does not quote correctly, so add quotes (double-quote
26797 # substitution turns \\\\ into \\, and sed turns \\ into \).
26800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26803 # `set' quotes correctly as required by POSIX, so do not add quotes.
26804 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26813 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26815 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26817 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26818 if test -w "$cache_file"; then
26819 test "x$cache_file" != "x/dev/null" &&
26820 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26821 $as_echo "$as_me: updating cache $cache_file" >&6;}
26822 cat confcache
>$cache_file
26824 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26825 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26830 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26831 # Let make expand exec_prefix.
26832 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26834 DEFS
=-DHAVE_CONFIG_H
26838 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26839 # 1. Remove the extension, and $U if already installed.
26840 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26841 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26842 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26843 # will be set to the directory where LIBOBJS objects are built.
26844 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26845 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26847 LIBOBJS
=$ac_libobjs
26849 LTLIBOBJS
=$ac_ltlibobjs
26853 : ${CONFIG_STATUS=./config.status}
26855 ac_clean_files_save
=$ac_clean_files
26856 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26857 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26858 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26859 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26861 # Generated by $as_me.
26862 # Run this file to recreate the current configuration.
26863 # Compiler output produced by configure, useful for debugging
26864 # configure, is in config.log if it exists.
26867 ac_cs_recheck=false
26869 SHELL=\${CONFIG_SHELL-$SHELL}
26872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26873 ## --------------------- ##
26874 ## M4sh Initialization. ##
26875 ## --------------------- ##
26877 # Be more Bourne compatible
26878 DUALCASE
=1; export DUALCASE
# for MKS sh
26879 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26882 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26883 # is contrary to our usage. Disable this feature.
26884 alias -g '${1+"$@"}'='"$@"'
26885 setopt NO_GLOB_SUBST
26887 case `(set -o) 2>/dev/null` in
26888 *posix
*) set -o posix
;;
26897 # Avoid depending upon Character Ranges.
26898 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26899 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26900 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26901 as_cr_digits
='0123456789'
26902 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26907 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26908 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26909 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26910 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26911 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26912 as_echo='printf %s
\n'
26913 as_echo_n='printf %s
'
26915 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26916 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26917 as_echo_n='/usr
/ucb
/echo -n'
26919 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26920 as_echo_n_body='eval
26924 expr "X$arg" : "X\\(.*\\)$as_nl";
26925 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26927 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26929 export as_echo_n_body
26930 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26932 export as_echo_body
26933 as_echo='sh
-c $as_echo_body as_echo
'
26936 # The user is always right.
26937 if test "${PATH_SEPARATOR+set}" != set; then
26939 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26940 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26945 # Support unset when possible.
26946 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26954 # We need space, tab and new line, in precisely that order. Quoting is
26955 # there to prevent editors from complaining about space-tab.
26956 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26957 # splitting by setting IFS to empty value.)
26960 # Find who we are. Look in the path if we contain no directory separator.
26962 *[\\/]* ) as_myself=$0 ;;
26963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26964 for as_dir in $PATH
26967 test -z "$as_dir" && as_dir=.
26968 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26974 # We did not find ourselves, most probably we were run as `sh COMMAND'
26975 # in which case we are not to be found in the path.
26976 if test "x$as_myself" = x
; then
26979 if test ! -f "$as_myself"; then
26980 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26981 { (exit 1); exit 1; }
26984 # Work around bugs in pre-3.0 UWIN ksh.
26985 for as_var
in ENV MAIL MAILPATH
26986 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26998 # Required to use basename.
26999 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27000 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27006 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27007 as_basename
=basename
27013 # Name of the executable.
27014 as_me
=`$as_basename -- "$0" ||
27015 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27016 X"$0" : 'X\(//\)$' \| \
27017 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27019 sed '/^.*\/\([^/][^/]*\)\/*$/{
27038 as_lineno_1
=$LINENO
27039 as_lineno_2
=$LINENO
27040 test "x$as_lineno_1" != "x$as_lineno_2" &&
27041 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27043 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27044 # uniformly replaced by the line number. The first 'sed' inserts a
27045 # line-number line after each line using $LINENO; the second 'sed'
27046 # does the real work. The second script uses 'N' to pair each
27047 # line-number line with the line containing $LINENO, and appends
27048 # trailing '-' during substitution so that $LINENO is not a special
27049 # case at line end.
27050 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27051 # scripts with optimization help from Paolo Bonzini. Blame Lee
27052 # E. McMahon (1931-1989) for sed's syntax. :-)
27064 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27067 ' >$as_me.lineno
&&
27068 chmod +x
"$as_me.lineno" ||
27069 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27070 { (exit 1); exit 1; }; }
27072 # Don't try to exec as it changes $[0], causing all sort of problems
27073 # (the dirname of $[0] is not the place where we might find the
27074 # original and so on. Autoconf is especially sensitive to this).
27075 .
"./$as_me.lineno"
27076 # Exit status is that of the last command.
27081 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27087 ECHO_C
= ECHO_N
= ECHO_T
=
27088 case `echo -n x` in
27090 case `echo 'x\c'` in
27091 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27097 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27098 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27104 rm -f conf$$ conf$$.exe conf$$.
file
27105 if test -d conf$$.dir
; then
27106 rm -f conf$$.dir
/conf$$.
file
27109 mkdir conf$$.dir
2>/dev
/null
27111 if (echo >conf$$.
file) 2>/dev
/null
; then
27112 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27114 # ... but there are two gotchas:
27115 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27116 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27117 # In both cases, we have to default to `cp -p'.
27118 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27120 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27128 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27129 rmdir conf$$.dir
2>/dev
/null
27131 if mkdir
-p .
2>/dev
/null
; then
27134 test -d .
/-p && rmdir .
/-p
27138 if test -x / >/dev
/null
2>&1; then
27139 as_test_x
='test -x'
27141 if ls -dL / >/dev
/null
2>&1; then
27148 if test -d "$1"; then
27154 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27155 ???[sx]*):;;*)false;;esac;fi
27159 as_executable_p
=$as_test_x
27161 # Sed expression to map a string onto a valid CPP name.
27162 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27164 # Sed expression to map a string onto a valid variable name.
27165 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27170 # Save the log message, to keep $[0] and so on meaningful, and to
27171 # report actual input values of CONFIG_FILES etc. instead of their
27172 # values after options handling.
27174 This file was extended by emacs $as_me 24.0.50, which was
27175 generated by GNU Autoconf 2.62. Invocation command line was
27177 CONFIG_FILES = $CONFIG_FILES
27178 CONFIG_HEADERS = $CONFIG_HEADERS
27179 CONFIG_LINKS = $CONFIG_LINKS
27180 CONFIG_COMMANDS = $CONFIG_COMMANDS
27183 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27189 # Files that config.status was made for.
27190 config_files="$ac_config_files"
27191 config_headers="$ac_config_headers"
27192 config_commands="$ac_config_commands"
27196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27198 \`$as_me' instantiates files from templates according to the
27199 current configuration.
27201 Usage: $0 [OPTIONS] [FILE]...
27203 -h, --help print this help, then exit
27204 -V, --version print version number and configuration settings, then exit
27205 -q, --quiet do not print progress messages
27206 -d, --debug don't remove temporary files
27207 --recheck update $as_me by reconfiguring in the same conditions
27208 --file=FILE[:TEMPLATE]
27209 instantiate the configuration file FILE
27210 --header=FILE[:TEMPLATE]
27211 instantiate the configuration header FILE
27213 Configuration files:
27216 Configuration headers:
27219 Configuration commands:
27222 Report bugs to <bug-autoconf@gnu.org>."
27225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27227 emacs config.status 24.0.50
27228 configured by $0, generated by GNU Autoconf 2.62,
27229 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27231 Copyright (C) 2008 Free Software Foundation, Inc.
27232 This config.status script is free software; the Free Software Foundation
27233 gives unlimited permission to copy, distribute and modify it."
27238 test -n "\$AWK" || AWK=awk
27241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27242 # The default lists apply if the user does not specify any file.
27248 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27249 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27260 # Handling of the options.
27261 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27263 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27264 $as_echo "$ac_cs_version"; exit ;;
27265 --debug |
--debu |
--deb |
--de |
--d |
-d )
27267 --file |
--fil |
--fi |
--f )
27270 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27272 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
27273 ac_need_defaults
=false
;;
27274 --header |
--heade |
--head |
--hea )
27277 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27279 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
27280 ac_need_defaults
=false
;;
27282 # Conflict between --help and --header
27283 { $as_echo "$as_me: error: ambiguous option: $1
27284 Try \`$0 --help' for more information." >&2
27285 { (exit 1); exit 1; }; };;
27286 --help |
--hel |
-h )
27287 $as_echo "$ac_cs_usage"; exit ;;
27288 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27289 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27292 # This is an error.
27293 -*) { $as_echo "$as_me: error: unrecognized option: $1
27294 Try \`$0 --help' for more information." >&2
27295 { (exit 1); exit 1; }; } ;;
27297 *) ac_config_targets
="$ac_config_targets $1"
27298 ac_need_defaults
=false
;;
27304 ac_configure_extra_args
=
27306 if $ac_cs_silent; then
27308 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27313 if \$ac_cs_recheck; then
27314 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27316 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27317 CONFIG_SHELL='$SHELL'
27318 export CONFIG_SHELL
27323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27327 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27328 ## Running $as_me. ##
27334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27338 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27344 # Handling of arguments.
27345 for ac_config_target
in $ac_config_targets
27347 case $ac_config_target in
27348 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27349 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27350 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
27351 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
27352 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
27353 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
27354 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
27355 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
27356 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27357 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
27358 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
27359 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
27360 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27362 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27363 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27364 { (exit 1); exit 1; }; };;
27369 # If the user did not use the arguments to specify the items to instantiate,
27370 # then the envvar interface is used. Set only those that are not.
27371 # We use the long form for the default assignment because of an extremely
27372 # bizarre bug on SunOS 4.1.3.
27373 if $ac_need_defaults; then
27374 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27375 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27376 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27379 # Have a temporary directory for convenience. Make it in the build tree
27380 # simply because there is no reason against having it here, and in addition,
27381 # creating and moving files from /tmp can sometimes cause problems.
27382 # Hook for its removal unless debugging.
27383 # Note that there is a small window in which the directory will not be cleaned:
27384 # after its creation but before its name has been assigned to `$tmp'.
27388 trap 'exit_status=$?
27389 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27391 trap '{ (exit 1); exit 1; }' 1 2 13 15
27393 # Create a (secure) tmp directory for tmp files.
27396 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27397 test -n "$tmp" && test -d "$tmp"
27400 tmp
=.
/conf$$
-$RANDOM
27401 (umask 077 && mkdir
"$tmp")
27404 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27405 { (exit 1); exit 1; }
27408 # Set up the scripts for CONFIG_FILES section.
27409 # No need to generate them if there are no CONFIG_FILES.
27410 # This happens for instance with `./config.status config.h'.
27411 if test -n "$CONFIG_FILES"; then
27415 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27416 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27419 ac_cs_awk_cr
=$ac_cr
27422 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27427 echo "cat >conf$$subs.awk <<_ACEOF" &&
27428 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27430 } >conf$$subs.sh ||
27431 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27432 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27433 { (exit 1); exit 1; }; }
27434 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27436 for ac_last_try in false false false false false :; do
27437 . ./conf$$subs.sh ||
27438 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27439 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27440 { (exit 1); exit 1; }; }
27442 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27444 elif $ac_last_try; then
27445 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27446 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27447 { (exit 1); exit 1; }; }
27449 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27452 rm -f conf$$subs.sh
27454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27455 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27459 s/^/S["/; s
/!.
*/"]=/
27469 s/\(.\{148\}\).*/\1/
27471 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27476 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27483 s/\(.\{148\}\).*/\1/
27485 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27489 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27494 ' <conf$$subs.awk | sed '
27499 ' >>$CONFIG_STATUS || ac_write_fail=1
27500 rm -f conf$$subs.awk
27501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27503 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27504 for (key in S) S_is_set[key] = 1
27510 nfields = split(line, field, "@
")
27512 len = length(field[1])
27513 for (i = 2; i < nfields; i++) {
27515 keylen = length(key)
27516 if (S_is_set[key]) {
27518 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27519 len += length(value) + length(field[++i])
27530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27531 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27532 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27535 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27536 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
27537 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
27538 { (exit 1); exit 1; }; }
27541 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27542 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27543 # trailing colons and then remove the whole line if VPATH becomes empty
27544 # (actually we leave an empty line to preserve line numbers).
27545 if test "x
$srcdir" = x.; then
27546 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27547 s/:*\$(srcdir):*/:/
27548 s/:*\${srcdir}:*/:/
27550 s/^\([^=]*=[ ]*\):*/\1/
27556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27557 fi # test -n "$CONFIG_FILES"
27559 # Set up the scripts for CONFIG_HEADERS section.
27560 # No need to generate them if there are no CONFIG_HEADERS.
27561 # This happens for instance with `./config.status Makefile'.
27562 if test -n "$CONFIG_HEADERS"; then
27563 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27567 # Transform confdefs.h into an awk script `defines.awk', embedded as
27568 # here-document in config.status, that substitutes the proper values into
27569 # config.h.in to produce config.h.
27571 # Create a delimiter string that does not exist in confdefs.h, to ease
27572 # handling of long lines.
27574 for ac_last_try in false false :; do
27575 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27576 if test -z "$ac_t"; then
27578 elif $ac_last_try; then
27579 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
27580 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
27581 { (exit 1); exit 1; }; }
27583 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27587 # For the awk script, D is an array of macro values keyed by name,
27588 # likewise P contains macro parameters if any. Preserve backslash
27589 # newline sequences.
27591 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27593 s/.\{148\}/&'"$ac_delim"'/g
27596 s/^[ ]*#[ ]*define[ ][ ]*/ /
27603 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27605 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27609 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27610 D["\
1"]=" \
3\\\\\\n
"\\/p
27612 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27617 s/.\{148\}/&'"$ac_delim"'/g
27622 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27625 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27627 ' <confdefs.h | sed '
27628 s/'"$ac_delim"'/"\\\
27629 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27632 for (key in D) D_is_set[key] = 1
27635 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27637 split(line, arg, " ")
27638 if (arg[1] == "#") {
27642 defundef
= substr
(arg
[1], 2)
27645 split(mac1
, mac2
, "(") #)
27647 if (D_is_set
[macro
]) {
27648 # Preserve the white space surrounding the "#".
27649 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27650 print prefix
"define", macro P
[macro
] D
[macro
]
27653 # Replace #undef with comments. This is necessary, for example,
27654 # in the case of _POSIX_SOURCE, which is predefined and required
27655 # on some systems where configure will not decide to define it.
27656 if (defundef
== "undef") {
27657 print
"/*", line
, "*/"
27665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27666 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27667 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27668 { (exit 1); exit 1; }; }
27669 fi # test -n "$CONFIG_HEADERS"
27672 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27677 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27679 case $ac_mode$ac_tag in
27681 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27682 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27683 { (exit 1); exit 1; }; };;
27684 :[FH
]-) ac_tag
=-:-;;
27685 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27702 -) ac_f
="$tmp/stdin";;
27703 *) # Look for the file first in the build tree, then in the source tree
27704 # (if the path is not absolute). The absolute path cannot be DOS-style,
27705 # because $ac_f cannot contain `:'.
27709 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27711 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27712 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27713 { (exit 1); exit 1; }; };;
27715 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27716 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27719 # Let's still pretend it is `configure' which instantiates (i.e., don't
27720 # use $as_me), people would be surprised to read:
27721 # /* config.h. Generated by config.status. */
27722 configure_input
='Generated from '`
27723 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27725 if test x
"$ac_file" != x-
; then
27726 configure_input
="$ac_file. $configure_input"
27727 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27728 $as_echo "$as_me: creating $ac_file" >&6;}
27730 # Neutralize special characters interpreted by sed in replacement strings.
27731 case $configure_input in #(
27732 *\
&* |
*\|
* |
*\\* )
27733 ac_sed_conf_input
=`$as_echo "$configure_input" |
27734 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27735 *) ac_sed_conf_input
=$configure_input;;
27739 *:-:* |
*:-) cat >"$tmp/stdin" \
27740 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27741 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27742 { (exit 1); exit 1; }; } ;;
27747 ac_dir
=`$as_dirname -- "$ac_file" ||
27748 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27749 X"$ac_file" : 'X\(//\)[^/]' \| \
27750 X"$ac_file" : 'X\(//\)$' \| \
27751 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27752 $as_echo X"$ac_file" |
27753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27757 /^X\(\/\/\)[^/].*/{
27772 -*) as_dir
=.
/$as_dir;;
27774 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27778 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27779 *) as_qdir
=$as_dir;;
27781 as_dirs
="'$as_qdir' $as_dirs"
27782 as_dir
=`$as_dirname -- "$as_dir" ||
27783 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27784 X"$as_dir" : 'X\(//\)[^/]' \| \
27785 X"$as_dir" : 'X\(//\)$' \| \
27786 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27787 $as_echo X"$as_dir" |
27788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27792 /^X\(\/\/\)[^/].*/{
27805 test -d "$as_dir" && break
27807 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27808 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27809 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27810 { (exit 1); exit 1; }; }; }
27814 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27816 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27817 # A ".." for each directory in $ac_dir_suffix.
27818 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27819 case $ac_top_builddir_sub in
27820 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27821 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27824 ac_abs_top_builddir
=$ac_pwd
27825 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27826 # for backward compatibility:
27827 ac_top_builddir
=$ac_top_build_prefix
27830 .
) # We are building in place.
27832 ac_top_srcdir
=$ac_top_builddir_sub
27833 ac_abs_top_srcdir
=$ac_pwd ;;
27834 [\\/]* | ?
:[\\/]* ) # Absolute name.
27835 ac_srcdir
=$srcdir$ac_dir_suffix;
27836 ac_top_srcdir
=$srcdir
27837 ac_abs_top_srcdir
=$srcdir ;;
27838 *) # Relative name.
27839 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27840 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27841 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27843 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27853 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27854 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27859 # If the template does not know about datarootdir, expand it.
27860 # FIXME: This hack should be removed a few years after 2.60.
27861 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27874 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27875 *datarootdir
*) ac_datarootdir_seen
=yes;;
27876 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27877 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27878 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27881 ac_datarootdir_hack='
27882 s&@datadir@&$datadir&g
27883 s&@docdir@&$docdir&g
27884 s&@infodir@&$infodir&g
27885 s&@localedir@&$localedir&g
27886 s&@mandir@&$mandir&g
27887 s&\\\${datarootdir}&$datarootdir&g' ;;
27891 # Neutralize VPATH when `$srcdir' = `.'.
27892 # Shell code in configure.ac might set extrasub.
27893 # FIXME: do we really want to maintain this feature?
27894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27895 ac_sed_extra="$ac_vpsub
27898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27900 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27901 s|@configure_input@|
$ac_sed_conf_input|
;t t
27902 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27903 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27904 s
&@srcdir@
&$ac_srcdir&;t t
27905 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27906 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27907 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27908 s
&@builddir@
&$ac_builddir&;t t
27909 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27910 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27911 s
&@INSTALL@
&$ac_INSTALL&;t t
27912 $ac_datarootdir_hack
27914 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27915 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27916 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27917 { (exit 1); exit 1; }; }
27919 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27920 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27921 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27922 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27923 which seems to be undefined. Please make sure it is defined." >&5
27924 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27925 which seems to be undefined. Please make sure it is defined." >&2;}
27929 -) cat "$tmp/out" && rm -f "$tmp/out";;
27930 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27932 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27933 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27934 { (exit 1); exit 1; }; }
27940 if test x"$ac_file" != x-; then
27942 $as_echo "/* $configure_input */" \
27943 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27944 } >"$tmp/config.h" \
27945 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27946 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27947 { (exit 1); exit 1; }; }
27948 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27949 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27950 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27953 mv "$tmp/config.h" "$ac_file" \
27954 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27955 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27956 { (exit 1); exit 1; }; }
27959 $as_echo "/* $configure_input */" \
27960 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27961 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27962 $as_echo "$as_me: error: could not create -" >&2;}
27963 { (exit 1); exit 1; }; }
27967 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27968 $as_echo "$as_me: executing $ac_file commands" >&6;}
27973 case $ac_file$ac_mode in
27976 ### Make the necessary directories, if they don't exist.
27977 for dir
in etc lisp
; do
27978 test -d ${dir} || mkdir
${dir}
27981 # Build src/Makefile from ${srcdir}/src/Makefile.c
27982 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27983 # This must be done after src/config.h is built, since we rely on that file.
27985 echo creating src
/epaths.h
27986 ${MAKE-make} epaths-force
27988 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27989 # `..' to `. .' unless invoked with -traditional
27991 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27992 CPPFLAGS
="$CPPFLAGS -traditional"
27995 echo creating src
/Makefile
27997 rm -f junk.c junk1.c junk2.c
27998 sed -e '/start of cpp stuff/q' \
27999 < Makefile.c
> junk1.c
28000 sed -e '1,/start of cpp stuff/d'\
28001 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28002 < Makefile.c
> junk.c
28003 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
28004 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28005 cat junk1.c junk2.c
> Makefile.new
28006 rm -f junk.c junk1.c junk2.c
28007 chmod 444 Makefile.new
28008 mv -f Makefile.new Makefile
28011 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
28012 echo creating src
/.gdbinit
28013 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
28022 { (exit 0); exit 0; }
28024 chmod +x
$CONFIG_STATUS
28025 ac_clean_files
=$ac_clean_files_save
28027 test $ac_write_fail = 0 ||
28028 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28029 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28030 { (exit 1); exit 1; }; }
28033 # configure is writing to config.log, and then calls config.status.
28034 # config.status does its own redirection, appending to config.log.
28035 # Unfortunately, on DOS this fails, as config.log is still kept open
28036 # by configure, so config.status won't be able to write to it; its
28037 # output is simply discarded. So we exec the FD to /dev/null,
28038 # effectively closing config.log, so it can be properly (re)opened and
28039 # appended to by config.status. When coming back to configure, we
28040 # need to make the FD available again.
28041 if test "$no_create" != yes; then
28043 ac_config_status_args
=
28044 test "$silent" = yes &&
28045 ac_config_status_args
="$ac_config_status_args --quiet"
28047 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28049 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28050 # would make configure fail if this is the last instruction.
28051 $ac_cs_success ||
{ (exit 1); exit 1; }
28053 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28054 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
28055 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}