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
721 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
783 x_default_search_path
815 LD_SWITCH_SYSTEM_TEMACS
816 LD_SWITCH_SYSTEM_EXTRA
824 enable_option_checking
844 with_toolkit_scroll_bars
858 enable_ns_self_contained
860 enable_maintainer_mode
868 ac_precious_vars
='build_alias
880 # Initialize some variables set by options.
882 ac_init_version
=false
883 ac_unrecognized_opts
=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
894 program_transform_name
=s
,x
,x
,
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir
='${exec_prefix}/bin'
909 sbindir
='${exec_prefix}/sbin'
910 libexecdir
='${exec_prefix}/libexec'
911 datarootdir
='${prefix}/share'
912 datadir
='${datarootdir}'
913 sysconfdir
='${prefix}/etc'
914 sharedstatedir
='${prefix}/com'
915 localstatedir
='${prefix}/var'
916 includedir
='${prefix}/include'
917 oldincludedir
='/usr/include'
918 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir
='${datarootdir}/info'
924 libdir
='${exec_prefix}/lib'
925 localedir
='${datarootdir}/locale'
926 mandir
='${datarootdir}/man'
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\
$ac_option
940 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 # Accept the important Cygnus configure options, so we can diagnose typos.
946 case $ac_dashdash$ac_option in
950 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
952 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
955 -build |
--build |
--buil |
--bui |
--bu)
956 ac_prev
=build_alias
;;
957 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
958 build_alias
=$ac_optarg ;;
960 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
961 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
962 ac_prev
=cache_file
;;
963 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
964 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
965 cache_file
=$ac_optarg ;;
968 cache_file
=config.cache
;;
970 -datadir |
--datadir |
--datadi |
--datad)
972 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
973 datadir
=$ac_optarg ;;
975 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
976 |
--dataroo |
--dataro |
--datar)
977 ac_prev
=datarootdir
;;
978 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
979 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
980 datarootdir
=$ac_optarg ;;
982 -disable-* |
--disable-*)
983 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
986 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
987 { (exit 1); exit 1; }; }
988 ac_useropt_orig
=$ac_useropt
989 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
994 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep
=', ';;
997 eval enable_
$ac_useropt=no
;;
999 -docdir |
--docdir |
--docdi |
--doc |
--do)
1001 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1002 docdir
=$ac_optarg ;;
1004 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1006 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1007 dvidir
=$ac_optarg ;;
1009 -enable-* |
--enable-*)
1010 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1013 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1014 { (exit 1); exit 1; }; }
1015 ac_useropt_orig
=$ac_useropt
1016 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1019 "enable_
$ac_useropt"
1021 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep
=', ';;
1024 eval enable_
$ac_useropt=\
$ac_optarg ;;
1026 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1027 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1028 |
--exec |
--exe |
--ex)
1029 ac_prev
=exec_prefix
;;
1030 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1031 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1032 |
--exec=* |
--exe=* |
--ex=*)
1033 exec_prefix
=$ac_optarg ;;
1035 -gas |
--gas |
--ga |
--g)
1036 # Obsolete; use --with-gas.
1039 -help |
--help |
--hel |
--he |
-h)
1040 ac_init_help
=long
;;
1041 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1042 ac_init_help
=recursive
;;
1043 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1044 ac_init_help
=short
;;
1046 -host |
--host |
--hos |
--ho)
1047 ac_prev
=host_alias
;;
1048 -host=* |
--host=* |
--hos=* |
--ho=*)
1049 host_alias
=$ac_optarg ;;
1051 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1053 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1055 htmldir
=$ac_optarg ;;
1057 -includedir |
--includedir |
--includedi |
--included |
--include \
1058 |
--includ |
--inclu |
--incl |
--inc)
1059 ac_prev
=includedir
;;
1060 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1061 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1062 includedir
=$ac_optarg ;;
1064 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1066 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1067 infodir
=$ac_optarg ;;
1069 -libdir |
--libdir |
--libdi |
--libd)
1071 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1072 libdir
=$ac_optarg ;;
1074 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1075 |
--libexe |
--libex |
--libe)
1076 ac_prev
=libexecdir
;;
1077 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1078 |
--libexe=* |
--libex=* |
--libe=*)
1079 libexecdir
=$ac_optarg ;;
1081 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1082 ac_prev
=localedir
;;
1083 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1084 localedir
=$ac_optarg ;;
1086 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1087 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1088 ac_prev
=localstatedir
;;
1089 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1090 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1091 localstatedir
=$ac_optarg ;;
1093 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1095 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1096 mandir
=$ac_optarg ;;
1098 -nfp |
--nfp |
--nf)
1099 # Obsolete; use --without-fp.
1102 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1103 |
--no-cr |
--no-c |
-n)
1106 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1107 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1110 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1111 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1112 |
--oldin |
--oldi |
--old |
--ol |
--o)
1113 ac_prev
=oldincludedir
;;
1114 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1115 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1116 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1117 oldincludedir
=$ac_optarg ;;
1119 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1121 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1122 prefix
=$ac_optarg ;;
1124 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1125 |
--program-pre |
--program-pr |
--program-p)
1126 ac_prev
=program_prefix
;;
1127 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1128 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1129 program_prefix
=$ac_optarg ;;
1131 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1132 |
--program-suf |
--program-su |
--program-s)
1133 ac_prev
=program_suffix
;;
1134 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1135 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1136 program_suffix
=$ac_optarg ;;
1138 -program-transform-name |
--program-transform-name \
1139 |
--program-transform-nam |
--program-transform-na \
1140 |
--program-transform-n |
--program-transform- \
1141 |
--program-transform |
--program-transfor \
1142 |
--program-transfo |
--program-transf \
1143 |
--program-trans |
--program-tran \
1144 |
--progr-tra |
--program-tr |
--program-t)
1145 ac_prev
=program_transform_name
;;
1146 -program-transform-name=* |
--program-transform-name=* \
1147 |
--program-transform-nam=* |
--program-transform-na=* \
1148 |
--program-transform-n=* |
--program-transform-=* \
1149 |
--program-transform=* |
--program-transfor=* \
1150 |
--program-transfo=* |
--program-transf=* \
1151 |
--program-trans=* |
--program-tran=* \
1152 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1153 program_transform_name
=$ac_optarg ;;
1155 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1157 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1158 pdfdir
=$ac_optarg ;;
1160 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1162 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1165 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1166 |
-silent |
--silent |
--silen |
--sile |
--sil)
1169 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1171 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1173 sbindir
=$ac_optarg ;;
1175 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1176 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1177 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1179 ac_prev
=sharedstatedir
;;
1180 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1181 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1182 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1184 sharedstatedir
=$ac_optarg ;;
1186 -site |
--site |
--sit)
1188 -site=* |
--site=* |
--sit=*)
1191 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1193 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1194 srcdir
=$ac_optarg ;;
1196 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1197 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1198 ac_prev
=sysconfdir
;;
1199 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1200 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1201 sysconfdir
=$ac_optarg ;;
1203 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1204 ac_prev
=target_alias
;;
1205 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1206 target_alias
=$ac_optarg ;;
1208 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1211 -version |
--version |
--versio |
--versi |
--vers |
-V)
1212 ac_init_version
=: ;;
1215 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_useropt_orig
=$ac_useropt
1221 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1226 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep
=', ';;
1229 eval with_
$ac_useropt=\
$ac_optarg ;;
1231 -without-* |
--without-*)
1232 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1235 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_useropt_orig
=$ac_useropt
1238 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1243 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep
=', ';;
1246 eval with_
$ac_useropt=no
;;
1249 # Obsolete; use --with-x.
1252 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1253 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1254 ac_prev
=x_includes
;;
1255 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1256 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1257 x_includes
=$ac_optarg ;;
1259 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1260 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1261 ac_prev
=x_libraries
;;
1262 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1263 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1264 x_libraries
=$ac_optarg ;;
1266 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1267 Try \`$0 --help' for more information." >&2
1268 { (exit 1); exit 1; }; }
1272 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1275 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1276 { (exit 1); exit 1; }; }
1277 eval $ac_envvar=\
$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1291 if test -n "$ac_prev"; then
1292 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1293 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1294 { (exit 1); exit 1; }; }
1297 if test -n "$ac_unrecognized_opts"; then
1298 case $enable_option_checking in
1300 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1301 { (exit 1); exit 1; }; } ;;
1302 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1306 # Check all directory arguments for consistency.
1307 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir
1312 eval ac_val
=\$
$ac_var
1313 # Remove trailing slashes.
1316 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317 eval $ac_var=\
$ac_val;;
1319 # Be sure to have absolute directory names.
1321 [\\/$
]* | ?
:[\\/]* ) continue;;
1322 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1324 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1325 { (exit 1); exit 1; }; }
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1333 target
=$target_alias
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x
; then
1337 if test "x$build_alias" = x
; then
1338 cross_compiling
=maybe
1339 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340 If a cross compiler is detected then cross compile mode will be used." >&2
1341 elif test "x$build_alias" != "x$host_alias"; then
1347 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1349 test "$silent" = yes && exec 6>/dev
/null
1352 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di
=`ls -di .` &&
1354 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1355 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1356 { (exit 1); exit 1; }; }
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1359 { (exit 1); exit 1; }; }
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted
=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir
=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1394 ac_srcdir_defaulted
=no
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1398 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1399 { (exit 1); exit 1; }; }
1401 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1403 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1404 { (exit 1); exit 1; }; }
1406 # When building in place, set srcdir=.
1407 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410 # Remove unnecessary trailing slashes from srcdir.
1411 # Double slashes in file names in object file debugging info
1412 # mess up M-x gdb in Emacs.
1414 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1416 for ac_var
in $ac_precious_vars; do
1417 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1418 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1419 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1420 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1424 # Report the --help message.
1426 if test "$ac_init_help" = "long"; then
1427 # Omit some internal or obsolete options to make the list less imposing.
1428 # This message is too long to be a string in the A/UX 3.1 sh.
1430 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1432 Usage: $0 [OPTION]... [VAR=VALUE]...
1434 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435 VAR=VALUE. See below for descriptions of some of the useful variables.
1437 Defaults for the options are specified in brackets.
1440 -h, --help display this help and exit
1441 --help=short display options specific to this package
1442 --help=recursive display the short help of all the included packages
1443 -V, --version display version information and exit
1444 -q, --quiet, --silent do not print \`checking...' messages
1445 --cache-file=FILE cache test results in FILE [disabled]
1446 -C, --config-cache alias for \`--cache-file=config.cache'
1447 -n, --no-create do not create output files
1448 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450 Installation directories:
1451 --prefix=PREFIX install architecture-independent files in PREFIX
1452 [$ac_default_prefix]
1453 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1456 By default, \`make install' will install all the files in
1457 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1458 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459 for instance \`--prefix=\$HOME'.
1461 For better control, use the options below.
1463 Fine tuning of the installation directories:
1464 --bindir=DIR user executables [EPREFIX/bin]
1465 --sbindir=DIR system admin executables [EPREFIX/sbin]
1466 --libexecdir=DIR program executables [EPREFIX/libexec]
1467 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1468 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1469 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1470 --libdir=DIR object code libraries [EPREFIX/lib]
1471 --includedir=DIR C header files [PREFIX/include]
1472 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1473 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1474 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1475 --infodir=DIR info documentation [DATAROOTDIR/info]
1476 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1477 --mandir=DIR man documentation [DATAROOTDIR/man]
1478 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1479 --htmldir=DIR html documentation [DOCDIR]
1480 --dvidir=DIR dvi documentation [DOCDIR]
1481 --pdfdir=DIR pdf documentation [DOCDIR]
1482 --psdir=DIR ps documentation [DOCDIR]
1488 --program-prefix=PREFIX prepend PREFIX to installed program names
1489 --program-suffix=SUFFIX append SUFFIX to installed program names
1490 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1493 --x-includes=DIR X include files are
in DIR
1494 --x-libraries=DIR X library files are
in DIR
1497 --build=BUILD configure
for building on BUILD
[guessed
]
1498 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1502 if test -n "$ac_init_help"; then
1503 case $ac_init_help in
1504 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1509 --disable-option-checking ignore unrecognized
--enable/--with options
1510 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1511 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1512 --disable-ns-self-contained
1513 disable self contained build under NeXTstep
1514 --enable-asserts compile code with asserts enabled
1515 --enable-maintainer-mode
1516 enable make rules and dependencies not useful
(and
1517 sometimes confusing
) to the casual installer
1518 --enable-locallisppath=PATH
1519 directories Emacs should search
for lisp files
1520 specific to this site
1521 --enable-checking[=LIST
]
1522 enable expensive run-time checks. With LIST
, enable
1523 only specific categories of checks. Categories are
:
1524 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1525 stringfreelist
, xmallocoverrun
, conslist
1526 --enable-profiling build emacs with profiling support. This might not
1527 work on all platforms
1528 --enable-autodepend automatically generate dependencies to .h-files.
1529 Requires GNU Make and Gcc. Enabled
if GNU Make and
1531 --disable-largefile omit support
for large files
1534 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1535 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1536 --without-pop don
't support POP mail retrieval with movemail
1537 --with-kerberos support Kerberos-authenticated POP
1538 --with-kerberos5 support Kerberos version 5 authenticated POP
1539 --with-hesiod support Hesiod to get the POP server host
1540 --with-mmdf support MMDF mailboxes
1541 --with-mail-unlink unlink, rather than empty, mail spool after reading
1542 --with-mailhost=HOSTNAME
1543 string giving default POP mail host
1544 --without-sound don't compile with sound support
1545 --without-sync-input process async input synchronously
1546 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1548 --without-xpm don
't compile with XPM image support
1549 --without-jpeg don't compile with JPEG image support
1550 --without-tiff don
't compile with TIFF image support
1551 --without-gif don't compile with GIF image support
1552 --without-png don
't compile with PNG image support
1553 --without-rsvg don't compile with SVG image support
1554 --without-xft don
't use XFT for anti aliased fonts
1555 --without-libotf don't use libotf
for OpenType font support
1556 --without-m17n-flt don
't use m17n-flt for text shaping
1557 --without-toolkit-scroll-bars
1558 don't use Motif or Xaw3d scroll bars
1559 --without-xaw3d don
't use Xaw3d
1560 --without-xim don't use X11 XIM
1561 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1562 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1564 --without-dbus don't compile with D-Bus support
1565 --without-gconf don
't compile with GConf support
1566 --without-selinux don't compile with SELinux support
1567 --without-makeinfo don
't require makeinfo for building manuals
1569 --with-pkg-config-prog=PATH
1570 path to pkg-config for finding GTK and librsvg
1571 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1572 /usr/lib, or /usr/lib64 on some platforms.
1573 --with-gnustep-conf=PATH
1574 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1575 or /etc/GNUstep/GNUstep.conf
1576 --with-x use the X Window System
1578 Some influential environment variables:
1579 CC C compiler command
1580 CFLAGS C compiler flags
1581 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1582 nonstandard directory <lib dir>
1583 LIBS libraries to pass to the linker, e.g. -l<library>
1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
1587 XMKMF Path to xmkmf, Makefile generator for X Window System
1589 Use these variables to override the choices made by `configure' or to
help
1590 it to
find libraries and programs with nonstandard names
/locations.
1596 if test "$ac_init_help" = "recursive"; then
1597 # If there are subdirs, report their specific --help.
1598 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1599 test -d "$ac_dir" ||
1600 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1605 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1607 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608 # A ".." for each directory in $ac_dir_suffix.
1609 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610 case $ac_top_builddir_sub in
1611 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1612 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1615 ac_abs_top_builddir
=$ac_pwd
1616 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir
=$ac_top_build_prefix
1621 .
) # We are building in place.
1623 ac_top_srcdir
=$ac_top_builddir_sub
1624 ac_abs_top_srcdir
=$ac_pwd ;;
1625 [\\/]* | ?
:[\\/]* ) # Absolute name.
1626 ac_srcdir
=$srcdir$ac_dir_suffix;
1627 ac_top_srcdir
=$srcdir
1628 ac_abs_top_srcdir
=$srcdir ;;
1630 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1632 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1634 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1636 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1637 # Check for guested configure.
1638 if test -f "$ac_srcdir/configure.gnu"; then
1640 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641 elif test -f "$ac_srcdir/configure"; then
1643 $SHELL "$ac_srcdir/configure" --help=recursive
1645 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1651 test -n "$ac_init_help" && exit $ac_status
1652 if $ac_init_version; then
1654 emacs configure
24.0.50
1655 generated by GNU Autoconf
2.62
1657 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1658 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1659 This configure
script is free software
; the Free Software Foundation
1660 gives unlimited permission to copy
, distribute and modify it.
1664 cat >config.log
<<_ACEOF
1665 This file contains any messages produced by compilers while
1666 running configure, to aid debugging if configure makes a mistake.
1668 It was created by emacs $as_me 24.0.50, which was
1669 generated by GNU Autoconf 2.62. Invocation command line was
1681 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1682 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1683 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1684 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1685 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1687 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1688 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1690 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1691 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1692 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1693 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1694 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1695 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1696 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1700 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir
=.
1705 $as_echo "PATH: $as_dir"
1721 # Keep a trace of the command line.
1722 # Strip out --no-create and --no-recursion so they do not pile up.
1723 # Strip out --silent because we don't want to record it for future runs.
1724 # Also quote any args containing shell meta-characters.
1725 # Make two passes to allow for proper duplicate-argument suppression.
1729 ac_must_keep_next
=false
1735 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1736 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1737 |
-silent |
--silent |
--silen |
--sile |
--sil)
1740 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1743 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1745 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1746 if test $ac_must_keep_next = true
; then
1747 ac_must_keep_next
=false
# Got value, back to normal.
1750 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1751 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1752 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1753 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1754 case "$ac_configure_args0 " in
1755 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1758 -* ) ac_must_keep_next
=true
;;
1761 ac_configure_args
="$ac_configure_args '$ac_arg'"
1766 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1767 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1769 # When interrupted or exit'd, cleanup temporary files, and complete
1770 # config.log. We remove comments because anyway the quotes in there
1771 # would cause problems or look ugly.
1772 # WARNING: Use '\'' to represent an apostrophe within the trap.
1773 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1774 trap 'exit_status=$?
1775 # Save into config.log some information that might help in debugging.
1780 ## ---------------- ##
1781 ## Cache variables. ##
1782 ## ---------------- ##
1785 # The following way of writing the cache mishandles newlines in values,
1787 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1788 eval ac_val=\$$ac_var
1792 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1793 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1796 _ | IFS | as_nl) ;; #(
1797 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1798 *) $as_unset $ac_var ;;
1803 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1804 *${as_nl}ac_space=\ *)
1806 "s/'\''/'\''\\\\'\'''\''/g;
1807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1818 ## ----------------- ##
1819 ## Output variables. ##
1820 ## ----------------- ##
1823 for ac_var in $ac_subst_vars
1825 eval ac_val=\$$ac_var
1827 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 $as_echo "$ac_var='\''$ac_val'\''"
1833 if test -n "$ac_subst_files"; then
1835 ## ------------------- ##
1836 ## File substitutions. ##
1837 ## ------------------- ##
1840 for ac_var
in $ac_subst_files
1842 eval ac_val
=\$
$ac_var
1844 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846 $as_echo "$ac_var='\''$ac_val'\''"
1851 if test -s confdefs.h; then
1861 test "$ac_signal" != 0 &&
1862 $as_echo "$as_me: caught signal $ac_signal"
1863 $as_echo "$as_me: exit $exit_status"
1865 rm -f core *.core core.conftest.* &&
1866 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1869 for ac_signal
in 1 2 13 15; do
1870 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1874 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1875 rm -f -r conftest
* confdefs.h
1877 # Predefined preprocessor variables.
1879 cat >>confdefs.h
<<_ACEOF
1880 #define PACKAGE_NAME "$PACKAGE_NAME"
1884 cat >>confdefs.h
<<_ACEOF
1885 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1889 cat >>confdefs.h
<<_ACEOF
1890 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1894 cat >>confdefs.h
<<_ACEOF
1895 #define PACKAGE_STRING "$PACKAGE_STRING"
1899 cat >>confdefs.h
<<_ACEOF
1900 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1904 # Let the site file select an alternate cache file if it wants to.
1905 # Prefer an explicitly selected file to automatically selected ones.
1908 if test -n "$CONFIG_SITE"; then
1909 ac_site_file1
=$CONFIG_SITE
1910 elif test "x$prefix" != xNONE
; then
1911 ac_site_file1
=$prefix/share
/config.site
1912 ac_site_file2
=$prefix/etc
/config.site
1914 ac_site_file1
=$ac_default_prefix/share
/config.site
1915 ac_site_file2
=$ac_default_prefix/etc
/config.site
1917 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1919 test "x$ac_site_file" = xNONE
&& continue
1920 if test -r "$ac_site_file"; then
1921 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1922 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1923 sed 's/^/| /' "$ac_site_file" >&5
1928 if test -r "$cache_file"; then
1929 # Some versions of bash will fail to source /dev/null (special
1930 # files actually), so we avoid doing that.
1931 if test -f "$cache_file"; then
1932 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1933 $as_echo "$as_me: loading cache $cache_file" >&6;}
1935 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1936 *) .
"./$cache_file";;
1940 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1941 $as_echo "$as_me: creating cache $cache_file" >&6;}
1945 ac_header_list
="$ac_header_list sys/time.h"
1946 ac_header_list
="$ac_header_list unistd.h"
1947 ac_func_list
="$ac_func_list alarm"
1948 # Check that the precious variables saved in the cache have kept the same
1950 ac_cache_corrupted
=false
1951 for ac_var
in $ac_precious_vars; do
1952 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1953 eval ac_new_set
=\
$ac_env_${ac_var}_set
1954 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1955 eval ac_new_val
=\
$ac_env_${ac_var}_value
1956 case $ac_old_set,$ac_new_set in
1958 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1959 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1960 ac_cache_corrupted
=: ;;
1962 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1963 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1964 ac_cache_corrupted
=: ;;
1967 if test "x$ac_old_val" != "x$ac_new_val"; then
1968 # differences in whitespace do not lead to failure.
1969 ac_old_val_w
=`echo x $ac_old_val`
1970 ac_new_val_w
=`echo x $ac_new_val`
1971 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1972 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1973 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1974 ac_cache_corrupted
=:
1976 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1977 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1978 eval $ac_var=\
$ac_old_val
1980 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1981 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1982 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1983 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1986 # Pass precious variables to config.status.
1987 if test "$ac_new_set" = set; then
1989 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1990 *) ac_arg
=$ac_var=$ac_new_val ;;
1992 case " $ac_configure_args " in
1993 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1994 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1998 if $ac_cache_corrupted; then
1999 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2000 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2003 { (exit 1); exit 1; }; }
2031 ac_cpp
='$CPP $CPPFLAGS'
2032 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2037 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2041 test "$program_prefix" != NONE
&&
2042 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2043 # Use a double $ so make ignores it.
2044 test "$program_suffix" != NONE
&&
2045 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2046 # Double any \ or $.
2047 # By default was `s,x,x', remove it if useless.
2048 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2049 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2052 lispdir
='${datadir}/emacs/${version}/lisp'
2053 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2054 '${datadir}/emacs/site-lisp'
2055 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2056 etcdir
='${datadir}/emacs/${version}/etc'
2057 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2058 docdir
='${datadir}/emacs/${version}/etc'
2059 gamedir
='${localstatedir}/games/emacs'
2066 # Check whether --with-pop was given.
2067 if test "${with_pop+set}" = set; then
2073 if test "$with_pop" = yes; then
2074 cat >>confdefs.h
<<\_ACEOF
2075 #define MAIL_USE_POP 1
2082 # Check whether --with-kerberos was given.
2083 if test "${with_kerberos+set}" = set; then
2084 withval
=$with_kerberos;
2089 if test "$with_kerberos" != no
; then
2090 cat >>confdefs.h
<<\_ACEOF
2098 # Check whether --with-kerberos5 was given.
2099 if test "${with_kerberos5+set}" = set; then
2100 withval
=$with_kerberos5;
2105 if test "${with_kerberos5}" != no
; then
2106 if test "${with_kerberos}" = no
; then
2108 cat >>confdefs.h
<<\_ACEOF
2114 cat >>confdefs.h
<<\_ACEOF
2121 # Check whether --with-hesiod was given.
2122 if test "${with_hesiod+set}" = set; then
2123 withval
=$with_hesiod;
2128 if test "$with_hesiod" != no
; then
2130 cat >>confdefs.h
<<\_ACEOF
2137 # Check whether --with-mmdf was given.
2138 if test "${with_mmdf+set}" = set; then
2144 if test "$with_mmdf" != no
; then
2146 cat >>confdefs.h
<<\_ACEOF
2147 #define MAIL_USE_MMDF 1
2153 # Check whether --with-mail-unlink was given.
2154 if test "${with_mail_unlink+set}" = set; then
2155 withval
=$with_mail_unlink;
2160 if test "$with_mail_unlink" != no
; then
2162 cat >>confdefs.h
<<\_ACEOF
2163 #define MAIL_UNLINK_SPOOL 1
2169 # Check whether --with-mailhost was given.
2170 if test "${with_mailhost+set}" = set; then
2171 withval
=$with_mailhost;
2172 cat >>confdefs.h
<<_ACEOF
2173 #define MAILHOST "$withval"
2180 # Check whether --with-sound was given.
2181 if test "${with_sound+set}" = set; then
2182 withval
=$with_sound;
2189 # Check whether --with-sync-input was given.
2190 if test "${with_sync_input+set}" = set; then
2191 withval
=$with_sync_input;
2196 if test "$with_sync_input" = yes; then
2198 cat >>confdefs.h
<<\_ACEOF
2199 #define SYNC_INPUT 1
2205 # Check whether --with-x-toolkit was given.
2206 if test "${with_x_toolkit+set}" = set; then
2207 withval
=$with_x_toolkit; case "${withval}" in
2208 y | ye |
yes ) val
=gtk
;;
2210 l | lu | luc | luci | lucid
) val
=lucid
;;
2211 a |
at | ath | athe | athen | athena
) val
=athena
;;
2212 m | mo | mot | moti | motif
) val
=motif
;;
2213 g | gt | gtk
) val
=gtk
;;
2215 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2216 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2217 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2218 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2219 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2220 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2221 { (exit 1); exit 1; }; }
2230 # Check whether --with-xpm was given.
2231 if test "${with_xpm+set}" = set; then
2238 # Check whether --with-jpeg was given.
2239 if test "${with_jpeg+set}" = set; then
2246 # Check whether --with-tiff was given.
2247 if test "${with_tiff+set}" = set; then
2254 # Check whether --with-gif was given.
2255 if test "${with_gif+set}" = set; then
2262 # Check whether --with-png was given.
2263 if test "${with_png+set}" = set; then
2270 # Check whether --with-rsvg was given.
2271 if test "${with_rsvg+set}" = set; then
2279 # Check whether --with-xft was given.
2280 if test "${with_xft+set}" = set; then
2287 # Check whether --with-libotf was given.
2288 if test "${with_libotf+set}" = set; then
2289 withval
=$with_libotf;
2295 # Check whether --with-m17n-flt was given.
2296 if test "${with_m17n_flt+set}" = set; then
2297 withval
=$with_m17n_flt;
2304 # Check whether --with-toolkit-scroll-bars was given.
2305 if test "${with_toolkit_scroll_bars+set}" = set; then
2306 withval
=$with_toolkit_scroll_bars;
2308 with_toolkit_scroll_bars
=yes
2312 # Check whether --with-xaw3d was given.
2313 if test "${with_xaw3d+set}" = set; then
2314 withval
=$with_xaw3d;
2320 # Check whether --with-xim was given.
2321 if test "${with_xim+set}" = set; then
2328 # Check whether --with-ns was given.
2329 if test "${with_ns+set}" = set; then
2337 # Check whether --with-gpm was given.
2338 if test "${with_gpm+set}" = set; then
2345 # Check whether --with-dbus was given.
2346 if test "${with_dbus+set}" = set; then
2353 # Check whether --with-gconf was given.
2354 if test "${with_gconf+set}" = set; then
2355 withval
=$with_gconf;
2361 # Check whether --with-selinux was given.
2362 if test "${with_selinux+set}" = set; then
2363 withval
=$with_selinux;
2369 ## For the times when you want to build Emacs but don't have
2370 ## a suitable makeinfo, and can live without the manuals.
2372 # Check whether --with-makeinfo was given.
2373 if test "${with_makeinfo+set}" = set; then
2374 withval
=$with_makeinfo;
2381 # Check whether --with-gtk was given.
2382 if test "${with_gtk+set}" = set; then
2383 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2384 specify a toolkit." >&5
2385 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2386 specify a toolkit." >&2;}
2387 { (exit 1); exit 1; }; }
2392 # Check whether --with-gcc was given.
2393 if test "${with_gcc+set}" = set; then
2394 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2395 variable to specify a compiler." >&5
2396 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2397 variable to specify a compiler." >&2;}
2398 { (exit 1); exit 1; }; }
2403 # Check whether --with-pkg-config-prog was given.
2404 if test "${with_pkg_config_prog+set}" = set; then
2405 withval
=$with_pkg_config_prog;
2408 if test "X${with_pkg_config_prog}" != X
; then
2409 if test "${with_pkg_config_prog}" != yes; then
2410 PKG_CONFIG
="${with_pkg_config_prog}"
2416 # Check whether --with-crt-dir was given.
2417 if test "${with_crt_dir+set}" = set; then
2418 withval
=$with_crt_dir;
2421 CRT_DIR
="${with_crt_dir}"
2424 # Check whether --with-gnustep-conf was given.
2425 if test "${with_gnustep_conf+set}" = set; then
2426 withval
=$with_gnustep_conf;
2429 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2430 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2431 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2432 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2434 # Check whether --enable-ns-self-contained was given.
2435 if test "${enable_ns_self_contained+set}" = set; then
2436 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2438 EN_NS_SELF_CONTAINED
=yes
2442 # Check whether --enable-asserts was given.
2443 if test "${enable_asserts+set}" = set; then
2444 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2450 # Check whether --enable-maintainer-mode was given.
2451 if test "${enable_maintainer_mode+set}" = set; then
2452 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2454 USE_MAINTAINER_MODE
=no
2457 if test $USE_MAINTAINER_MODE = yes; then
2464 # Check whether --enable-locallisppath was given.
2465 if test "${enable_locallisppath+set}" = set; then
2466 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2468 elif test "${enableval}" != "yes"; then
2469 locallisppath
=${enableval}
2474 # Check whether --enable-checking was given.
2475 if test "${enable_checking+set}" = set; then
2476 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2479 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2480 for check
in $ac_checking_flags
2483 # these set all the flags to specific states
2484 yes) ac_enable_checking
=1 ;;
2485 no
) ac_enable_checking
= ;
2486 ac_gc_check_stringbytes
= ;
2487 ac_gc_check_string_overrun
= ;
2488 ac_gc_check_string_free_list
= ;
2489 ac_xmalloc_overrun
= ;
2490 ac_gc_check_cons_list
= ;;
2491 all
) ac_enable_checking
=1 ;
2492 ac_gc_check_stringbytes
=1 ;
2493 ac_gc_check_string_overrun
=1 ;
2494 ac_gc_check_string_free_list
=1 ;
2495 ac_xmalloc_overrun
=1 ;
2496 ac_gc_check_cons_list
=1 ;;
2497 # these enable particular checks
2498 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2499 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2500 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2501 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2502 conslist
) ac_gc_check_cons_list
=1 ;;
2503 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2504 $as_echo "$as_me: error: unknown check category $check" >&2;}
2505 { (exit 1); exit 1; }; } ;;
2510 if test x
$ac_enable_checking != x
; then
2512 cat >>confdefs.h
<<\_ACEOF
2513 #define ENABLE_CHECKING 1
2517 if test x
$ac_gc_check_stringbytes != x
; then
2519 cat >>confdefs.h
<<\_ACEOF
2520 #define GC_CHECK_STRING_BYTES 1
2524 if test x
$ac_gc_check_stringoverrun != x
; then
2526 cat >>confdefs.h
<<\_ACEOF
2527 #define GC_CHECK_STRING_OVERRUN 1
2531 if test x
$ac_gc_check_string_free_list != x
; then
2533 cat >>confdefs.h
<<\_ACEOF
2534 #define GC_CHECK_STRING_FREE_LIST 1
2538 if test x
$ac_xmalloc_overrun != x
; then
2540 cat >>confdefs.h
<<\_ACEOF
2541 #define XMALLOC_OVERRUN_CHECK 1
2545 if test x
$ac_gc_check_cons_list != x
; then
2547 cat >>confdefs.h
<<\_ACEOF
2548 #define GC_CHECK_CONS_LIST 1
2553 # Check whether --enable-profiling was given.
2554 if test "${enable_profiling+set}" = set; then
2555 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2558 if test x
$ac_enable_profiling != x
; then
2559 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2560 PROFILING_LDFLAGS
="-pg"
2566 # Check whether --enable-autodepend was given.
2567 if test "${enable_autodepend+set}" = set; then
2568 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2570 ac_enable_autodepend
=yes
2574 #### Make srcdir absolute, if it isn't already. It's important to
2575 #### avoid running the path through pwd unnecessarily, since pwd can
2576 #### give you automounter prefixes, which can go away. We do all this
2577 #### so Emacs can find its files when run uninstalled.
2578 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2583 ## We may be able to use the $PWD environment variable to make this
2584 ## absolute. But sometimes PWD is inaccurate.
2585 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2586 ## but that tested only for a well-formed and valid PWD,
2587 ## it did not object when PWD was well-formed and valid but just wrong.
2588 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2592 srcdir
="`(cd ${srcdir}; pwd)`"
2595 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2598 #### Check if the source directory already has a configured system in it.
2599 if test `pwd` != `(cd ${srcdir} && pwd)` \
2600 && test -f "${srcdir}/src/config.h" ; then
2601 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2602 as a build directory right now; it has been configured in its own
2603 right. To configure in another directory as well, you MUST
2604 use GNU make. If you do not have GNU make, then you must
2605 now do \`make distclean' in ${srcdir},
2606 and then run $0 again." >&5
2607 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2608 as a build directory right now; it has been configured in its own
2609 right. To configure in another directory as well, you MUST
2610 use GNU make. If you do not have GNU make, then you must
2611 now do \`make distclean' in ${srcdir},
2612 and then run $0 again." >&2;}
2615 #### Given the configuration name, set machfile and opsysfile to the
2616 #### names of the m/*.h and s/*.h files we should use.
2618 ### Canonicalize the configuration name.
2621 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2622 if test -f "$ac_dir/install-sh"; then
2624 ac_install_sh
="$ac_aux_dir/install-sh -c"
2626 elif test -f "$ac_dir/install.sh"; then
2628 ac_install_sh
="$ac_aux_dir/install.sh -c"
2630 elif test -f "$ac_dir/shtool"; then
2632 ac_install_sh
="$ac_aux_dir/shtool install -c"
2636 if test -z "$ac_aux_dir"; then
2637 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2638 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2639 { (exit 1); exit 1; }; }
2642 # These three variables are undocumented and unsupported,
2643 # and are intended to be withdrawn in a future Autoconf release.
2644 # They can cause serious problems if a builder's source tree is in a directory
2645 # whose full name contains unusual characters.
2646 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2647 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2648 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2651 # Make sure we can run config.sub.
2652 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2653 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2654 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2655 { (exit 1); exit 1; }; }
2657 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2658 $as_echo_n "checking build system type... " >&6; }
2659 if test "${ac_cv_build+set}" = set; then
2660 $as_echo_n "(cached) " >&6
2662 ac_build_alias
=$build_alias
2663 test "x$ac_build_alias" = x
&&
2664 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2665 test "x$ac_build_alias" = x
&&
2666 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2667 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2668 { (exit 1); exit 1; }; }
2669 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2670 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2671 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2672 { (exit 1); exit 1; }; }
2675 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2676 $as_echo "$ac_cv_build" >&6; }
2677 case $ac_cv_build in
2679 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2680 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2681 { (exit 1); exit 1; }; };;
2684 ac_save_IFS
=$IFS; IFS
='-'
2690 # Remember, the first character of IFS is used to create $*,
2691 # except with old shells:
2694 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2697 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2698 $as_echo_n "checking host system type... " >&6; }
2699 if test "${ac_cv_host+set}" = set; then
2700 $as_echo_n "(cached) " >&6
2702 if test "x$host_alias" = x
; then
2703 ac_cv_host
=$ac_cv_build
2705 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2706 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2707 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2708 { (exit 1); exit 1; }; }
2712 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2713 $as_echo "$ac_cv_host" >&6; }
2716 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2717 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2718 { (exit 1); exit 1; }; };;
2721 ac_save_IFS
=$IFS; IFS
='-'
2727 # Remember, the first character of IFS is used to create $*,
2728 # except with old shells:
2731 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2735 configuration
=${host_alias-${build_alias-$host}}
2739 ### If you add support for a new configuration, add code to this
2740 ### switch statement to recognize your configuration name and select
2741 ### the appropriate operating system and machine description files.
2743 ### You would hope that you could choose an m/*.h file pretty much
2744 ### based on the machine portion of the configuration name, and an s-
2745 ### file based on the operating system portion. However, it turns out
2746 ### that each m/*.h file is pretty manufacturer-specific - for
2747 ### example mips.h is MIPS
2748 ### So we basically have to have a special case for each
2749 ### configuration name.
2751 ### As far as handling version numbers on operating systems is
2752 ### concerned, make sure things will fail in a fixable way. If
2753 ### /etc/MACHINES doesn't say anything about version numbers, be
2754 ### prepared to handle anything reasonably. If version numbers
2755 ### matter, be sure /etc/MACHINES says something about it.
2757 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2758 ### "System V Release 4"; he writes, "The old convention encouraged
2759 ### confusion between `system' and `release' levels'."
2761 machine
='' opsys
='' unported
=no
2762 case "${canonical}" in
2767 case "${canonical}" in
2768 alpha
*-*-freebsd*) machine
=alpha
;;
2769 arm
*-*-freebsd*) machine
=arm
;;
2770 ia64-
*-freebsd*) machine
=ia64
;;
2771 sparc-
*-freebsd*) machine
=sparc
;;
2772 sparc64-
*-freebsd*) machine
=sparc
;;
2773 powerpc-
*-freebsd*) machine
=macppc
;;
2774 i
[3456]86-*-freebsd*) machine
=intel386
;;
2775 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2779 ## FreeBSD kernel + glibc based userland
2782 case "${canonical}" in
2783 alpha
*-*-kfreebsd*) machine
=alpha
;;
2784 ia64-
*-kfreebsd*) machine
=ia64
;;
2785 sparc-
*-kfreebsd*) machine
=sparc
;;
2786 sparc64-
*-kfreebsd*) machine
=sparc
;;
2787 powerpc-
*-kfreebsd*) machine
=macppc
;;
2788 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2789 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2796 case "${canonical}" in
2797 alpha
*-*-netbsd*) machine
=alpha
;;
2798 i
[3456]86-*-netbsd*) machine
=intel386
;;
2799 mips-
*-netbsd*) machine
=mips
;;
2800 mipsel-
*-netbsd*) machine
=mips
;;
2801 mipseb-
*-netbsd*) machine
=mips
;;
2802 powerpc-
*-netbsd*) machine
=macppc
;;
2803 sparc
*-*-netbsd*) machine
=sparc
;;
2804 vax-
*-netbsd*) machine
=vax
;;
2805 arm-
*-netbsd*) machine
=arm
;;
2806 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2807 hppa-
*-netbsd*) machine
=hp800
;;
2808 m68k-
*-netbsd*) machine
=m68k
;;
2815 case "${canonical}" in
2816 alpha
*-*-openbsd*) machine
=alpha
;;
2817 arm-
*-openbsd*) machine
=arm
;;
2818 i386-
*-openbsd*) machine
=intel386
;;
2819 powerpc-
*-openbsd*) machine
=macppc
;;
2820 sparc
*-*-openbsd*) machine
=sparc
;;
2821 vax-
*-openbsd*) machine
=vax
;;
2822 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2823 hppa-
*-openbsd*) machine
=hp800
;;
2827 alpha
*-*-linux-gnu* )
2828 machine
=alpha opsys
=gnu-linux
2832 machine
=arm opsys
=gnu-linux
2835 ## Apple Darwin / Mac OS X
2837 case "${canonical}" in
2838 i
[3456]86-* ) machine
=intel386
;;
2839 powerpc-
* ) machine
=macppc
;;
2840 x86_64-
* ) machine
=amdx86-64
;;
2844 # Define CPP as follows to make autoconf work correctly.
2845 CPP
="${CC-cc} -E -no-cpp-precomp"
2846 # Use fink packages if available.
2847 if test -d /sw
/include
&& test -d /sw
/lib
; then
2848 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2849 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2850 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2854 ## HP 9000 series 700 and 800, running HP/UX
2855 hppa
*-hp-hpux10.2
* )
2856 machine
=hp800 opsys
=hpux10-20
2858 hppa
*-hp-hpux1[1-9]* )
2859 machine
=hp800 opsys
=hpux11
2860 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2863 hppa
*-*-linux-gnu* )
2864 machine
=hp800 opsys
=gnu-linux
2869 machine
=ibms390 opsys
=gnu-linux
2871 s390x-
*-linux-gnu* )
2872 machine
=ibms390x opsys
=gnu-linux
2874 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2875 machine
=ibmrs6000 opsys
=aix4-2
2877 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2878 machine
=ibmrs6000 opsys
=aix4-2
2880 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2881 machine
=ibmrs6000 opsys
=aix4-2
2883 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2884 machine
=ibmrs6000 opsys
=aix4-2
2887 ## Macintosh PowerPC
2888 powerpc
*-*-linux-gnu* )
2889 machine
=macppc opsys
=gnu-linux
2892 ## Silicon Graphics machines
2895 machine
=iris4d opsys
=irix6-5
2896 # Without defining _LANGUAGE_C, things get masked out in the headers
2897 # so that, for instance, grepping for `free' in stdlib.h fails and
2898 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2899 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2900 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2904 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2905 machine
=sparc opsys
=gnu-linux
2909 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2910 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2911 case "${canonical}" in
2912 i
[3456]86-*-* ) machine
=intel386
;;
2913 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2914 sparc
* ) machine
=sparc
;;
2917 case "${canonical}" in
2918 *-sunos5.6
* |
*-solaris2.6
* )
2920 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2923 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2925 emacs_check_sunpro_c
=yes
2926 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2928 *-sunos5* |
*-solaris* )
2930 emacs_check_sunpro_c
=yes
2931 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2934 ## Watch out for a compiler that we know will not work.
2935 case "${canonical}" in
2936 *-solaris* |
*-sunos5* )
2937 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2938 ## /usr/ucb/cc doesn't work;
2939 ## we should find some other compiler that does work.
2949 machine
=ia64 opsys
=gnu-linux
2952 ## Intel 386 machines where we don't care about the manufacturer
2955 case "${canonical}" in
2956 *-cygwin ) opsys
=cygwin
;;
2957 *-darwin* ) opsys
=darwin
2958 CPP
="${CC-cc} -E -no-cpp-precomp"
2960 *-linux-gnu* ) opsys
=gnu-linux
;;
2961 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2962 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2963 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2964 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2968 ## m68k Linux-based GNU system
2970 machine
=m68k opsys
=gnu-linux
2973 ## Mips Linux-based GNU system
2974 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2975 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2976 machine
=mips opsys
=gnu-linux
2979 ## AMD x86-64 Linux-based GNU system
2980 x86_64-
*-linux-gnu* )
2981 machine
=amdx86-64 opsys
=gnu-linux
2984 ## Tensilica Xtensa Linux-based GNU system
2985 xtensa
*-*-linux-gnu* )
2986 machine
=xtensa opsys
=gnu-linux
2989 ## SuperH Linux-based GNU system
2990 sh
[34]*-*-linux-gnu* )
2991 machine
=sh3 opsys
=gnu-linux
2999 ### If the code above didn't choose an operating system, just choose
3000 ### an operating system based on the configuration name. You really
3001 ### only want to use this when you have no idea what the right
3002 ### operating system is; if you know what operating systems a machine
3003 ### runs, it's cleaner to make it explicit in the case statement
3005 if test x
"${opsys}" = x
; then
3006 case "${canonical}" in
3007 *-gnu* ) opsys
=gnu
;;
3016 if test $unported = yes; then
3017 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3018 Check \`etc/MACHINES' for recognized configuration names." >&5
3019 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3020 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3021 { (exit 1); exit 1; }; }
3024 machfile
="m/${machine}.h"
3025 opsysfile
="s/${opsys}.h"
3028 #### Choose a compiler.
3029 test -n "$CC" && cc_specified
=yes
3031 # Save the value of CFLAGS that the user specified.
3032 SPECIFIED_CFLAGS
="$CFLAGS"
3035 ac_cpp
='$CPP $CPPFLAGS'
3036 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3037 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3038 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3039 if test -n "$ac_tool_prefix"; then
3040 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3041 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3042 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if test "${ac_cv_prog_CC+set}" = set; then
3045 $as_echo_n "(cached) " >&6
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC
="$CC" # Let the user override the test.
3050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir
=.
3055 for ac_exec_ext
in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 if test -n "$CC"; then
3069 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3072 { $as_echo "$as_me:$LINENO: result: no" >&5
3073 $as_echo "no" >&6; }
3078 if test -z "$ac_cv_prog_CC"; then
3080 # Extract the first word of "gcc", so it can be a program name with args.
3081 set dummy gcc
; ac_word
=$2
3082 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3085 $as_echo_n "(cached) " >&6
3087 if test -n "$ac_ct_CC"; then
3088 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3094 test -z "$as_dir" && as_dir
=.
3095 for ac_exec_ext
in '' $ac_executable_extensions; do
3096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097 ac_cv_prog_ac_ct_CC
="gcc"
3098 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3108 if test -n "$ac_ct_CC"; then
3109 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3110 $as_echo "$ac_ct_CC" >&6; }
3112 { $as_echo "$as_me:$LINENO: result: no" >&5
3113 $as_echo "no" >&6; }
3116 if test "x$ac_ct_CC" = x
; then
3119 case $cross_compiling:$ac_tool_warned in
3121 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3122 whose name does not start with the host triplet. If you think this
3123 configuration is useful to you, please write to autoconf@gnu.org." >&5
3124 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3125 whose name does not start with the host triplet. If you think this
3126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3127 ac_tool_warned
=yes ;;
3135 if test -z "$CC"; then
3136 if test -n "$ac_tool_prefix"; then
3137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3138 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then
3142 $as_echo_n "(cached) " >&6
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC
="$CC" # Let the user override the test.
3147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3151 test -z "$as_dir" && as_dir
=.
3152 for ac_exec_ext
in '' $ac_executable_extensions; do
3153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3155 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3169 { $as_echo "$as_me:$LINENO: result: no" >&5
3170 $as_echo "no" >&6; }
3176 if test -z "$CC"; then
3177 # Extract the first word of "cc", so it can be a program name with args.
3178 set dummy cc
; ac_word
=$2
3179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_CC+set}" = set; then
3182 $as_echo_n "(cached) " >&6
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC
="$CC" # Let the user override the test.
3188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3192 test -z "$as_dir" && as_dir
=.
3193 for ac_exec_ext
in '' $ac_executable_extensions; do
3194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3196 ac_prog_rejected
=yes
3200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 if test $ac_prog_rejected = yes; then
3208 # We found a bogon in the path, so make sure we never use it.
3209 set dummy
$ac_cv_prog_CC
3211 if test $# != 0; then
3212 # We chose a different compiler from the bogus one.
3213 # However, it has the same basename, so the bogon will be chosen
3214 # first if we set CC to just the basename; use the full file name.
3216 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3222 if test -n "$CC"; then
3223 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3226 { $as_echo "$as_me:$LINENO: result: no" >&5
3227 $as_echo "no" >&6; }
3232 if test -z "$CC"; then
3233 if test -n "$ac_tool_prefix"; then
3234 for ac_prog
in cl.exe
3236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3237 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if test "${ac_cv_prog_CC+set}" = set; then
3241 $as_echo_n "(cached) " >&6
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC
="$CC" # Let the user override the test.
3246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir
=.
3251 for ac_exec_ext
in '' $ac_executable_extensions; do
3252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3253 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3254 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3268 { $as_echo "$as_me:$LINENO: result: no" >&5
3269 $as_echo "no" >&6; }
3273 test -n "$CC" && break
3276 if test -z "$CC"; then
3278 for ac_prog
in cl.exe
3280 # Extract the first word of "$ac_prog", so it can be a program name with args.
3281 set dummy
$ac_prog; ac_word
=$2
3282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3285 $as_echo_n "(cached) " >&6
3287 if test -n "$ac_ct_CC"; then
3288 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3294 test -z "$as_dir" && as_dir
=.
3295 for ac_exec_ext
in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_ac_ct_CC
="$ac_prog"
3298 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3308 if test -n "$ac_ct_CC"; then
3309 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3310 $as_echo "$ac_ct_CC" >&6; }
3312 { $as_echo "$as_me:$LINENO: result: no" >&5
3313 $as_echo "no" >&6; }
3317 test -n "$ac_ct_CC" && break
3320 if test "x$ac_ct_CC" = x
; then
3323 case $cross_compiling:$ac_tool_warned in
3325 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3326 whose name does not start with the host triplet. If you think this
3327 configuration is useful to you, please write to autoconf@gnu.org." >&5
3328 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3329 whose name does not start with the host triplet. If you think this
3330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3331 ac_tool_warned
=yes ;;
3340 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3341 See \`config.log' for more details." >&5
3342 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3343 See \`config.log' for more details." >&2;}
3344 { (exit 1); exit 1; }; }
3346 # Provide some information about the compiler.
3347 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3350 { (ac_try
="$ac_compiler --version >&5"
3352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3356 $as_echo "$ac_try_echo") >&5
3357 (eval "$ac_compiler --version >&5") 2>&5
3359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }
3361 { (ac_try="$ac_compiler -v >&5"
3363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3364 *) ac_try_echo
=$ac_try;;
3366 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3367 $as_echo "$ac_try_echo") >&5
3368 (eval "$ac_compiler -v >&5") 2>&5
3370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }
3372 { (ac_try
="$ac_compiler -V >&5"
3374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3378 $as_echo "$ac_try_echo") >&5
3379 (eval "$ac_compiler -V >&5") 2>&5
3381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }
3384 cat >conftest.$ac_ext <<_ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h. */
3399 ac_clean_files_save=$ac_clean_files
3400 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3401 # Try to create an executable without -o first, disregard a.out.
3402 # It will help us diagnose broken compilers, and finding out an intuition
3404 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3405 $as_echo_n "checking for C compiler default output file name... " >&6; }
3406 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3408 # The possible output files:
3409 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3412 for ac_file in $ac_files
3415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3416 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3421 if { (ac_try="$ac_link_default"
3423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3424 *) ac_try_echo
=$ac_try;;
3426 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3427 $as_echo "$ac_try_echo") >&5
3428 (eval "$ac_link_default") 2>&5
3430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; then
3432 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3433 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3434 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3435 # so that the user can short-circuit this test for compilers unknown to
3437 for ac_file
in $ac_files ''
3439 test -f "$ac_file" ||
continue
3441 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3444 # We found the default executable, but exeext='' is most
3448 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3450 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452 # We set ac_cv_exeext here because the later test for it is not
3453 # safe: cross compilers may not add the suffix if given an `-o'
3454 # argument, so we may need to know it at that point already.
3455 # Even if this section looks crufty: it has the advantage of
3462 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3468 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3469 $as_echo "$ac_file" >&6; }
3470 if test -z "$ac_file"; then
3471 $as_echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.
$ac_ext >&5
3474 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3475 See \`config.log' for more details." >&5
3476 $as_echo "$as_me: error: C compiler cannot create executables
3477 See \`config.log' for more details." >&2;}
3478 { (exit 77); exit 77; }; }
3481 ac_exeext
=$ac_cv_exeext
3483 # Check that the compiler produces executables we can run. If not, either
3484 # the compiler is broken, or we cross compile.
3485 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3486 $as_echo_n "checking whether the C compiler works... " >&6; }
3487 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3488 # If not cross compiling, check that we can run a simple program.
3489 if test "$cross_compiling" != yes; then
3490 if { ac_try
='./$ac_file'
3491 { (case "(($ac_try" in
3492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3496 $as_echo "$ac_try_echo") >&5
3497 (eval "$ac_try") 2>&5
3499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3503 if test "$cross_compiling" = maybe; then
3506 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3507 If you meant to cross compile, use \`--host'.
3508 See \`config.log' for more details.
" >&5
3509 $as_echo "$as_me: error
: cannot run C compiled programs.
3510 If you meant to cross compile
, use \
`--host'.
3511 See \`config.log
' for more details." >&2;}
3512 { (exit 1); exit 1; }; }
3516 { $as_echo "$as_me:$LINENO: result: yes" >&5
3517 $as_echo "yes" >&6; }
3519 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3520 ac_clean_files=$ac_clean_files_save
3521 # Check that the compiler produces executables we can run. If not, either
3522 # the compiler is broken, or we cross compile.
3523 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3524 $as_echo_n "checking whether we are cross compiling... " >&6; }
3525 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3526 $as_echo "$cross_compiling" >&6; }
3528 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3529 $as_echo_n "checking for suffix of executables... " >&6; }
3530 if { (ac_try="$ac_link"
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3536 $as_echo "$ac_try_echo") >&5
3537 (eval "$ac_link") 2>&5
3539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; then
3541 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3542 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3543 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3545 for ac_file
in conftest.exe conftest conftest.
*; do
3546 test -f "$ac_file" ||
continue
3548 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3549 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3555 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3556 See \`config.log' for more details." >&5
3557 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3558 See \`config.log' for more details." >&2;}
3559 { (exit 1); exit 1; }; }
3562 rm -f conftest
$ac_cv_exeext
3563 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3564 $as_echo "$ac_cv_exeext" >&6; }
3566 rm -f conftest.
$ac_ext
3567 EXEEXT
=$ac_cv_exeext
3569 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3570 $as_echo_n "checking for suffix of object files... " >&6; }
3571 if test "${ac_cv_objext+set}" = set; then
3572 $as_echo_n "(cached) " >&6
3574 cat >conftest.
$ac_ext <<_ACEOF
3577 cat confdefs.h
>>conftest.
$ac_ext
3578 cat >>conftest.
$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3589 rm -f conftest.o conftest.obj
3590 if { (ac_try
="$ac_compile"
3592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3596 $as_echo "$ac_try_echo") >&5
3597 (eval "$ac_compile") 2>&5
3599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; then
3601 for ac_file in conftest.o conftest.obj conftest.*; do
3602 test -f "$ac_file" || continue;
3604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3605 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3610 $as_echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3613 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3614 See \`config.log
' for more details." >&5
3615 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3616 See \`config.log' for more details.
" >&2;}
3617 { (exit 1); exit 1; }; }
3620 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3622 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3623 $as_echo "$ac_cv_objext" >&6; }
3624 OBJEXT=$ac_cv_objext
3626 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3627 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3628 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3629 $as_echo_n "(cached
) " >&6
3631 cat >conftest.$ac_ext <<_ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3649 rm -f conftest.$ac_objext
3650 if { (ac_try="$ac_compile"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3656 $as_echo "$ac_try_echo") >&5
3657 (eval "$ac_compile") 2>conftest.er1
3659 grep -v '^ *+' conftest.er1 >conftest.err
3661 cat conftest.err >&5
3662 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3663 (exit $ac_status); } && {
3664 test -z "$ac_c_werror_flag" ||
3665 test ! -s conftest.err
3666 } && test -s conftest.$ac_objext; then
3669 $as_echo "$as_me: failed program was
:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3679 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3680 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3681 if test $ac_compiler_gnu = yes; then
3686 ac_test_CFLAGS=${CFLAGS+set}
3687 ac_save_CFLAGS=$CFLAGS
3688 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3689 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3690 if test "${ac_cv_prog_cc_g+set}" = set; then
3691 $as_echo_n "(cached
) " >&6
3693 ac_save_c_werror_flag=$ac_c_werror_flag
3694 ac_c_werror_flag=yes
3697 cat >conftest.$ac_ext <<_ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3712 rm -f conftest.$ac_objext
3713 if { (ac_try="$ac_compile"
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3718 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3719 $as_echo "$ac_try_echo") >&5
3720 (eval "$ac_compile") 2>conftest.er1
3722 grep -v '^ *+' conftest.er1 >conftest.err
3724 cat conftest.err >&5
3725 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3726 (exit $ac_status); } && {
3727 test -z "$ac_c_werror_flag" ||
3728 test ! -s conftest.err
3729 } && test -s conftest.$ac_objext; then
3732 $as_echo "$as_me: failed program was
:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3736 cat >conftest.$ac_ext <<_ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3751 rm -f conftest.$ac_objext
3752 if { (ac_try="$ac_compile"
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3757 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3758 $as_echo "$ac_try_echo") >&5
3759 (eval "$ac_compile") 2>conftest.er1
3761 grep -v '^ *+' conftest.er1 >conftest.err
3763 cat conftest.err >&5
3764 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3765 (exit $ac_status); } && {
3766 test -z "$ac_c_werror_flag" ||
3767 test ! -s conftest.err
3768 } && test -s conftest.$ac_objext; then
3771 $as_echo "$as_me: failed program was
:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3774 ac_c_werror_flag=$ac_save_c_werror_flag
3776 cat >conftest.$ac_ext <<_ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3791 rm -f conftest.$ac_objext
3792 if { (ac_try="$ac_compile"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3798 $as_echo "$ac_try_echo") >&5
3799 (eval "$ac_compile") 2>conftest.er1
3801 grep -v '^ *+' conftest.er1 >conftest.err
3803 cat conftest.err >&5
3804 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3805 (exit $ac_status); } && {
3806 test -z "$ac_c_werror_flag" ||
3807 test ! -s conftest.err
3808 } && test -s conftest.$ac_objext; then
3811 $as_echo "$as_me: failed program was
:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_c_werror_flag=$ac_save_c_werror_flag
3826 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3827 $as_echo "$ac_cv_prog_cc_g" >&6; }
3828 if test "$ac_test_CFLAGS" = set; then
3829 CFLAGS=$ac_save_CFLAGS
3830 elif test $ac_cv_prog_cc_g = yes; then
3831 if test "$GCC" = yes; then
3837 if test "$GCC" = yes; then
3843 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3844 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3845 if test "${ac_cv_prog_cc_c89+set}" = set; then
3846 $as_echo_n "(cached
) " >&6
3848 ac_cv_prog_cc_c89=no
3850 cat >conftest.$ac_ext <<_ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3858 #include <sys/types.h>
3859 #include <sys/stat.h>
3860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3861 struct buf { int x; };
3862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3863 static char *e (p, i)
3869 static char *f (char * (*g) (char **, int), char **p, ...)
3874 s = g (p, va_arg (v,int));
3879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3880 function prototypes and stuff, but not '\xHH' hex character constants.
3881 These don't provoke an error unfortunately, instead are silently treated
3882 as 'x'. The following induces an error, until -std is added to get
3883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3884 array size at least. It's necessary to write '\x00'==0 to get something
3885 that's true only with -std. */
3886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3888 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3889 inside strings and character constants. */
3891 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3893 int test (int i, double x);
3894 struct s1 {int (*f) (int a);};
3895 struct s2 {int (*f) (double a);};
3896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3902 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3907 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3908 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3910 CC="$ac_save_CC $ac_arg"
3911 rm -f conftest.$ac_objext
3912 if { (ac_try="$ac_compile"
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3917 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3918 $as_echo "$ac_try_echo") >&5
3919 (eval "$ac_compile") 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3925 (exit $ac_status); } && {
3926 test -z "$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 } && test -s conftest.$ac_objext; then
3929 ac_cv_prog_cc_c89=$ac_arg
3931 $as_echo "$as_me: failed program was
:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3937 rm -f core conftest.err conftest.$ac_objext
3938 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3940 rm -f conftest.$ac_ext
3945 case "x
$ac_cv_prog_cc_c89" in
3947 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3948 $as_echo "none needed
" >&6; } ;;
3950 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3951 $as_echo "unsupported
" >&6; } ;;
3953 CC="$CC $ac_cv_prog_cc_c89"
3954 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3955 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3960 ac_cpp='$CPP $CPPFLAGS'
3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966 # On Suns, sometimes $CPP names a directory.
3967 if test -n "$CPP" && test -d "$CPP"; then
3971 ## If not using gcc, and on Solaris, and no CPP specified, see if
3972 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3973 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3974 test x"$CPP" = x; then
3975 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3976 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3978 if test "${emacs_cv_sunpro_c+set}" = set; then
3979 $as_echo_n "(cached
) " >&6
3981 cat >conftest.$ac_ext <<_ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3999 rm -f conftest.$ac_objext conftest$ac_exeext
4000 if { (ac_try="$ac_link"
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4006 $as_echo "$ac_try_echo") >&5
4007 (eval "$ac_link") 2>conftest.er1
4009 grep -v '^ *+' conftest.er1 >conftest.err
4011 cat conftest.err >&5
4012 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4013 (exit $ac_status); } && {
4014 test -z "$ac_c_werror_flag" ||
4015 test ! -s conftest.err
4016 } && test -s conftest$ac_exeext && {
4017 test "$cross_compiling" = yes ||
4018 $as_test_x conftest$ac_exeext
4020 emacs_cv_sunpro_c=yes
4022 $as_echo "$as_me: failed program was
:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 emacs_cv_sunpro_c=no
4028 rm -rf conftest.dSYM
4029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4030 conftest$ac_exeext conftest.$ac_ext
4033 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4034 $as_echo "$emacs_cv_sunpro_c" >&6; }
4036 if test x"$emacs_cv_sunpro_c" = xyes; then
4037 NON_GNU_CPP="$CC -E -Xs"
4041 #### Some systems specify a CPP to use unless we are using GCC.
4042 #### Now that we know whether we are using GCC, we can decide whether
4043 #### to use that one.
4044 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4049 #### Some systems specify a CC to use unless we are using GCC.
4050 #### Now that we know whether we are using GCC, we can decide whether
4051 #### to use that one.
4052 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4053 test x$cc_specified != xyes
4058 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4060 CC="$CC $GCC_TEST_OPTIONS"
4063 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4065 CC="$CC $NON_GCC_TEST_OPTIONS"
4069 ac_cpp='$CPP $CPPFLAGS'
4070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4074 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4075 # On Suns, sometimes $CPP names a directory.
4076 if test -n "$CPP" && test -d "$CPP"; then
4079 if test -z "$CPP"; then
4080 if test "${ac_cv_prog_CPP+set}" = set; then
4081 $as_echo_n "(cached
) " >&6
4083 # Double quotes because CPP needs to be expanded
4084 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4087 for ac_c_preproc_warn_flag in '' yes
4089 # Use a header file that comes with gcc, so configuring glibc
4090 # with a fresh cross-compiler works.
4091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4092 # <limits.h> exists even on freestanding compilers.
4093 # On the NeXT, cc -E runs the code through the compiler's parser,
4094 # not just through cpp. "Syntax error
" is here to catch this case.
4095 cat >conftest.$ac_ext <<_ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4102 # include <limits.h>
4104 # include <assert.h>
4108 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4113 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4114 $as_echo "$ac_try_echo") >&5
4115 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4117 grep -v '^ *+' conftest.er1 >conftest.err
4119 cat conftest.err >&5
4120 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4121 (exit $ac_status); } >/dev/null && {
4122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4123 test ! -s conftest.err
4127 $as_echo "$as_me: failed program was
:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4130 # Broken: fails on valid input.
4134 rm -f conftest.err conftest.$ac_ext
4136 # OK, works on sane cases. Now check whether nonexistent headers
4137 # can be detected and how.
4138 cat >conftest.$ac_ext <<_ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #include <ac_nonexistent.h>
4146 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4151 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4152 $as_echo "$ac_try_echo") >&5
4153 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4155 grep -v '^ *+' conftest.er1 >conftest.err
4157 cat conftest.err >&5
4158 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4159 (exit $ac_status); } >/dev/null && {
4160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4161 test ! -s conftest.err
4163 # Broken: success on invalid input.
4166 $as_echo "$as_me: failed program was
:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4169 # Passes both tests.
4174 rm -f conftest.err conftest.$ac_ext
4177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4178 rm -f conftest.err conftest.$ac_ext
4179 if $ac_preproc_ok; then
4191 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4192 $as_echo "$CPP" >&6; }
4194 for ac_c_preproc_warn_flag in '' yes
4196 # Use a header file that comes with gcc, so configuring glibc
4197 # with a fresh cross-compiler works.
4198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 # <limits.h> exists even on freestanding compilers.
4200 # On the NeXT, cc -E runs the code through the compiler's parser,
4201 # not just through cpp. "Syntax error
" is here to catch this case.
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4209 # include <limits.h>
4211 # include <assert.h>
4215 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4220 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4221 $as_echo "$ac_try_echo") >&5
4222 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4224 grep -v '^ *+' conftest.er1 >conftest.err
4226 cat conftest.err >&5
4227 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4228 (exit $ac_status); } >/dev/null && {
4229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4230 test ! -s conftest.err
4234 $as_echo "$as_me: failed program was
:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4237 # Broken: fails on valid input.
4241 rm -f conftest.err conftest.$ac_ext
4243 # OK, works on sane cases. Now check whether nonexistent headers
4244 # can be detected and how.
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 #include <ac_nonexistent.h>
4253 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4258 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4259 $as_echo "$ac_try_echo") >&5
4260 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4262 grep -v '^ *+' conftest.er1 >conftest.err
4264 cat conftest.err >&5
4265 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4266 (exit $ac_status); } >/dev/null && {
4267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4268 test ! -s conftest.err
4270 # Broken: success on invalid input.
4273 $as_echo "$as_me: failed program was
:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 # Passes both tests.
4281 rm -f conftest.err conftest.$ac_ext
4284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4285 rm -f conftest.err conftest.$ac_ext
4286 if $ac_preproc_ok; then
4289 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4290 See \
`config.log' for more details." >&5
4291 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4292 See \`config.log
' for more details." >&2;}
4293 { (exit 1); exit 1; }; }
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4299 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4304 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4305 if test "${ac_cv_path_GREP+set}" = set; then
4306 $as_echo_n "(cached) " >&6
4308 if test -z "$GREP"; then
4309 ac_path_GREP_found=false
4310 # Loop through the user's path and
test for each of PROGNAME-LIST
4311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4312 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4315 test -z "$as_dir" && as_dir
=.
4316 for ac_prog
in grep ggrep
; do
4317 for ac_exec_ext
in '' $ac_executable_extensions; do
4318 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4319 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4320 # Check for GNU ac_path_GREP and select it if it is found.
4321 # Check for GNU $ac_path_GREP
4322 case `"$ac_path_GREP" --version 2>&1` in
4324 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4327 $as_echo_n 0123456789 >"conftest.in"
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
4333 $as_echo 'GREP' >> "conftest.nl"
4334 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4335 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4336 ac_count
=`expr $ac_count + 1`
4337 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_GREP
="$ac_path_GREP"
4340 ac_path_GREP_max
=$ac_count
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4345 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4348 $ac_path_GREP_found && break 3
4353 if test -z "$ac_cv_path_GREP"; then
4354 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4355 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4356 { (exit 1); exit 1; }; }
4359 ac_cv_path_GREP
=$GREP
4363 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4364 $as_echo "$ac_cv_path_GREP" >&6; }
4365 GREP
="$ac_cv_path_GREP"
4368 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4369 $as_echo_n "checking for egrep... " >&6; }
4370 if test "${ac_cv_path_EGREP+set}" = set; then
4371 $as_echo_n "(cached) " >&6
4373 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4374 then ac_cv_path_EGREP
="$GREP -E"
4376 if test -z "$EGREP"; then
4377 ac_path_EGREP_found
=false
4378 # Loop through the user's path and test for each of PROGNAME-LIST
4379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4380 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4383 test -z "$as_dir" && as_dir
=.
4384 for ac_prog
in egrep; do
4385 for ac_exec_ext
in '' $ac_executable_extensions; do
4386 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4387 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4388 # Check for GNU ac_path_EGREP and select it if it is found.
4389 # Check for GNU $ac_path_EGREP
4390 case `"$ac_path_EGREP" --version 2>&1` in
4392 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4395 $as_echo_n 0123456789 >"conftest.in"
4398 cat "conftest.in" "conftest.in" >"conftest.tmp"
4399 mv "conftest.tmp" "conftest.in"
4400 cp "conftest.in" "conftest.nl"
4401 $as_echo 'EGREP' >> "conftest.nl"
4402 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4403 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4404 ac_count
=`expr $ac_count + 1`
4405 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4406 # Best one so far, save it but keep looking for a better one
4407 ac_cv_path_EGREP
="$ac_path_EGREP"
4408 ac_path_EGREP_max
=$ac_count
4410 # 10*(2^10) chars as input seems more than enough
4411 test $ac_count -gt 10 && break
4413 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4416 $ac_path_EGREP_found && break 3
4421 if test -z "$ac_cv_path_EGREP"; then
4422 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4423 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4424 { (exit 1); exit 1; }; }
4427 ac_cv_path_EGREP
=$EGREP
4432 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4433 $as_echo "$ac_cv_path_EGREP" >&6; }
4434 EGREP
="$ac_cv_path_EGREP"
4437 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4438 $as_echo_n "checking for ANSI C header files... " >&6; }
4439 if test "${ac_cv_header_stdc+set}" = set; then
4440 $as_echo_n "(cached) " >&6
4442 cat >conftest.
$ac_ext <<_ACEOF
4445 cat confdefs.h
>>conftest.
$ac_ext
4446 cat >>conftest.
$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4461 rm -f conftest.
$ac_objext
4462 if { (ac_try
="$ac_compile"
4464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4468 $as_echo "$ac_try_echo") >&5
4469 (eval "$ac_compile") 2>conftest.er1
4471 grep -v '^ *+' conftest.er1 >conftest.err
4473 cat conftest.err >&5
4474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } && {
4476 test -z "$ac_c_werror_flag" ||
4477 test ! -s conftest.err
4478 } && test -s conftest.$ac_objext; then
4479 ac_cv_header_stdc=yes
4481 $as_echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4484 ac_cv_header_stdc=no
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 if test $ac_cv_header_stdc = yes; then
4490 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4491 cat >conftest.$ac_ext <<_ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4501 $EGREP "memchr" >/dev/null 2>&1; then
4504 ac_cv_header_stdc=no
4510 if test $ac_cv_header_stdc = yes; then
4511 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4512 cat >conftest.$ac_ext <<_ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4522 $EGREP "free" >/dev/null 2>&1; then
4525 ac_cv_header_stdc=no
4531 if test $ac_cv_header_stdc = yes; then
4532 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4533 if test "$cross_compiling" = yes; then
4536 cat >conftest.$ac_ext <<_ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4544 #if ((' ' & 0x0FF) == 0x020)
4545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4548 # define ISLOWER(c) \
4549 (('a' <= (c) && (c) <= 'i') \
4550 || ('j' <= (c) && (c) <= 'r') \
4551 || ('s' <= (c) && (c) <= 'z'))
4552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4560 for (i = 0; i < 256; i++)
4561 if (XOR (islower (i), ISLOWER (i))
4562 || toupper (i) != TOUPPER (i))
4567 rm -f conftest$ac_exeext
4568 if { (ac_try="$ac_link"
4570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4571 *) ac_try_echo
=$ac_try;;
4573 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4574 $as_echo "$ac_try_echo") >&5
4575 (eval "$ac_link") 2>&5
4577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4579 { (case "(($ac_try" in
4580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4584 $as_echo "$ac_try_echo") >&5
4585 (eval "$ac_try") 2>&5
4587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4591 $as_echo "$as_me: program exited with status $ac_status" >&5
4592 $as_echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4596 ac_cv_header_stdc=no
4598 rm -rf conftest.dSYM
4599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4605 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4606 $as_echo "$ac_cv_header_stdc" >&6; }
4607 if test $ac_cv_header_stdc = yes; then
4609 cat >>confdefs.h <<\_ACEOF
4610 #define STDC_HEADERS 1
4615 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4625 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4626 inttypes.h stdint.h unistd.h
4628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4629 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4630 $as_echo_n "checking for $ac_header... " >&6; }
4631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4632 $as_echo_n "(cached) " >&6
4634 cat >conftest.$ac_ext <<_ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640 $ac_includes_default
4642 #include <$ac_header>
4644 rm -f conftest.$ac_objext
4645 if { (ac_try="$ac_compile"
4647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4648 *) ac_try_echo
=$ac_try;;
4650 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4651 $as_echo "$ac_try_echo") >&5
4652 (eval "$ac_compile") 2>conftest.er1
4654 grep -v '^ *+' conftest.er1
>conftest.err
4656 cat conftest.err
>&5
4657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } && {
4659 test -z "$ac_c_werror_flag" ||
4660 test ! -s conftest.err
4661 } && test -s conftest.
$ac_objext; then
4662 eval "$as_ac_Header=yes"
4664 $as_echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.
$ac_ext >&5
4667 eval "$as_ac_Header=no"
4670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4672 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4673 $as_echo "$as_val"'`
4674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4675 $as_echo "$ac_res" >&6; }
4676 if test `eval 'as_val=${'$as_ac_Header'}
4677 $as_echo "$as_val"'` = yes; then
4678 cat >>confdefs.h
<<_ACEOF
4679 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4688 if test "${ac_cv_header_minix_config_h+set}" = set; then
4689 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4690 $as_echo_n "checking for minix/config.h... " >&6; }
4691 if test "${ac_cv_header_minix_config_h+set}" = set; then
4692 $as_echo_n "(cached) " >&6
4694 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4695 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4697 # Is the header compilable?
4698 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4699 $as_echo_n "checking minix/config.h usability... " >&6; }
4700 cat >conftest.
$ac_ext <<_ACEOF
4703 cat confdefs.h
>>conftest.
$ac_ext
4704 cat >>conftest.
$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4706 $ac_includes_default
4707 #include <minix/config.h>
4709 rm -f conftest.
$ac_objext
4710 if { (ac_try
="$ac_compile"
4712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4716 $as_echo "$ac_try_echo") >&5
4717 (eval "$ac_compile") 2>conftest.er1
4719 grep -v '^ *+' conftest.er1 >conftest.err
4721 cat conftest.err >&5
4722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } && {
4724 test -z "$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4726 } && test -s conftest.$ac_objext; then
4727 ac_header_compiler=yes
4729 $as_echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4732 ac_header_compiler=no
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4737 $as_echo "$ac_header_compiler" >&6; }
4739 # Is the header present?
4740 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4741 $as_echo_n "checking minix/config.h presence... " >&6; }
4742 cat >conftest.$ac_ext <<_ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 #include <minix/config.h>
4750 if { (ac_try="$ac_cpp conftest.$ac_ext"
4752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4753 *) ac_try_echo
=$ac_try;;
4755 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4756 $as_echo "$ac_try_echo") >&5
4757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4759 grep -v '^ *+' conftest.er1
>conftest.err
4761 cat conftest.err
>&5
4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } >/dev
/null
&& {
4764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4767 ac_header_preproc
=yes
4769 $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.
$ac_ext >&5
4772 ac_header_preproc
=no
4775 rm -f conftest.err conftest.
$ac_ext
4776 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4777 $as_echo "$ac_header_preproc" >&6; }
4779 # So? What about this header?
4780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4782 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4783 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4784 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4785 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4786 ac_header_preproc
=yes
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4790 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4791 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4792 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4793 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4794 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4795 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4796 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4797 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4798 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4799 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4800 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4804 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4805 $as_echo_n "checking for minix/config.h... " >&6; }
4806 if test "${ac_cv_header_minix_config_h+set}" = set; then
4807 $as_echo_n "(cached) " >&6
4809 ac_cv_header_minix_config_h
=$ac_header_preproc
4811 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4812 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4815 if test $ac_cv_header_minix_config_h = yes; then
4822 if test "$MINIX" = yes; then
4824 cat >>confdefs.h
<<\_ACEOF
4825 #define _POSIX_SOURCE 1
4829 cat >>confdefs.h
<<\_ACEOF
4830 #define _POSIX_1_SOURCE 2
4834 cat >>confdefs.h
<<\_ACEOF
4842 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4843 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4844 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4845 $as_echo_n "(cached) " >&6
4847 cat >conftest.
$ac_ext <<_ACEOF
4850 cat confdefs.h
>>conftest.
$ac_ext
4851 cat >>conftest.
$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4854 # define __EXTENSIONS__ 1
4855 $ac_includes_default
4864 rm -f conftest.
$ac_objext
4865 if { (ac_try
="$ac_compile"
4867 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4871 $as_echo "$ac_try_echo") >&5
4872 (eval "$ac_compile") 2>conftest.er1
4874 grep -v '^ *+' conftest.er1 >conftest.err
4876 cat conftest.err >&5
4877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } && {
4879 test -z "$ac_c_werror_flag" ||
4880 test ! -s conftest.err
4881 } && test -s conftest.$ac_objext; then
4882 ac_cv_safe_to_define___extensions__=yes
4884 $as_echo "$as_me: failed program was:" >&5
4885 sed 's/^/| /' conftest.$ac_ext >&5
4887 ac_cv_safe_to_define___extensions__=no
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4893 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4894 test $ac_cv_safe_to_define___extensions__ = yes &&
4895 cat >>confdefs.h <<\_ACEOF
4896 #define __EXTENSIONS__ 1
4899 cat >>confdefs.h <<\_ACEOF
4900 #define _ALL_SOURCE 1
4903 cat >>confdefs.h <<\_ACEOF
4904 #define _GNU_SOURCE 1
4907 cat >>confdefs.h <<\_ACEOF
4908 #define _POSIX_PTHREAD_SEMANTICS 1
4911 cat >>confdefs.h <<\_ACEOF
4912 #define _TANDEM_SOURCE 1
4917 ### Use -Wno-pointer-sign if the compiler supports it
4918 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4919 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4920 SAVE_CFLAGS="$CFLAGS"
4921 CFLAGS="$CFLAGS -Wno-pointer-sign"
4922 cat >conftest.$ac_ext <<_ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4937 rm -f conftest.$ac_objext
4938 if { (ac_try="$ac_compile"
4940 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4941 *) ac_try_echo
=$ac_try;;
4943 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4944 $as_echo "$ac_try_echo") >&5
4945 (eval "$ac_compile") 2>conftest.er1
4947 grep -v '^ *+' conftest.er1
>conftest.err
4949 cat conftest.err
>&5
4950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); } && {
4952 test -z "$ac_c_werror_flag" ||
4953 test ! -s conftest.err
4954 } && test -s conftest.
$ac_objext; then
4957 $as_echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.
$ac_ext >&5
4963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4964 if test $has_option = yes; then
4965 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4967 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4968 $as_echo "$has_option" >&6; }
4969 CFLAGS
="$SAVE_CFLAGS"
4973 ### Use -Wdeclaration-after-statement if the compiler supports it
4974 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4975 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4976 SAVE_CFLAGS
="$CFLAGS"
4977 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4978 cat >conftest.
$ac_ext <<_ACEOF
4981 cat confdefs.h
>>conftest.
$ac_ext
4982 cat >>conftest.
$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4993 rm -f conftest.
$ac_objext
4994 if { (ac_try
="$ac_compile"
4996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5000 $as_echo "$ac_try_echo") >&5
5001 (eval "$ac_compile") 2>conftest.er1
5003 grep -v '^ *+' conftest.er1 >conftest.err
5005 cat conftest.err >&5
5006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); } && {
5008 test -z "$ac_c_werror_flag" ||
5009 test ! -s conftest.err
5010 } && test -s conftest.$ac_objext; then
5013 $as_echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020 if test $has_option = yes; then
5021 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5023 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5024 $as_echo "$has_option" >&6; }
5025 CFLAGS="$SAVE_CFLAGS"
5029 #### Some other nice autoconf tests.
5032 ac_cpp='$CPP $CPPFLAGS'
5033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5036 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5037 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5038 # On Suns, sometimes $CPP names a directory.
5039 if test -n "$CPP" && test -d "$CPP"; then
5042 if test -z "$CPP"; then
5043 if test "${ac_cv_prog_CPP+set}" = set; then
5044 $as_echo_n "(cached) " >&6
5046 # Double quotes because CPP needs to be expanded
5047 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5050 for ac_c_preproc_warn_flag in '' yes
5052 # Use a header file that comes with gcc, so configuring glibc
5053 # with a fresh cross-compiler works.
5054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5055 # <limits.h> exists even on freestanding compilers.
5056 # On the NeXT, cc -E runs the code through the compiler's parser,
5057 # not just through cpp. "Syntax error" is here to catch this case.
5058 cat >conftest.$ac_ext <<_ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5065 # include <limits.h>
5067 # include <assert.h>
5071 if { (ac_try="$ac_cpp conftest.$ac_ext"
5073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5074 *) ac_try_echo
=$ac_try;;
5076 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5077 $as_echo "$ac_try_echo") >&5
5078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5080 grep -v '^ *+' conftest.er1
>conftest.err
5082 cat conftest.err
>&5
5083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); } >/dev
/null
&& {
5085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5086 test ! -s conftest.err
5090 $as_echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.
$ac_ext >&5
5093 # Broken: fails on valid input.
5097 rm -f conftest.err conftest.
$ac_ext
5099 # OK, works on sane cases. Now check whether nonexistent headers
5100 # can be detected and how.
5101 cat >conftest.
$ac_ext <<_ACEOF
5104 cat confdefs.h
>>conftest.
$ac_ext
5105 cat >>conftest.
$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5107 #include <ac_nonexistent.h>
5109 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5115 $as_echo "$ac_try_echo") >&5
5116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5118 grep -v '^ *+' conftest.er1 >conftest.err
5120 cat conftest.err >&5
5121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } >/dev/null && {
5123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5124 test ! -s conftest.err
5126 # Broken: success on invalid input.
5129 $as_echo "$as_me: failed program was:" >&5
5130 sed 's/^/| /' conftest.$ac_ext >&5
5132 # Passes both tests.
5137 rm -f conftest.err conftest.$ac_ext
5140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141 rm -f conftest.err conftest.
$ac_ext
5142 if $ac_preproc_ok; then
5154 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5155 $as_echo "$CPP" >&6; }
5157 for ac_c_preproc_warn_flag
in '' yes
5159 # Use a header file that comes with gcc, so configuring glibc
5160 # with a fresh cross-compiler works.
5161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162 # <limits.h> exists even on freestanding compilers.
5163 # On the NeXT, cc -E runs the code through the compiler's parser,
5164 # not just through cpp. "Syntax error" is here to catch this case.
5165 cat >conftest.
$ac_ext <<_ACEOF
5168 cat confdefs.h
>>conftest.
$ac_ext
5169 cat >>conftest.
$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5172 # include <limits.h>
5174 # include <assert.h>
5178 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5184 $as_echo "$ac_try_echo") >&5
5185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5187 grep -v '^ *+' conftest.er1 >conftest.err
5189 cat conftest.err >&5
5190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } >/dev/null && {
5192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5193 test ! -s conftest.err
5197 $as_echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5200 # Broken: fails on valid input.
5204 rm -f conftest.err conftest.$ac_ext
5206 # OK, works on sane cases. Now check whether nonexistent headers
5207 # can be detected and how.
5208 cat >conftest.$ac_ext <<_ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 #include <ac_nonexistent.h>
5216 if { (ac_try="$ac_cpp conftest.$ac_ext"
5218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5219 *) ac_try_echo
=$ac_try;;
5221 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5222 $as_echo "$ac_try_echo") >&5
5223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5225 grep -v '^ *+' conftest.er1
>conftest.err
5227 cat conftest.err
>&5
5228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } >/dev
/null
&& {
5230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5231 test ! -s conftest.err
5233 # Broken: success on invalid input.
5236 $as_echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.
$ac_ext >&5
5239 # Passes both tests.
5244 rm -f conftest.err conftest.
$ac_ext
5247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5248 rm -f conftest.err conftest.
$ac_ext
5249 if $ac_preproc_ok; then
5252 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5253 See \`config.log' for more details." >&5
5254 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5255 See \`config.log' for more details." >&2;}
5256 { (exit 1); exit 1; }; }
5260 ac_cpp
='$CPP $CPPFLAGS'
5261 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5265 # Find a good install program. We prefer a C program (faster),
5266 # so one script is as good as another. But avoid the broken or
5267 # incompatible versions:
5268 # SysV /etc/install, /usr/sbin/install
5269 # SunOS /usr/etc/install
5270 # IRIX /sbin/install
5272 # AmigaOS /C/install, which installs bootblocks on floppy discs
5273 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5274 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5275 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5276 # OS/2's system install, which has a completely different semantic
5277 # ./install, which can be erroneously created by make from ./install.sh.
5278 # Reject install programs that cannot install multiple files.
5279 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5280 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5281 if test -z "$INSTALL"; then
5282 if test "${ac_cv_path_install+set}" = set; then
5283 $as_echo_n "(cached) " >&6
5285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5289 test -z "$as_dir" && as_dir
=.
5290 # Account for people who put trailing slashes in PATH elements.
5292 .
/ | .
// |
/cC
/* | \
5293 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5294 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5297 # OSF1 and SCO ODT 3.0 have their own names for install.
5298 # Don't use installbsd from OSF since it installs stuff as root
5300 for ac_prog
in ginstall scoinst
install; do
5301 for ac_exec_ext
in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5303 if test $ac_prog = install &&
5304 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5305 # AIX install. It has an incompatible calling convention.
5307 elif test $ac_prog = install &&
5308 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5309 # program-specific install script used by HP pwplus--don't use.
5312 rm -rf conftest.one conftest.two conftest.dir
5313 echo one
> conftest.one
5314 echo two
> conftest.two
5316 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5317 test -s conftest.one
&& test -s conftest.two
&&
5318 test -s conftest.dir
/conftest.one
&&
5319 test -s conftest.dir
/conftest.two
5321 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5334 rm -rf conftest.one conftest.two conftest.dir
5337 if test "${ac_cv_path_install+set}" = set; then
5338 INSTALL
=$ac_cv_path_install
5340 # As a last resort, use the slow shell script. Don't cache a
5341 # value for INSTALL within a source directory, because that will
5342 # break other packages using the cache if that directory is
5343 # removed, or if the value is a relative name.
5344 INSTALL
=$ac_install_sh
5347 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5348 $as_echo "$INSTALL" >&6; }
5350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5351 # It thinks the first close brace ends the variable substitution.
5352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5356 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5358 if test "x$RANLIB" = x
; then
5359 if test -n "$ac_tool_prefix"; then
5360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5361 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if test "${ac_cv_prog_RANLIB+set}" = set; then
5365 $as_echo_n "(cached) " >&6
5367 if test -n "$RANLIB"; then
5368 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5370 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5374 test -z "$as_dir" && as_dir
=.
5375 for ac_exec_ext
in '' $ac_executable_extensions; do
5376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5377 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 RANLIB
=$ac_cv_prog_RANLIB
5388 if test -n "$RANLIB"; then
5389 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5390 $as_echo "$RANLIB" >&6; }
5392 { $as_echo "$as_me:$LINENO: result: no" >&5
5393 $as_echo "no" >&6; }
5398 if test -z "$ac_cv_prog_RANLIB"; then
5399 ac_ct_RANLIB
=$RANLIB
5400 # Extract the first word of "ranlib", so it can be a program name with args.
5401 set dummy ranlib
; ac_word
=$2
5402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5405 $as_echo_n "(cached) " >&6
5407 if test -n "$ac_ct_RANLIB"; then
5408 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5414 test -z "$as_dir" && as_dir
=.
5415 for ac_exec_ext
in '' $ac_executable_extensions; do
5416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5428 if test -n "$ac_ct_RANLIB"; then
5429 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5430 $as_echo "$ac_ct_RANLIB" >&6; }
5432 { $as_echo "$as_me:$LINENO: result: no" >&5
5433 $as_echo "no" >&6; }
5436 if test "x$ac_ct_RANLIB" = x
; then
5439 case $cross_compiling:$ac_tool_warned in
5441 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5442 whose name does not start with the host triplet. If you think this
5443 configuration is useful to you, please write to autoconf@gnu.org." >&5
5444 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5445 whose name does not start with the host triplet. If you think this
5446 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5447 ac_tool_warned
=yes ;;
5449 RANLIB
=$ac_ct_RANLIB
5452 RANLIB
="$ac_cv_prog_RANLIB"
5457 ## Although we're running on an amd64 kernel, we're actually compiling for
5458 ## the x86 architecture. The user should probably have provided an
5459 ## explicit --build to `configure', but if everything else than the kernel
5460 ## is running in i386 mode, we can help them out.
5461 if test "$machine" = "amdx86-64"; then
5462 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5463 $as_echo_n "checking whether i386 is declared... " >&6; }
5464 if test "${ac_cv_have_decl_i386+set}" = set; then
5465 $as_echo_n "(cached) " >&6
5467 cat >conftest.
$ac_ext <<_ACEOF
5470 cat confdefs.h
>>conftest.
$ac_ext
5471 cat >>conftest.
$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 $ac_includes_default
5485 rm -f conftest.
$ac_objext
5486 if { (ac_try
="$ac_compile"
5488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5492 $as_echo "$ac_try_echo") >&5
5493 (eval "$ac_compile") 2>conftest.er1
5495 grep -v '^ *+' conftest.er1 >conftest.err
5497 cat conftest.err >&5
5498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && {
5500 test -z "$ac_c_werror_flag" ||
5501 test ! -s conftest.err
5502 } && test -s conftest.$ac_objext; then
5503 ac_cv_have_decl_i386=yes
5505 $as_echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5508 ac_cv_have_decl_i386=no
5511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5513 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5514 $as_echo "$ac_cv_have_decl_i386" >&6; }
5516 if test "$ac_cv_have_decl_i386" = "yes"; then
5517 canonical=`echo "$canonical" |
sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5519 machfile="m/${machine}.h"
5523 # Extract the first word of "install-info", so it can be a program name with args.
5524 set dummy install-info; ac_word=$2
5525 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5528 $as_echo_n "(cached) " >&6
5530 case $INSTALL_INFO in
5532 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5542 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5554 if test -n "$INSTALL_INFO"; then
5555 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5556 $as_echo "$INSTALL_INFO" >&6; }
5558 { $as_echo "$as_me:$LINENO: result: no" >&5
5559 $as_echo "no" >&6; }
5563 # Extract the first word of "install-info", so it can be a program name with args.
5564 set dummy install-info; ac_word=$2
5565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5568 $as_echo_n "(cached) " >&6
5570 case $INSTALL_INFO in
5572 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in /usr/sbin
5579 test -z "$as_dir" && as_dir=.
5580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5583 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5594 if test -n "$INSTALL_INFO"; then
5595 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5596 $as_echo "$INSTALL_INFO" >&6; }
5598 { $as_echo "$as_me:$LINENO: result: no" >&5
5599 $as_echo "no" >&6; }
5603 # Extract the first word of "install-info", so it can be a program name with args.
5604 set dummy install-info; ac_word=$2
5605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5608 $as_echo_n "(cached) " >&6
5610 case $INSTALL_INFO in
5612 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5623 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5634 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5635 if test -n "$INSTALL_INFO"; then
5636 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5637 $as_echo "$INSTALL_INFO" >&6; }
5639 { $as_echo "$as_me:$LINENO: result: no" >&5
5640 $as_echo "no" >&6; }
5644 # Extract the first word of "gzip", so it can be a program name with args.
5645 set dummy gzip; ac_word=$2
5646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5649 $as_echo_n "(cached) " >&6
5653 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5664 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 GZIP_PROG=$ac_cv_path_GZIP_PROG
5675 if test -n "$GZIP_PROG"; then
5676 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5677 $as_echo "$GZIP_PROG" >&6; }
5679 { $as_echo "$as_me:$LINENO: result: no" >&5
5680 $as_echo "no" >&6; }
5686 ## Need makeinfo >= 4.6 (?) to build the manuals.
5687 # Extract the first word of "makeinfo", so it can be a program name with args.
5688 set dummy makeinfo; ac_word=$2
5689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5692 $as_echo_n "(cached) " >&6
5696 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5718 MAKEINFO=$ac_cv_path_MAKEINFO
5719 if test -n "$MAKEINFO"; then
5720 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5721 $as_echo "$MAKEINFO" >&6; }
5723 { $as_echo "$as_me:$LINENO: result: no" >&5
5724 $as_echo "no" >&6; }
5728 if test "$MAKEINFO" != "no" && \
5729 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
5733 ## Makeinfo is unusual. For a released Emacs, the manuals are
5734 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5735 ## therefore in the category of "special tools" not normally required, which
5736 ## configure does not have to check for (eg autoconf itself).
5737 ## In a Bazaar checkout on the other hand, the manuals are not included.
5738 ## So makeinfo is a requirement to build from Bazaar, and configure
5739 ## should test for it as it does for any other build requirement.
5740 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5741 ## with pre-built manuals, from a Bazaar checkout.
5742 if test "$MAKEINFO" = "no"; then
5743 if test "x${with_makeinfo}" = "xno"; then
5745 elif test ! -e $srcdir/info/emacs; then
5746 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5747 source tree does not seem to have pre-built manuals in the \`info
' directory.
5748 Either install a suitable version of makeinfo, or re-run configure
5749 with the \`--without-makeinfo' option to build without the manuals.
" >&5
5750 $as_echo "$as_me: error
: You
do not seem to have makeinfo
>= 4.6, and your
5751 source tree does not seem to have pre-built manuals
in the \
`info' directory.
5752 Either install a suitable version of makeinfo, or re-run configure
5753 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5754 { (exit 1); exit 1; }; }
5759 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5761 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5764 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5766 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5770 late_LDFLAGS=$LDFLAGS
5771 if test "$GCC" = yes; then
5772 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5774 LDFLAGS="$LDFLAGS -znocombreloc"
5777 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5778 $as_echo_n "checking for -znocombreloc... " >&6; }
5779 cat >conftest.$ac_ext <<_ACEOF
5782 rm -f conftest.$ac_objext conftest$ac_exeext
5783 if { (ac_try="$ac_link"
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5789 $as_echo "$ac_try_echo") >&5
5790 (eval "$ac_link") 2>conftest.er1
5792 grep -v '^
*+' conftest.er1 >conftest.err
5794 cat conftest.err >&5
5795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } && {
5797 test -z "$ac_c_werror_flag" ||
5798 test ! -s conftest.err
5799 } && test -s conftest$ac_exeext && {
5800 test "$cross_compiling" = yes ||
5801 $as_test_x conftest$ac_exeext
5803 { $as_echo "$as_me:$LINENO: result: yes" >&5
5804 $as_echo "yes" >&6; }
5806 $as_echo "$as_me: failed program was:" >&5
5807 sed 's
/^
/|
/' conftest.$ac_ext >&5
5809 LDFLAGS=$late_LDFLAGS
5810 { $as_echo "$as_me:$LINENO: result: no" >&5
5811 $as_echo "no" >&6; }
5814 rm -rf conftest.dSYM
5815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5816 conftest$ac_exeext conftest.$ac_ext
5818 #### Extract some information from the operating system and machine files.
5820 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5821 - which libraries the lib-src programs will want, and
5822 - whether the GNU malloc routines are usable..." >&5
5823 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5824 - which libraries the lib-src programs will want, and
5825 - whether the GNU malloc routines are usable..." >&6;}
5827 ### First figure out CFLAGS (which we use for running the compiler here)
5828 ### and REAL_CFLAGS (which we use for real compilation).
5829 ### The two are the same except on a few systems, where they are made
5830 ### different to work around various lossages. For example,
5831 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5832 ### as implying static linking.
5834 ### If the CFLAGS env var is specified, we use that value
5835 ### instead of the default.
5837 ### It's not important that this name contain the PID
; you can
't run
5838 ### two configures in the same directory and have anything work
5840 tempcname="conftest.c"
5843 #include "'${srcdir}'/src/'${opsysfile}'"
5844 #include "'${srcdir}'/src/'${machfile}'"
5846 configure___ LIBX
=-lX11
5848 configure___ unexec
=UNEXEC
5850 #ifdef SYSTEM_MALLOC
5851 configure___ system_malloc
=yes
5853 configure___ system_malloc
=no
5856 #ifdef USE_MMAP_FOR_BUFFERS
5857 configure___ use_mmap_for_buffers
=yes
5859 configure___ use_mmap_for_buffers
=no
5862 #ifndef C_OPTIMIZE_SWITCH
5864 #define C_OPTIMIZE_SWITCH -O2
5866 #define C_OPTIMIZE_SWITCH -O
5870 #ifndef C_WARNINGS_SWITCH
5871 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5874 #ifdef THIS_IS_CONFIGURE
5876 /* Get the CFLAGS
for tests
in configure.
*/
5878 configure___ CFLAGS
=-g C_OPTIMIZE_SWITCH
'${SPECIFIED_CFLAGS}'
5880 configure___ CFLAGS
='${SPECIFIED_CFLAGS}'
5883 #else /* not THIS_IS_CONFIGURE */
5885 /* Get the CFLAGS
for real compilation.
*/
5887 configure___ REAL_CFLAGS
=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH
${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5889 configure___ REAL_CFLAGS
='${SPECIFIED_CFLAGS}'
5892 #endif /* not THIS_IS_CONFIGURE */
5895 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5897 # The value of CPP is a quoted variable reference, so we need to do this
5898 # to get its actual value...
5899 CPP=`eval "echo $CPP"`
5900 eval `${CPP} -Isrc ${tempcname} \
5901 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5902 if test "x$SPECIFIED_CFLAGS" = x; then
5903 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5904 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5906 REAL_CFLAGS="$CFLAGS"
5914 ## Let `ld' find image libs and similar things
in /usr
/local
/lib.
5915 ## The system compiler, GCC, has apparently been modified to not
5916 ## look there, contrary to what a stock GCC would do.
5917 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5921 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5922 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5926 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5930 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5931 ## otherwise Emacs dumps core on elf systems.
5932 LD_SWITCH_SYSTEM
="-Z"
5937 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5939 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5940 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5941 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5942 ## values in configure and the Makefiles. How helpful.
5943 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5946 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5947 LD_SWITCH_SYSTEM
="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5950 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5951 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5956 if test "$machine" = "alpha"; then
5957 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5958 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5959 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5960 $as_echo_n "(cached) " >&6
5962 cat >conftest.
$ac_ext <<_ACEOF
5965 cat confdefs.h
>>conftest.
$ac_ext
5966 cat >>conftest.
$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 $ac_includes_default
5980 rm -f conftest.
$ac_objext
5981 if { (ac_try
="$ac_compile"
5983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5987 $as_echo "$ac_try_echo") >&5
5988 (eval "$ac_compile") 2>conftest.er1
5990 grep -v '^ *+' conftest.er1 >conftest.err
5992 cat conftest.err >&5
5993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } && {
5995 test -z "$ac_c_werror_flag" ||
5996 test ! -s conftest.err
5997 } && test -s conftest.$ac_objext; then
5998 ac_cv_have_decl___ELF__=yes
6000 $as_echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6003 ac_cv_have_decl___ELF__=no
6006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6009 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6011 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6012 ## With ELF, make sure that all common symbols get allocated to in the
6013 ## data section. Otherwise, the dump of temacs may miss variables in
6014 ## the shared library that have been initialized. For example, with
6015 ## GNU libc, __malloc_initialized would normally be resolved to the
6016 ## shared library's .bss section, which is fatal.
6017 if test "x$GCC" = "xyes"; then
6018 C_SWITCH_MACHINE="-fno-common"
6020 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6021 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6022 { (exit 1); exit 1; }; }
6030 ## Some programs in src produce warnings saying certain subprograms
6031 ## are too complex and need a MAXMEM value greater than 2000 for
6032 ## additional optimization. --nils@exp-math.uni-essen.de
6033 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6034 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6035 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6036 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6042 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6043 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6045 freebsd) LIBS_SYSTEM="-lutil" ;;
6047 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6049 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6051 ## Motif needs -lgen.
6052 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6057 ### Make sure subsequent tests use flags consistent with the build flags.
6059 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6060 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6062 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6067 # Check whether --enable-largefile was given.
6068 if test "${enable_largefile+set}" = set; then
6069 enableval=$enable_largefile;
6072 if test "$enable_largefile" != no; then
6074 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6075 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6076 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6077 $as_echo_n "(cached) " >&6
6079 ac_cv_sys_largefile_CC=no
6080 if test "$GCC" != yes; then
6083 # IRIX 6.2 and later do not support large files by default,
6084 # so use the C compiler's -n32 option if that helps.
6085 cat >conftest.$ac_ext <<_ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 #include <sys/types.h>
6092 /* Check that off_t can represent 2**63 - 1 correctly.
6093 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6094 since some C++ compilers masquerading as C compilers
6095 incorrectly reject 9223372036854775807. */
6096 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6097 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6098 && LARGE_OFF_T % 2147483647 == 1)
6108 rm -f conftest.$ac_objext
6109 if { (ac_try="$ac_compile"
6111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6112 *) ac_try_echo
=$ac_try;;
6114 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6115 $as_echo "$ac_try_echo") >&5
6116 (eval "$ac_compile") 2>conftest.er1
6118 grep -v '^ *+' conftest.er1
>conftest.err
6120 cat conftest.err
>&5
6121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } && {
6123 test -z "$ac_c_werror_flag" ||
6124 test ! -s conftest.err
6125 } && test -s conftest.
$ac_objext; then
6128 $as_echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.
$ac_ext >&5
6134 rm -f core conftest.err conftest.
$ac_objext
6136 rm -f conftest.
$ac_objext
6137 if { (ac_try
="$ac_compile"
6139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6143 $as_echo "$ac_try_echo") >&5
6144 (eval "$ac_compile") 2>conftest.er1
6146 grep -v '^ *+' conftest.er1 >conftest.err
6148 cat conftest.err >&5
6149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } && {
6151 test -z "$ac_c_werror_flag" ||
6152 test ! -s conftest.err
6153 } && test -s conftest.$ac_objext; then
6154 ac_cv_sys_largefile_CC=' -n32'; break
6156 $as_echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6162 rm -f core conftest.err conftest.$ac_objext
6166 rm -f conftest.$ac_ext
6169 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6170 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6171 if test "$ac_cv_sys_largefile_CC" != no; then
6172 CC=$CC$ac_cv_sys_largefile_CC
6175 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6176 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6177 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6178 $as_echo_n "(cached) " >&6
6181 cat >conftest.$ac_ext <<_ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6187 #include <sys/types.h>
6188 /* Check that off_t can represent 2**63 - 1 correctly.
6189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6190 since some C++ compilers masquerading as C compilers
6191 incorrectly reject 9223372036854775807. */
6192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6194 && LARGE_OFF_T % 2147483647 == 1)
6204 rm -f conftest.$ac_objext
6205 if { (ac_try="$ac_compile"
6207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6208 *) ac_try_echo
=$ac_try;;
6210 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6211 $as_echo "$ac_try_echo") >&5
6212 (eval "$ac_compile") 2>conftest.er1
6214 grep -v '^ *+' conftest.er1
>conftest.err
6216 cat conftest.err
>&5
6217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && {
6219 test -z "$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6221 } && test -s conftest.
$ac_objext; then
6222 ac_cv_sys_file_offset_bits
=no
; break
6224 $as_echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.
$ac_ext >&5
6230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6231 cat >conftest.
$ac_ext <<_ACEOF
6234 cat confdefs.h
>>conftest.
$ac_ext
6235 cat >>conftest.
$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 #define _FILE_OFFSET_BITS 64
6238 #include <sys/types.h>
6239 /* Check that off_t can represent 2**63 - 1 correctly.
6240 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6241 since some C++ compilers masquerading as C compilers
6242 incorrectly reject 9223372036854775807. */
6243 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6244 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6245 && LARGE_OFF_T % 2147483647 == 1)
6255 rm -f conftest.
$ac_objext
6256 if { (ac_try
="$ac_compile"
6258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6262 $as_echo "$ac_try_echo") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6265 grep -v '^ *+' conftest.er1 >conftest.err
6267 cat conftest.err >&5
6268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } && {
6270 test -z "$ac_c_werror_flag" ||
6271 test ! -s conftest.err
6272 } && test -s conftest.$ac_objext; then
6273 ac_cv_sys_file_offset_bits=64; break
6275 $as_echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 ac_cv_sys_file_offset_bits=unknown
6286 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6287 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6288 case $ac_cv_sys_file_offset_bits in #(
6291 cat >>confdefs.h <<_ACEOF
6292 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6297 if test $ac_cv_sys_file_offset_bits = unknown; then
6298 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6299 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6300 if test "${ac_cv_sys_large_files+set}" = set; then
6301 $as_echo_n "(cached) " >&6
6304 cat >conftest.$ac_ext <<_ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 #include <sys/types.h>
6311 /* Check that off_t can represent 2**63 - 1 correctly.
6312 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6313 since some C++ compilers masquerading as C compilers
6314 incorrectly reject 9223372036854775807. */
6315 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6316 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6317 && LARGE_OFF_T % 2147483647 == 1)
6327 rm -f conftest.$ac_objext
6328 if { (ac_try="$ac_compile"
6330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6331 *) ac_try_echo
=$ac_try;;
6333 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6334 $as_echo "$ac_try_echo") >&5
6335 (eval "$ac_compile") 2>conftest.er1
6337 grep -v '^ *+' conftest.er1
>conftest.err
6339 cat conftest.err
>&5
6340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } && {
6342 test -z "$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 } && test -s conftest.
$ac_objext; then
6345 ac_cv_sys_large_files
=no
; break
6347 $as_echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.
$ac_ext >&5
6353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6354 cat >conftest.
$ac_ext <<_ACEOF
6357 cat confdefs.h
>>conftest.
$ac_ext
6358 cat >>conftest.
$ac_ext <<_ACEOF
6359 /* end confdefs.h. */
6360 #define _LARGE_FILES 1
6361 #include <sys/types.h>
6362 /* Check that off_t can represent 2**63 - 1 correctly.
6363 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6364 since some C++ compilers masquerading as C compilers
6365 incorrectly reject 9223372036854775807. */
6366 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6367 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6368 && LARGE_OFF_T % 2147483647 == 1)
6378 rm -f conftest.
$ac_objext
6379 if { (ac_try
="$ac_compile"
6381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6385 $as_echo "$ac_try_echo") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6388 grep -v '^ *+' conftest.er1 >conftest.err
6390 cat conftest.err >&5
6391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest.$ac_objext; then
6396 ac_cv_sys_large_files=1; break
6398 $as_echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 ac_cv_sys_large_files=unknown
6409 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6410 $as_echo "$ac_cv_sys_large_files" >&6; }
6411 case $ac_cv_sys_large_files in #(
6414 cat >>confdefs.h <<_ACEOF
6415 #define _LARGE_FILES $ac_cv_sys_large_files
6425 ## If user specified a crt-dir, use that unconditionally.
6426 if test "X$CRT_DIR" = "X"; then
6428 case "$canonical" in
6429 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6430 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6431 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6432 ## For anything else (eg /usr/lib32), it is up the user to specify
6433 ## the location (bug#5655).
6434 ## Test for crtn.o, not just the directory, because sometimes the
6435 ## directory exists but does not have the relevant files (bug#1287).
6436 ## FIXME better to test for binary compatibility somehow.
6437 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6440 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6444 hpux10-20) CRT_DIR=/lib ;;
6447 ## Default is /usr/lib.
6448 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6452 ## Some platforms don't use any of these files, so it is not
6453 ## appropriate to put this test outside the if block.
6454 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6455 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6456 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6457 { (exit 1); exit 1; }; }
6470 START_FILES='ecrt0.o'
6473 ## Adding -lm confuses the dynamic linker, so omit it.
6475 START_FILES='pre-crt0.o'
6478 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6479 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6481 gnu-linux | gnu-kfreebsd )
6482 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6483 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6485 hpux10-20 | hpux11 )
6487 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6490 if test -f $CRT_DIR/crti.o; then
6491 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6492 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6494 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6495 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6506 if test "${with_sound}" != "no"; then
6507 # Sound support for GNU/Linux and the free BSDs.
6511 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6515 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6516 $as_echo_n "checking for $ac_header... " >&6; }
6517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6518 $as_echo_n "(cached) " >&6
6520 ac_res=`eval 'as_val=${'$as_ac_Header'}
6521 $as_echo "$as_val"'`
6522 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6523 $as_echo "$ac_res" >&6; }
6525 # Is the header compilable?
6526 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6527 $as_echo_n "checking $ac_header usability... " >&6; }
6528 cat >conftest.$ac_ext <<_ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 $ac_includes_default
6535 #include <$ac_header>
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6541 *) ac_try_echo
=$ac_try;;
6543 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6544 $as_echo "$ac_try_echo") >&5
6545 (eval "$ac_compile") 2>conftest.er1
6547 grep -v '^ *+' conftest.er1
>conftest.err
6549 cat conftest.err
>&5
6550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest.
$ac_objext; then
6555 ac_header_compiler
=yes
6557 $as_echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.
$ac_ext >&5
6560 ac_header_compiler
=no
6563 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6564 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6565 $as_echo "$ac_header_compiler" >&6; }
6567 # Is the header present?
6568 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6569 $as_echo_n "checking $ac_header presence... " >&6; }
6570 cat >conftest.
$ac_ext <<_ACEOF
6573 cat confdefs.h
>>conftest.
$ac_ext
6574 cat >>conftest.
$ac_ext <<_ACEOF
6575 /* end confdefs.h. */
6576 #include <$ac_header>
6578 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6584 $as_echo "$ac_try_echo") >&5
6585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6587 grep -v '^ *+' conftest.er1 >conftest.err
6589 cat conftest.err >&5
6590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } >/dev/null && {
6592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6595 ac_header_preproc=yes
6597 $as_echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 ac_header_preproc=no
6603 rm -f conftest.err conftest.$ac_ext
6604 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6605 $as_echo "$ac_header_preproc" >&6; }
6607 # So? What about this header?
6608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6611 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6613 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6614 ac_header_preproc=yes
6617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6618 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6620 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6622 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6624 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6626 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6628 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6632 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6633 $as_echo_n "checking for $ac_header... " >&6; }
6634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6635 $as_echo_n "(cached) " >&6
6637 eval "$as_ac_Header=\$ac_header_preproc"
6639 ac_res=`eval 'as_val=${'$as_ac_Header'}
6640 $as_echo "$as_val"'`
6641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6642 $as_echo "$ac_res" >&6; }
6645 if test `eval 'as_val=${'$as_ac_Header'}
6646 $as_echo "$as_val"'` = yes; then
6647 cat >>confdefs.h <<_ACEOF
6648 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6655 # Emulation library used on NetBSD.
6656 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6657 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6658 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6659 $as_echo_n "(cached) " >&6
6661 ac_check_lib_save_LIBS=$LIBS
6662 LIBS="-lossaudio $LIBS"
6663 cat >conftest.$ac_ext <<_ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6670 /* Override any GCC internal prototype to avoid an error.
6671 Use char because int might match the return type of a GCC
6672 builtin and then its argument prototype would still apply. */
6680 return _oss_ioctl ();
6685 rm -f conftest.$ac_objext conftest$ac_exeext
6686 if { (ac_try="$ac_link"
6688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6689 *) ac_try_echo
=$ac_try;;
6691 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6692 $as_echo "$ac_try_echo") >&5
6693 (eval "$ac_link") 2>conftest.er1
6695 grep -v '^ *+' conftest.er1
>conftest.err
6697 cat conftest.err
>&5
6698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && {
6700 test -z "$ac_c_werror_flag" ||
6701 test ! -s conftest.err
6702 } && test -s conftest
$ac_exeext && {
6703 test "$cross_compiling" = yes ||
6704 $as_test_x conftest
$ac_exeext
6706 ac_cv_lib_ossaudio__oss_ioctl
=yes
6708 $as_echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.
$ac_ext >&5
6711 ac_cv_lib_ossaudio__oss_ioctl
=no
6714 rm -rf conftest.dSYM
6715 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6716 conftest
$ac_exeext conftest.
$ac_ext
6717 LIBS
=$ac_check_lib_save_LIBS
6719 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6720 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6721 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6730 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6734 # Extract the first word of "pkg-config", so it can be a program name with args.
6735 set dummy pkg-config
; ac_word
=$2
6736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6739 $as_echo_n "(cached) " >&6
6743 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6750 test -z "$as_dir" && as_dir
=.
6751 for ac_exec_ext
in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6754 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6765 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6766 if test -n "$PKG_CONFIG"; then
6767 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6768 $as_echo "$PKG_CONFIG" >&6; }
6770 { $as_echo "$as_me:$LINENO: result: no" >&5
6771 $as_echo "no" >&6; }
6776 if test "$PKG_CONFIG" = "no" ; then
6779 PKG_CONFIG_MIN_VERSION
=0.9.0
6780 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6781 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6782 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6784 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6785 { $as_echo "$as_me:$LINENO: result: yes" >&5
6786 $as_echo "yes" >&6; }
6789 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6790 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6791 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6792 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6793 $as_echo "$ALSA_CFLAGS" >&6; }
6795 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6796 $as_echo_n "checking ALSA_LIBS... " >&6; }
6797 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6798 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6799 $as_echo "$ALSA_LIBS" >&6; }
6801 { $as_echo "$as_me:$LINENO: result: no" >&5
6802 $as_echo "no" >&6; }
6805 ## If we have a custom action on failure, don't print errors, but
6806 ## do set a variable so people can do so.
6807 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6814 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6815 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6819 if test $succeeded = yes; then
6825 if test $HAVE_ALSA = yes; then
6826 SAVE_CFLAGS
="$CFLAGS"
6827 SAVE_LDFLAGS
="$LDFLAGS"
6828 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6829 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6830 cat >conftest.
$ac_ext <<_ACEOF
6833 cat confdefs.h
>>conftest.
$ac_ext
6834 cat >>conftest.
$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 #include <asoundlib.h>
6840 snd_lib_error_set_handler (0);
6845 rm -f conftest.
$ac_objext
6846 if { (ac_try
="$ac_compile"
6848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6852 $as_echo "$ac_try_echo") >&5
6853 (eval "$ac_compile") 2>conftest.er1
6855 grep -v '^ *+' conftest.er1 >conftest.err
6857 cat conftest.err >&5
6858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } && {
6860 test -z "$ac_c_werror_flag" ||
6861 test ! -s conftest.err
6862 } && test -s conftest.$ac_objext; then
6863 emacs_alsa_normal=yes
6865 $as_echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6868 emacs_alsa_normal=no
6871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6872 if test "$emacs_alsa_normal" != yes; then
6873 cat >conftest.$ac_ext <<_ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 #include <alsa/asoundlib.h>
6883 snd_lib_error_set_handler (0);
6888 rm -f conftest.$ac_objext
6889 if { (ac_try="$ac_compile"
6891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6892 *) ac_try_echo
=$ac_try;;
6894 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6895 $as_echo "$ac_try_echo") >&5
6896 (eval "$ac_compile") 2>conftest.er1
6898 grep -v '^ *+' conftest.er1
>conftest.err
6900 cat conftest.err
>&5
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } && {
6903 test -z "$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6905 } && test -s conftest.
$ac_objext; then
6906 emacs_alsa_subdir
=yes
6908 $as_echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.
$ac_ext >&5
6911 emacs_alsa_subdir
=no
6914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6915 if test "$emacs_alsa_subdir" != yes; then
6916 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6917 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6918 { (exit 1); exit 1; }; }
6920 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6923 CFLAGS
="$SAVE_CFLAGS"
6924 LDFLAGS
="$SAVE_LDFLAGS"
6925 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6926 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6928 cat >>confdefs.h
<<\_ACEOF
6961 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6962 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6963 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6964 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6965 sys
/utsname.h
pwd.h utmp.h
6967 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6968 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6969 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6970 $as_echo_n "checking for $ac_header... " >&6; }
6971 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6972 $as_echo_n "(cached) " >&6
6974 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6975 $as_echo "$as_val"'`
6976 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6977 $as_echo "$ac_res" >&6; }
6979 # Is the header compilable?
6980 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6981 $as_echo_n "checking $ac_header usability... " >&6; }
6982 cat >conftest.
$ac_ext <<_ACEOF
6985 cat confdefs.h
>>conftest.
$ac_ext
6986 cat >>conftest.
$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 $ac_includes_default
6989 #include <$ac_header>
6991 rm -f conftest.
$ac_objext
6992 if { (ac_try
="$ac_compile"
6994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6995 *) ac_try_echo=$ac_try;;
6997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6998 $as_echo "$ac_try_echo") >&5
6999 (eval "$ac_compile") 2>conftest.er1
7001 grep -v '^ *+' conftest.er1 >conftest.err
7003 cat conftest.err >&5
7004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } && {
7006 test -z "$ac_c_werror_flag" ||
7007 test ! -s conftest.err
7008 } && test -s conftest.$ac_objext; then
7009 ac_header_compiler=yes
7011 $as_echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7014 ac_header_compiler=no
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7019 $as_echo "$ac_header_compiler" >&6; }
7021 # Is the header present?
7022 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7023 $as_echo_n "checking $ac_header presence... " >&6; }
7024 cat >conftest.$ac_ext <<_ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7030 #include <$ac_header>
7032 if { (ac_try="$ac_cpp conftest.$ac_ext"
7034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7035 *) ac_try_echo
=$ac_try;;
7037 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7038 $as_echo "$ac_try_echo") >&5
7039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7041 grep -v '^ *+' conftest.er1
>conftest.err
7043 cat conftest.err
>&5
7044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } >/dev
/null
&& {
7046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7047 test ! -s conftest.err
7049 ac_header_preproc
=yes
7051 $as_echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.
$ac_ext >&5
7054 ac_header_preproc
=no
7057 rm -f conftest.err conftest.
$ac_ext
7058 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7059 $as_echo "$ac_header_preproc" >&6; }
7061 # So? What about this header?
7062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7064 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7065 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7067 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7068 ac_header_preproc
=yes
7071 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7072 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7074 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7076 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7078 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7080 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7082 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7086 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7087 $as_echo_n "checking for $ac_header... " >&6; }
7088 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7089 $as_echo_n "(cached) " >&6
7091 eval "$as_ac_Header=\$ac_header_preproc"
7093 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7094 $as_echo "$as_val"'`
7095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7096 $as_echo "$ac_res" >&6; }
7099 if test `eval 'as_val=${'$as_ac_Header'}
7100 $as_echo "$as_val"'` = yes; then
7101 cat >>confdefs.h
<<_ACEOF
7102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7110 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7111 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7112 cat >conftest.
$ac_ext <<_ACEOF
7115 cat confdefs.h
>>conftest.
$ac_ext
7116 cat >>conftest.
$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 #include <sys/personality.h>
7122 personality (PER_LINUX32)
7127 rm -f conftest.
$ac_objext
7128 if { (ac_try
="$ac_compile"
7130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7134 $as_echo "$ac_try_echo") >&5
7135 (eval "$ac_compile") 2>conftest.er1
7137 grep -v '^ *+' conftest.er1 >conftest.err
7139 cat conftest.err >&5
7140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest.$ac_objext; then
7145 emacs_cv_personality_linux32=yes
7147 $as_echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7150 emacs_cv_personality_linux32=no
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7155 $as_echo "$emacs_cv_personality_linux32" >&6; }
7157 if test $emacs_cv_personality_linux32 = yes; then
7159 cat >>confdefs.h <<\_ACEOF
7160 #define HAVE_PERSONALITY_LINUX32 1
7166 for ac_header in term.h
7168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7169 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7170 $as_echo_n "checking for $ac_header... " >&6; }
7171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7172 $as_echo_n "(cached) " >&6
7174 cat >conftest.$ac_ext <<_ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 #include <$ac_header>
7182 if { (ac_try="$ac_cpp conftest.$ac_ext"
7184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7185 *) ac_try_echo
=$ac_try;;
7187 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7188 $as_echo "$ac_try_echo") >&5
7189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7191 grep -v '^ *+' conftest.er1
>conftest.err
7193 cat conftest.err
>&5
7194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } >/dev
/null
&& {
7196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7199 eval "$as_ac_Header=yes"
7201 $as_echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.
$ac_ext >&5
7204 eval "$as_ac_Header=no"
7207 rm -f conftest.err conftest.
$ac_ext
7209 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7210 $as_echo "$as_val"'`
7211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7212 $as_echo "$ac_res" >&6; }
7213 if test `eval 'as_val=${'$as_ac_Header'}
7214 $as_echo "$as_val"'` = yes; then
7215 cat >>confdefs.h
<<_ACEOF
7216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7223 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7224 $as_echo_n "checking for ANSI C header files... " >&6; }
7225 if test "${ac_cv_header_stdc+set}" = set; then
7226 $as_echo_n "(cached) " >&6
7228 cat >conftest.
$ac_ext <<_ACEOF
7231 cat confdefs.h
>>conftest.
$ac_ext
7232 cat >>conftest.
$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7247 rm -f conftest.
$ac_objext
7248 if { (ac_try
="$ac_compile"
7250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7254 $as_echo "$ac_try_echo") >&5
7255 (eval "$ac_compile") 2>conftest.er1
7257 grep -v '^ *+' conftest.er1 >conftest.err
7259 cat conftest.err >&5
7260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } && {
7262 test -z "$ac_c_werror_flag" ||
7263 test ! -s conftest.err
7264 } && test -s conftest.$ac_objext; then
7265 ac_cv_header_stdc=yes
7267 $as_echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7270 ac_cv_header_stdc=no
7273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275 if test $ac_cv_header_stdc = yes; then
7276 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7277 cat >conftest.$ac_ext <<_ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h. */
7286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7287 $EGREP "memchr" >/dev/null 2>&1; then
7290 ac_cv_header_stdc=no
7296 if test $ac_cv_header_stdc = yes; then
7297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7298 cat >conftest.$ac_ext <<_ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7308 $EGREP "free" >/dev/null 2>&1; then
7311 ac_cv_header_stdc=no
7317 if test $ac_cv_header_stdc = yes; then
7318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7319 if test "$cross_compiling" = yes; then
7322 cat >conftest.$ac_ext <<_ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7330 #if ((' ' & 0x0FF) == 0x020)
7331 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7332 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7334 # define ISLOWER(c) \
7335 (('a' <= (c) && (c) <= 'i') \
7336 || ('j' <= (c) && (c) <= 'r') \
7337 || ('s' <= (c) && (c) <= 'z'))
7338 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7341 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7346 for (i = 0; i < 256; i++)
7347 if (XOR (islower (i), ISLOWER (i))
7348 || toupper (i) != TOUPPER (i))
7353 rm -f conftest$ac_exeext
7354 if { (ac_try="$ac_link"
7356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7357 *) ac_try_echo
=$ac_try;;
7359 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7360 $as_echo "$ac_try_echo") >&5
7361 (eval "$ac_link") 2>&5
7363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7365 { (case "(($ac_try" in
7366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7367 *) ac_try_echo=$ac_try;;
7369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7370 $as_echo "$ac_try_echo") >&5
7371 (eval "$ac_try") 2>&5
7373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); }; }; then
7377 $as_echo "$as_me: program exited with status $ac_status" >&5
7378 $as_echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7382 ac_cv_header_stdc=no
7384 rm -rf conftest.dSYM
7385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7391 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7392 $as_echo "$ac_cv_header_stdc" >&6; }
7393 if test $ac_cv_header_stdc = yes; then
7395 cat >>confdefs.h <<\_ACEOF
7396 #define STDC_HEADERS 1
7401 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7402 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7403 if test "${ac_cv_header_time+set}" = set; then
7404 $as_echo_n "(cached) " >&6
7406 cat >conftest.$ac_ext <<_ACEOF
7409 cat confdefs.h >>conftest.$ac_ext
7410 cat >>conftest.$ac_ext <<_ACEOF
7411 /* end confdefs.h. */
7412 #include <sys/types.h>
7413 #include <sys/time.h>
7419 if ((struct tm *) 0)
7425 rm -f conftest.$ac_objext
7426 if { (ac_try="$ac_compile"
7428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7429 *) ac_try_echo
=$ac_try;;
7431 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7432 $as_echo "$ac_try_echo") >&5
7433 (eval "$ac_compile") 2>conftest.er1
7435 grep -v '^ *+' conftest.er1
>conftest.err
7437 cat conftest.err
>&5
7438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && {
7440 test -z "$ac_c_werror_flag" ||
7441 test ! -s conftest.err
7442 } && test -s conftest.
$ac_objext; then
7443 ac_cv_header_time
=yes
7445 $as_echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.
$ac_ext >&5
7448 ac_cv_header_time
=no
7451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7453 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7454 $as_echo "$ac_cv_header_time" >&6; }
7455 if test $ac_cv_header_time = yes; then
7457 cat >>confdefs.h
<<\_ACEOF
7458 #define TIME_WITH_SYS_TIME 1
7463 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7464 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7465 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7466 $as_echo_n "(cached) " >&6
7468 cat >conftest.
$ac_ext <<_ACEOF
7471 cat confdefs.h
>>conftest.
$ac_ext
7472 cat >>conftest.
$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7474 $ac_includes_default
7486 rm -f conftest.
$ac_objext
7487 if { (ac_try
="$ac_compile"
7489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7493 $as_echo "$ac_try_echo") >&5
7494 (eval "$ac_compile") 2>conftest.er1
7496 grep -v '^ *+' conftest.er1 >conftest.err
7498 cat conftest.err >&5
7499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_c_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest.$ac_objext; then
7504 ac_cv_have_decl_sys_siglist=yes
7506 $as_echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7509 ac_cv_have_decl_sys_siglist=no
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7515 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7516 if test $ac_cv_have_decl_sys_siglist = yes; then
7518 cat >>confdefs.h <<_ACEOF
7519 #define HAVE_DECL_SYS_SIGLIST 1
7524 cat >>confdefs.h <<_ACEOF
7525 #define HAVE_DECL_SYS_SIGLIST 0
7532 if test $ac_cv_have_decl_sys_siglist != yes; then
7533 # For Tru64, at least:
7534 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7535 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7536 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7537 $as_echo_n "(cached) " >&6
7539 cat >conftest.$ac_ext <<_ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 $ac_includes_default
7549 #ifndef __sys_siglist
7550 (void) __sys_siglist;
7557 rm -f conftest.$ac_objext
7558 if { (ac_try="$ac_compile"
7560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7561 *) ac_try_echo
=$ac_try;;
7563 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7564 $as_echo "$ac_try_echo") >&5
7565 (eval "$ac_compile") 2>conftest.er1
7567 grep -v '^ *+' conftest.er1
>conftest.err
7569 cat conftest.err
>&5
7570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && {
7572 test -z "$ac_c_werror_flag" ||
7573 test ! -s conftest.err
7574 } && test -s conftest.
$ac_objext; then
7575 ac_cv_have_decl___sys_siglist
=yes
7577 $as_echo "$as_me: failed program was:" >&5
7578 sed 's/^/| /' conftest.
$ac_ext >&5
7580 ac_cv_have_decl___sys_siglist
=no
7583 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7585 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7586 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7587 if test $ac_cv_have_decl___sys_siglist = yes; then
7589 cat >>confdefs.h
<<_ACEOF
7590 #define HAVE_DECL___SYS_SIGLIST 1
7595 cat >>confdefs.h
<<_ACEOF
7596 #define HAVE_DECL___SYS_SIGLIST 0
7603 if test $ac_cv_have_decl___sys_siglist = yes; then
7605 cat >>confdefs.h
<<\_ACEOF
7606 #define sys_siglist __sys_siglist
7611 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7612 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7613 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7614 $as_echo_n "(cached) " >&6
7616 cat >conftest.
$ac_ext <<_ACEOF
7619 cat confdefs.h
>>conftest.
$ac_ext
7620 cat >>conftest.
$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 #include <sys/types.h>
7623 #include <sys/wait.h>
7625 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7628 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7636 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7641 rm -f conftest.
$ac_objext
7642 if { (ac_try
="$ac_compile"
7644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7648 $as_echo "$ac_try_echo") >&5
7649 (eval "$ac_compile") 2>conftest.er1
7651 grep -v '^ *+' conftest.er1 >conftest.err
7653 cat conftest.err >&5
7654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } && {
7656 test -z "$ac_c_werror_flag" ||
7657 test ! -s conftest.err
7658 } && test -s conftest.$ac_objext; then
7659 ac_cv_header_sys_wait_h=yes
7661 $as_echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7664 ac_cv_header_sys_wait_h=no
7667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7670 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7671 if test $ac_cv_header_sys_wait_h = yes; then
7673 cat >>confdefs.h <<\_ACEOF
7674 #define HAVE_SYS_WAIT_H 1
7680 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7681 $as_echo_n "checking for struct utimbuf... " >&6; }
7682 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7683 $as_echo_n "(cached) " >&6
7685 cat >conftest.$ac_ext <<_ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7691 #ifdef TIME_WITH_SYS_TIME
7692 #include <sys/time.h>
7695 #ifdef HAVE_SYS_TIME_H
7696 #include <sys/time.h>
7707 static struct utimbuf x; x.actime = x.modtime;
7712 rm -f conftest.$ac_objext
7713 if { (ac_try="$ac_compile"
7715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7716 *) ac_try_echo
=$ac_try;;
7718 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7719 $as_echo "$ac_try_echo") >&5
7720 (eval "$ac_compile") 2>conftest.er1
7722 grep -v '^ *+' conftest.er1
>conftest.err
7724 cat conftest.err
>&5
7725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } && {
7727 test -z "$ac_c_werror_flag" ||
7728 test ! -s conftest.err
7729 } && test -s conftest.
$ac_objext; then
7730 emacs_cv_struct_utimbuf
=yes
7732 $as_echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.
$ac_ext >&5
7735 emacs_cv_struct_utimbuf
=no
7738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7740 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7741 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7742 if test $emacs_cv_struct_utimbuf = yes; then
7744 cat >>confdefs.h
<<\_ACEOF
7745 #define HAVE_STRUCT_UTIMBUF 1
7750 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7751 $as_echo_n "checking return type of signal handlers... " >&6; }
7752 if test "${ac_cv_type_signal+set}" = set; then
7753 $as_echo_n "(cached) " >&6
7755 cat >conftest.
$ac_ext <<_ACEOF
7758 cat confdefs.h
>>conftest.
$ac_ext
7759 cat >>conftest.
$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7761 #include <sys/types.h>
7767 return *(signal (0, 0)) (0) == 1;
7772 rm -f conftest.
$ac_objext
7773 if { (ac_try
="$ac_compile"
7775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7779 $as_echo "$ac_try_echo") >&5
7780 (eval "$ac_compile") 2>conftest.er1
7782 grep -v '^ *+' conftest.er1 >conftest.err
7784 cat conftest.err >&5
7785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } && {
7787 test -z "$ac_c_werror_flag" ||
7788 test ! -s conftest.err
7789 } && test -s conftest.$ac_objext; then
7790 ac_cv_type_signal=int
7792 $as_echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7795 ac_cv_type_signal=void
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7801 $as_echo "$ac_cv_type_signal" >&6; }
7803 cat >>confdefs.h <<_ACEOF
7804 #define RETSIGTYPE $ac_cv_type_signal
7809 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7810 $as_echo_n "checking for speed_t... " >&6; }
7811 if test "${emacs_cv_speed_t+set}" = set; then
7812 $as_echo_n "(cached) " >&6
7814 cat >conftest.$ac_ext <<_ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7820 #include <termios.h>
7829 rm -f conftest.$ac_objext
7830 if { (ac_try="$ac_compile"
7832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7833 *) ac_try_echo
=$ac_try;;
7835 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7836 $as_echo "$ac_try_echo") >&5
7837 (eval "$ac_compile") 2>conftest.er1
7839 grep -v '^ *+' conftest.er1
>conftest.err
7841 cat conftest.err
>&5
7842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest.
$ac_objext; then
7847 emacs_cv_speed_t
=yes
7849 $as_echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.
$ac_ext >&5
7855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7857 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7858 $as_echo "$emacs_cv_speed_t" >&6; }
7859 if test $emacs_cv_speed_t = yes; then
7861 cat >>confdefs.h
<<\_ACEOF
7862 #define HAVE_SPEED_T 1
7867 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7868 $as_echo_n "checking for struct timeval... " >&6; }
7869 if test "${emacs_cv_struct_timeval+set}" = set; then
7870 $as_echo_n "(cached) " >&6
7872 cat >conftest.
$ac_ext <<_ACEOF
7875 cat confdefs.h
>>conftest.
$ac_ext
7876 cat >>conftest.
$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7878 #ifdef TIME_WITH_SYS_TIME
7879 #include <sys/time.h>
7882 #ifdef HAVE_SYS_TIME_H
7883 #include <sys/time.h>
7891 static struct timeval x; x.tv_sec = x.tv_usec;
7896 rm -f conftest.
$ac_objext
7897 if { (ac_try
="$ac_compile"
7899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7900 *) ac_try_echo=$ac_try;;
7902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7903 $as_echo "$ac_try_echo") >&5
7904 (eval "$ac_compile") 2>conftest.er1
7906 grep -v '^ *+' conftest.er1 >conftest.err
7908 cat conftest.err >&5
7909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } && {
7911 test -z "$ac_c_werror_flag" ||
7912 test ! -s conftest.err
7913 } && test -s conftest.$ac_objext; then
7914 emacs_cv_struct_timeval=yes
7916 $as_echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7919 emacs_cv_struct_timeval=no
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7925 $as_echo "$emacs_cv_struct_timeval" >&6; }
7926 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7927 if test $emacs_cv_struct_timeval = yes; then
7929 cat >>confdefs.h <<\_ACEOF
7930 #define HAVE_TIMEVAL 1
7935 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7936 $as_echo_n "checking for struct exception... " >&6; }
7937 if test "${emacs_cv_struct_exception+set}" = set; then
7938 $as_echo_n "(cached) " >&6
7940 cat >conftest.$ac_ext <<_ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7950 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7959 *) ac_try_echo
=$ac_try;;
7961 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7962 $as_echo "$ac_try_echo") >&5
7963 (eval "$ac_compile") 2>conftest.er1
7965 grep -v '^ *+' conftest.er1
>conftest.err
7967 cat conftest.err
>&5
7968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } && {
7970 test -z "$ac_c_werror_flag" ||
7971 test ! -s conftest.err
7972 } && test -s conftest.
$ac_objext; then
7973 emacs_cv_struct_exception
=yes
7975 $as_echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.
$ac_ext >&5
7978 emacs_cv_struct_exception
=no
7981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7983 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7984 $as_echo "$emacs_cv_struct_exception" >&6; }
7985 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7986 if test $emacs_cv_struct_exception != yes; then
7988 cat >>confdefs.h
<<\_ACEOF
7989 #define NO_MATHERR 1
7995 for ac_header
in sys
/socket.h
7997 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7998 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8000 $as_echo_n "checking for $ac_header... " >&6; }
8001 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8002 $as_echo_n "(cached) " >&6
8004 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8005 $as_echo "$as_val"'`
8006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8007 $as_echo "$ac_res" >&6; }
8009 # Is the header compilable?
8010 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8011 $as_echo_n "checking $ac_header usability... " >&6; }
8012 cat >conftest.
$ac_ext <<_ACEOF
8015 cat confdefs.h
>>conftest.
$ac_ext
8016 cat >>conftest.
$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8018 $ac_includes_default
8019 #include <$ac_header>
8021 rm -f conftest.
$ac_objext
8022 if { (ac_try
="$ac_compile"
8024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8028 $as_echo "$ac_try_echo") >&5
8029 (eval "$ac_compile") 2>conftest.er1
8031 grep -v '^ *+' conftest.er1 >conftest.err
8033 cat conftest.err >&5
8034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest.$ac_objext; then
8039 ac_header_compiler=yes
8041 $as_echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8044 ac_header_compiler=no
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8049 $as_echo "$ac_header_compiler" >&6; }
8051 # Is the header present?
8052 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8053 $as_echo_n "checking $ac_header presence... " >&6; }
8054 cat >conftest.$ac_ext <<_ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8060 #include <$ac_header>
8062 if { (ac_try="$ac_cpp conftest.$ac_ext"
8064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8065 *) ac_try_echo
=$ac_try;;
8067 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8068 $as_echo "$ac_try_echo") >&5
8069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8071 grep -v '^ *+' conftest.er1
>conftest.err
8073 cat conftest.err
>&5
8074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } >/dev
/null
&& {
8076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8079 ac_header_preproc
=yes
8081 $as_echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.
$ac_ext >&5
8084 ac_header_preproc
=no
8087 rm -f conftest.err conftest.
$ac_ext
8088 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8089 $as_echo "$ac_header_preproc" >&6; }
8091 # So? What about this header?
8092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8095 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8097 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8098 ac_header_preproc
=yes
8101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8102 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8104 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8106 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8108 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8110 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8112 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8116 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8117 $as_echo_n "checking for $ac_header... " >&6; }
8118 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8119 $as_echo_n "(cached) " >&6
8121 eval "$as_ac_Header=\$ac_header_preproc"
8123 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8124 $as_echo "$as_val"'`
8125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8126 $as_echo "$ac_res" >&6; }
8129 if test `eval 'as_val=${'$as_ac_Header'}
8130 $as_echo "$as_val"'` = yes; then
8131 cat >>confdefs.h
<<_ACEOF
8132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8140 for ac_header
in net
/if.h
8142 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8143 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8144 $as_echo_n "checking for $ac_header... " >&6; }
8145 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8146 $as_echo_n "(cached) " >&6
8148 cat >conftest.
$ac_ext <<_ACEOF
8151 cat confdefs.h
>>conftest.
$ac_ext
8152 cat >>conftest.
$ac_ext <<_ACEOF
8153 /* end confdefs.h. */
8154 $ac_includes_default
8155 #if HAVE_SYS_SOCKET_H
8156 #include <sys/socket.h>
8159 #include <$ac_header>
8161 rm -f conftest.
$ac_objext
8162 if { (ac_try
="$ac_compile"
8164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8168 $as_echo "$ac_try_echo") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8171 grep -v '^ *+' conftest.er1 >conftest.err
8173 cat conftest.err >&5
8174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 eval "$as_ac_Header=yes"
8181 $as_echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 eval "$as_ac_Header=no"
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 ac_res=`eval 'as_val=${'$as_ac_Header'}
8190 $as_echo "$as_val"'`
8191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8192 $as_echo "$ac_res" >&6; }
8193 if test `eval 'as_val=${'$as_ac_Header'}
8194 $as_echo "$as_val"'` = yes; then
8195 cat >>confdefs.h <<_ACEOF
8196 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8204 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8205 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8206 if test "${ac_cv_struct_tm+set}" = set; then
8207 $as_echo_n "(cached) " >&6
8209 cat >conftest.$ac_ext <<_ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8215 #include <sys/types.h>
8222 int *p = &tm.tm_sec;
8228 rm -f conftest.$ac_objext
8229 if { (ac_try="$ac_compile"
8231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8232 *) ac_try_echo
=$ac_try;;
8234 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8235 $as_echo "$ac_try_echo") >&5
8236 (eval "$ac_compile") 2>conftest.er1
8238 grep -v '^ *+' conftest.er1
>conftest.err
8240 cat conftest.err
>&5
8241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } && {
8243 test -z "$ac_c_werror_flag" ||
8244 test ! -s conftest.err
8245 } && test -s conftest.
$ac_objext; then
8246 ac_cv_struct_tm
=time.h
8248 $as_echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.
$ac_ext >&5
8251 ac_cv_struct_tm
=sys
/time.h
8254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8256 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8257 $as_echo "$ac_cv_struct_tm" >&6; }
8258 if test $ac_cv_struct_tm = sys
/time.h
; then
8260 cat >>confdefs.h
<<\_ACEOF
8261 #define TM_IN_SYS_TIME 1
8266 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8267 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8268 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8269 $as_echo_n "(cached) " >&6
8271 cat >conftest.
$ac_ext <<_ACEOF
8274 cat confdefs.h
>>conftest.
$ac_ext
8275 cat >>conftest.
$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8277 #include <sys/types.h>
8278 #include <$ac_cv_struct_tm>
8284 static struct tm ac_aggr;
8285 if (ac_aggr.tm_zone)
8291 rm -f conftest.
$ac_objext
8292 if { (ac_try
="$ac_compile"
8294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8298 $as_echo "$ac_try_echo") >&5
8299 (eval "$ac_compile") 2>conftest.er1
8301 grep -v '^ *+' conftest.er1 >conftest.err
8303 cat conftest.err >&5
8304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest.$ac_objext; then
8309 ac_cv_member_struct_tm_tm_zone=yes
8311 $as_echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8314 cat >conftest.$ac_ext <<_ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 #include <sys/types.h>
8321 #include <$ac_cv_struct_tm>
8327 static struct tm ac_aggr;
8328 if (sizeof ac_aggr.tm_zone)
8334 rm -f conftest.$ac_objext
8335 if { (ac_try="$ac_compile"
8337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8338 *) ac_try_echo
=$ac_try;;
8340 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8341 $as_echo "$ac_try_echo") >&5
8342 (eval "$ac_compile") 2>conftest.er1
8344 grep -v '^ *+' conftest.er1
>conftest.err
8346 cat conftest.err
>&5
8347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); } && {
8349 test -z "$ac_c_werror_flag" ||
8350 test ! -s conftest.err
8351 } && test -s conftest.
$ac_objext; then
8352 ac_cv_member_struct_tm_tm_zone
=yes
8354 $as_echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.
$ac_ext >&5
8357 ac_cv_member_struct_tm_tm_zone
=no
8360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8365 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8366 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8367 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8369 cat >>confdefs.h
<<_ACEOF
8370 #define HAVE_STRUCT_TM_TM_ZONE 1
8376 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8378 cat >>confdefs.h
<<\_ACEOF
8379 #define HAVE_TM_ZONE 1
8383 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8384 $as_echo_n "checking whether tzname is declared... " >&6; }
8385 if test "${ac_cv_have_decl_tzname+set}" = set; then
8386 $as_echo_n "(cached) " >&6
8388 cat >conftest.
$ac_ext <<_ACEOF
8391 cat confdefs.h
>>conftest.
$ac_ext
8392 cat >>conftest.
$ac_ext <<_ACEOF
8393 /* end confdefs.h. */
8407 rm -f conftest.
$ac_objext
8408 if { (ac_try
="$ac_compile"
8410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8414 $as_echo "$ac_try_echo") >&5
8415 (eval "$ac_compile") 2>conftest.er1
8417 grep -v '^ *+' conftest.er1 >conftest.err
8419 cat conftest.err >&5
8420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 (exit $ac_status); } && {
8422 test -z "$ac_c_werror_flag" ||
8423 test ! -s conftest.err
8424 } && test -s conftest.$ac_objext; then
8425 ac_cv_have_decl_tzname=yes
8427 $as_echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8430 ac_cv_have_decl_tzname=no
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8436 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8437 if test $ac_cv_have_decl_tzname = yes; then
8439 cat >>confdefs.h <<_ACEOF
8440 #define HAVE_DECL_TZNAME 1
8445 cat >>confdefs.h <<_ACEOF
8446 #define HAVE_DECL_TZNAME 0
8453 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8454 $as_echo_n "checking for tzname... " >&6; }
8455 if test "${ac_cv_var_tzname+set}" = set; then
8456 $as_echo_n "(cached) " >&6
8458 cat >conftest.$ac_ext <<_ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8465 #if !HAVE_DECL_TZNAME
8466 extern char *tzname[];
8472 return tzname[0][0];
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (ac_try="$ac_link"
8480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8481 *) ac_try_echo
=$ac_try;;
8483 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8484 $as_echo "$ac_try_echo") >&5
8485 (eval "$ac_link") 2>conftest.er1
8487 grep -v '^ *+' conftest.er1
>conftest.err
8489 cat conftest.err
>&5
8490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } && {
8492 test -z "$ac_c_werror_flag" ||
8493 test ! -s conftest.err
8494 } && test -s conftest
$ac_exeext && {
8495 test "$cross_compiling" = yes ||
8496 $as_test_x conftest
$ac_exeext
8498 ac_cv_var_tzname
=yes
8500 $as_echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.
$ac_ext >&5
8506 rm -rf conftest.dSYM
8507 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8508 conftest
$ac_exeext conftest.
$ac_ext
8510 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8511 $as_echo "$ac_cv_var_tzname" >&6; }
8512 if test $ac_cv_var_tzname = yes; then
8514 cat >>confdefs.h
<<\_ACEOF
8515 #define HAVE_TZNAME 1
8521 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8522 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8523 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8524 $as_echo_n "(cached) " >&6
8526 cat >conftest.
$ac_ext <<_ACEOF
8529 cat confdefs.h
>>conftest.
$ac_ext
8530 cat >>conftest.
$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8537 static struct tm ac_aggr;
8538 if (ac_aggr.tm_gmtoff)
8544 rm -f conftest.
$ac_objext
8545 if { (ac_try
="$ac_compile"
8547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8551 $as_echo "$ac_try_echo") >&5
8552 (eval "$ac_compile") 2>conftest.er1
8554 grep -v '^ *+' conftest.er1 >conftest.err
8556 cat conftest.err >&5
8557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest.$ac_objext; then
8562 ac_cv_member_struct_tm_tm_gmtoff=yes
8564 $as_echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8567 cat >conftest.$ac_ext <<_ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8578 static struct tm ac_aggr;
8579 if (sizeof ac_aggr.tm_gmtoff)
8585 rm -f conftest.$ac_objext
8586 if { (ac_try="$ac_compile"
8588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8589 *) ac_try_echo
=$ac_try;;
8591 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8592 $as_echo "$ac_try_echo") >&5
8593 (eval "$ac_compile") 2>conftest.er1
8595 grep -v '^ *+' conftest.er1
>conftest.err
8597 cat conftest.err
>&5
8598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } && {
8600 test -z "$ac_c_werror_flag" ||
8601 test ! -s conftest.err
8602 } && test -s conftest.
$ac_objext; then
8603 ac_cv_member_struct_tm_tm_gmtoff
=yes
8605 $as_echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.
$ac_ext >&5
8608 ac_cv_member_struct_tm_tm_gmtoff
=no
8611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8614 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8616 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8617 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8618 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8620 cat >>confdefs.h
<<\_ACEOF
8621 #define HAVE_TM_GMTOFF 1
8626 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8627 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8628 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8629 $as_echo_n "(cached) " >&6
8631 cat >conftest.
$ac_ext <<_ACEOF
8634 cat confdefs.h
>>conftest.
$ac_ext
8635 cat >>conftest.
$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8637 $ac_includes_default
8638 #if HAVE_SYS_SOCKET_H
8639 #include <sys/socket.h>
8648 static struct ifreq ac_aggr;
8649 if (ac_aggr.ifr_flags)
8655 rm -f conftest.
$ac_objext
8656 if { (ac_try
="$ac_compile"
8658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8659 *) ac_try_echo=$ac_try;;
8661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8662 $as_echo "$ac_try_echo") >&5
8663 (eval "$ac_compile") 2>conftest.er1
8665 grep -v '^ *+' conftest.er1 >conftest.err
8667 cat conftest.err >&5
8668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); } && {
8670 test -z "$ac_c_werror_flag" ||
8671 test ! -s conftest.err
8672 } && test -s conftest.$ac_objext; then
8673 ac_cv_member_struct_ifreq_ifr_flags=yes
8675 $as_echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8678 cat >conftest.$ac_ext <<_ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8684 $ac_includes_default
8685 #if HAVE_SYS_SOCKET_H
8686 #include <sys/socket.h>
8695 static struct ifreq ac_aggr;
8696 if (sizeof ac_aggr.ifr_flags)
8702 rm -f conftest.$ac_objext
8703 if { (ac_try="$ac_compile"
8705 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8706 *) ac_try_echo
=$ac_try;;
8708 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8709 $as_echo "$ac_try_echo") >&5
8710 (eval "$ac_compile") 2>conftest.er1
8712 grep -v '^ *+' conftest.er1
>conftest.err
8714 cat conftest.err
>&5
8715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && {
8717 test -z "$ac_c_werror_flag" ||
8718 test ! -s conftest.err
8719 } && test -s conftest.
$ac_objext; then
8720 ac_cv_member_struct_ifreq_ifr_flags
=yes
8722 $as_echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.
$ac_ext >&5
8725 ac_cv_member_struct_ifreq_ifr_flags
=no
8728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8733 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8734 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8735 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8737 cat >>confdefs.h
<<_ACEOF
8738 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8743 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8744 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8745 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8746 $as_echo_n "(cached) " >&6
8748 cat >conftest.
$ac_ext <<_ACEOF
8751 cat confdefs.h
>>conftest.
$ac_ext
8752 cat >>conftest.
$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8754 $ac_includes_default
8755 #if HAVE_SYS_SOCKET_H
8756 #include <sys/socket.h>
8765 static struct ifreq ac_aggr;
8766 if (ac_aggr.ifr_hwaddr)
8772 rm -f conftest.
$ac_objext
8773 if { (ac_try
="$ac_compile"
8775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8779 $as_echo "$ac_try_echo") >&5
8780 (eval "$ac_compile") 2>conftest.er1
8782 grep -v '^ *+' conftest.er1 >conftest.err
8784 cat conftest.err >&5
8785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } && {
8787 test -z "$ac_c_werror_flag" ||
8788 test ! -s conftest.err
8789 } && test -s conftest.$ac_objext; then
8790 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8792 $as_echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8795 cat >conftest.$ac_ext <<_ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8801 $ac_includes_default
8802 #if HAVE_SYS_SOCKET_H
8803 #include <sys/socket.h>
8812 static struct ifreq ac_aggr;
8813 if (sizeof ac_aggr.ifr_hwaddr)
8819 rm -f conftest.$ac_objext
8820 if { (ac_try="$ac_compile"
8822 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8823 *) ac_try_echo
=$ac_try;;
8825 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8826 $as_echo "$ac_try_echo") >&5
8827 (eval "$ac_compile") 2>conftest.er1
8829 grep -v '^ *+' conftest.er1
>conftest.err
8831 cat conftest.err
>&5
8832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } && {
8834 test -z "$ac_c_werror_flag" ||
8835 test ! -s conftest.err
8836 } && test -s conftest.
$ac_objext; then
8837 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8839 $as_echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.
$ac_ext >&5
8842 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8850 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8851 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8852 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8854 cat >>confdefs.h
<<_ACEOF
8855 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8860 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8861 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8862 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8863 $as_echo_n "(cached) " >&6
8865 cat >conftest.
$ac_ext <<_ACEOF
8868 cat confdefs.h
>>conftest.
$ac_ext
8869 cat >>conftest.
$ac_ext <<_ACEOF
8870 /* end confdefs.h. */
8871 $ac_includes_default
8872 #if HAVE_SYS_SOCKET_H
8873 #include <sys/socket.h>
8882 static struct ifreq ac_aggr;
8883 if (ac_aggr.ifr_netmask)
8889 rm -f conftest.
$ac_objext
8890 if { (ac_try
="$ac_compile"
8892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8893 *) ac_try_echo=$ac_try;;
8895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8896 $as_echo "$ac_try_echo") >&5
8897 (eval "$ac_compile") 2>conftest.er1
8899 grep -v '^ *+' conftest.er1 >conftest.err
8901 cat conftest.err >&5
8902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } && {
8904 test -z "$ac_c_werror_flag" ||
8905 test ! -s conftest.err
8906 } && test -s conftest.$ac_objext; then
8907 ac_cv_member_struct_ifreq_ifr_netmask=yes
8909 $as_echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8912 cat >conftest.$ac_ext <<_ACEOF
8915 cat confdefs.h >>conftest.$ac_ext
8916 cat >>conftest.$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8918 $ac_includes_default
8919 #if HAVE_SYS_SOCKET_H
8920 #include <sys/socket.h>
8929 static struct ifreq ac_aggr;
8930 if (sizeof ac_aggr.ifr_netmask)
8936 rm -f conftest.$ac_objext
8937 if { (ac_try="$ac_compile"
8939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8940 *) ac_try_echo
=$ac_try;;
8942 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8943 $as_echo "$ac_try_echo") >&5
8944 (eval "$ac_compile") 2>conftest.er1
8946 grep -v '^ *+' conftest.er1
>conftest.err
8948 cat conftest.err
>&5
8949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } && {
8951 test -z "$ac_c_werror_flag" ||
8952 test ! -s conftest.err
8953 } && test -s conftest.
$ac_objext; then
8954 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8956 $as_echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.
$ac_ext >&5
8959 ac_cv_member_struct_ifreq_ifr_netmask
=no
8962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8967 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8968 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8969 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8971 cat >>confdefs.h
<<_ACEOF
8972 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8977 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8978 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8979 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8980 $as_echo_n "(cached) " >&6
8982 cat >conftest.
$ac_ext <<_ACEOF
8985 cat confdefs.h
>>conftest.
$ac_ext
8986 cat >>conftest.
$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 $ac_includes_default
8989 #if HAVE_SYS_SOCKET_H
8990 #include <sys/socket.h>
8999 static struct ifreq ac_aggr;
9000 if (ac_aggr.ifr_broadaddr)
9006 rm -f conftest.
$ac_objext
9007 if { (ac_try
="$ac_compile"
9009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9013 $as_echo "$ac_try_echo") >&5
9014 (eval "$ac_compile") 2>conftest.er1
9016 grep -v '^ *+' conftest.er1 >conftest.err
9018 cat conftest.err >&5
9019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } && {
9021 test -z "$ac_c_werror_flag" ||
9022 test ! -s conftest.err
9023 } && test -s conftest.$ac_objext; then
9024 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9026 $as_echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9029 cat >conftest.$ac_ext <<_ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 $ac_includes_default
9036 #if HAVE_SYS_SOCKET_H
9037 #include <sys/socket.h>
9046 static struct ifreq ac_aggr;
9047 if (sizeof ac_aggr.ifr_broadaddr)
9053 rm -f conftest.$ac_objext
9054 if { (ac_try="$ac_compile"
9056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9057 *) ac_try_echo
=$ac_try;;
9059 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9060 $as_echo "$ac_try_echo") >&5
9061 (eval "$ac_compile") 2>conftest.er1
9063 grep -v '^ *+' conftest.er1
>conftest.err
9065 cat conftest.err
>&5
9066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && {
9068 test -z "$ac_c_werror_flag" ||
9069 test ! -s conftest.err
9070 } && test -s conftest.
$ac_objext; then
9071 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
9073 $as_echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.
$ac_ext >&5
9076 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
9079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9084 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9085 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9086 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9088 cat >>confdefs.h
<<_ACEOF
9089 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9094 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9095 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9096 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9097 $as_echo_n "(cached) " >&6
9099 cat >conftest.
$ac_ext <<_ACEOF
9102 cat confdefs.h
>>conftest.
$ac_ext
9103 cat >>conftest.
$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 $ac_includes_default
9106 #if HAVE_SYS_SOCKET_H
9107 #include <sys/socket.h>
9116 static struct ifreq ac_aggr;
9117 if (ac_aggr.ifr_addr)
9123 rm -f conftest.
$ac_objext
9124 if { (ac_try
="$ac_compile"
9126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9127 *) ac_try_echo=$ac_try;;
9129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9130 $as_echo "$ac_try_echo") >&5
9131 (eval "$ac_compile") 2>conftest.er1
9133 grep -v '^ *+' conftest.er1 >conftest.err
9135 cat conftest.err >&5
9136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } && {
9138 test -z "$ac_c_werror_flag" ||
9139 test ! -s conftest.err
9140 } && test -s conftest.$ac_objext; then
9141 ac_cv_member_struct_ifreq_ifr_addr=yes
9143 $as_echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9146 cat >conftest.$ac_ext <<_ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9152 $ac_includes_default
9153 #if HAVE_SYS_SOCKET_H
9154 #include <sys/socket.h>
9163 static struct ifreq ac_aggr;
9164 if (sizeof ac_aggr.ifr_addr)
9170 rm -f conftest.$ac_objext
9171 if { (ac_try="$ac_compile"
9173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9174 *) ac_try_echo
=$ac_try;;
9176 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9177 $as_echo "$ac_try_echo") >&5
9178 (eval "$ac_compile") 2>conftest.er1
9180 grep -v '^ *+' conftest.er1
>conftest.err
9182 cat conftest.err
>&5
9183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } && {
9185 test -z "$ac_c_werror_flag" ||
9186 test ! -s conftest.err
9187 } && test -s conftest.
$ac_objext; then
9188 ac_cv_member_struct_ifreq_ifr_addr
=yes
9190 $as_echo "$as_me: failed program was:" >&5
9191 sed 's/^/| /' conftest.
$ac_ext >&5
9193 ac_cv_member_struct_ifreq_ifr_addr
=no
9196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9201 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9202 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9203 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9205 cat >>confdefs.h
<<_ACEOF
9206 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9214 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9215 $as_echo_n "checking for function prototypes... " >&6; }
9216 if test "$ac_cv_prog_cc_c89" != no
; then
9217 { $as_echo "$as_me:$LINENO: result: yes" >&5
9218 $as_echo "yes" >&6; }
9220 cat >>confdefs.h
<<\_ACEOF
9221 #define PROTOTYPES 1
9225 cat >>confdefs.h
<<\_ACEOF
9226 #define __PROTOTYPES 1
9230 { $as_echo "$as_me:$LINENO: result: no" >&5
9231 $as_echo "no" >&6; }
9234 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9235 $as_echo_n "checking for working volatile... " >&6; }
9236 if test "${ac_cv_c_volatile+set}" = set; then
9237 $as_echo_n "(cached) " >&6
9239 cat >conftest.
$ac_ext <<_ACEOF
9242 cat confdefs.h
>>conftest.
$ac_ext
9243 cat >>conftest.
$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9251 int * volatile y = (int *) 0;
9257 rm -f conftest.
$ac_objext
9258 if { (ac_try
="$ac_compile"
9260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9264 $as_echo "$ac_try_echo") >&5
9265 (eval "$ac_compile") 2>conftest.er1
9267 grep -v '^ *+' conftest.er1 >conftest.err
9269 cat conftest.err >&5
9270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } && {
9272 test -z "$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 } && test -s conftest.$ac_objext; then
9275 ac_cv_c_volatile=yes
9277 $as_echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9286 $as_echo "$ac_cv_c_volatile" >&6; }
9287 if test $ac_cv_c_volatile = no; then
9289 cat >>confdefs.h <<\_ACEOF
9290 #define volatile /**/
9295 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9296 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9297 if test "${ac_cv_c_const+set}" = set; then
9298 $as_echo_n "(cached) " >&6
9300 cat >conftest.$ac_ext <<_ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h. */
9310 /* FIXME: Include the comments suggested by Paul. */
9312 /* Ultrix mips cc rejects this. */
9313 typedef int charset[2];
9315 /* SunOS 4.1.1 cc rejects this. */
9316 char const *const *pcpcc;
9318 /* NEC SVR4.0.2 mips cc rejects this. */
9319 struct point {int x, y;};
9320 static struct point const zero = {0,0};
9321 /* AIX XL C 1.02.0.0 rejects this.
9322 It does not let you subtract one const X* pointer from another in
9323 an arm of an if-expression whose if-part is not a constant
9325 const char *g = "string";
9326 pcpcc = &g + (g ? g-g : 0);
9327 /* HPUX 7.0 cc rejects these. */
9329 ppc = (char**) pcpcc;
9330 pcpcc = (char const *const *) ppc;
9331 { /* SCO 3.2v4 cc rejects this. */
9333 char const *s = 0 ? (char *) 0 : (char const *) 0;
9338 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9340 const int *foo = &x[0];
9343 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9344 typedef const int *iptr;
9348 { /* AIX XL C 1.02.0.0 rejects this saying
9349 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9350 struct s { int j; const int *ap[3]; };
9351 struct s *b; b->j = 5;
9353 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9357 return !cs[0] && !zero.x;
9364 rm -f conftest.$ac_objext
9365 if { (ac_try="$ac_compile"
9367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9368 *) ac_try_echo
=$ac_try;;
9370 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9371 $as_echo "$ac_try_echo") >&5
9372 (eval "$ac_compile") 2>conftest.er1
9374 grep -v '^ *+' conftest.er1
>conftest.err
9376 cat conftest.err
>&5
9377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } && {
9379 test -z "$ac_c_werror_flag" ||
9380 test ! -s conftest.err
9381 } && test -s conftest.
$ac_objext; then
9384 $as_echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.
$ac_ext >&5
9390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9392 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9393 $as_echo "$ac_cv_c_const" >&6; }
9394 if test $ac_cv_c_const = no
; then
9396 cat >>confdefs.h
<<\_ACEOF
9402 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9403 $as_echo_n "checking for void * support... " >&6; }
9404 if test "${emacs_cv_void_star+set}" = set; then
9405 $as_echo_n "(cached) " >&6
9407 cat >conftest.
$ac_ext <<_ACEOF
9410 cat confdefs.h
>>conftest.
$ac_ext
9411 cat >>conftest.
$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9422 rm -f conftest.
$ac_objext
9423 if { (ac_try
="$ac_compile"
9425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9429 $as_echo "$ac_try_echo") >&5
9430 (eval "$ac_compile") 2>conftest.er1
9432 grep -v '^ *+' conftest.er1 >conftest.err
9434 cat conftest.err >&5
9435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && {
9437 test -z "$ac_c_werror_flag" ||
9438 test ! -s conftest.err
9439 } && test -s conftest.$ac_objext; then
9440 emacs_cv_void_star=yes
9442 $as_echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9445 emacs_cv_void_star=no
9448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9450 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9451 $as_echo "$emacs_cv_void_star" >&6; }
9452 if test $emacs_cv_void_star = yes; then
9453 cat >>confdefs.h <<\_ACEOF
9454 #define POINTER_TYPE void
9458 cat >>confdefs.h <<\_ACEOF
9459 #define POINTER_TYPE char
9468 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9469 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9471 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9472 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9473 $as_echo_n "(cached) " >&6
9475 cat >conftest.make <<\_ACEOF
9478 @echo '@@@%%%=$(MAKE)=@@@%%%'
9480 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9481 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9483 eval ac_cv_prog_make_${ac_make}_set=yes;;
9485 eval ac_cv_prog_make_${ac_make}_set=no;;
9489 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9490 { $as_echo "$as_me:$LINENO: result: yes" >&5
9491 $as_echo "yes" >&6; }
9494 { $as_echo "$as_me:$LINENO: result: no" >&5
9495 $as_echo "no" >&6; }
9496 SET_MAKE="MAKE=${MAKE-make}"
9500 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9501 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9502 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9504 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9505 if test "x$testval" != x; then
9508 ac_enable_autodepend=no
9510 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9511 $as_echo "$HAVE_GNU_MAKE" >&6; }
9512 if test $HAVE_GNU_MAKE = yes; then
9513 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9514 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9515 SAVE_CFLAGS="$CFLAGS"
9516 CFLAGS="$CFLAGS -MMD -MF deps.d"
9517 cat >conftest.$ac_ext <<_ACEOF
9520 cat confdefs.h >>conftest.$ac_ext
9521 cat >>conftest.$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9532 rm -f conftest.$ac_objext
9533 if { (ac_try="$ac_compile"
9535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9536 *) ac_try_echo
=$ac_try;;
9538 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9539 $as_echo "$ac_try_echo") >&5
9540 (eval "$ac_compile") 2>conftest.er1
9542 grep -v '^ *+' conftest.er1
>conftest.err
9544 cat conftest.err
>&5
9545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest.
$ac_objext; then
9552 $as_echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.
$ac_ext >&5
9555 ac_enable_autodepend
=no
9558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9559 CFLAGS
="$SAVE_CFLAGS"
9560 test -f deps.d || ac_enable_autodepend
=no
9562 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9563 $as_echo "$ac_enable_autodepend" >&6; }
9565 if test $ac_enable_autodepend = yes; then
9567 cat >>confdefs.h
<<\_ACEOF
9568 #define AUTO_DEPEND 1
9574 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9575 $as_echo_n "checking for long file names... " >&6; }
9576 if test "${ac_cv_sys_long_file_names+set}" = set; then
9577 $as_echo_n "(cached) " >&6
9579 ac_cv_sys_long_file_names
=yes
9580 # Test for long file names in all the places we know might matter:
9581 # . the current directory, where building will happen
9582 # $prefix/lib where we will be installing things
9583 # $exec_prefix/lib likewise
9584 # $TMPDIR if set, where it might want to write temporary files
9585 # /tmp where it might want to write temporary files
9588 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9589 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9590 # in the usual case where exec_prefix is '${prefix}'.
9592 . |
/* | ?
:[\\/]*) ;; #(
9595 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9596 ac_xdir
=$ac_dir/cf$$
9597 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9598 ac_tf1
=$ac_xdir/conftest9012345
9599 ac_tf2
=$ac_xdir/conftest9012346
9600 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9601 ac_cv_sys_long_file_names
=no
9602 rm -f -r "$ac_xdir" 2>/dev
/null
9603 test $ac_cv_sys_long_file_names = no
&& break
9606 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9607 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9608 if test $ac_cv_sys_long_file_names = yes; then
9610 cat >>confdefs.h
<<\_ACEOF
9611 #define HAVE_LONG_FILE_NAMES 1
9617 #### Choose a window system.
9619 { $as_echo "$as_me:$LINENO: checking for X" >&5
9620 $as_echo_n "checking for X... " >&6; }
9623 # Check whether --with-x was given.
9624 if test "${with_x+set}" = set; then
9628 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9629 if test "x$with_x" = xno
; then
9630 # The user explicitly disabled X.
9633 case $x_includes,$x_libraries in #(
9634 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9635 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9636 { (exit 1); exit 1; }; };; #(
9637 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9638 $as_echo_n "(cached) " >&6
9640 # One or both of the vars are not set, and there is no cached value.
9641 ac_x_includes
=no ac_x_libraries
=no
9642 rm -f -r conftest.dir
9643 if mkdir conftest.dir
; then
9645 cat >Imakefile
<<'_ACEOF'
9647 @echo incroot='${INCROOT}'
9649 @echo usrlibdir='${USRLIBDIR}'
9651 @echo libdir='${LIBDIR}'
9653 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9654 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9655 for ac_var
in incroot usrlibdir libdir
; do
9656 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9658 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9659 for ac_extension
in a so sl dylib la dll
; do
9660 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9661 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9662 ac_im_usrlibdir
=$ac_im_libdir; break
9665 # Screen out bogus values from the imake configuration. They are
9666 # bogus both because they are the default anyway, and because
9667 # using them would break gcc on systems where it needs fixed includes.
9668 case $ac_im_incroot in
9669 /usr
/include
) ac_x_includes
= ;;
9670 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9672 case $ac_im_usrlibdir in
9674 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9678 rm -f -r conftest.dir
9681 # Standard set of common directories for X headers.
9682 # Check X11 before X11Rn because it is often a symlink to the current release.
9694 /usr/local/X11/include
9695 /usr/local/X11R6/include
9696 /usr/local/X11R5/include
9697 /usr/local/X11R4/include
9699 /usr/local/include/X11
9700 /usr/local/include/X11R6
9701 /usr/local/include/X11R5
9702 /usr/local/include/X11R4
9706 /usr/XFree86/include/X11
9710 /usr/unsupported/include
9712 /usr/local/x11r5/include
9713 /usr/lpp/Xamples/include
9715 /usr/openwin/include
9716 /usr/openwin/share/include'
9718 if test "$ac_x_includes" = no
; then
9719 # Guess where to find include files, by looking for Xlib.h.
9720 # First, try using that file with no special directory specified.
9721 cat >conftest.
$ac_ext <<_ACEOF
9724 cat confdefs.h
>>conftest.
$ac_ext
9725 cat >>conftest.
$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 #include <X11/Xlib.h>
9729 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9735 $as_echo "$ac_try_echo") >&5
9736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9738 grep -v '^ *+' conftest.er1 >conftest.err
9740 cat conftest.err >&5
9741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } >/dev/null && {
9743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9744 test ! -s conftest.err
9746 # We can compile using X headers with no special include directory.
9749 $as_echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 for ac_dir in $ac_x_header_dirs; do
9753 if test -r "$ac_dir/X11/Xlib.h"; then
9754 ac_x_includes=$ac_dir
9760 rm -f conftest.err conftest.$ac_ext
9761 fi # $ac_x_includes = no
9763 if test "$ac_x_libraries" = no; then
9764 # Check for the libraries.
9765 # See if we find them without any special options.
9766 # Don't add to $LIBS permanently.
9769 cat >conftest.$ac_ext <<_ACEOF
9772 cat confdefs.h >>conftest.$ac_ext
9773 cat >>conftest.$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9775 #include <X11/Xlib.h>
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (ac_try="$ac_link"
9787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9788 *) ac_try_echo
=$ac_try;;
9790 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9791 $as_echo "$ac_try_echo") >&5
9792 (eval "$ac_link") 2>conftest.er1
9794 grep -v '^ *+' conftest.er1
>conftest.err
9796 cat conftest.err
>&5
9797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest
$ac_exeext && {
9802 test "$cross_compiling" = yes ||
9803 $as_test_x conftest
$ac_exeext
9806 # We can link X programs with no special library path.
9809 $as_echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.
$ac_ext >&5
9813 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9815 # Don't even attempt the hair of trying to link an X program!
9816 for ac_extension
in a so sl dylib la dll
; do
9817 if test -r "$ac_dir/libX11.$ac_extension"; then
9818 ac_x_libraries
=$ac_dir
9825 rm -rf conftest.dSYM
9826 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9827 conftest
$ac_exeext conftest.
$ac_ext
9828 fi # $ac_x_libraries = no
9830 case $ac_x_includes,$ac_x_libraries in #(
9832 # Didn't find X, or a directory has "'" in its name.
9833 ac_cv_have_x
="have_x=no";; #(
9835 # Record where we found X for the cache.
9836 ac_cv_have_x
="have_x=yes\
9837 ac_x_includes='$ac_x_includes'\
9838 ac_x_libraries='$ac_x_libraries'"
9844 eval "$ac_cv_have_x"
9847 if test "$have_x" != yes; then
9848 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9849 $as_echo "$have_x" >&6; }
9852 # If each of the values was on the command line, it overrides each guess.
9853 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9854 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9855 # Update the cache value to reflect the command line values.
9856 ac_cv_have_x
="have_x=yes\
9857 ac_x_includes='$x_includes'\
9858 ac_x_libraries='$x_libraries'"
9859 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9860 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9863 if test "$no_x" = yes; then
9869 ## Workaround for bug in autoconf <= 2.62.
9870 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9871 ## No need to do anything special for these standard directories.
9872 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9874 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9878 LD_SWITCH_X_SITE_AUX
=
9879 LD_SWITCH_X_SITE_AUX_RPATH
=
9880 if test "${x_libraries}" != NONE
; then
9881 if test -n "${x_libraries}"; then
9882 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9883 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9884 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9886 x_default_search_path
=""
9887 x_search_path
=${x_libraries}
9888 if test -z "${x_search_path}"; then
9889 x_search_path
=/usr
/lib
9891 for x_library
in `echo ${x_search_path}: | \
9892 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9894 ${x_library}/X11/%L/%T/%N%C%S:\
9895 ${x_library}/X11/%l/%T/%N%C%S:\
9896 ${x_library}/X11/%T/%N%C%S:\
9897 ${x_library}/X11/%L/%T/%N%S:\
9898 ${x_library}/X11/%l/%T/%N%S:\
9899 ${x_library}/X11/%T/%N%S"
9900 if test x
"${x_default_search_path}" = x
; then
9901 x_default_search_path
=${x_search_path}
9903 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9910 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9911 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9914 if test x
"${x_includes}" = x
; then
9915 bitmapdir
=/usr
/include
/X11
/bitmaps
9917 # accumulate include directories that have X11 bitmap subdirectories
9919 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9920 if test -d "${bmd}/X11/bitmaps"; then
9921 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9923 if test -d "${bmd}/bitmaps"; then
9924 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9927 if test ${bmd_acc} != "dummyval"; then
9928 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9935 NS_IMPL_GNUSTEP_INC
=
9936 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
=
9937 tmp_CPPFLAGS
="$CPPFLAGS"
9938 tmp_CFLAGS
="$CFLAGS"
9939 CPPFLAGS
="$CPPFLAGS -x objective-c"
9940 CFLAGS
="$CFLAGS -x objective-c"
9941 TEMACS_LDFLAGS2
="\${LDFLAGS}"
9942 if test "${with_ns}" != no
; then
9943 if test "${opsys}" = darwin
; then
9945 ns_appdir
=`pwd`/nextstep
/Emacs.app
9946 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9947 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9948 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9949 elif test -f $GNUSTEP_CONFIG_FILE; then
9951 ns_appdir
=`pwd`/nextstep
/Emacs.app
9952 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9953 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9954 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9955 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9956 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9957 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9958 ## Pull in stuff from GNUstep-make.
9959 NS_IMPL_GNUSTEP_INC
="FOUNDATION_LIB=gnu
9961 include $GNUSTEP_MAKEFILES/Additional/base.make
9962 include $GNUSTEP_MAKEFILES/Additional/gui.make
9965 NS_IMPL_GNUSTEP_TEMACS_LDFLAGS
="-L${GNUSTEP_SYSTEM_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc \${CONFIG_SYSTEM_LIBS} -lpthread"
9966 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9967 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9968 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9969 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9974 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9975 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9976 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9977 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9978 $as_echo_n "(cached) " >&6
9980 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9981 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9983 # Is the header compilable?
9984 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9985 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9986 cat >conftest.
$ac_ext <<_ACEOF
9989 cat confdefs.h
>>conftest.
$ac_ext
9990 cat >>conftest.
$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 $ac_includes_default
9993 #include <AppKit/AppKit.h>
9995 rm -f conftest.
$ac_objext
9996 if { (ac_try
="$ac_compile"
9998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10002 $as_echo "$ac_try_echo") >&5
10003 (eval "$ac_compile") 2>conftest.er1
10005 grep -v '^ *+' conftest.er1 >conftest.err
10007 cat conftest.err >&5
10008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } && {
10010 test -z "$ac_c_werror_flag" ||
10011 test ! -s conftest.err
10012 } && test -s conftest.$ac_objext; then
10013 ac_header_compiler=yes
10015 $as_echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10018 ac_header_compiler=no
10021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10022 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10023 $as_echo "$ac_header_compiler" >&6; }
10025 # Is the header present?
10026 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10027 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10028 cat >conftest.$ac_ext <<_ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 #include <AppKit/AppKit.h>
10036 if { (ac_try="$ac_cpp conftest.$ac_ext"
10037 case "(($ac_try" in
10038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10039 *) ac_try_echo
=$ac_try;;
10041 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10042 $as_echo "$ac_try_echo") >&5
10043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10045 grep -v '^ *+' conftest.er1
>conftest.err
10047 cat conftest.err
>&5
10048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } >/dev
/null
&& {
10050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10051 test ! -s conftest.err
10053 ac_header_preproc
=yes
10055 $as_echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.
$ac_ext >&5
10058 ac_header_preproc
=no
10061 rm -f conftest.err conftest.
$ac_ext
10062 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10063 $as_echo "$ac_header_preproc" >&6; }
10065 # So? What about this header?
10066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10068 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10069 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10070 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10071 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10072 ac_header_preproc
=yes
10075 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10076 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10077 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10078 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10079 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10080 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10081 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10082 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10083 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10084 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10085 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10086 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10090 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10091 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10092 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10093 $as_echo_n "(cached) " >&6
10095 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
10097 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10098 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10101 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10104 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10105 files are missing or cannot be compiled." >&5
10106 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10107 files are missing or cannot be compiled." >&2;}
10108 { (exit 1); exit 1; }; }
10112 NS_HAVE_NSINTEGER
=yes
10113 cat >conftest.
$ac_ext <<_ACEOF
10116 cat confdefs.h
>>conftest.
$ac_ext
10117 cat >>conftest.
$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 #include <Foundation/NSObjCRuntime.h>
10128 rm -f conftest.
$ac_objext
10129 if { (ac_try
="$ac_compile"
10130 case "(($ac_try" in
10131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10135 $as_echo "$ac_try_echo") >&5
10136 (eval "$ac_compile") 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } && {
10143 test -z "$ac_c_werror_flag" ||
10144 test ! -s conftest.err
10145 } && test -s conftest.$ac_objext; then
10146 ns_have_nsinteger=yes
10148 $as_echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10151 ns_have_nsinteger=no
10154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10155 if test $ns_have_nsinteger = no; then
10156 NS_HAVE_NSINTEGER=no
10165 if test "${HAVE_NS}" = yes; then
10166 window_system=nextstep
10168 # set up packaging dirs
10169 exec_prefix=${ns_appbindir}
10170 libexecdir=${ns_appbindir}/libexec
10171 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10172 prefix=${ns_appresdir}
10174 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10175 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10177 CFLAGS="$tmp_CFLAGS"
10178 CPPFLAGS="$tmp_CPPFLAGS"
10183 case "${window_system}" in
10187 case "${with_x_toolkit}" in
10188 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10189 motif ) USE_X_TOOLKIT=MOTIF ;;
10191 USE_X_TOOLKIT=none ;;
10192 no ) USE_X_TOOLKIT=none ;;
10193 * ) USE_X_TOOLKIT=maybe ;;
10203 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10204 # Extract the first word of "X", so it can be a program name with args.
10205 set dummy X; ac_word=$2
10206 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10207 $as_echo_n "checking for $ac_word... " >&6; }
10208 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10209 $as_echo_n "(cached) " >&6
10211 if test -n "$HAVE_XSERVER"; then
10212 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215 for as_dir in $PATH
10218 test -z "$as_dir" && as_dir=.
10219 for ac_exec_ext in '' $ac_executable_extensions; do
10220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10221 ac_cv_prog_HAVE_XSERVER="true"
10222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10229 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10232 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10233 if test -n "$HAVE_XSERVER"; then
10234 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10235 $as_echo "$HAVE_XSERVER" >&6; }
10237 { $as_echo "$as_me:$LINENO: result: no" >&5
10238 $as_echo "no" >&6; }
10242 if test "$HAVE_XSERVER" = true ||
10243 test -n "$DISPLAY" ||
10244 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
10245 { { $as_echo "$as_me:$LINENO: 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
10253 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10254 were found. You should install the relevant development files for X
10255 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10256 sure you have development files for image handling, i.e.
10257 tiff, gif, jpeg, png and xpm.
10258 If you are sure you want Emacs compiled without X window support, pass
10260 to configure." >&2;}
10261 { (exit 1); exit 1; }; }
10265 ### If we're using X11, we should use the X menu package.
10267 case ${HAVE_X11} in
10268 yes ) HAVE_MENUS=yes ;;
10271 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10272 # Assume not, until told otherwise.
10274 doug_lea_malloc=yes
10275 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10276 $as_echo_n "checking for malloc_get_state... " >&6; }
10277 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10278 $as_echo_n "(cached) " >&6
10280 cat >conftest.$ac_ext <<_ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10286 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10288 #define malloc_get_state innocuous_malloc_get_state
10290 /* System header to define __stub macros and hopefully few prototypes,
10291 which can conflict with char malloc_get_state (); below.
10292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10293 <limits.h> exists even on freestanding compilers. */
10296 # include <limits.h>
10298 # include <assert.h>
10301 #undef malloc_get_state
10303 /* Override any GCC internal prototype to avoid an error.
10304 Use char because int might match the return type of a GCC
10305 builtin and then its argument prototype would still apply. */
10309 char malloc_get_state ();
10310 /* The GNU C library defines this for functions which it implements
10311 to always fail with ENOSYS. Some functions are actually named
10312 something starting with __ and the normal name is an alias. */
10313 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10320 return malloc_get_state ();
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (ac_try="$ac_link"
10327 case "(($ac_try" in
10328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10329 *) ac_try_echo
=$ac_try;;
10331 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10332 $as_echo "$ac_try_echo") >&5
10333 (eval "$ac_link") 2>conftest.er1
10335 grep -v '^ *+' conftest.er1
>conftest.err
10337 cat conftest.err
>&5
10338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && {
10340 test -z "$ac_c_werror_flag" ||
10341 test ! -s conftest.err
10342 } && test -s conftest
$ac_exeext && {
10343 test "$cross_compiling" = yes ||
10344 $as_test_x conftest
$ac_exeext
10346 ac_cv_func_malloc_get_state
=yes
10348 $as_echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.
$ac_ext >&5
10351 ac_cv_func_malloc_get_state
=no
10354 rm -rf conftest.dSYM
10355 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10356 conftest
$ac_exeext conftest.
$ac_ext
10358 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10359 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10360 if test $ac_cv_func_malloc_get_state = yes; then
10366 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10367 $as_echo_n "checking for malloc_set_state... " >&6; }
10368 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10369 $as_echo_n "(cached) " >&6
10371 cat >conftest.
$ac_ext <<_ACEOF
10374 cat confdefs.h
>>conftest.
$ac_ext
10375 cat >>conftest.
$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10379 #define malloc_set_state innocuous_malloc_set_state
10381 /* System header to define __stub macros and hopefully few prototypes,
10382 which can conflict with char malloc_set_state (); below.
10383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10384 <limits.h> exists even on freestanding compilers. */
10387 # include <limits.h>
10389 # include <assert.h>
10392 #undef malloc_set_state
10394 /* Override any GCC internal prototype to avoid an error.
10395 Use char because int might match the return type of a GCC
10396 builtin and then its argument prototype would still apply. */
10400 char malloc_set_state ();
10401 /* The GNU C library defines this for functions which it implements
10402 to always fail with ENOSYS. Some functions are actually named
10403 something starting with __ and the normal name is an alias. */
10404 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10411 return malloc_set_state ();
10416 rm -f conftest.
$ac_objext conftest
$ac_exeext
10417 if { (ac_try
="$ac_link"
10418 case "(($ac_try" in
10419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10420 *) ac_try_echo=$ac_try;;
10422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10423 $as_echo "$ac_try_echo") >&5
10424 (eval "$ac_link") 2>conftest.er1
10426 grep -v '^ *+' conftest.er1 >conftest.err
10428 cat conftest.err >&5
10429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } && {
10431 test -z "$ac_c_werror_flag" ||
10432 test ! -s conftest.err
10433 } && test -s conftest$ac_exeext && {
10434 test "$cross_compiling" = yes ||
10435 $as_test_x conftest$ac_exeext
10437 ac_cv_func_malloc_set_state=yes
10439 $as_echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10442 ac_cv_func_malloc_set_state=no
10445 rm -rf conftest.dSYM
10446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10447 conftest$ac_exeext conftest.$ac_ext
10449 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10450 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10451 if test $ac_cv_func_malloc_set_state = yes; then
10457 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10458 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10459 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10460 $as_echo_n "(cached) " >&6
10462 cat >conftest.$ac_ext <<_ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 extern void (* __after_morecore_hook)();
10472 __after_morecore_hook = 0
10477 rm -f conftest.$ac_objext conftest$ac_exeext
10478 if { (ac_try="$ac_link"
10479 case "(($ac_try" in
10480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10481 *) ac_try_echo
=$ac_try;;
10483 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10484 $as_echo "$ac_try_echo") >&5
10485 (eval "$ac_link") 2>conftest.er1
10487 grep -v '^ *+' conftest.er1
>conftest.err
10489 cat conftest.err
>&5
10490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } && {
10492 test -z "$ac_c_werror_flag" ||
10493 test ! -s conftest.err
10494 } && test -s conftest
$ac_exeext && {
10495 test "$cross_compiling" = yes ||
10496 $as_test_x conftest
$ac_exeext
10498 emacs_cv_var___after_morecore_hook
=yes
10500 $as_echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.
$ac_ext >&5
10503 emacs_cv_var___after_morecore_hook
=no
10506 rm -rf conftest.dSYM
10507 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10508 conftest
$ac_exeext conftest.
$ac_ext
10510 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10511 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10512 if test $emacs_cv_var___after_morecore_hook = no
; then
10515 if test "${system_malloc}" = "yes"; then
10517 GNU_MALLOC_reason
="
10518 (The GNU allocators don't work with this system configuration.)"
10520 if test "$doug_lea_malloc" = "yes" ; then
10521 if test "$GNU_MALLOC" = yes ; then
10522 GNU_MALLOC_reason
="
10523 (Using Doug Lea's new malloc from the GNU C Library.)"
10526 cat >>confdefs.h
<<\_ACEOF
10527 #define DOUG_LEA_MALLOC 1
10532 if test x
"${REL_ALLOC}" = x
; then
10533 REL_ALLOC
=${GNU_MALLOC}
10539 for ac_header
in stdlib.h unistd.h
10541 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10542 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10543 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10544 $as_echo_n "checking for $ac_header... " >&6; }
10545 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 $as_echo_n "(cached) " >&6
10548 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10549 $as_echo "$as_val"'`
10550 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10551 $as_echo "$ac_res" >&6; }
10553 # Is the header compilable?
10554 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10555 $as_echo_n "checking $ac_header usability... " >&6; }
10556 cat >conftest.
$ac_ext <<_ACEOF
10559 cat confdefs.h
>>conftest.
$ac_ext
10560 cat >>conftest.
$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 $ac_includes_default
10563 #include <$ac_header>
10565 rm -f conftest.
$ac_objext
10566 if { (ac_try
="$ac_compile"
10567 case "(($ac_try" in
10568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10572 $as_echo "$ac_try_echo") >&5
10573 (eval "$ac_compile") 2>conftest.er1
10575 grep -v '^ *+' conftest.er1 >conftest.err
10577 cat conftest.err >&5
10578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && {
10580 test -z "$ac_c_werror_flag" ||
10581 test ! -s conftest.err
10582 } && test -s conftest.$ac_objext; then
10583 ac_header_compiler=yes
10585 $as_echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10588 ac_header_compiler=no
10591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10592 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10593 $as_echo "$ac_header_compiler" >&6; }
10595 # Is the header present?
10596 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10597 $as_echo_n "checking $ac_header presence... " >&6; }
10598 cat >conftest.$ac_ext <<_ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604 #include <$ac_header>
10606 if { (ac_try="$ac_cpp conftest.$ac_ext"
10607 case "(($ac_try" in
10608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10609 *) ac_try_echo
=$ac_try;;
10611 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10612 $as_echo "$ac_try_echo") >&5
10613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10615 grep -v '^ *+' conftest.er1
>conftest.err
10617 cat conftest.err
>&5
10618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } >/dev
/null
&& {
10620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10623 ac_header_preproc
=yes
10625 $as_echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.
$ac_ext >&5
10628 ac_header_preproc
=no
10631 rm -f conftest.err conftest.
$ac_ext
10632 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10633 $as_echo "$ac_header_preproc" >&6; }
10635 # So? What about this header?
10636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10639 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10641 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10642 ac_header_preproc
=yes
10645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10646 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10648 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10650 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10651 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10652 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10653 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10654 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10656 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10660 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10661 $as_echo_n "checking for $ac_header... " >&6; }
10662 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10663 $as_echo_n "(cached) " >&6
10665 eval "$as_ac_Header=\$ac_header_preproc"
10667 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10668 $as_echo "$as_val"'`
10669 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10670 $as_echo "$ac_res" >&6; }
10673 if test `eval 'as_val=${'$as_ac_Header'}
10674 $as_echo "$as_val"'` = yes; then
10675 cat >>confdefs.h
<<_ACEOF
10676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10684 for ac_func
in getpagesize
10686 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10687 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10688 $as_echo_n "checking for $ac_func... " >&6; }
10689 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10690 $as_echo_n "(cached) " >&6
10692 cat >conftest.
$ac_ext <<_ACEOF
10695 cat confdefs.h
>>conftest.
$ac_ext
10696 cat >>conftest.
$ac_ext <<_ACEOF
10697 /* end confdefs.h. */
10698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10700 #define $ac_func innocuous_$ac_func
10702 /* System header to define __stub macros and hopefully few prototypes,
10703 which can conflict with char $ac_func (); below.
10704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10705 <limits.h> exists even on freestanding compilers. */
10708 # include <limits.h>
10710 # include <assert.h>
10715 /* Override any GCC internal prototype to avoid an error.
10716 Use char because int might match the return type of a GCC
10717 builtin and then its argument prototype would still apply. */
10722 /* The GNU C library defines this for functions which it implements
10723 to always fail with ENOSYS. Some functions are actually named
10724 something starting with __ and the normal name is an alias. */
10725 #if defined __stub_$ac_func || defined __stub___$ac_func
10732 return $ac_func ();
10737 rm -f conftest.
$ac_objext conftest
$ac_exeext
10738 if { (ac_try
="$ac_link"
10739 case "(($ac_try" in
10740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10744 $as_echo "$ac_try_echo") >&5
10745 (eval "$ac_link") 2>conftest.er1
10747 grep -v '^ *+' conftest.er1 >conftest.err
10749 cat conftest.err >&5
10750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } && {
10752 test -z "$ac_c_werror_flag" ||
10753 test ! -s conftest.err
10754 } && test -s conftest$ac_exeext && {
10755 test "$cross_compiling" = yes ||
10756 $as_test_x conftest$ac_exeext
10758 eval "$as_ac_var=yes"
10760 $as_echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10763 eval "$as_ac_var=no"
10766 rm -rf conftest.dSYM
10767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10768 conftest$ac_exeext conftest.$ac_ext
10770 ac_res=`eval 'as_val=${'$as_ac_var'}
10771 $as_echo "$as_val"'`
10772 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10773 $as_echo "$ac_res" >&6; }
10774 if test `eval 'as_val=${'$as_ac_var'}
10775 $as_echo "$as_val"'` = yes; then
10776 cat >>confdefs.h <<_ACEOF
10777 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10783 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10784 $as_echo_n "checking for working mmap... " >&6; }
10785 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10786 $as_echo_n "(cached) " >&6
10788 if test "$cross_compiling" = yes; then
10789 ac_cv_func_mmap_fixed_mapped=no
10791 cat >conftest.$ac_ext <<_ACEOF
10794 cat confdefs.h >>conftest.$ac_ext
10795 cat >>conftest.$ac_ext <<_ACEOF
10796 /* end confdefs.h. */
10797 $ac_includes_default
10798 /* malloc might have been renamed as rpl_malloc. */
10801 /* Thanks to Mike Haertel and Jim Avera for this test.
10802 Here is a matrix of mmap possibilities:
10803 mmap private not fixed
10804 mmap private fixed at somewhere currently unmapped
10805 mmap private fixed at somewhere already mapped
10806 mmap shared not fixed
10807 mmap shared fixed at somewhere currently unmapped
10808 mmap shared fixed at somewhere already mapped
10809 For private mappings, we should verify that changes cannot be read()
10810 back from the file, nor mmap's back from the file at a different
10811 address. (There have been systems where private was not correctly
10812 implemented like the infamous i386 svr4.0, and systems where the
10813 VM page cache was not coherent with the file system buffer cache
10814 like early versions of FreeBSD and possibly contemporary NetBSD.)
10815 For shared mappings, we should conversely verify that changes get
10816 propagated back to all the places they're supposed to be.
10818 Grep wants private fixed already mapped.
10819 The main things grep needs to know about mmap are:
10820 * does it exist and is it safe to write into the mmap'd area
10821 * how to use it (BSD variants) */
10824 #include <sys/mman.h>
10826 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10830 /* This mess was copied from the GNU getpagesize.h. */
10831 #ifndef HAVE_GETPAGESIZE
10832 /* Assume that all systems that can run configure have sys/param.h. */
10833 # ifndef HAVE_SYS_PARAM_H
10834 # define HAVE_SYS_PARAM_H 1
10837 # ifdef _SC_PAGESIZE
10838 # define getpagesize() sysconf(_SC_PAGESIZE)
10839 # else /* no _SC_PAGESIZE */
10840 # ifdef HAVE_SYS_PARAM_H
10841 # include <sys/param.h>
10842 # ifdef EXEC_PAGESIZE
10843 # define getpagesize() EXEC_PAGESIZE
10844 # else /* no EXEC_PAGESIZE */
10846 # define getpagesize() NBPG * CLSIZE
10849 # endif /* no CLSIZE */
10850 # else /* no NBPG */
10852 # define getpagesize() NBPC
10853 # else /* no NBPC */
10855 # define getpagesize() PAGESIZE
10856 # endif /* PAGESIZE */
10857 # endif /* no NBPC */
10858 # endif /* no NBPG */
10859 # endif /* no EXEC_PAGESIZE */
10860 # else /* no HAVE_SYS_PARAM_H */
10861 # define getpagesize() 8192 /* punt totally */
10862 # endif /* no HAVE_SYS_PARAM_H */
10863 # endif /* no _SC_PAGESIZE */
10865 #endif /* no HAVE_GETPAGESIZE */
10870 char *data, *data2, *data3;
10874 pagesize = getpagesize ();
10876 /* First, make a file with some known garbage in it. */
10877 data = (char *) malloc (pagesize);
10880 for (i = 0; i < pagesize; ++i)
10881 *(data + i) = rand ();
10883 fd = creat ("conftest.mmap", 0600);
10886 if (write (fd, data, pagesize) != pagesize)
10890 /* Next, try to mmap the file at a fixed address which already has
10891 something else allocated at it. If we can, also make sure that
10892 we see the same garbage. */
10893 fd = open ("conftest.mmap", O_RDWR);
10896 data2 = (char *) malloc (2 * pagesize);
10899 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10900 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10901 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10903 for (i = 0; i < pagesize; ++i)
10904 if (*(data + i) != *(data2 + i))
10907 /* Finally, make sure that changes to the mapped area do not
10908 percolate back to the file as seen by read(). (This is a bug on
10909 some variants of i386 svr4.0.) */
10910 for (i = 0; i < pagesize; ++i)
10911 *(data2 + i) = *(data2 + i) + 1;
10912 data3 = (char *) malloc (pagesize);
10915 if (read (fd, data3, pagesize) != pagesize)
10917 for (i = 0; i < pagesize; ++i)
10918 if (*(data + i) != *(data3 + i))
10924 rm -f conftest$ac_exeext
10925 if { (ac_try="$ac_link"
10926 case "(($ac_try" in
10927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10928 *) ac_try_echo
=$ac_try;;
10930 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10931 $as_echo "$ac_try_echo") >&5
10932 (eval "$ac_link") 2>&5
10934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10936 { (case "(($ac_try" in
10937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10941 $as_echo "$ac_try_echo") >&5
10942 (eval "$ac_try") 2>&5
10944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 ac_cv_func_mmap_fixed_mapped=yes
10948 $as_echo "$as_me: program exited with status $ac_status" >&5
10949 $as_echo "$as_me: failed program was:" >&5
10950 sed 's/^/| /' conftest.$ac_ext >&5
10952 ( exit $ac_status )
10953 ac_cv_func_mmap_fixed_mapped=no
10955 rm -rf conftest.dSYM
10956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10961 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10962 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10963 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10965 cat >>confdefs.h <<\_ACEOF
10966 #define HAVE_MMAP 1
10970 rm -f conftest.mmap
10972 if test $use_mmap_for_buffers = yes; then
10976 LIBS="$LIBS_SYSTEM $LIBS"
10979 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10980 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10981 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10982 $as_echo_n "(cached) " >&6
10984 ac_check_lib_save_LIBS=$LIBS
10985 LIBS="-ldnet $LIBS"
10986 cat >conftest.$ac_ext <<_ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h. */
10993 /* Override any GCC internal prototype to avoid an error.
10994 Use char because int might match the return type of a GCC
10995 builtin and then its argument prototype would still apply. */
11003 return dnet_ntoa ();
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (ac_try="$ac_link"
11010 case "(($ac_try" in
11011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11012 *) ac_try_echo
=$ac_try;;
11014 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11015 $as_echo "$ac_try_echo") >&5
11016 (eval "$ac_link") 2>conftest.er1
11018 grep -v '^ *+' conftest.er1
>conftest.err
11020 cat conftest.err
>&5
11021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } && {
11023 test -z "$ac_c_werror_flag" ||
11024 test ! -s conftest.err
11025 } && test -s conftest
$ac_exeext && {
11026 test "$cross_compiling" = yes ||
11027 $as_test_x conftest
$ac_exeext
11029 ac_cv_lib_dnet_dnet_ntoa
=yes
11031 $as_echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.
$ac_ext >&5
11034 ac_cv_lib_dnet_dnet_ntoa
=no
11037 rm -rf conftest.dSYM
11038 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11039 conftest
$ac_exeext conftest.
$ac_ext
11040 LIBS
=$ac_check_lib_save_LIBS
11042 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11043 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11044 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11045 cat >>confdefs.h
<<_ACEOF
11046 #define HAVE_LIBDNET 1
11049 LIBS
="-ldnet $LIBS"
11054 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11055 $as_echo_n "checking for main in -lXbsd... " >&6; }
11056 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11057 $as_echo_n "(cached) " >&6
11059 ac_check_lib_save_LIBS
=$LIBS
11060 LIBS
="-lXbsd $LIBS"
11061 cat >conftest.
$ac_ext <<_ACEOF
11064 cat confdefs.h
>>conftest.
$ac_ext
11065 cat >>conftest.
$ac_ext <<_ACEOF
11066 /* end confdefs.h. */
11077 rm -f conftest.
$ac_objext conftest
$ac_exeext
11078 if { (ac_try
="$ac_link"
11079 case "(($ac_try" in
11080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11084 $as_echo "$ac_try_echo") >&5
11085 (eval "$ac_link") 2>conftest.er1
11087 grep -v '^ *+' conftest.er1 >conftest.err
11089 cat conftest.err >&5
11090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } && {
11092 test -z "$ac_c_werror_flag" ||
11093 test ! -s conftest.err
11094 } && test -s conftest$ac_exeext && {
11095 test "$cross_compiling" = yes ||
11096 $as_test_x conftest$ac_exeext
11098 ac_cv_lib_Xbsd_main=yes
11100 $as_echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.$ac_ext >&5
11103 ac_cv_lib_Xbsd_main=no
11106 rm -rf conftest.dSYM
11107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11108 conftest$ac_exeext conftest.$ac_ext
11109 LIBS=$ac_check_lib_save_LIBS
11111 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11112 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11113 if test $ac_cv_lib_Xbsd_main = yes; then
11114 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11119 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11120 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11121 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11122 $as_echo_n "(cached) " >&6
11124 ac_check_lib_save_LIBS=$LIBS
11125 LIBS="-lpthreads $LIBS"
11126 cat >conftest.$ac_ext <<_ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11133 /* Override any GCC internal prototype to avoid an error.
11134 Use char because int might match the return type of a GCC
11135 builtin and then its argument prototype would still apply. */
11143 return cma_open ();
11148 rm -f conftest.$ac_objext conftest$ac_exeext
11149 if { (ac_try="$ac_link"
11150 case "(($ac_try" in
11151 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11152 *) ac_try_echo
=$ac_try;;
11154 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11155 $as_echo "$ac_try_echo") >&5
11156 (eval "$ac_link") 2>conftest.er1
11158 grep -v '^ *+' conftest.er1
>conftest.err
11160 cat conftest.err
>&5
11161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } && {
11163 test -z "$ac_c_werror_flag" ||
11164 test ! -s conftest.err
11165 } && test -s conftest
$ac_exeext && {
11166 test "$cross_compiling" = yes ||
11167 $as_test_x conftest
$ac_exeext
11169 ac_cv_lib_pthreads_cma_open
=yes
11171 $as_echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.
$ac_ext >&5
11174 ac_cv_lib_pthreads_cma_open
=no
11177 rm -rf conftest.dSYM
11178 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11179 conftest
$ac_exeext conftest.
$ac_ext
11180 LIBS
=$ac_check_lib_save_LIBS
11182 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11183 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11184 if test $ac_cv_lib_pthreads_cma_open = yes; then
11185 cat >>confdefs.h
<<_ACEOF
11186 #define HAVE_LIBPTHREADS 1
11189 LIBS
="-lpthreads $LIBS"
11194 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11195 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11196 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11197 ## added to LIBS in configure would never contain the pthreads part,
11198 ## but the value used in Makefiles might. FIXME?
11200 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11201 ## be harmless on older versions of X where it happens to exist.
11202 test "$opsys" = "aix4-2" && \
11203 test $ac_cv_lib_pthreads_cma_open = yes && \
11204 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
11209 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11210 $as_echo_n "checking for -bbigtoc option... " >&6; }
11211 if test "${gdb_cv_bigtoc+set}" = set; then
11212 $as_echo_n "(cached) " >&6
11216 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11217 *) gdb_cv_bigtoc
=-bbigtoc ;;
11220 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11221 cat >conftest.
$ac_ext <<_ACEOF
11224 cat confdefs.h
>>conftest.
$ac_ext
11225 cat >>conftest.
$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11236 rm -f conftest.
$ac_objext conftest
$ac_exeext
11237 if { (ac_try
="$ac_link"
11238 case "(($ac_try" in
11239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11240 *) ac_try_echo=$ac_try;;
11242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11243 $as_echo "$ac_try_echo") >&5
11244 (eval "$ac_link") 2>conftest.er1
11246 grep -v '^ *+' conftest.er1 >conftest.err
11248 cat conftest.err >&5
11249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && {
11251 test -z "$ac_c_werror_flag" ||
11252 test ! -s conftest.err
11253 } && test -s conftest$ac_exeext && {
11254 test "$cross_compiling" = yes ||
11255 $as_test_x conftest$ac_exeext
11259 $as_echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11265 rm -rf conftest.dSYM
11266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11267 conftest$ac_exeext conftest.$ac_ext
11270 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11271 $as_echo "$gdb_cv_bigtoc" >&6; }
11275 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11276 # used for the tests that follow. We set them back to REAL_CFLAGS and
11277 # REAL_CPPFLAGS later on.
11279 REAL_CPPFLAGS="$CPPFLAGS"
11281 if test "${HAVE_X11}" = "yes"; then
11282 DEFS="$C_SWITCH_X_SITE $DEFS"
11283 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11285 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11286 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11288 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11289 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11290 # but it's more convenient here to set LD_RUN_PATH
11291 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11292 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11293 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11297 if test "${opsys}" = "gnu-linux"; then
11298 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11299 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11300 cat >conftest.$ac_ext <<_ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11310 XOpenDisplay ("foo");
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (ac_try="$ac_link"
11317 case "(($ac_try" in
11318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11319 *) ac_try_echo
=$ac_try;;
11321 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11322 $as_echo "$ac_try_echo") >&5
11323 (eval "$ac_link") 2>conftest.er1
11325 grep -v '^ *+' conftest.er1
>conftest.err
11327 cat conftest.err
>&5
11328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } && {
11330 test -z "$ac_c_werror_flag" ||
11331 test ! -s conftest.err
11332 } && test -s conftest
$ac_exeext && {
11333 test "$cross_compiling" = yes ||
11334 $as_test_x conftest
$ac_exeext
11336 xlinux_first_failure
=no
11338 $as_echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.
$ac_ext >&5
11341 xlinux_first_failure
=yes
11344 rm -rf conftest.dSYM
11345 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11346 conftest
$ac_exeext conftest.
$ac_ext
11347 if test "${xlinux_first_failure}" = "yes"; then
11348 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11349 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11350 OLD_CPPFLAGS
="$CPPFLAGS"
11352 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11353 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11354 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11355 LIBS
="$LIBS -b i486-linuxaout"
11356 cat >conftest.
$ac_ext <<_ACEOF
11359 cat confdefs.h
>>conftest.
$ac_ext
11360 cat >>conftest.
$ac_ext <<_ACEOF
11361 /* end confdefs.h. */
11366 XOpenDisplay ("foo");
11371 rm -f conftest.
$ac_objext conftest
$ac_exeext
11372 if { (ac_try
="$ac_link"
11373 case "(($ac_try" in
11374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11378 $as_echo "$ac_try_echo") >&5
11379 (eval "$ac_link") 2>conftest.er1
11381 grep -v '^ *+' conftest.er1 >conftest.err
11383 cat conftest.err >&5
11384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } && {
11386 test -z "$ac_c_werror_flag" ||
11387 test ! -s conftest.err
11388 } && test -s conftest$ac_exeext && {
11389 test "$cross_compiling" = yes ||
11390 $as_test_x conftest$ac_exeext
11392 xlinux_second_failure=no
11394 $as_echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11397 xlinux_second_failure=yes
11400 rm -rf conftest.dSYM
11401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11402 conftest$ac_exeext conftest.$ac_ext
11403 if test "${xlinux_second_failure}" = "yes"; then
11404 # If we get the same failure with -b, there is no use adding -b.
11405 # So take it out. This plays safe.
11406 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11407 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11408 CPPFLAGS="$OLD_CPPFLAGS"
11410 { $as_echo "$as_me:$LINENO: result: no" >&5
11411 $as_echo "no" >&6; }
11413 { $as_echo "$as_me:$LINENO: result: yes" >&5
11414 $as_echo "yes" >&6; }
11417 { $as_echo "$as_me:$LINENO: result: no" >&5
11418 $as_echo "no" >&6; }
11422 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11423 # header files included from there.
11424 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11425 $as_echo_n "checking for Xkb... " >&6; }
11426 cat >conftest.$ac_ext <<_ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h. */
11432 #include <X11/Xlib.h>
11433 #include <X11/XKBlib.h>
11437 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11442 rm -f conftest.$ac_objext conftest$ac_exeext
11443 if { (ac_try="$ac_link"
11444 case "(($ac_try" in
11445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11446 *) ac_try_echo
=$ac_try;;
11448 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11449 $as_echo "$ac_try_echo") >&5
11450 (eval "$ac_link") 2>conftest.er1
11452 grep -v '^ *+' conftest.er1
>conftest.err
11454 cat conftest.err
>&5
11455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } && {
11457 test -z "$ac_c_werror_flag" ||
11458 test ! -s conftest.err
11459 } && test -s conftest
$ac_exeext && {
11460 test "$cross_compiling" = yes ||
11461 $as_test_x conftest
$ac_exeext
11465 $as_echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.
$ac_ext >&5
11471 rm -rf conftest.dSYM
11472 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11473 conftest
$ac_exeext conftest.
$ac_ext
11474 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11475 $as_echo "$emacs_xkb" >&6; }
11476 if test $emacs_xkb = yes; then
11478 cat >>confdefs.h
<<\_ACEOF
11479 #define HAVE_XKBGETKEYBOARD 1
11488 for ac_func
in XrmSetDatabase XScreenResourceString \
11489 XScreenNumberOfScreen XSetWMProtocols
11491 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11492 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11493 $as_echo_n "checking for $ac_func... " >&6; }
11494 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11495 $as_echo_n "(cached) " >&6
11497 cat >conftest.
$ac_ext <<_ACEOF
11500 cat confdefs.h
>>conftest.
$ac_ext
11501 cat >>conftest.
$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11505 #define $ac_func innocuous_$ac_func
11507 /* System header to define __stub macros and hopefully few prototypes,
11508 which can conflict with char $ac_func (); below.
11509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11510 <limits.h> exists even on freestanding compilers. */
11513 # include <limits.h>
11515 # include <assert.h>
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11527 /* The GNU C library defines this for functions which it implements
11528 to always fail with ENOSYS. Some functions are actually named
11529 something starting with __ and the normal name is an alias. */
11530 #if defined __stub_$ac_func || defined __stub___$ac_func
11537 return $ac_func ();
11542 rm -f conftest.
$ac_objext conftest
$ac_exeext
11543 if { (ac_try
="$ac_link"
11544 case "(($ac_try" in
11545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11549 $as_echo "$ac_try_echo") >&5
11550 (eval "$ac_link") 2>conftest.er1
11552 grep -v '^ *+' conftest.er1 >conftest.err
11554 cat conftest.err >&5
11555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } && {
11557 test -z "$ac_c_werror_flag" ||
11558 test ! -s conftest.err
11559 } && test -s conftest$ac_exeext && {
11560 test "$cross_compiling" = yes ||
11561 $as_test_x conftest$ac_exeext
11563 eval "$as_ac_var=yes"
11565 $as_echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11568 eval "$as_ac_var=no"
11571 rm -rf conftest.dSYM
11572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11573 conftest$ac_exeext conftest.$ac_ext
11575 ac_res=`eval 'as_val=${'$as_ac_var'}
11576 $as_echo "$as_val"'`
11577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11578 $as_echo "$ac_res" >&6; }
11579 if test `eval 'as_val=${'$as_ac_var'}
11580 $as_echo "$as_val"'` = yes; then
11581 cat >>confdefs.h <<_ACEOF
11582 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11590 if test "${window_system}" = "x11"; then
11591 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11592 $as_echo_n "checking X11 version 6... " >&6; }
11593 if test "${emacs_cv_x11_version_6+set}" = set; then
11594 $as_echo_n "(cached) " >&6
11596 cat >conftest.$ac_ext <<_ACEOF
11599 cat confdefs.h >>conftest.$ac_ext
11600 cat >>conftest.$ac_ext <<_ACEOF
11601 /* end confdefs.h. */
11602 #include <X11/Xlib.h>
11606 #if XlibSpecificationRelease < 6
11614 rm -f conftest.$ac_objext conftest$ac_exeext
11615 if { (ac_try="$ac_link"
11616 case "(($ac_try" in
11617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11618 *) ac_try_echo
=$ac_try;;
11620 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11621 $as_echo "$ac_try_echo") >&5
11622 (eval "$ac_link") 2>conftest.er1
11624 grep -v '^ *+' conftest.er1
>conftest.err
11626 cat conftest.err
>&5
11627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest
$ac_exeext && {
11632 test "$cross_compiling" = yes ||
11633 $as_test_x conftest
$ac_exeext
11635 emacs_cv_x11_version_6
=yes
11637 $as_echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.
$ac_ext >&5
11640 emacs_cv_x11_version_6
=no
11643 rm -rf conftest.dSYM
11644 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11645 conftest
$ac_exeext conftest.
$ac_ext
11648 if test $emacs_cv_x11_version_6 = yes; then
11649 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11650 $as_echo "6 or newer" >&6; }
11652 cat >>confdefs.h
<<\_ACEOF
11653 #define HAVE_X11R6 1
11657 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11658 $as_echo "before 6" >&6; }
11663 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11665 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11666 if test "${with_rsvg}" != "no"; then
11667 RSVG_REQUIRED
=2.11.0
11668 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11673 # Extract the first word of "pkg-config", so it can be a program name with args.
11674 set dummy pkg-config
; ac_word
=$2
11675 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11676 $as_echo_n "checking for $ac_word... " >&6; }
11677 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11678 $as_echo_n "(cached) " >&6
11680 case $PKG_CONFIG in
11682 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11686 for as_dir
in $PATH
11689 test -z "$as_dir" && as_dir
=.
11690 for ac_exec_ext
in '' $ac_executable_extensions; do
11691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11692 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11693 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11700 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11704 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11705 if test -n "$PKG_CONFIG"; then
11706 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11707 $as_echo "$PKG_CONFIG" >&6; }
11709 { $as_echo "$as_me:$LINENO: result: no" >&5
11710 $as_echo "no" >&6; }
11715 if test "$PKG_CONFIG" = "no" ; then
11718 PKG_CONFIG_MIN_VERSION
=0.9.0
11719 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11720 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11721 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11723 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11724 { $as_echo "$as_me:$LINENO: result: yes" >&5
11725 $as_echo "yes" >&6; }
11728 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11729 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11730 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11731 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11732 $as_echo "$RSVG_CFLAGS" >&6; }
11734 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11735 $as_echo_n "checking RSVG_LIBS... " >&6; }
11736 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11737 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11738 $as_echo "$RSVG_LIBS" >&6; }
11740 { $as_echo "$as_me:$LINENO: result: no" >&5
11741 $as_echo "no" >&6; }
11744 ## If we have a custom action on failure, don't print errors, but
11745 ## do set a variable so people can do so.
11746 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11753 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11754 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11758 if test $succeeded = yes; then
11767 if test ".${RSVG_CFLAGS}" != "."; then
11770 cat >>confdefs.h
<<\_ACEOF
11771 #define HAVE_RSVG 1
11774 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11775 LIBS
="$RSVG_LIBS $LIBS"
11782 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11785 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11790 # Extract the first word of "pkg-config", so it can be a program name with args.
11791 set dummy pkg-config
; ac_word
=$2
11792 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11795 $as_echo_n "(cached) " >&6
11797 case $PKG_CONFIG in
11799 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11803 for as_dir
in $PATH
11806 test -z "$as_dir" && as_dir
=.
11807 for ac_exec_ext
in '' $ac_executable_extensions; do
11808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11809 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11810 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11817 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11821 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11822 if test -n "$PKG_CONFIG"; then
11823 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11824 $as_echo "$PKG_CONFIG" >&6; }
11826 { $as_echo "$as_me:$LINENO: result: no" >&5
11827 $as_echo "no" >&6; }
11832 if test "$PKG_CONFIG" = "no" ; then
11835 PKG_CONFIG_MIN_VERSION
=0.9.0
11836 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11837 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11838 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11840 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11841 { $as_echo "$as_me:$LINENO: result: yes" >&5
11842 $as_echo "yes" >&6; }
11845 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11846 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11847 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11848 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11849 $as_echo "$GTK_CFLAGS" >&6; }
11851 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11852 $as_echo_n "checking GTK_LIBS... " >&6; }
11853 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11854 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11855 $as_echo "$GTK_LIBS" >&6; }
11857 { $as_echo "$as_me:$LINENO: result: no" >&5
11858 $as_echo "no" >&6; }
11861 ## If we have a custom action on failure, don't print errors, but
11862 ## do set a variable so people can do so.
11863 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11870 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11871 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11875 if test $succeeded = yes; then
11881 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11882 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11883 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11884 { (exit 1); exit 1; }; }
11890 if test x
"$pkg_check_gtk" = xyes
; then
11894 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11895 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11896 LIBS
="$GTK_LIBS $LIBS"
11899 for ac_func
in gtk_main
11901 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11902 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11903 $as_echo_n "checking for $ac_func... " >&6; }
11904 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11905 $as_echo_n "(cached) " >&6
11907 cat >conftest.
$ac_ext <<_ACEOF
11910 cat confdefs.h
>>conftest.
$ac_ext
11911 cat >>conftest.
$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11915 #define $ac_func innocuous_$ac_func
11917 /* System header to define __stub macros and hopefully few prototypes,
11918 which can conflict with char $ac_func (); below.
11919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11920 <limits.h> exists even on freestanding compilers. */
11923 # include <limits.h>
11925 # include <assert.h>
11930 /* Override any GCC internal prototype to avoid an error.
11931 Use char because int might match the return type of a GCC
11932 builtin and then its argument prototype would still apply. */
11937 /* The GNU C library defines this for functions which it implements
11938 to always fail with ENOSYS. Some functions are actually named
11939 something starting with __ and the normal name is an alias. */
11940 #if defined __stub_$ac_func || defined __stub___$ac_func
11947 return $ac_func ();
11952 rm -f conftest.
$ac_objext conftest
$ac_exeext
11953 if { (ac_try
="$ac_link"
11954 case "(($ac_try" in
11955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11959 $as_echo "$ac_try_echo") >&5
11960 (eval "$ac_link") 2>conftest.er1
11962 grep -v '^ *+' conftest.er1 >conftest.err
11964 cat conftest.err >&5
11965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } && {
11967 test -z "$ac_c_werror_flag" ||
11968 test ! -s conftest.err
11969 } && test -s conftest$ac_exeext && {
11970 test "$cross_compiling" = yes ||
11971 $as_test_x conftest$ac_exeext
11973 eval "$as_ac_var=yes"
11975 $as_echo "$as_me: failed program was:" >&5
11976 sed 's/^/| /' conftest.$ac_ext >&5
11978 eval "$as_ac_var=no"
11981 rm -rf conftest.dSYM
11982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11983 conftest$ac_exeext conftest.$ac_ext
11985 ac_res=`eval 'as_val=${'$as_ac_var'}
11986 $as_echo "$as_val"'`
11987 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11988 $as_echo "$ac_res" >&6; }
11989 if test `eval 'as_val=${'$as_ac_var'}
11990 $as_echo "$as_val"'` = yes; then
11991 cat >>confdefs.h <<_ACEOF
11992 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11998 if test "${GTK_COMPILES}" != "yes"; then
11999 if test "$USE_X_TOOLKIT" != "maybe"; then
12000 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12001 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12002 { (exit 1); exit 1; }; };
12007 cat >>confdefs.h <<\_ACEOF
12013 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12016 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12017 closing open displays. This is no problem if you just use
12018 one display, but if you use more than one and close one of them
12019 Emacs may crash." >&5
12020 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12021 closing open displays. This is no problem if you just use
12022 one display, but if you use more than one and close one of them
12023 Emacs may crash." >&2;}
12032 if test "${HAVE_GTK}" = "yes"; then
12034 if test "$with_toolkit_scroll_bars" != no; then
12035 with_toolkit_scroll_bars=yes
12038 HAVE_GTK_MULTIDISPLAY=no
12040 for ac_func in gdk_display_open
12042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12043 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12044 $as_echo_n "checking for $ac_func... " >&6; }
12045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12046 $as_echo_n "(cached) " >&6
12048 cat >conftest.$ac_ext <<_ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12056 #define $ac_func innocuous_$ac_func
12058 /* System header to define __stub macros and hopefully few prototypes,
12059 which can conflict with char $ac_func (); below.
12060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12061 <limits.h> exists even on freestanding compilers. */
12064 # include <limits.h>
12066 # include <assert.h>
12071 /* Override any GCC internal prototype to avoid an error.
12072 Use char because int might match the return type of a GCC
12073 builtin and then its argument prototype would still apply. */
12078 /* The GNU C library defines this for functions which it implements
12079 to always fail with ENOSYS. Some functions are actually named
12080 something starting with __ and the normal name is an alias. */
12081 #if defined __stub_$ac_func || defined __stub___$ac_func
12088 return $ac_func ();
12093 rm -f conftest.$ac_objext conftest$ac_exeext
12094 if { (ac_try="$ac_link"
12095 case "(($ac_try" in
12096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12097 *) ac_try_echo
=$ac_try;;
12099 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12100 $as_echo "$ac_try_echo") >&5
12101 (eval "$ac_link") 2>conftest.er1
12103 grep -v '^ *+' conftest.er1
>conftest.err
12105 cat conftest.err
>&5
12106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } && {
12108 test -z "$ac_c_werror_flag" ||
12109 test ! -s conftest.err
12110 } && test -s conftest
$ac_exeext && {
12111 test "$cross_compiling" = yes ||
12112 $as_test_x conftest
$ac_exeext
12114 eval "$as_ac_var=yes"
12116 $as_echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.
$ac_ext >&5
12119 eval "$as_ac_var=no"
12122 rm -rf conftest.dSYM
12123 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12124 conftest
$ac_exeext conftest.
$ac_ext
12126 ac_res
=`eval 'as_val=${'$as_ac_var'}
12127 $as_echo "$as_val"'`
12128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12129 $as_echo "$ac_res" >&6; }
12130 if test `eval 'as_val=${'$as_ac_var'}
12131 $as_echo "$as_val"'` = yes; then
12132 cat >>confdefs.h
<<_ACEOF
12133 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12135 HAVE_GTK_MULTIDISPLAY
=yes
12139 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12141 cat >>confdefs.h
<<\_ACEOF
12142 #define HAVE_GTK_MULTIDISPLAY 1
12147 HAVE_GTK_FILE_SELECTION
=no
12148 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12149 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12150 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12151 $as_echo_n "(cached) " >&6
12153 cat >conftest.
$ac_ext <<_ACEOF
12156 cat confdefs.h
>>conftest.
$ac_ext
12157 cat >>conftest.
$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12159 $ac_includes_default
12160 #include <gtk/gtk.h>
12165 #ifndef GTK_TYPE_FILE_SELECTION
12166 (void) GTK_TYPE_FILE_SELECTION;
12173 rm -f conftest.
$ac_objext
12174 if { (ac_try
="$ac_compile"
12175 case "(($ac_try" in
12176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12180 $as_echo "$ac_try_echo") >&5
12181 (eval "$ac_compile") 2>conftest.er1
12183 grep -v '^ *+' conftest.er1 >conftest.err
12185 cat conftest.err >&5
12186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } && {
12188 test -z "$ac_c_werror_flag" ||
12189 test ! -s conftest.err
12190 } && test -s conftest.$ac_objext; then
12191 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12193 $as_echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12202 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12203 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12204 HAVE_GTK_FILE_SELECTION=yes
12206 HAVE_GTK_FILE_SELECTION=no
12209 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12211 for ac_func in gtk_file_selection_new
12213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12214 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12215 $as_echo_n "checking for $ac_func... " >&6; }
12216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12217 $as_echo_n "(cached) " >&6
12219 cat >conftest.$ac_ext <<_ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12227 #define $ac_func innocuous_$ac_func
12229 /* System header to define __stub macros and hopefully few prototypes,
12230 which can conflict with char $ac_func (); below.
12231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12232 <limits.h> exists even on freestanding compilers. */
12235 # include <limits.h>
12237 # include <assert.h>
12242 /* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12249 /* The GNU C library defines this for functions which it implements
12250 to always fail with ENOSYS. Some functions are actually named
12251 something starting with __ and the normal name is an alias. */
12252 #if defined __stub_$ac_func || defined __stub___$ac_func
12259 return $ac_func ();
12264 rm -f conftest.$ac_objext conftest$ac_exeext
12265 if { (ac_try="$ac_link"
12266 case "(($ac_try" in
12267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12268 *) ac_try_echo
=$ac_try;;
12270 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12271 $as_echo "$ac_try_echo") >&5
12272 (eval "$ac_link") 2>conftest.er1
12274 grep -v '^ *+' conftest.er1
>conftest.err
12276 cat conftest.err
>&5
12277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && {
12279 test -z "$ac_c_werror_flag" ||
12280 test ! -s conftest.err
12281 } && test -s conftest
$ac_exeext && {
12282 test "$cross_compiling" = yes ||
12283 $as_test_x conftest
$ac_exeext
12285 eval "$as_ac_var=yes"
12287 $as_echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.
$ac_ext >&5
12290 eval "$as_ac_var=no"
12293 rm -rf conftest.dSYM
12294 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12295 conftest
$ac_exeext conftest.
$ac_ext
12297 ac_res
=`eval 'as_val=${'$as_ac_var'}
12298 $as_echo "$as_val"'`
12299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12300 $as_echo "$ac_res" >&6; }
12301 if test `eval 'as_val=${'$as_ac_var'}
12302 $as_echo "$as_val"'` = yes; then
12303 cat >>confdefs.h
<<_ACEOF
12304 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12306 HAVE_GTK_FILE_SELECTION
=yes
12308 HAVE_GTK_FILE_SELECTION
=no
12314 HAVE_GTK_FILE_CHOOSER
=no
12315 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12316 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12317 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12318 $as_echo_n "(cached) " >&6
12320 cat >conftest.
$ac_ext <<_ACEOF
12323 cat confdefs.h
>>conftest.
$ac_ext
12324 cat >>conftest.
$ac_ext <<_ACEOF
12325 /* end confdefs.h. */
12326 $ac_includes_default
12327 #include <gtk/gtk.h>
12332 #ifndef GTK_TYPE_FILE_CHOOSER
12333 (void) GTK_TYPE_FILE_CHOOSER;
12340 rm -f conftest.
$ac_objext
12341 if { (ac_try
="$ac_compile"
12342 case "(($ac_try" in
12343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12344 *) ac_try_echo=$ac_try;;
12346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12347 $as_echo "$ac_try_echo") >&5
12348 (eval "$ac_compile") 2>conftest.er1
12350 grep -v '^ *+' conftest.er1 >conftest.err
12352 cat conftest.err >&5
12353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } && {
12355 test -z "$ac_c_werror_flag" ||
12356 test ! -s conftest.err
12357 } && test -s conftest.$ac_objext; then
12358 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12360 $as_echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12363 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12369 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12370 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12371 HAVE_GTK_FILE_CHOOSER=yes
12373 HAVE_GTK_FILE_CHOOSER=no
12376 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12378 for ac_func in gtk_file_chooser_dialog_new
12380 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12381 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12382 $as_echo_n "checking for $ac_func... " >&6; }
12383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12384 $as_echo_n "(cached) " >&6
12386 cat >conftest.$ac_ext <<_ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12394 #define $ac_func innocuous_$ac_func
12396 /* System header to define __stub macros and hopefully few prototypes,
12397 which can conflict with char $ac_func (); below.
12398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12399 <limits.h> exists even on freestanding compilers. */
12402 # include <limits.h>
12404 # include <assert.h>
12409 /* Override any GCC internal prototype to avoid an error.
12410 Use char because int might match the return type of a GCC
12411 builtin and then its argument prototype would still apply. */
12416 /* The GNU C library defines this for functions which it implements
12417 to always fail with ENOSYS. Some functions are actually named
12418 something starting with __ and the normal name is an alias. */
12419 #if defined __stub_$ac_func || defined __stub___$ac_func
12426 return $ac_func ();
12431 rm -f conftest.$ac_objext conftest$ac_exeext
12432 if { (ac_try="$ac_link"
12433 case "(($ac_try" in
12434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12435 *) ac_try_echo
=$ac_try;;
12437 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12438 $as_echo "$ac_try_echo") >&5
12439 (eval "$ac_link") 2>conftest.er1
12441 grep -v '^ *+' conftest.er1
>conftest.err
12443 cat conftest.err
>&5
12444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } && {
12446 test -z "$ac_c_werror_flag" ||
12447 test ! -s conftest.err
12448 } && test -s conftest
$ac_exeext && {
12449 test "$cross_compiling" = yes ||
12450 $as_test_x conftest
$ac_exeext
12452 eval "$as_ac_var=yes"
12454 $as_echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.
$ac_ext >&5
12457 eval "$as_ac_var=no"
12460 rm -rf conftest.dSYM
12461 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12462 conftest
$ac_exeext conftest.
$ac_ext
12464 ac_res
=`eval 'as_val=${'$as_ac_var'}
12465 $as_echo "$as_val"'`
12466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12467 $as_echo "$ac_res" >&6; }
12468 if test `eval 'as_val=${'$as_ac_var'}
12469 $as_echo "$as_val"'` = yes; then
12470 cat >>confdefs.h
<<_ACEOF
12471 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12473 HAVE_GTK_FILE_CHOOSER
=yes
12475 HAVE_GTK_FILE_CHOOSER
=no
12481 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12482 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12484 cat >>confdefs.h
<<\_ACEOF
12485 #define HAVE_GTK_FILE_BOTH 1
12490 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12491 HAVE_GTK_AND_PTHREAD
=no
12493 for ac_header
in pthread.h
12495 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12496 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12497 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12498 $as_echo_n "checking for $ac_header... " >&6; }
12499 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12500 $as_echo_n "(cached) " >&6
12502 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12503 $as_echo "$as_val"'`
12504 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12505 $as_echo "$ac_res" >&6; }
12507 # Is the header compilable?
12508 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12509 $as_echo_n "checking $ac_header usability... " >&6; }
12510 cat >conftest.
$ac_ext <<_ACEOF
12513 cat confdefs.h
>>conftest.
$ac_ext
12514 cat >>conftest.
$ac_ext <<_ACEOF
12515 /* end confdefs.h. */
12516 $ac_includes_default
12517 #include <$ac_header>
12519 rm -f conftest.
$ac_objext
12520 if { (ac_try
="$ac_compile"
12521 case "(($ac_try" in
12522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12526 $as_echo "$ac_try_echo") >&5
12527 (eval "$ac_compile") 2>conftest.er1
12529 grep -v '^ *+' conftest.er1 >conftest.err
12531 cat conftest.err >&5
12532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } && {
12534 test -z "$ac_c_werror_flag" ||
12535 test ! -s conftest.err
12536 } && test -s conftest.$ac_objext; then
12537 ac_header_compiler=yes
12539 $as_echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12542 ac_header_compiler=no
12545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12546 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12547 $as_echo "$ac_header_compiler" >&6; }
12549 # Is the header present?
12550 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12551 $as_echo_n "checking $ac_header presence... " >&6; }
12552 cat >conftest.$ac_ext <<_ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 #include <$ac_header>
12560 if { (ac_try="$ac_cpp conftest.$ac_ext"
12561 case "(($ac_try" in
12562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12563 *) ac_try_echo
=$ac_try;;
12565 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12566 $as_echo "$ac_try_echo") >&5
12567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12569 grep -v '^ *+' conftest.er1
>conftest.err
12571 cat conftest.err
>&5
12572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); } >/dev
/null
&& {
12574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12575 test ! -s conftest.err
12577 ac_header_preproc
=yes
12579 $as_echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.
$ac_ext >&5
12582 ac_header_preproc
=no
12585 rm -f conftest.err conftest.
$ac_ext
12586 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12587 $as_echo "$ac_header_preproc" >&6; }
12589 # So? What about this header?
12590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12593 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12595 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12596 ac_header_preproc
=yes
12599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12600 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12602 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12604 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12606 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12608 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12610 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12615 $as_echo_n "checking for $ac_header... " >&6; }
12616 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12617 $as_echo_n "(cached) " >&6
12619 eval "$as_ac_Header=\$ac_header_preproc"
12621 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12622 $as_echo "$as_val"'`
12623 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12624 $as_echo "$ac_res" >&6; }
12627 if test `eval 'as_val=${'$as_ac_Header'}
12628 $as_echo "$as_val"'` = yes; then
12629 cat >>confdefs.h
<<_ACEOF
12630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12637 if test "$ac_cv_header_pthread_h"; then
12638 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12639 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12640 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12641 $as_echo_n "(cached) " >&6
12643 ac_check_lib_save_LIBS
=$LIBS
12644 LIBS
="-lpthread $LIBS"
12645 cat >conftest.
$ac_ext <<_ACEOF
12648 cat confdefs.h
>>conftest.
$ac_ext
12649 cat >>conftest.
$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12652 /* Override any GCC internal prototype to avoid an error.
12653 Use char because int might match the return type of a GCC
12654 builtin and then its argument prototype would still apply. */
12658 char pthread_self ();
12662 return pthread_self ();
12667 rm -f conftest.
$ac_objext conftest
$ac_exeext
12668 if { (ac_try
="$ac_link"
12669 case "(($ac_try" in
12670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12674 $as_echo "$ac_try_echo") >&5
12675 (eval "$ac_link") 2>conftest.er1
12677 grep -v '^ *+' conftest.er1 >conftest.err
12679 cat conftest.err >&5
12680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } && {
12682 test -z "$ac_c_werror_flag" ||
12683 test ! -s conftest.err
12684 } && test -s conftest$ac_exeext && {
12685 test "$cross_compiling" = yes ||
12686 $as_test_x conftest$ac_exeext
12688 ac_cv_lib_pthread_pthread_self=yes
12690 $as_echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 ac_cv_lib_pthread_pthread_self=no
12696 rm -rf conftest.dSYM
12697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12698 conftest$ac_exeext conftest.$ac_ext
12699 LIBS=$ac_check_lib_save_LIBS
12701 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12702 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12703 if test $ac_cv_lib_pthread_pthread_self = yes; then
12704 HAVE_GTK_AND_PTHREAD=yes
12708 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12709 case "${canonical}" in
12711 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12714 cat >>confdefs.h <<\_ACEOF
12715 #define HAVE_GTK_AND_PTHREAD 1
12724 if test "${with_dbus}" = "yes"; then
12728 # Extract the first word of "pkg-config", so it can be a program name with args.
12729 set dummy pkg-config; ac_word=$2
12730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12731 $as_echo_n "checking for $ac_word... " >&6; }
12732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12733 $as_echo_n "(cached) " >&6
12735 case $PKG_CONFIG in
12737 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741 for as_dir in $PATH
12744 test -z "$as_dir" && as_dir=.
12745 for ac_exec_ext in '' $ac_executable_extensions; do
12746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12747 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12759 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12760 if test -n "$PKG_CONFIG"; then
12761 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12762 $as_echo "$PKG_CONFIG" >&6; }
12764 { $as_echo "$as_me:$LINENO: result: no" >&5
12765 $as_echo "no" >&6; }
12770 if test "$PKG_CONFIG" = "no" ; then
12773 PKG_CONFIG_MIN_VERSION=0.9.0
12774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12775 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12776 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12778 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12779 { $as_echo "$as_me:$LINENO: result: yes" >&5
12780 $as_echo "yes" >&6; }
12783 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12784 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12785 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12786 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12787 $as_echo "$DBUS_CFLAGS" >&6; }
12789 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12790 $as_echo_n "checking DBUS_LIBS... " >&6; }
12791 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12792 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12793 $as_echo "$DBUS_LIBS" >&6; }
12795 { $as_echo "$as_me:$LINENO: result: no" >&5
12796 $as_echo "no" >&6; }
12799 ## If we have a custom action on failure, don't print errors, but
12800 ## do set a variable so people can do so.
12801 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12808 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12809 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12813 if test $succeeded = yes; then
12819 if test "$HAVE_DBUS" = yes; then
12820 LIBS="$LIBS $DBUS_LIBS"
12822 cat >>confdefs.h <<\_ACEOF
12823 #define HAVE_DBUS 1
12827 for ac_func in dbus_watch_get_unix_fd
12829 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12830 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12831 $as_echo_n "checking for $ac_func... " >&6; }
12832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12833 $as_echo_n "(cached) " >&6
12835 cat >conftest.$ac_ext <<_ACEOF
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12843 #define $ac_func innocuous_$ac_func
12845 /* System header to define __stub macros and hopefully few prototypes,
12846 which can conflict with char $ac_func (); below.
12847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12848 <limits.h> exists even on freestanding compilers. */
12851 # include <limits.h>
12853 # include <assert.h>
12858 /* Override any GCC internal prototype to avoid an error.
12859 Use char because int might match the return type of a GCC
12860 builtin and then its argument prototype would still apply. */
12865 /* The GNU C library defines this for functions which it implements
12866 to always fail with ENOSYS. Some functions are actually named
12867 something starting with __ and the normal name is an alias. */
12868 #if defined __stub_$ac_func || defined __stub___$ac_func
12875 return $ac_func ();
12880 rm -f conftest.$ac_objext conftest$ac_exeext
12881 if { (ac_try="$ac_link"
12882 case "(($ac_try" in
12883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12884 *) ac_try_echo
=$ac_try;;
12886 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12887 $as_echo "$ac_try_echo") >&5
12888 (eval "$ac_link") 2>conftest.er1
12890 grep -v '^ *+' conftest.er1
>conftest.err
12892 cat conftest.err
>&5
12893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } && {
12895 test -z "$ac_c_werror_flag" ||
12896 test ! -s conftest.err
12897 } && test -s conftest
$ac_exeext && {
12898 test "$cross_compiling" = yes ||
12899 $as_test_x conftest
$ac_exeext
12901 eval "$as_ac_var=yes"
12903 $as_echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.
$ac_ext >&5
12906 eval "$as_ac_var=no"
12909 rm -rf conftest.dSYM
12910 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12911 conftest
$ac_exeext conftest.
$ac_ext
12913 ac_res
=`eval 'as_val=${'$as_ac_var'}
12914 $as_echo "$as_val"'`
12915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12916 $as_echo "$ac_res" >&6; }
12917 if test `eval 'as_val=${'$as_ac_var'}
12918 $as_echo "$as_val"'` = yes; then
12919 cat >>confdefs.h
<<_ACEOF
12920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12926 DBUS_OBJ
=dbusbind.o
12932 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12936 # Extract the first word of "pkg-config", so it can be a program name with args.
12937 set dummy pkg-config
; ac_word
=$2
12938 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12939 $as_echo_n "checking for $ac_word... " >&6; }
12940 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12941 $as_echo_n "(cached) " >&6
12943 case $PKG_CONFIG in
12945 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12949 for as_dir
in $PATH
12952 test -z "$as_dir" && as_dir
=.
12953 for ac_exec_ext
in '' $ac_executable_extensions; do
12954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12955 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12956 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12963 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12967 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12968 if test -n "$PKG_CONFIG"; then
12969 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12970 $as_echo "$PKG_CONFIG" >&6; }
12972 { $as_echo "$as_me:$LINENO: result: no" >&5
12973 $as_echo "no" >&6; }
12978 if test "$PKG_CONFIG" = "no" ; then
12981 PKG_CONFIG_MIN_VERSION
=0.9.0
12982 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12983 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12984 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12986 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12987 { $as_echo "$as_me:$LINENO: result: yes" >&5
12988 $as_echo "yes" >&6; }
12991 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12992 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12993 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12994 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12995 $as_echo "$GCONF_CFLAGS" >&6; }
12997 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12998 $as_echo_n "checking GCONF_LIBS... " >&6; }
12999 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13000 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
13001 $as_echo "$GCONF_LIBS" >&6; }
13003 { $as_echo "$as_me:$LINENO: result: no" >&5
13004 $as_echo "no" >&6; }
13007 ## If we have a custom action on failure, don't print errors, but
13008 ## do set a variable so people can do so.
13009 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13016 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13017 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13021 if test $succeeded = yes; then
13027 if test "$HAVE_GCONF" = yes; then
13029 cat >>confdefs.h
<<\_ACEOF
13030 #define HAVE_GCONF 1
13038 if test "${with_selinux}" = "yes"; then
13039 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13040 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13041 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13042 $as_echo_n "(cached) " >&6
13044 ac_check_lib_save_LIBS
=$LIBS
13045 LIBS
="-lselinux $LIBS"
13046 cat >conftest.
$ac_ext <<_ACEOF
13049 cat confdefs.h
>>conftest.
$ac_ext
13050 cat >>conftest.
$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13053 /* Override any GCC internal prototype to avoid an error.
13054 Use char because int might match the return type of a GCC
13055 builtin and then its argument prototype would still apply. */
13059 char lgetfilecon ();
13063 return lgetfilecon ();
13068 rm -f conftest.
$ac_objext conftest
$ac_exeext
13069 if { (ac_try
="$ac_link"
13070 case "(($ac_try" in
13071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13075 $as_echo "$ac_try_echo") >&5
13076 (eval "$ac_link") 2>conftest.er1
13078 grep -v '^ *+' conftest.er1 >conftest.err
13080 cat conftest.err >&5
13081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } && {
13083 test -z "$ac_c_werror_flag" ||
13084 test ! -s conftest.err
13085 } && test -s conftest$ac_exeext && {
13086 test "$cross_compiling" = yes ||
13087 $as_test_x conftest$ac_exeext
13089 ac_cv_lib_selinux_lgetfilecon=yes
13091 $as_echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13094 ac_cv_lib_selinux_lgetfilecon=no
13097 rm -rf conftest.dSYM
13098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13099 conftest$ac_exeext conftest.$ac_ext
13100 LIBS=$ac_check_lib_save_LIBS
13102 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13103 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13104 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13105 HAVE_LIBSELINUX=yes
13110 if test "$HAVE_LIBSELINUX" = yes; then
13112 cat >>confdefs.h <<\_ACEOF
13113 #define HAVE_LIBSELINUX 1
13116 LIBSELINUX_LIBS=-lselinux
13123 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13124 if test "$with_xaw3d" != no; then
13125 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13126 $as_echo_n "checking for xaw3d... " >&6; }
13127 if test "${emacs_cv_xaw3d+set}" = set; then
13128 $as_echo_n "(cached) " >&6
13130 cat >conftest.$ac_ext <<_ACEOF
13133 cat confdefs.h >>conftest.$ac_ext
13134 cat >>conftest.$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13137 #include <X11/Intrinsic.h>
13138 #include <X11/Xaw3d/Simple.h>
13147 rm -f conftest.$ac_objext conftest$ac_exeext
13148 if { (ac_try="$ac_link"
13149 case "(($ac_try" in
13150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13151 *) ac_try_echo
=$ac_try;;
13153 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13154 $as_echo "$ac_try_echo") >&5
13155 (eval "$ac_link") 2>conftest.er1
13157 grep -v '^ *+' conftest.er1
>conftest.err
13159 cat conftest.err
>&5
13160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } && {
13162 test -z "$ac_c_werror_flag" ||
13163 test ! -s conftest.err
13164 } && test -s conftest
$ac_exeext && {
13165 test "$cross_compiling" = yes ||
13166 $as_test_x conftest
$ac_exeext
13170 $as_echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.
$ac_ext >&5
13176 rm -rf conftest.dSYM
13177 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13178 conftest
$ac_exeext conftest.
$ac_ext
13184 if test $emacs_cv_xaw3d = yes; then
13185 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13186 $as_echo "yes; using Lucid toolkit" >&6; }
13187 USE_X_TOOLKIT
=LUCID
13191 cat >>confdefs.h
<<\_ACEOF
13192 #define HAVE_XAW3D 1
13196 { $as_echo "$as_me:$LINENO: result: no" >&5
13197 $as_echo "no" >&6; }
13198 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13199 $as_echo_n "checking for libXaw... " >&6; }
13200 if test "${emacs_cv_xaw+set}" = set; then
13201 $as_echo_n "(cached) " >&6
13203 cat >conftest.
$ac_ext <<_ACEOF
13206 cat confdefs.h
>>conftest.
$ac_ext
13207 cat >>conftest.
$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13210 #include <X11/Intrinsic.h>
13211 #include <X11/Xaw/Simple.h>
13220 rm -f conftest.
$ac_objext conftest
$ac_exeext
13221 if { (ac_try
="$ac_link"
13222 case "(($ac_try" in
13223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13224 *) ac_try_echo=$ac_try;;
13226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13227 $as_echo "$ac_try_echo") >&5
13228 (eval "$ac_link") 2>conftest.er1
13230 grep -v '^ *+' conftest.er1 >conftest.err
13232 cat conftest.err >&5
13233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } && {
13235 test -z "$ac_c_werror_flag" ||
13236 test ! -s conftest.err
13237 } && test -s conftest$ac_exeext && {
13238 test "$cross_compiling" = yes ||
13239 $as_test_x conftest$ac_exeext
13243 $as_echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13249 rm -rf conftest.dSYM
13250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13251 conftest$ac_exeext conftest.$ac_ext
13254 if test $emacs_cv_xaw = yes; then
13255 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13256 $as_echo "yes; using Lucid toolkit" >&6; }
13257 USE_X_TOOLKIT=LUCID
13259 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13260 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13261 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13262 { (exit 1); exit 1; }; }
13264 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13265 $as_echo "no; do not use toolkit by default" >&6; }
13271 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13274 if test "${USE_X_TOOLKIT}" != "none"; then
13275 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13276 $as_echo_n "checking X11 toolkit version... " >&6; }
13277 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13278 $as_echo_n "(cached) " >&6
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 #include <X11/Intrinsic.h>
13290 #if XtSpecificationRelease < 6
13298 rm -f conftest.$ac_objext conftest$ac_exeext
13299 if { (ac_try="$ac_link"
13300 case "(($ac_try" in
13301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13302 *) ac_try_echo
=$ac_try;;
13304 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13305 $as_echo "$ac_try_echo") >&5
13306 (eval "$ac_link") 2>conftest.er1
13308 grep -v '^ *+' conftest.er1
>conftest.err
13310 cat conftest.err
>&5
13311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } && {
13313 test -z "$ac_c_werror_flag" ||
13314 test ! -s conftest.err
13315 } && test -s conftest
$ac_exeext && {
13316 test "$cross_compiling" = yes ||
13317 $as_test_x conftest
$ac_exeext
13319 emacs_cv_x11_toolkit_version_6
=yes
13321 $as_echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.
$ac_ext >&5
13324 emacs_cv_x11_toolkit_version_6
=no
13327 rm -rf conftest.dSYM
13328 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13329 conftest
$ac_exeext conftest.
$ac_ext
13332 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
13333 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13334 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13335 $as_echo "6 or newer" >&6; }
13337 cat >>confdefs.h
<<\_ACEOF
13338 #define HAVE_X11XTR6 1
13341 LIBXTR6
="-lSM -lICE"
13343 ## Use libw.a along with X11R6 Xt.
13344 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
13347 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13348 $as_echo "before 6" >&6; }
13352 if test x
$HAVE_X11XTR6 = xyes
; then
13353 LIBS
="-lXt -lSM -lICE $LIBS"
13358 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13359 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13360 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13361 $as_echo_n "(cached) " >&6
13363 ac_check_lib_save_LIBS
=$LIBS
13365 cat >conftest.
$ac_ext <<_ACEOF
13368 cat confdefs.h
>>conftest.
$ac_ext
13369 cat >>conftest.
$ac_ext <<_ACEOF
13370 /* end confdefs.h. */
13372 /* Override any GCC internal prototype to avoid an error.
13373 Use char because int might match the return type of a GCC
13374 builtin and then its argument prototype would still apply. */
13378 char XmuConvertStandardSelection ();
13382 return XmuConvertStandardSelection ();
13387 rm -f conftest.
$ac_objext conftest
$ac_exeext
13388 if { (ac_try
="$ac_link"
13389 case "(($ac_try" in
13390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13394 $as_echo "$ac_try_echo") >&5
13395 (eval "$ac_link") 2>conftest.er1
13397 grep -v '^ *+' conftest.er1 >conftest.err
13399 cat conftest.err >&5
13400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } && {
13402 test -z "$ac_c_werror_flag" ||
13403 test ! -s conftest.err
13404 } && test -s conftest$ac_exeext && {
13405 test "$cross_compiling" = yes ||
13406 $as_test_x conftest$ac_exeext
13408 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13410 $as_echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13413 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13416 rm -rf conftest.dSYM
13417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13418 conftest$ac_exeext conftest.$ac_ext
13419 LIBS=$ac_check_lib_save_LIBS
13421 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13422 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13423 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13424 cat >>confdefs.h <<_ACEOF
13425 #define HAVE_LIBXMU 1
13432 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13438 ## These machines don't supply Xmu.
13440 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13445 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13446 if test "${HAVE_X11}" = "yes"; then
13447 if test "${USE_X_TOOLKIT}" != "none"; then
13449 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13450 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13451 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13452 $as_echo_n "(cached) " >&6
13454 ac_check_lib_save_LIBS=$LIBS
13455 LIBS="-lXext $LIBS"
13456 cat >conftest.$ac_ext <<_ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13463 /* Override any GCC internal prototype to avoid an error.
13464 Use char because int might match the return type of a GCC
13465 builtin and then its argument prototype would still apply. */
13469 char XShapeQueryExtension ();
13473 return XShapeQueryExtension ();
13478 rm -f conftest.$ac_objext conftest$ac_exeext
13479 if { (ac_try="$ac_link"
13480 case "(($ac_try" in
13481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13482 *) ac_try_echo
=$ac_try;;
13484 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13485 $as_echo "$ac_try_echo") >&5
13486 (eval "$ac_link") 2>conftest.er1
13488 grep -v '^ *+' conftest.er1
>conftest.err
13490 cat conftest.err
>&5
13491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } && {
13493 test -z "$ac_c_werror_flag" ||
13494 test ! -s conftest.err
13495 } && test -s conftest
$ac_exeext && {
13496 test "$cross_compiling" = yes ||
13497 $as_test_x conftest
$ac_exeext
13499 ac_cv_lib_Xext_XShapeQueryExtension
=yes
13501 $as_echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.
$ac_ext >&5
13504 ac_cv_lib_Xext_XShapeQueryExtension
=no
13507 rm -rf conftest.dSYM
13508 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13509 conftest
$ac_exeext conftest.
$ac_ext
13510 LIBS
=$ac_check_lib_save_LIBS
13512 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13513 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13514 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13515 cat >>confdefs.h
<<_ACEOF
13516 #define HAVE_LIBXEXT 1
13519 LIBS
="-lXext $LIBS"
13527 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13528 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13529 $as_echo_n "checking for Motif version 2.1... " >&6; }
13530 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13531 $as_echo_n "(cached) " >&6
13533 cat >conftest.
$ac_ext <<_ACEOF
13536 cat confdefs.h
>>conftest.
$ac_ext
13537 cat >>conftest.
$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13543 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13546 Motif version prior to 2.1.
13552 rm -f conftest.
$ac_objext
13553 if { (ac_try
="$ac_compile"
13554 case "(($ac_try" in
13555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13556 *) ac_try_echo=$ac_try;;
13558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13559 $as_echo "$ac_try_echo") >&5
13560 (eval "$ac_compile") 2>conftest.er1
13562 grep -v '^ *+' conftest.er1 >conftest.err
13564 cat conftest.err >&5
13565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } && {
13567 test -z "$ac_c_werror_flag" ||
13568 test ! -s conftest.err
13569 } && test -s conftest.$ac_objext; then
13570 emacs_cv_motif_version_2_1=yes
13572 $as_echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13575 emacs_cv_motif_version_2_1=no
13578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13580 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13581 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13582 if test $emacs_cv_motif_version_2_1 = yes; then
13583 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13584 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13585 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13586 $as_echo_n "(cached) " >&6
13588 ac_check_lib_save_LIBS=$LIBS
13590 cat >conftest.$ac_ext <<_ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13597 /* Override any GCC internal prototype to avoid an error.
13598 Use char because int might match the return type of a GCC
13599 builtin and then its argument prototype would still apply. */
13603 char XpCreateContext ();
13607 return XpCreateContext ();
13612 rm -f conftest.$ac_objext conftest$ac_exeext
13613 if { (ac_try="$ac_link"
13614 case "(($ac_try" in
13615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13616 *) ac_try_echo
=$ac_try;;
13618 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13619 $as_echo "$ac_try_echo") >&5
13620 (eval "$ac_link") 2>conftest.er1
13622 grep -v '^ *+' conftest.er1
>conftest.err
13624 cat conftest.err
>&5
13625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } && {
13627 test -z "$ac_c_werror_flag" ||
13628 test ! -s conftest.err
13629 } && test -s conftest
$ac_exeext && {
13630 test "$cross_compiling" = yes ||
13631 $as_test_x conftest
$ac_exeext
13633 ac_cv_lib_Xp_XpCreateContext
=yes
13635 $as_echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.
$ac_ext >&5
13638 ac_cv_lib_Xp_XpCreateContext
=no
13641 rm -rf conftest.dSYM
13642 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13643 conftest
$ac_exeext conftest.
$ac_ext
13644 LIBS
=$ac_check_lib_save_LIBS
13646 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13647 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13648 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13653 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13654 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13655 if test "${emacs_cv_lesstif+set}" = set; then
13656 $as_echo_n "(cached) " >&6
13658 # We put this in CFLAGS temporarily to precede other -I options
13659 # that might be in CFLAGS temporarily.
13660 # We put this in CPPFLAGS where it precedes the other -I options.
13661 OLD_CPPFLAGS
=$CPPFLAGS
13663 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13664 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13665 cat >conftest.
$ac_ext <<_ACEOF
13668 cat confdefs.h
>>conftest.
$ac_ext
13669 cat >>conftest.
$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13671 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13680 rm -f conftest.
$ac_objext
13681 if { (ac_try
="$ac_compile"
13682 case "(($ac_try" in
13683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13687 $as_echo "$ac_try_echo") >&5
13688 (eval "$ac_compile") 2>conftest.er1
13690 grep -v '^ *+' conftest.er1 >conftest.err
13692 cat conftest.err >&5
13693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } && {
13695 test -z "$ac_c_werror_flag" ||
13696 test ! -s conftest.err
13697 } && test -s conftest.$ac_objext; then
13698 emacs_cv_lesstif=yes
13700 $as_echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13703 emacs_cv_lesstif=no
13706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13709 $as_echo "$emacs_cv_lesstif" >&6; }
13710 if test $emacs_cv_lesstif = yes; then
13711 # Make sure this -I option remains in CPPFLAGS after it is set
13712 # back to REAL_CPPFLAGS.
13713 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13714 # have those other -I options anyway. Ultimately, having this
13715 # directory ultimately in CPPFLAGS will be enough.
13716 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13717 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13720 CPPFLAGS=$OLD_CPPFLAGS
13727 USE_TOOLKIT_SCROLL_BARS=no
13728 if test "${with_toolkit_scroll_bars}" != "no"; then
13729 if test "${USE_X_TOOLKIT}" != "none"; then
13730 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13731 cat >>confdefs.h <<\_ACEOF
13732 #define USE_TOOLKIT_SCROLL_BARS 1
13736 USE_TOOLKIT_SCROLL_BARS=yes
13737 elif test "${HAVE_XAW3D}" = "yes"; then
13738 cat >>confdefs.h <<\_ACEOF
13739 #define USE_TOOLKIT_SCROLL_BARS 1
13742 USE_TOOLKIT_SCROLL_BARS=yes
13744 elif test "${HAVE_GTK}" = "yes"; then
13745 cat >>confdefs.h <<\_ACEOF
13746 #define USE_TOOLKIT_SCROLL_BARS 1
13749 USE_TOOLKIT_SCROLL_BARS=yes
13750 elif test "${HAVE_NS}" = "yes"; then
13751 cat >>confdefs.h <<\_ACEOF
13752 #define USE_TOOLKIT_SCROLL_BARS 1
13755 USE_TOOLKIT_SCROLL_BARS=yes
13759 cat >conftest.$ac_ext <<_ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13766 #include <X11/Xlib.h>
13767 #include <X11/Xresource.h>
13776 rm -f conftest.$ac_objext
13777 if { (ac_try="$ac_compile"
13778 case "(($ac_try" in
13779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13780 *) ac_try_echo
=$ac_try;;
13782 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13783 $as_echo "$ac_try_echo") >&5
13784 (eval "$ac_compile") 2>conftest.er1
13786 grep -v '^ *+' conftest.er1
>conftest.err
13788 cat conftest.err
>&5
13789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } && {
13791 test -z "$ac_c_werror_flag" ||
13792 test ! -s conftest.err
13793 } && test -s conftest.
$ac_objext; then
13796 cat >>confdefs.h
<<\_ACEOF
13801 $as_echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.
$ac_ext >&5
13807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13810 if test "${with_xim}" != "no"; then
13812 cat >>confdefs.h
<<\_ACEOF
13819 if test "${HAVE_XIM}" != "no"; then
13820 late_CFLAGS
=$CFLAGS
13821 if test "$GCC" = yes; then
13822 CFLAGS
="$CFLAGS --pedantic-errors"
13824 cat >conftest.
$ac_ext <<_ACEOF
13827 cat confdefs.h
>>conftest.
$ac_ext
13828 cat >>conftest.
$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13831 #include <X11/Xlib.h>
13832 #include <X11/Xresource.h>
13841 XPointer *client_data;
13843 /* If we're not using GCC, it's probably not XFree86, and this is
13844 probably right, but we can't use something like --pedantic-errors. */
13845 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13846 char*, XIMProc, XPointer*);
13848 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13854 rm -f conftest.
$ac_objext
13855 if { (ac_try
="$ac_compile"
13856 case "(($ac_try" in
13857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13858 *) ac_try_echo=$ac_try;;
13860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13861 $as_echo "$ac_try_echo") >&5
13862 (eval "$ac_compile") 2>conftest.er1
13864 grep -v '^ *+' conftest.er1 >conftest.err
13866 cat conftest.err >&5
13867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } && {
13869 test -z "$ac_c_werror_flag" ||
13870 test ! -s conftest.err
13871 } && test -s conftest.$ac_objext; then
13872 emacs_cv_arg6_star=yes
13874 $as_echo "$as_me: failed program was:" >&5
13875 sed 's/^/| /' conftest.$ac_ext >&5
13880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13882 if test "$emacs_cv_arg6_star" = yes; then
13883 cat >>confdefs.h <<\_ACEOF
13884 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13888 cat >>confdefs.h <<\_ACEOF
13889 #define XRegisterIMInstantiateCallback_arg6 XPointer
13893 CFLAGS=$late_CFLAGS
13896 ### Start of font-backend (under any platform) section.
13897 # (nothing here yet -- this is a placeholder)
13898 ### End of font-backend (under any platform) section.
13900 ### Start of font-backend (under X11) section.
13901 if test "${HAVE_X11}" = "yes"; then
13905 # Extract the first word of "pkg-config", so it can be a program name with args.
13906 set dummy pkg-config; ac_word=$2
13907 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13908 $as_echo_n "checking for $ac_word... " >&6; }
13909 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13910 $as_echo_n "(cached) " >&6
13912 case $PKG_CONFIG in
13914 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13918 for as_dir in $PATH
13921 test -z "$as_dir" && as_dir=.
13922 for ac_exec_ext in '' $ac_executable_extensions; do
13923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13924 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13925 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13932 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13936 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13937 if test -n "$PKG_CONFIG"; then
13938 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13939 $as_echo "$PKG_CONFIG" >&6; }
13941 { $as_echo "$as_me:$LINENO: result: no" >&5
13942 $as_echo "no" >&6; }
13947 if test "$PKG_CONFIG" = "no" ; then
13950 PKG_CONFIG_MIN_VERSION=0.9.0
13951 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13952 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13953 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13955 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13956 { $as_echo "$as_me:$LINENO: result: yes" >&5
13957 $as_echo "yes" >&6; }
13960 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13961 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13962 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13963 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13964 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13966 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13967 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13968 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13969 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13970 $as_echo "$FONTCONFIG_LIBS" >&6; }
13972 { $as_echo "$as_me:$LINENO: result: no" >&5
13973 $as_echo "no" >&6; }
13974 FONTCONFIG_CFLAGS=""
13976 ## If we have a custom action on failure, don't print errors, but
13977 ## do set a variable so people can do so.
13978 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13985 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13986 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13990 if test $succeeded = yes; then
13997 ## Use -lXft if available, unless `--with-xft=no
'.
13999 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
14002 if test "x${with_xft}" != "xno"; then
14007 # Extract the first word of "pkg-config", so it can be a program name with args.
14008 set dummy pkg-config; ac_word=$2
14009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14010 $as_echo_n "checking for $ac_word... " >&6; }
14011 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14012 $as_echo_n "(cached) " >&6
14014 case $PKG_CONFIG in
14016 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020 for as_dir in $PATH
14023 test -z "$as_dir" && as_dir=.
14024 for ac_exec_ext in '' $ac_executable_extensions; do
14025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14026 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14027 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14034 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14038 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14039 if test -n "$PKG_CONFIG"; then
14040 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14041 $as_echo "$PKG_CONFIG" >&6; }
14043 { $as_echo "$as_me:$LINENO: result: no" >&5
14044 $as_echo "no" >&6; }
14049 if test "$PKG_CONFIG" = "no" ; then
14052 PKG_CONFIG_MIN_VERSION=0.9.0
14053 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14054 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14055 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14057 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14058 { $as_echo "$as_me:$LINENO: result: yes" >&5
14059 $as_echo "yes" >&6; }
14062 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14063 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14064 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14065 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14066 $as_echo "$XFT_CFLAGS" >&6; }
14068 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14069 $as_echo_n "checking XFT_LIBS... " >&6; }
14070 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14071 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14072 $as_echo "$XFT_LIBS" >&6; }
14074 { $as_echo "$as_me:$LINENO: result: no" >&5
14075 $as_echo "no" >&6; }
14078 ## If we have a custom action on failure, don't print errors
, but
14079 ## do set a variable so people can do so.
14080 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14087 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14088 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14092 if test $succeeded = yes; then
14098 ## Because xftfont.c uses XRenderQueryExtension, we also
14099 ## need to link to -lXrender.
14101 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14102 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14103 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14104 $as_echo_n "(cached) " >&6
14106 ac_check_lib_save_LIBS
=$LIBS
14107 LIBS
="-lXrender $LIBS"
14108 cat >conftest.
$ac_ext <<_ACEOF
14111 cat confdefs.h
>>conftest.
$ac_ext
14112 cat >>conftest.
$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14115 /* Override any GCC internal prototype to avoid an error.
14116 Use char because int might match the return type of a GCC
14117 builtin and then its argument prototype would still apply. */
14121 char XRenderQueryExtension ();
14125 return XRenderQueryExtension ();
14130 rm -f conftest.
$ac_objext conftest
$ac_exeext
14131 if { (ac_try
="$ac_link"
14132 case "(($ac_try" in
14133 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14134 *) ac_try_echo=$ac_try;;
14136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14137 $as_echo "$ac_try_echo") >&5
14138 (eval "$ac_link") 2>conftest.er1
14140 grep -v '^ *+' conftest.er1 >conftest.err
14142 cat conftest.err >&5
14143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144 (exit $ac_status); } && {
14145 test -z "$ac_c_werror_flag" ||
14146 test ! -s conftest.err
14147 } && test -s conftest$ac_exeext && {
14148 test "$cross_compiling" = yes ||
14149 $as_test_x conftest$ac_exeext
14151 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14153 $as_echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14156 ac_cv_lib_Xrender_XRenderQueryExtension=no
14159 rm -rf conftest.dSYM
14160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14161 conftest$ac_exeext conftest.$ac_ext
14162 LIBS=$ac_check_lib_save_LIBS
14164 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14165 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14166 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14170 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14171 OLD_CPPFLAGS="$CPPFLAGS"
14172 OLD_CFLAGS="$CFLAGS"
14174 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14175 CFLAGS="$CFLAGS $XFT_CFLAGS"
14176 XFT_LIBS="-lXrender $XFT_LIBS"
14177 LIBS="$XFT_LIBS $LIBS"
14178 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14179 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14180 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14181 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14182 $as_echo_n "(cached) " >&6
14184 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14185 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14187 # Is the header compilable?
14188 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14189 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14190 cat >conftest.$ac_ext <<_ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 $ac_includes_default
14197 #include <X11/Xft/Xft.h>
14199 rm -f conftest.$ac_objext
14200 if { (ac_try="$ac_compile"
14201 case "(($ac_try" in
14202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14203 *) ac_try_echo
=$ac_try;;
14205 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14206 $as_echo "$ac_try_echo") >&5
14207 (eval "$ac_compile") 2>conftest.er1
14209 grep -v '^ *+' conftest.er1
>conftest.err
14211 cat conftest.err
>&5
14212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } && {
14214 test -z "$ac_c_werror_flag" ||
14215 test ! -s conftest.err
14216 } && test -s conftest.
$ac_objext; then
14217 ac_header_compiler
=yes
14219 $as_echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.
$ac_ext >&5
14222 ac_header_compiler
=no
14225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14226 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14227 $as_echo "$ac_header_compiler" >&6; }
14229 # Is the header present?
14230 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14231 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14232 cat >conftest.
$ac_ext <<_ACEOF
14235 cat confdefs.h
>>conftest.
$ac_ext
14236 cat >>conftest.
$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238 #include <X11/Xft/Xft.h>
14240 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14241 case "(($ac_try" in
14242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14246 $as_echo "$ac_try_echo") >&5
14247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14249 grep -v '^ *+' conftest.er1 >conftest.err
14251 cat conftest.err >&5
14252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } >/dev/null && {
14254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14255 test ! -s conftest.err
14257 ac_header_preproc=yes
14259 $as_echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14262 ac_header_preproc=no
14265 rm -f conftest.err conftest.$ac_ext
14266 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14267 $as_echo "$ac_header_preproc" >&6; }
14269 # So? What about this header?
14270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14272 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14273 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14274 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14275 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14276 ac_header_preproc=yes
14279 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14280 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14281 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14282 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14283 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14284 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14285 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14286 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14287 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14288 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14289 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14290 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14294 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14295 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14296 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14297 $as_echo_n "(cached) " >&6
14299 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14301 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14302 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14305 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14306 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14307 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14308 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14309 $as_echo_n "(cached) " >&6
14311 ac_check_lib_save_LIBS=$LIBS
14312 LIBS="-lXft $XFT_LIBS $LIBS"
14313 cat >conftest.$ac_ext <<_ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14320 /* Override any GCC internal prototype to avoid an error.
14321 Use char because int might match the return type of a GCC
14322 builtin and then its argument prototype would still apply. */
14326 char XftFontOpen ();
14330 return XftFontOpen ();
14335 rm -f conftest.$ac_objext conftest$ac_exeext
14336 if { (ac_try="$ac_link"
14337 case "(($ac_try" in
14338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14339 *) ac_try_echo
=$ac_try;;
14341 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14342 $as_echo "$ac_try_echo") >&5
14343 (eval "$ac_link") 2>conftest.er1
14345 grep -v '^ *+' conftest.er1
>conftest.err
14347 cat conftest.err
>&5
14348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } && {
14350 test -z "$ac_c_werror_flag" ||
14351 test ! -s conftest.err
14352 } && test -s conftest
$ac_exeext && {
14353 test "$cross_compiling" = yes ||
14354 $as_test_x conftest
$ac_exeext
14356 ac_cv_lib_Xft_XftFontOpen
=yes
14358 $as_echo "$as_me: failed program was:" >&5
14359 sed 's/^/| /' conftest.
$ac_ext >&5
14361 ac_cv_lib_Xft_XftFontOpen
=no
14364 rm -rf conftest.dSYM
14365 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14366 conftest
$ac_exeext conftest.
$ac_ext
14367 LIBS
=$ac_check_lib_save_LIBS
14369 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14370 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14371 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14379 if test "${HAVE_XFT}" = "yes"; then
14381 cat >>confdefs.h
<<\_ACEOF
14386 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14388 CPPFLAGS
="$OLD_CPPFLAGS"
14389 CFLAGS
="$OLD_CFLAGS"
14391 fi # "${HAVE_XFT}" = "yes"
14392 fi # "$HAVE_XFT" != no
14393 fi # "x${with_xft}" != "xno"
14395 if test "$HAVE_XFT" != "yes"; then
14401 ## We used to allow building with FreeType and without Xft.
14402 ## However, the ftx font backend driver is not in good shape.
14403 if test "${HAVE_XFT}" = "yes"; then
14410 if test "${HAVE_FREETYPE}" = "yes"; then
14412 cat >>confdefs.h
<<\_ACEOF
14413 #define HAVE_FREETYPE 1
14416 if test "${with_libotf}" != "no"; then
14420 # Extract the first word of "pkg-config", so it can be a program name with args.
14421 set dummy pkg-config
; ac_word
=$2
14422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14423 $as_echo_n "checking for $ac_word... " >&6; }
14424 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14425 $as_echo_n "(cached) " >&6
14427 case $PKG_CONFIG in
14429 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14433 for as_dir
in $PATH
14436 test -z "$as_dir" && as_dir
=.
14437 for ac_exec_ext
in '' $ac_executable_extensions; do
14438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14439 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14447 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14451 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14452 if test -n "$PKG_CONFIG"; then
14453 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14454 $as_echo "$PKG_CONFIG" >&6; }
14456 { $as_echo "$as_me:$LINENO: result: no" >&5
14457 $as_echo "no" >&6; }
14462 if test "$PKG_CONFIG" = "no" ; then
14465 PKG_CONFIG_MIN_VERSION
=0.9.0
14466 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14467 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14468 $as_echo_n "checking for libotf... " >&6; }
14470 if $PKG_CONFIG --exists "libotf" 2>&5; then
14471 { $as_echo "$as_me:$LINENO: result: yes" >&5
14472 $as_echo "yes" >&6; }
14475 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14476 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14477 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14478 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14479 $as_echo "$LIBOTF_CFLAGS" >&6; }
14481 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14482 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14483 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14484 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14485 $as_echo "$LIBOTF_LIBS" >&6; }
14487 { $as_echo "$as_me:$LINENO: result: no" >&5
14488 $as_echo "no" >&6; }
14491 ## If we have a custom action on failure, don't print errors, but
14492 ## do set a variable so people can do so.
14493 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14500 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14501 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14505 if test $succeeded = yes; then
14511 if test "$HAVE_LIBOTF" = "yes"; then
14513 cat >>confdefs.h
<<\_ACEOF
14514 #define HAVE_LIBOTF 1
14517 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14518 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14519 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14520 $as_echo_n "(cached) " >&6
14522 ac_check_lib_save_LIBS
=$LIBS
14524 cat >conftest.
$ac_ext <<_ACEOF
14527 cat confdefs.h
>>conftest.
$ac_ext
14528 cat >>conftest.
$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14531 /* Override any GCC internal prototype to avoid an error.
14532 Use char because int might match the return type of a GCC
14533 builtin and then its argument prototype would still apply. */
14537 char OTF_get_variation_glyphs ();
14541 return OTF_get_variation_glyphs ();
14546 rm -f conftest.
$ac_objext conftest
$ac_exeext
14547 if { (ac_try
="$ac_link"
14548 case "(($ac_try" in
14549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14553 $as_echo "$ac_try_echo") >&5
14554 (eval "$ac_link") 2>conftest.er1
14556 grep -v '^ *+' conftest.er1 >conftest.err
14558 cat conftest.err >&5
14559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } && {
14561 test -z "$ac_c_werror_flag" ||
14562 test ! -s conftest.err
14563 } && test -s conftest$ac_exeext && {
14564 test "$cross_compiling" = yes ||
14565 $as_test_x conftest$ac_exeext
14567 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14569 $as_echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14572 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14575 rm -rf conftest.dSYM
14576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14577 conftest$ac_exeext conftest.$ac_ext
14578 LIBS=$ac_check_lib_save_LIBS
14580 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14581 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14582 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14583 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14585 HAVE_OTF_GET_VARIATION_GLYPHS=no
14588 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14590 cat >>confdefs.h <<\_ACEOF
14591 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14600 if test "${HAVE_LIBOTF}" = yes; then
14601 if test "${with_m17n_flt}" != "no"; then
14605 # Extract the first word of "pkg-config", so it can be a program name with args.
14606 set dummy pkg-config; ac_word=$2
14607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14608 $as_echo_n "checking for $ac_word... " >&6; }
14609 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14610 $as_echo_n "(cached) " >&6
14612 case $PKG_CONFIG in
14614 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14618 for as_dir in $PATH
14621 test -z "$as_dir" && as_dir=.
14622 for ac_exec_ext in '' $ac_executable_extensions; do
14623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14624 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14632 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14636 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14637 if test -n "$PKG_CONFIG"; then
14638 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14639 $as_echo "$PKG_CONFIG" >&6; }
14641 { $as_echo "$as_me:$LINENO: result: no" >&5
14642 $as_echo "no" >&6; }
14647 if test "$PKG_CONFIG" = "no" ; then
14650 PKG_CONFIG_MIN_VERSION=0.9.0
14651 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14652 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14653 $as_echo_n "checking for m17n-flt... " >&6; }
14655 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14656 { $as_echo "$as_me:$LINENO: result: yes" >&5
14657 $as_echo "yes" >&6; }
14660 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14661 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14662 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14663 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14664 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14666 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14667 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14668 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14669 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14670 $as_echo "$M17N_FLT_LIBS" >&6; }
14672 { $as_echo "$as_me:$LINENO: result: no" >&5
14673 $as_echo "no" >&6; }
14676 ## If we have a custom action on failure, don't print errors, but
14677 ## do set a variable so people can do so.
14678 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14685 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14686 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14690 if test $succeeded = yes; then
14696 if test "$HAVE_M17N_FLT" = "yes"; then
14698 cat >>confdefs.h <<\_ACEOF
14699 #define HAVE_M17N_FLT 1
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 ## 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|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 'const char emacs_version' ${srcdir}/src/emacs.c \
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}/src/emacs.c'.
" >&5
26315 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/src/emacs.c'.
" >&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}/src
/emacs.c
'." >&5
26320 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/src/emacs.c'." >&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.
26369 cat >>confdefs.h
<<_ACEOF
26370 #define EMACS_CONFIGURATION "${canonical}"
26374 cat >>confdefs.h
<<_ACEOF
26375 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26379 cat >>confdefs.h
<<_ACEOF
26380 #define config_machfile "${machfile}"
26384 cat >>confdefs.h
<<_ACEOF
26385 #define config_opsysfile "${opsysfile}"
26392 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26394 cat >>confdefs.h
<<\_ACEOF
26395 #define HAVE_X_WINDOWS 1
26399 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26401 if test "$HAVE_XFT" = "yes"; then
26402 FONT_OBJ
="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
26403 elif test "$HAVE_FREETYPE" = "yes"; then
26404 FONT_OBJ
="$FONT_OBJ ftfont.o ftxfont.o"
26414 if test "${USE_X_TOOLKIT}" != "none" ; then
26415 WIDGET_OBJ
=widget.o
26417 cat >>confdefs.h
<<\_ACEOF
26418 #define USE_X_TOOLKIT 1
26421 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26423 cat >>confdefs.h
<<\_ACEOF
26424 #define USE_LUCID 1
26427 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26429 cat >>confdefs.h
<<\_ACEOF
26430 #define USE_MOTIF 1
26436 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26437 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
26441 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26442 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26443 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
26447 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26448 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
26451 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
26457 case "$USE_X_TOOLKIT" in
26458 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
26459 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
26460 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
26464 if test "$USE_X_TOOLKIT" = "none"; then
26465 LIBXT_OTHER
="\$(LIBXSM)"
26466 OLDXMENU_TARGET
="really-oldXMenu"
26468 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26469 OLDXMENU_TARGET
="really-lwlib"
26474 ## The X Menu stuff is present in the X10 distribution, but missing
26475 ## from X11. If we have X10, just use the installed library;
26476 ## otherwise, use our own copy.
26477 if test "${HAVE_X11}" = "yes" ; then
26479 cat >>confdefs.h
<<\_ACEOF
26484 if test "$USE_X_TOOLKIT" = "none"; then
26485 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
26487 OLDXMENU
="\${lwlibdir}liblw.a"
26489 LIBXMENU
="\$(OLDXMENU)"
26490 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
26493 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
26494 if test "${HAVE_X_WINDOWS}" = "yes"; then
26502 if test "$HAVE_GTK" = "yes" ||
test "$HAVE_MENUS" != "yes"; then
26511 if test "${HAVE_MENUS}" = "yes" ; then
26513 cat >>confdefs.h
<<\_ACEOF
26514 #define HAVE_MENUS 1
26518 if test "${GNU_MALLOC}" = "yes" ; then
26520 cat >>confdefs.h
<<\_ACEOF
26521 #define GNU_MALLOC 1
26525 if test "${REL_ALLOC}" = "yes" ; then
26527 cat >>confdefs.h
<<\_ACEOF
26528 #define REL_ALLOC 1
26534 if test "$opsys" = "cygwin"; then
26535 CYGWIN_OBJ
="sheap.o"
26536 ## Cygwin differs because of its unexec().
26538 POST_ALLOC_OBJ
="lastfile.o vm-limit.o"
26541 PRE_ALLOC_OBJ
=lastfile.o
26542 POST_ALLOC_OBJ
="\$(vmlimitobj)"
26550 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
26553 ## The -headerpad option tells ld (see man page) to leave room at the
26554 ## end of the header for adding load commands. Needed for dumping.
26555 ## 0x690 is the total size of 30 segment load commands (at 56
26556 ## each); under Cocoa 31 commands are required.
26557 if test "$HAVE_NS" = "yes"; then
26558 libs_nsgui
="-framework AppKit"
26559 headerpad_extra
=6C8
26562 headerpad_extra
=690
26564 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26567 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
26572 ## This exists because src/Makefile.in did some extra fiddling around
26573 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26574 ## #ifndef LD_SWITCH_SYSTEM
26575 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26576 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26577 ## not using gcc, darwin system not on an alpha (ie darwin, since
26578 ## darwin + alpha does not occur).
26579 ## Note that unlike L_S_S, this is not used in ac_link.
26580 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26581 test "$opsys" = "darwin"; then
26582 LD_SWITCH_SYSTEM_EXTRA
="-X"
26584 LD_SWITCH_SYSTEM_EXTRA
=
26590 if test "x$GCC" = "xyes"; then
26593 ## cygwin: don't link against static libgcc.
26594 cygwin|freebsd|netbsd|openbsd
) LIB_GCC
= ;;
26597 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26598 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26599 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26600 if test "$machine" = "arm"; then
26603 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26604 ## immediately undefine it again and redefine it to empty.
26605 ## Was the C_SWITCH_X_SITE part really necessary?
26606 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
26611 ## Ask GCC where to find libgcc.a.
26612 *) LIB_GCC
=`$CC -print-libgcc-file-name 2> /dev/null` ;;
26619 ## If we're using X11/GNUstep, define some consequences.
26620 if test "$HAVE_X_WINDOWS" = "yes" ||
test "$HAVE_NS" = "yes"; then
26622 cat >>confdefs.h
<<\_ACEOF
26623 #define HAVE_WINDOW_SYSTEM 1
26627 cat >>confdefs.h
<<\_ACEOF
26628 #define HAVE_MOUSE 1
26631 MOUSE_SUPPORT
="\$(REAL_MOUSE_SUPPORT)"
26632 TOOLTIP_SUPPORT
="\${lispsource}mouse.elc"
26634 WINDOW_SUPPORT
="\$(BASE_WINDOW_SUPPORT)"
26635 test "$HAVE_X_WINDOWS" = "yes" && \
26636 WINDOW_SUPPORT
="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
26648 #### Report on what we decided to do.
26649 #### Report GTK as a toolkit, even if it doesn't use Xt.
26650 #### It makes printing result more understandable as using GTK sets
26651 #### toolkit_scroll_bars to yes by default.
26652 if test "${HAVE_GTK}" = "yes"; then
26657 Configured for \`${canonical}'.
26659 Where should the build process find the source code? ${srcdir}
26660 What operating system and machine description files should Emacs use?
26661 \`${opsysfile}' and \`${machfile}'
26662 What compiler should emacs be built with? ${CC} ${CFLAGS}
26663 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26664 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26665 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26666 What window system should Emacs use? ${window_system}
26667 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26669 if test -n "${x_includes}"; then
26670 echo " Where do we find X Windows header files? ${x_includes}"
26672 echo " Where do we find X Windows header files? Standard dirs"
26674 if test -n "${x_libraries}"; then
26675 echo " Where do we find X Windows libraries? ${x_libraries}"
26677 echo " Where do we find X Windows libraries? Standard dirs"
26680 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26681 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26682 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26683 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26684 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26685 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26686 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26687 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26688 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26689 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26690 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26692 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26693 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26694 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26695 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26697 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26700 if test $USE_XASSERTS = yes; then
26701 echo " Compiling with asserts turned on."
26702 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
26707 if test "$HAVE_NS" = "yes"; then
26709 echo "You must run \"make install\" in order to test the built application.
26710 The installed application will go to nextstep/Emacs.app and can be
26711 run or moved from there."
26712 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26713 echo "The application will be fully self-contained."
26715 echo "The lisp resources for the application will be installed under ${prefix}.
26716 You may need to run \"make install\" with sudo. The application will fail
26717 to run if these resources are not installed."
26722 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26723 echo "D-Bus integration has been tested for GNU/Linux only."
26728 # Remove any trailing slashes in these variables.
26729 test "${prefix}" != NONE
&&
26730 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26731 test "${exec_prefix}" != NONE
&&
26732 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26734 # Now get this: Some word that is part of the ${srcdir} directory name
26735 # or the ${configuration} value might, just might, happen to be an
26736 # identifier like `sun4' or `i386' or something, and be predefined by
26737 # the C preprocessor to some helpful value like 1, or maybe the empty
26738 # string. Needless to say consequent macro substitutions are less
26739 # than conducive to the makefile finding the correct directory.
26740 # src/Makefile.in used to treat X11 as equivalent to HAVE_X11.
26741 # But nothing in Emacs defines X11, and everywhere else uses HAVE_X11,
26742 # so that cannot have been doing anything.
26743 cpp_undefs
="`echo $srcdir $configuration $canonical unix mktime register X11 |
26744 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26745 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26747 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26748 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26749 ## from Makefile.c can correctly provide the arg `-traditional' to the
26752 cat >conftest.
$ac_ext <<_ACEOF
26755 cat confdefs.h
>>conftest.
$ac_ext
26756 cat >>conftest.
$ac_ext <<_ACEOF
26757 /* end confdefs.h. */
26760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26761 $EGREP "yes..yes" >/dev
/null
2>&1; then
26762 CPP_NEED_TRADITIONAL
=no
26764 CPP_NEED_TRADITIONAL
=yes
26769 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"
26771 ac_config_commands
="$ac_config_commands default"
26773 cat >confcache
<<\_ACEOF
26774 # This file is a shell script that caches the results of configure
26775 # tests run on this system so they can be shared between configure
26776 # scripts and configure runs, see configure's option --config-cache.
26777 # It is not useful on other systems. If it contains results you don't
26778 # want to keep, you may remove or edit it.
26780 # config.status only pays attention to the cache file if you give it
26781 # the --recheck option to rerun configure.
26783 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26784 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26785 # following values.
26789 # The following way of writing the cache mishandles newlines in values,
26790 # but we know of no workaround that is simple, portable, and efficient.
26791 # So, we kill variables containing newlines.
26792 # Ultrix sh set writes to stderr and can't be redirected directly,
26793 # and sets the high bit in the cache file unless we assign to the vars.
26795 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26796 eval ac_val
=\$
$ac_var
26800 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26801 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26804 _ | IFS | as_nl
) ;; #(
26805 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26806 *) $as_unset $ac_var ;;
26812 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26813 *${as_nl}ac_space
=\
*)
26814 # `set' does not quote correctly, so add quotes (double-quote
26815 # substitution turns \\\\ into \\, and sed turns \\ into \).
26818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26821 # `set' quotes correctly as required by POSIX, so do not add quotes.
26822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26831 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26833 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26835 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26836 if test -w "$cache_file"; then
26837 test "x$cache_file" != "x/dev/null" &&
26838 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26839 $as_echo "$as_me: updating cache $cache_file" >&6;}
26840 cat confcache
>$cache_file
26842 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26843 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26848 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26849 # Let make expand exec_prefix.
26850 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26852 DEFS
=-DHAVE_CONFIG_H
26856 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26857 # 1. Remove the extension, and $U if already installed.
26858 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26859 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26860 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26861 # will be set to the directory where LIBOBJS objects are built.
26862 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26863 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26865 LIBOBJS
=$ac_libobjs
26867 LTLIBOBJS
=$ac_ltlibobjs
26871 : ${CONFIG_STATUS=./config.status}
26873 ac_clean_files_save
=$ac_clean_files
26874 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26875 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26876 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26877 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26879 # Generated by $as_me.
26880 # Run this file to recreate the current configuration.
26881 # Compiler output produced by configure, useful for debugging
26882 # configure, is in config.log if it exists.
26885 ac_cs_recheck=false
26887 SHELL=\${CONFIG_SHELL-$SHELL}
26890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26891 ## --------------------- ##
26892 ## M4sh Initialization. ##
26893 ## --------------------- ##
26895 # Be more Bourne compatible
26896 DUALCASE
=1; export DUALCASE
# for MKS sh
26897 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26900 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26901 # is contrary to our usage. Disable this feature.
26902 alias -g '${1+"$@"}'='"$@"'
26903 setopt NO_GLOB_SUBST
26905 case `(set -o) 2>/dev/null` in
26906 *posix
*) set -o posix
;;
26915 # Avoid depending upon Character Ranges.
26916 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26917 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26918 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26919 as_cr_digits
='0123456789'
26920 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26925 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26926 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26927 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26928 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26929 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26930 as_echo='printf %s
\n'
26931 as_echo_n='printf %s
'
26933 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26934 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26935 as_echo_n='/usr
/ucb
/echo -n'
26937 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26938 as_echo_n_body='eval
26942 expr "X$arg" : "X\\(.*\\)$as_nl";
26943 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26945 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26947 export as_echo_n_body
26948 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26950 export as_echo_body
26951 as_echo='sh
-c $as_echo_body as_echo
'
26954 # The user is always right.
26955 if test "${PATH_SEPARATOR+set}" != set; then
26957 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26958 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26963 # Support unset when possible.
26964 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26972 # We need space, tab and new line, in precisely that order. Quoting is
26973 # there to prevent editors from complaining about space-tab.
26974 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26975 # splitting by setting IFS to empty value.)
26978 # Find who we are. Look in the path if we contain no directory separator.
26980 *[\\/]* ) as_myself=$0 ;;
26981 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26982 for as_dir in $PATH
26985 test -z "$as_dir" && as_dir=.
26986 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26992 # We did not find ourselves, most probably we were run as `sh COMMAND'
26993 # in which case we are not to be found in the path.
26994 if test "x$as_myself" = x
; then
26997 if test ! -f "$as_myself"; then
26998 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26999 { (exit 1); exit 1; }
27002 # Work around bugs in pre-3.0 UWIN ksh.
27003 for as_var
in ENV MAIL MAILPATH
27004 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27016 # Required to use basename.
27017 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27018 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27024 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27025 as_basename
=basename
27031 # Name of the executable.
27032 as_me
=`$as_basename -- "$0" ||
27033 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27034 X"$0" : 'X\(//\)$' \| \
27035 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27037 sed '/^.*\/\([^/][^/]*\)\/*$/{
27056 as_lineno_1
=$LINENO
27057 as_lineno_2
=$LINENO
27058 test "x$as_lineno_1" != "x$as_lineno_2" &&
27059 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27061 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27062 # uniformly replaced by the line number. The first 'sed' inserts a
27063 # line-number line after each line using $LINENO; the second 'sed'
27064 # does the real work. The second script uses 'N' to pair each
27065 # line-number line with the line containing $LINENO, and appends
27066 # trailing '-' during substitution so that $LINENO is not a special
27067 # case at line end.
27068 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27069 # scripts with optimization help from Paolo Bonzini. Blame Lee
27070 # E. McMahon (1931-1989) for sed's syntax. :-)
27082 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27085 ' >$as_me.lineno
&&
27086 chmod +x
"$as_me.lineno" ||
27087 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27088 { (exit 1); exit 1; }; }
27090 # Don't try to exec as it changes $[0], causing all sort of problems
27091 # (the dirname of $[0] is not the place where we might find the
27092 # original and so on. Autoconf is especially sensitive to this).
27093 .
"./$as_me.lineno"
27094 # Exit status is that of the last command.
27099 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27105 ECHO_C
= ECHO_N
= ECHO_T
=
27106 case `echo -n x` in
27108 case `echo 'x\c'` in
27109 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27115 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27116 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27122 rm -f conf$$ conf$$.exe conf$$.
file
27123 if test -d conf$$.dir
; then
27124 rm -f conf$$.dir
/conf$$.
file
27127 mkdir conf$$.dir
2>/dev
/null
27129 if (echo >conf$$.
file) 2>/dev
/null
; then
27130 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27132 # ... but there are two gotchas:
27133 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27134 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27135 # In both cases, we have to default to `cp -p'.
27136 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27138 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27146 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27147 rmdir conf$$.dir
2>/dev
/null
27149 if mkdir
-p .
2>/dev
/null
; then
27152 test -d .
/-p && rmdir .
/-p
27156 if test -x / >/dev
/null
2>&1; then
27157 as_test_x
='test -x'
27159 if ls -dL / >/dev
/null
2>&1; then
27166 if test -d "$1"; then
27172 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27173 ???[sx]*):;;*)false;;esac;fi
27177 as_executable_p
=$as_test_x
27179 # Sed expression to map a string onto a valid CPP name.
27180 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27182 # Sed expression to map a string onto a valid variable name.
27183 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27188 # Save the log message, to keep $[0] and so on meaningful, and to
27189 # report actual input values of CONFIG_FILES etc. instead of their
27190 # values after options handling.
27192 This file was extended by emacs $as_me 24.0.50, which was
27193 generated by GNU Autoconf 2.62. Invocation command line was
27195 CONFIG_FILES = $CONFIG_FILES
27196 CONFIG_HEADERS = $CONFIG_HEADERS
27197 CONFIG_LINKS = $CONFIG_LINKS
27198 CONFIG_COMMANDS = $CONFIG_COMMANDS
27201 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27207 # Files that config.status was made for.
27208 config_files="$ac_config_files"
27209 config_headers="$ac_config_headers"
27210 config_commands="$ac_config_commands"
27214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27216 \`$as_me' instantiates files from templates according to the
27217 current configuration.
27219 Usage: $0 [OPTIONS] [FILE]...
27221 -h, --help print this help, then exit
27222 -V, --version print version number and configuration settings, then exit
27223 -q, --quiet do not print progress messages
27224 -d, --debug don't remove temporary files
27225 --recheck update $as_me by reconfiguring in the same conditions
27226 --file=FILE[:TEMPLATE]
27227 instantiate the configuration file FILE
27228 --header=FILE[:TEMPLATE]
27229 instantiate the configuration header FILE
27231 Configuration files:
27234 Configuration headers:
27237 Configuration commands:
27240 Report bugs to <bug-autoconf@gnu.org>."
27243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27245 emacs config.status 24.0.50
27246 configured by $0, generated by GNU Autoconf 2.62,
27247 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27249 Copyright (C) 2008 Free Software Foundation, Inc.
27250 This config.status script is free software; the Free Software Foundation
27251 gives unlimited permission to copy, distribute and modify it."
27256 test -n "\$AWK" || AWK=awk
27259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27260 # The default lists apply if the user does not specify any file.
27266 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27267 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27278 # Handling of the options.
27279 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27281 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27282 $as_echo "$ac_cs_version"; exit ;;
27283 --debug |
--debu |
--deb |
--de |
--d |
-d )
27285 --file |
--fil |
--fi |
--f )
27288 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27290 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
27291 ac_need_defaults
=false
;;
27292 --header |
--heade |
--head |
--hea )
27295 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27297 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
27298 ac_need_defaults
=false
;;
27300 # Conflict between --help and --header
27301 { $as_echo "$as_me: error: ambiguous option: $1
27302 Try \`$0 --help' for more information." >&2
27303 { (exit 1); exit 1; }; };;
27304 --help |
--hel |
-h )
27305 $as_echo "$ac_cs_usage"; exit ;;
27306 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27307 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27310 # This is an error.
27311 -*) { $as_echo "$as_me: error: unrecognized option: $1
27312 Try \`$0 --help' for more information." >&2
27313 { (exit 1); exit 1; }; } ;;
27315 *) ac_config_targets
="$ac_config_targets $1"
27316 ac_need_defaults
=false
;;
27322 ac_configure_extra_args
=
27324 if $ac_cs_silent; then
27326 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27331 if \$ac_cs_recheck; then
27332 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27334 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27335 CONFIG_SHELL='$SHELL'
27336 export CONFIG_SHELL
27341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27345 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27346 ## Running $as_me. ##
27352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27356 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27362 # Handling of arguments.
27363 for ac_config_target
in $ac_config_targets
27365 case $ac_config_target in
27366 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27367 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27368 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
27369 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
27370 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
27371 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
27372 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
27373 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
27374 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27375 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
27376 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
27377 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
27378 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27380 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27381 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27382 { (exit 1); exit 1; }; };;
27387 # If the user did not use the arguments to specify the items to instantiate,
27388 # then the envvar interface is used. Set only those that are not.
27389 # We use the long form for the default assignment because of an extremely
27390 # bizarre bug on SunOS 4.1.3.
27391 if $ac_need_defaults; then
27392 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27393 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27394 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27397 # Have a temporary directory for convenience. Make it in the build tree
27398 # simply because there is no reason against having it here, and in addition,
27399 # creating and moving files from /tmp can sometimes cause problems.
27400 # Hook for its removal unless debugging.
27401 # Note that there is a small window in which the directory will not be cleaned:
27402 # after its creation but before its name has been assigned to `$tmp'.
27406 trap 'exit_status=$?
27407 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27409 trap '{ (exit 1); exit 1; }' 1 2 13 15
27411 # Create a (secure) tmp directory for tmp files.
27414 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27415 test -n "$tmp" && test -d "$tmp"
27418 tmp
=.
/conf$$
-$RANDOM
27419 (umask 077 && mkdir
"$tmp")
27422 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27423 { (exit 1); exit 1; }
27426 # Set up the scripts for CONFIG_FILES section.
27427 # No need to generate them if there are no CONFIG_FILES.
27428 # This happens for instance with `./config.status config.h'.
27429 if test -n "$CONFIG_FILES"; then
27433 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27434 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27437 ac_cs_awk_cr
=$ac_cr
27440 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27445 echo "cat >conf$$subs.awk <<_ACEOF" &&
27446 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27448 } >conf$$subs.sh ||
27449 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27450 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27451 { (exit 1); exit 1; }; }
27452 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27454 for ac_last_try in false false false false false :; do
27455 . ./conf$$subs.sh ||
27456 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27457 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27458 { (exit 1); exit 1; }; }
27460 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27462 elif $ac_last_try; then
27463 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27464 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27465 { (exit 1); exit 1; }; }
27467 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27470 rm -f conf$$subs.sh
27472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27473 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27477 s/^/S["/; s
/!.
*/"]=/
27487 s/\(.\{148\}\).*/\1/
27489 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27494 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27501 s/\(.\{148\}\).*/\1/
27503 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27507 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27512 ' <conf$$subs.awk | sed '
27517 ' >>$CONFIG_STATUS || ac_write_fail=1
27518 rm -f conf$$subs.awk
27519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27521 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27522 for (key in S) S_is_set[key] = 1
27528 nfields = split(line, field, "@
")
27530 len = length(field[1])
27531 for (i = 2; i < nfields; i++) {
27533 keylen = length(key)
27534 if (S_is_set[key]) {
27536 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27537 len += length(value) + length(field[++i])
27548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27549 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27550 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27553 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27554 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
27555 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
27556 { (exit 1); exit 1; }; }
27559 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27560 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27561 # trailing colons and then remove the whole line if VPATH becomes empty
27562 # (actually we leave an empty line to preserve line numbers).
27563 if test "x
$srcdir" = x.; then
27564 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27565 s/:*\$(srcdir):*/:/
27566 s/:*\${srcdir}:*/:/
27568 s/^\([^=]*=[ ]*\):*/\1/
27574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27575 fi # test -n "$CONFIG_FILES"
27577 # Set up the scripts for CONFIG_HEADERS section.
27578 # No need to generate them if there are no CONFIG_HEADERS.
27579 # This happens for instance with `./config.status Makefile'.
27580 if test -n "$CONFIG_HEADERS"; then
27581 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27585 # Transform confdefs.h into an awk script `defines.awk', embedded as
27586 # here-document in config.status, that substitutes the proper values into
27587 # config.h.in to produce config.h.
27589 # Create a delimiter string that does not exist in confdefs.h, to ease
27590 # handling of long lines.
27592 for ac_last_try in false false :; do
27593 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27594 if test -z "$ac_t"; then
27596 elif $ac_last_try; then
27597 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
27598 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
27599 { (exit 1); exit 1; }; }
27601 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27605 # For the awk script, D is an array of macro values keyed by name,
27606 # likewise P contains macro parameters if any. Preserve backslash
27607 # newline sequences.
27609 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27611 s/.\{148\}/&'"$ac_delim"'/g
27614 s/^[ ]*#[ ]*define[ ][ ]*/ /
27621 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27623 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27627 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27628 D["\
1"]=" \
3\\\\\\n
"\\/p
27630 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27635 s/.\{148\}/&'"$ac_delim"'/g
27640 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27643 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27645 ' <confdefs.h | sed '
27646 s/'"$ac_delim"'/"\\\
27647 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27650 for (key in D) D_is_set[key] = 1
27653 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27655 split(line, arg, " ")
27656 if (arg[1] == "#") {
27660 defundef
= substr
(arg
[1], 2)
27663 split(mac1
, mac2
, "(") #)
27665 if (D_is_set
[macro
]) {
27666 # Preserve the white space surrounding the "#".
27667 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27668 print prefix
"define", macro P
[macro
] D
[macro
]
27671 # Replace #undef with comments. This is necessary, for example,
27672 # in the case of _POSIX_SOURCE, which is predefined and required
27673 # on some systems where configure will not decide to define it.
27674 if (defundef
== "undef") {
27675 print
"/*", line
, "*/"
27683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27684 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27685 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27686 { (exit 1); exit 1; }; }
27687 fi # test -n "$CONFIG_HEADERS"
27690 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27695 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27697 case $ac_mode$ac_tag in
27699 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27700 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27701 { (exit 1); exit 1; }; };;
27702 :[FH
]-) ac_tag
=-:-;;
27703 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27720 -) ac_f
="$tmp/stdin";;
27721 *) # Look for the file first in the build tree, then in the source tree
27722 # (if the path is not absolute). The absolute path cannot be DOS-style,
27723 # because $ac_f cannot contain `:'.
27727 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27729 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27730 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27731 { (exit 1); exit 1; }; };;
27733 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27734 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27737 # Let's still pretend it is `configure' which instantiates (i.e., don't
27738 # use $as_me), people would be surprised to read:
27739 # /* config.h. Generated by config.status. */
27740 configure_input
='Generated from '`
27741 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27743 if test x
"$ac_file" != x-
; then
27744 configure_input
="$ac_file. $configure_input"
27745 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27746 $as_echo "$as_me: creating $ac_file" >&6;}
27748 # Neutralize special characters interpreted by sed in replacement strings.
27749 case $configure_input in #(
27750 *\
&* |
*\|
* |
*\\* )
27751 ac_sed_conf_input
=`$as_echo "$configure_input" |
27752 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27753 *) ac_sed_conf_input
=$configure_input;;
27757 *:-:* |
*:-) cat >"$tmp/stdin" \
27758 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27759 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27760 { (exit 1); exit 1; }; } ;;
27765 ac_dir
=`$as_dirname -- "$ac_file" ||
27766 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27767 X"$ac_file" : 'X\(//\)[^/]' \| \
27768 X"$ac_file" : 'X\(//\)$' \| \
27769 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27770 $as_echo X"$ac_file" |
27771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27775 /^X\(\/\/\)[^/].*/{
27790 -*) as_dir
=.
/$as_dir;;
27792 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27796 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27797 *) as_qdir
=$as_dir;;
27799 as_dirs
="'$as_qdir' $as_dirs"
27800 as_dir
=`$as_dirname -- "$as_dir" ||
27801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27802 X"$as_dir" : 'X\(//\)[^/]' \| \
27803 X"$as_dir" : 'X\(//\)$' \| \
27804 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27805 $as_echo X"$as_dir" |
27806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27810 /^X\(\/\/\)[^/].*/{
27823 test -d "$as_dir" && break
27825 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27826 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27827 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27828 { (exit 1); exit 1; }; }; }
27832 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27834 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27835 # A ".." for each directory in $ac_dir_suffix.
27836 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27837 case $ac_top_builddir_sub in
27838 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27839 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27842 ac_abs_top_builddir
=$ac_pwd
27843 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27844 # for backward compatibility:
27845 ac_top_builddir
=$ac_top_build_prefix
27848 .
) # We are building in place.
27850 ac_top_srcdir
=$ac_top_builddir_sub
27851 ac_abs_top_srcdir
=$ac_pwd ;;
27852 [\\/]* | ?
:[\\/]* ) # Absolute name.
27853 ac_srcdir
=$srcdir$ac_dir_suffix;
27854 ac_top_srcdir
=$srcdir
27855 ac_abs_top_srcdir
=$srcdir ;;
27856 *) # Relative name.
27857 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27858 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27859 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27861 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27871 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27872 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27877 # If the template does not know about datarootdir, expand it.
27878 # FIXME: This hack should be removed a few years after 2.60.
27879 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27892 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27893 *datarootdir
*) ac_datarootdir_seen
=yes;;
27894 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27895 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27896 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27899 ac_datarootdir_hack='
27900 s&@datadir@&$datadir&g
27901 s&@docdir@&$docdir&g
27902 s&@infodir@&$infodir&g
27903 s&@localedir@&$localedir&g
27904 s&@mandir@&$mandir&g
27905 s&\\\${datarootdir}&$datarootdir&g' ;;
27909 # Neutralize VPATH when `$srcdir' = `.'.
27910 # Shell code in configure.ac might set extrasub.
27911 # FIXME: do we really want to maintain this feature?
27912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27913 ac_sed_extra="$ac_vpsub
27916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27918 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27919 s|@configure_input@|
$ac_sed_conf_input|
;t t
27920 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27921 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27922 s
&@srcdir@
&$ac_srcdir&;t t
27923 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27924 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27925 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27926 s
&@builddir@
&$ac_builddir&;t t
27927 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27928 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27929 s
&@INSTALL@
&$ac_INSTALL&;t t
27930 $ac_datarootdir_hack
27932 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27933 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27934 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27935 { (exit 1); exit 1; }; }
27937 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27938 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27939 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27940 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27941 which seems to be undefined. Please make sure it is defined." >&5
27942 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27943 which seems to be undefined. Please make sure it is defined." >&2;}
27947 -) cat "$tmp/out" && rm -f "$tmp/out";;
27948 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27950 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27951 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27952 { (exit 1); exit 1; }; }
27958 if test x"$ac_file" != x-; then
27960 $as_echo "/* $configure_input */" \
27961 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27962 } >"$tmp/config.h" \
27963 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27964 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27965 { (exit 1); exit 1; }; }
27966 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27967 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27968 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27971 mv "$tmp/config.h" "$ac_file" \
27972 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27973 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27974 { (exit 1); exit 1; }; }
27977 $as_echo "/* $configure_input */" \
27978 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27979 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27980 $as_echo "$as_me: error: could not create -" >&2;}
27981 { (exit 1); exit 1; }; }
27985 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27986 $as_echo "$as_me: executing $ac_file commands" >&6;}
27991 case $ac_file$ac_mode in
27994 ### Make the necessary directories, if they don't exist.
27995 for dir
in etc lisp
; do
27996 test -d ${dir} || mkdir
${dir}
27999 # Build src/Makefile from ${srcdir}/src/Makefile.c
28000 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
28001 # This must be done after src/config.h is built, since we rely on that file.
28003 echo creating src
/epaths.h
28004 ${MAKE-make} epaths-force
28006 # As of 2000-11-19, newest development versions of GNU cpp preprocess
28007 # `..' to `. .' unless invoked with -traditional
28009 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
28010 CPPFLAGS
="$CPPFLAGS -traditional"
28013 echo creating src
/Makefile
28015 rm -f junk.c junk1.c junk2.c
28016 sed -e '/start of cpp stuff/q' \
28017 < Makefile.c
> junk1.c
28018 sed -e '1,/start of cpp stuff/d'\
28019 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28020 < Makefile.c
> junk.c
28021 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
28022 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28023 cat junk1.c junk2.c
> Makefile.new
28024 rm -f junk.c junk1.c junk2.c
28025 chmod 444 Makefile.new
28026 mv -f Makefile.new Makefile
28029 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
28030 echo creating src
/.gdbinit
28031 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
28040 { (exit 0); exit 0; }
28042 chmod +x
$CONFIG_STATUS
28043 ac_clean_files
=$ac_clean_files_save
28045 test $ac_write_fail = 0 ||
28046 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28047 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28048 { (exit 1); exit 1; }; }
28051 # configure is writing to config.log, and then calls config.status.
28052 # config.status does its own redirection, appending to config.log.
28053 # Unfortunately, on DOS this fails, as config.log is still kept open
28054 # by configure, so config.status won't be able to write to it; its
28055 # output is simply discarded. So we exec the FD to /dev/null,
28056 # effectively closing config.log, so it can be properly (re)opened and
28057 # appended to by config.status. When coming back to configure, we
28058 # need to make the FD available again.
28059 if test "$no_create" != yes; then
28061 ac_config_status_args
=
28062 test "$silent" = yes &&
28063 ac_config_status_args
="$ac_config_status_args --quiet"
28065 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28067 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28068 # would make configure fail if this is the last instruction.
28069 $ac_cs_success ||
{ (exit 1); exit 1; }
28071 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
28072 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
28073 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}