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
772 x_default_search_path
793 GNUSTEP_SYSTEM_HEADERS
794 GNUSTEP_SYSTEM_LIBRARIES
796 LIB_SRC_EXTRA_INSTALLABLES
810 enable_option_checking
830 with_toolkit_scroll_bars
844 enable_ns_self_contained
846 enable_maintainer_mode
854 ac_precious_vars
='build_alias
866 # Initialize some variables set by options.
868 ac_init_version
=false
869 ac_unrecognized_opts
=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
880 program_transform_name
=s
,x
,x
,
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir
='${exec_prefix}/bin'
895 sbindir
='${exec_prefix}/sbin'
896 libexecdir
='${exec_prefix}/libexec'
897 datarootdir
='${prefix}/share'
898 datadir
='${datarootdir}'
899 sysconfdir
='${prefix}/etc'
900 sharedstatedir
='${prefix}/com'
901 localstatedir
='${prefix}/var'
902 includedir
='${prefix}/include'
903 oldincludedir
='/usr/include'
904 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir
='${datarootdir}/info'
910 libdir
='${exec_prefix}/lib'
911 localedir
='${datarootdir}/locale'
912 mandir
='${datarootdir}/man'
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\
$ac_option
926 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930 # Accept the important Cygnus configure options, so we can diagnose typos.
932 case $ac_dashdash$ac_option in
936 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
938 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
941 -build |
--build |
--buil |
--bui |
--bu)
942 ac_prev
=build_alias
;;
943 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
944 build_alias
=$ac_optarg ;;
946 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
947 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
948 ac_prev
=cache_file
;;
949 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
950 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
951 cache_file
=$ac_optarg ;;
954 cache_file
=config.cache
;;
956 -datadir |
--datadir |
--datadi |
--datad)
958 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
959 datadir
=$ac_optarg ;;
961 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
962 |
--dataroo |
--dataro |
--datar)
963 ac_prev
=datarootdir
;;
964 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
965 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
966 datarootdir
=$ac_optarg ;;
968 -disable-* |
--disable-*)
969 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
972 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
973 { (exit 1); exit 1; }; }
974 ac_useropt_orig
=$ac_useropt
975 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep
=', ';;
983 eval enable_
$ac_useropt=no
;;
985 -docdir |
--docdir |
--docdi |
--doc |
--do)
987 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
990 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
992 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
995 -enable-* |
--enable-*)
996 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
999 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1000 { (exit 1); exit 1; }; }
1001 ac_useropt_orig
=$ac_useropt
1002 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1005 "enable_
$ac_useropt"
1007 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep
=', ';;
1010 eval enable_
$ac_useropt=\
$ac_optarg ;;
1012 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1013 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1014 |
--exec |
--exe |
--ex)
1015 ac_prev
=exec_prefix
;;
1016 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1017 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1018 |
--exec=* |
--exe=* |
--ex=*)
1019 exec_prefix
=$ac_optarg ;;
1021 -gas |
--gas |
--ga |
--g)
1022 # Obsolete; use --with-gas.
1025 -help |
--help |
--hel |
--he |
-h)
1026 ac_init_help
=long
;;
1027 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1028 ac_init_help
=recursive
;;
1029 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1030 ac_init_help
=short
;;
1032 -host |
--host |
--hos |
--ho)
1033 ac_prev
=host_alias
;;
1034 -host=* |
--host=* |
--hos=* |
--ho=*)
1035 host_alias
=$ac_optarg ;;
1037 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1039 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1041 htmldir
=$ac_optarg ;;
1043 -includedir |
--includedir |
--includedi |
--included |
--include \
1044 |
--includ |
--inclu |
--incl |
--inc)
1045 ac_prev
=includedir
;;
1046 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1047 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1048 includedir
=$ac_optarg ;;
1050 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1052 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1053 infodir
=$ac_optarg ;;
1055 -libdir |
--libdir |
--libdi |
--libd)
1057 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1058 libdir
=$ac_optarg ;;
1060 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1061 |
--libexe |
--libex |
--libe)
1062 ac_prev
=libexecdir
;;
1063 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1064 |
--libexe=* |
--libex=* |
--libe=*)
1065 libexecdir
=$ac_optarg ;;
1067 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1068 ac_prev
=localedir
;;
1069 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1070 localedir
=$ac_optarg ;;
1072 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1073 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1074 ac_prev
=localstatedir
;;
1075 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1076 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1077 localstatedir
=$ac_optarg ;;
1079 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1081 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1082 mandir
=$ac_optarg ;;
1084 -nfp |
--nfp |
--nf)
1085 # Obsolete; use --without-fp.
1088 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1089 |
--no-cr |
--no-c |
-n)
1092 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1093 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1096 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1097 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1098 |
--oldin |
--oldi |
--old |
--ol |
--o)
1099 ac_prev
=oldincludedir
;;
1100 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1101 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1102 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1103 oldincludedir
=$ac_optarg ;;
1105 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1107 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1108 prefix
=$ac_optarg ;;
1110 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1111 |
--program-pre |
--program-pr |
--program-p)
1112 ac_prev
=program_prefix
;;
1113 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1114 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1115 program_prefix
=$ac_optarg ;;
1117 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1118 |
--program-suf |
--program-su |
--program-s)
1119 ac_prev
=program_suffix
;;
1120 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1121 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1122 program_suffix
=$ac_optarg ;;
1124 -program-transform-name |
--program-transform-name \
1125 |
--program-transform-nam |
--program-transform-na \
1126 |
--program-transform-n |
--program-transform- \
1127 |
--program-transform |
--program-transfor \
1128 |
--program-transfo |
--program-transf \
1129 |
--program-trans |
--program-tran \
1130 |
--progr-tra |
--program-tr |
--program-t)
1131 ac_prev
=program_transform_name
;;
1132 -program-transform-name=* |
--program-transform-name=* \
1133 |
--program-transform-nam=* |
--program-transform-na=* \
1134 |
--program-transform-n=* |
--program-transform-=* \
1135 |
--program-transform=* |
--program-transfor=* \
1136 |
--program-transfo=* |
--program-transf=* \
1137 |
--program-trans=* |
--program-tran=* \
1138 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1139 program_transform_name
=$ac_optarg ;;
1141 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1143 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1144 pdfdir
=$ac_optarg ;;
1146 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1148 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1151 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1152 |
-silent |
--silent |
--silen |
--sile |
--sil)
1155 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1157 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1159 sbindir
=$ac_optarg ;;
1161 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1162 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1163 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1165 ac_prev
=sharedstatedir
;;
1166 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1167 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1168 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1170 sharedstatedir
=$ac_optarg ;;
1172 -site |
--site |
--sit)
1174 -site=* |
--site=* |
--sit=*)
1177 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1179 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1180 srcdir
=$ac_optarg ;;
1182 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1183 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1184 ac_prev
=sysconfdir
;;
1185 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1186 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1187 sysconfdir
=$ac_optarg ;;
1189 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1190 ac_prev
=target_alias
;;
1191 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1192 target_alias
=$ac_optarg ;;
1194 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1197 -version |
--version |
--versio |
--versi |
--vers |
-V)
1198 ac_init_version
=: ;;
1201 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1204 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1205 { (exit 1); exit 1; }; }
1206 ac_useropt_orig
=$ac_useropt
1207 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1212 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213 ac_unrecognized_sep
=', ';;
1215 eval with_
$ac_useropt=\
$ac_optarg ;;
1217 -without-* |
--without-*)
1218 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1221 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1222 { (exit 1); exit 1; }; }
1223 ac_useropt_orig
=$ac_useropt
1224 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1229 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230 ac_unrecognized_sep
=', ';;
1232 eval with_
$ac_useropt=no
;;
1235 # Obsolete; use --with-x.
1238 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1239 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1240 ac_prev
=x_includes
;;
1241 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1242 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1243 x_includes
=$ac_optarg ;;
1245 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1246 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1247 ac_prev
=x_libraries
;;
1248 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1249 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1250 x_libraries
=$ac_optarg ;;
1252 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1253 Try \`$0 --help' for more information." >&2
1254 { (exit 1); exit 1; }; }
1258 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1261 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1262 { (exit 1); exit 1; }; }
1263 eval $ac_envvar=\
$ac_optarg
1264 export $ac_envvar ;;
1267 # FIXME: should be removed in autoconf 3.0.
1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1277 if test -n "$ac_prev"; then
1278 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1279 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1280 { (exit 1); exit 1; }; }
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1286 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1287 { (exit 1); exit 1; }; } ;;
1288 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292 # Check all directory arguments for consistency.
1293 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294 datadir sysconfdir sharedstatedir localstatedir includedir \
1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296 libdir localedir mandir
1298 eval ac_val
=\$
$ac_var
1299 # Remove trailing slashes.
1302 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303 eval $ac_var=\
$ac_val;;
1305 # Be sure to have absolute directory names.
1307 [\\/$
]* | ?
:[\\/]* ) continue;;
1308 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1310 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311 { (exit 1); exit 1; }; }
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1319 target
=$target_alias
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x
; then
1323 if test "x$build_alias" = x
; then
1324 cross_compiling
=maybe
1325 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326 If a cross compiler is detected then cross compile mode will be used." >&2
1327 elif test "x$build_alias" != "x$host_alias"; then
1333 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1335 test "$silent" = yes && exec 6>/dev
/null
1338 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di
=`ls -di .` &&
1340 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1341 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1342 { (exit 1); exit 1; }; }
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1345 { (exit 1); exit 1; }; }
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted
=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir
=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1380 ac_srcdir_defaulted
=no
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1384 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385 { (exit 1); exit 1; }; }
1387 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1390 { (exit 1); exit 1; }; }
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1400 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 for ac_var
in $ac_precious_vars; do
1403 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1405 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1410 # Report the --help message.
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1416 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1423 Defaults for the options are specified in brackets.
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1447 For better control, use the options below.
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1474 --program-prefix=PREFIX prepend PREFIX to installed program names
1475 --program-suffix=SUFFIX append SUFFIX to installed program names
1476 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1479 --x-includes=DIR X include files are
in DIR
1480 --x-libraries=DIR X library files are
in DIR
1483 --build=BUILD configure
for building on BUILD
[guessed
]
1484 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1488 if test -n "$ac_init_help"; then
1489 case $ac_init_help in
1490 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1495 --disable-option-checking ignore unrecognized
--enable/--with options
1496 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1497 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1498 --disable-ns-self-contained
1499 disable self contained build under NeXTstep
1500 --enable-asserts compile code with asserts enabled
1501 --enable-maintainer-mode
1502 enable make rules and dependencies not useful
(and
1503 sometimes confusing
) to the casual installer
1504 --enable-locallisppath=PATH
1505 directories Emacs should search
for lisp files
1506 specific to this site
1507 --enable-checking[=LIST
]
1508 enable expensive run-time checks. With LIST
, enable
1509 only specific categories of checks. Categories are
:
1510 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1511 stringfreelist
, xmallocoverrun
, conslist
1512 --enable-profiling build emacs with profiling support. This might not
1513 work on all platforms
1514 --enable-autodepend automatically generate dependencies to .h-files.
1515 Requires GNU Make and Gcc. Enabled
if GNU Make and
1517 --disable-largefile omit support
for large files
1520 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1521 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1522 --without-pop don
't support POP mail retrieval with movemail
1523 --with-kerberos support Kerberos-authenticated POP
1524 --with-kerberos5 support Kerberos version 5 authenticated POP
1525 --with-hesiod support Hesiod to get the POP server host
1526 --with-mmdf support MMDF mailboxes
1527 --with-mail-unlink unlink, rather than empty, mail spool after reading
1528 --with-mailhost=HOSTNAME
1529 string giving default POP mail host
1530 --without-sound don't compile with sound support
1531 --without-sync-input process async input synchronously
1532 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1534 --without-xpm don
't compile with XPM image support
1535 --without-jpeg don't compile with JPEG image support
1536 --without-tiff don
't compile with TIFF image support
1537 --without-gif don't compile with GIF image support
1538 --without-png don
't compile with PNG image support
1539 --without-rsvg don't compile with SVG image support
1540 --without-xft don
't use XFT for anti aliased fonts
1541 --without-libotf don't use libotf
for OpenType font support
1542 --without-m17n-flt don
't use m17n-flt for text shaping
1543 --without-toolkit-scroll-bars
1544 don't use Motif or Xaw3d scroll bars
1545 --without-xaw3d don
't use Xaw3d
1546 --without-xim don't use X11 XIM
1547 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1548 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1550 --without-dbus don't compile with D-Bus support
1551 --without-gconf don
't compile with GConf support
1552 --without-selinux don't compile with SELinux support
1553 --without-makeinfo don
't require makeinfo for building manuals
1555 --with-pkg-config-prog=PATH
1556 path to pkg-config for finding GTK and librsvg
1557 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1558 /usr/lib, or /usr/lib64 on some platforms.
1559 --with-gnustep-conf=PATH
1560 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1561 or /etc/GNUstep/GNUstep.conf
1562 --with-x use the X Window System
1564 Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
1573 XMKMF Path to xmkmf, Makefile generator for X Window System
1575 Use these variables to override the choices made by `configure' or to
help
1576 it to
find libraries and programs with nonstandard names
/locations.
1582 if test "$ac_init_help" = "recursive"; then
1583 # If there are subdirs, report their specific --help.
1584 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1585 test -d "$ac_dir" ||
1586 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1591 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1593 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1594 # A ".." for each directory in $ac_dir_suffix.
1595 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1596 case $ac_top_builddir_sub in
1597 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1598 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1601 ac_abs_top_builddir
=$ac_pwd
1602 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1603 # for backward compatibility:
1604 ac_top_builddir
=$ac_top_build_prefix
1607 .
) # We are building in place.
1609 ac_top_srcdir
=$ac_top_builddir_sub
1610 ac_abs_top_srcdir
=$ac_pwd ;;
1611 [\\/]* | ?
:[\\/]* ) # Absolute name.
1612 ac_srcdir
=$srcdir$ac_dir_suffix;
1613 ac_top_srcdir
=$srcdir
1614 ac_abs_top_srcdir
=$srcdir ;;
1616 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1618 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1620 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1622 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1623 # Check for guested configure.
1624 if test -f "$ac_srcdir/configure.gnu"; then
1626 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1627 elif test -f "$ac_srcdir/configure"; then
1629 $SHELL "$ac_srcdir/configure" --help=recursive
1631 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1633 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1637 test -n "$ac_init_help" && exit $ac_status
1638 if $ac_init_version; then
1640 emacs configure
24.0.50
1641 generated by GNU Autoconf
2.62
1643 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1644 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1645 This configure
script is free software
; the Free Software Foundation
1646 gives unlimited permission to copy
, distribute and modify it.
1650 cat >config.log
<<_ACEOF
1651 This file contains any messages produced by compilers while
1652 running configure, to aid debugging if configure makes a mistake.
1654 It was created by emacs $as_me 24.0.50, which was
1655 generated by GNU Autoconf 2.62. Invocation command line was
1667 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1668 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1669 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1670 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1671 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1673 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1674 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1676 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1677 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1678 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1679 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1680 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1681 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1682 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1690 test -z "$as_dir" && as_dir
=.
1691 $as_echo "PATH: $as_dir"
1707 # Keep a trace of the command line.
1708 # Strip out --no-create and --no-recursion so they do not pile up.
1709 # Strip out --silent because we don't want to record it for future runs.
1710 # Also quote any args containing shell meta-characters.
1711 # Make two passes to allow for proper duplicate-argument suppression.
1715 ac_must_keep_next
=false
1721 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1722 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1723 |
-silent |
--silent |
--silen |
--sile |
--sil)
1726 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1729 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1731 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1732 if test $ac_must_keep_next = true
; then
1733 ac_must_keep_next
=false
# Got value, back to normal.
1736 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1737 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1738 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1739 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1740 case "$ac_configure_args0 " in
1741 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1744 -* ) ac_must_keep_next
=true
;;
1747 ac_configure_args
="$ac_configure_args '$ac_arg'"
1752 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1753 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1755 # When interrupted or exit'd, cleanup temporary files, and complete
1756 # config.log. We remove comments because anyway the quotes in there
1757 # would cause problems or look ugly.
1758 # WARNING: Use '\'' to represent an apostrophe within the trap.
1759 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1760 trap 'exit_status=$?
1761 # Save into config.log some information that might help in debugging.
1766 ## ---------------- ##
1767 ## Cache variables. ##
1768 ## ---------------- ##
1771 # The following way of writing the cache mishandles newlines in values,
1773 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1774 eval ac_val=\$$ac_var
1778 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1779 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1782 _ | IFS | as_nl) ;; #(
1783 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1784 *) $as_unset $ac_var ;;
1789 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1790 *${as_nl}ac_space=\ *)
1792 "s/'\''/'\''\\\\'\'''\''/g;
1793 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1796 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1804 ## ----------------- ##
1805 ## Output variables. ##
1806 ## ----------------- ##
1809 for ac_var in $ac_subst_vars
1811 eval ac_val=\$$ac_var
1813 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1815 $as_echo "$ac_var='\''$ac_val'\''"
1819 if test -n "$ac_subst_files"; then
1821 ## ------------------- ##
1822 ## File substitutions. ##
1823 ## ------------------- ##
1826 for ac_var
in $ac_subst_files
1828 eval ac_val
=\$
$ac_var
1830 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832 $as_echo "$ac_var='\''$ac_val'\''"
1837 if test -s confdefs.h; then
1847 test "$ac_signal" != 0 &&
1848 $as_echo "$as_me: caught signal $ac_signal"
1849 $as_echo "$as_me: exit $exit_status"
1851 rm -f core *.core core.conftest.* &&
1852 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1855 for ac_signal
in 1 2 13 15; do
1856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1861 rm -f -r conftest
* confdefs.h
1863 # Predefined preprocessor variables.
1865 cat >>confdefs.h
<<_ACEOF
1866 #define PACKAGE_NAME "$PACKAGE_NAME"
1870 cat >>confdefs.h
<<_ACEOF
1871 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1875 cat >>confdefs.h
<<_ACEOF
1876 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1880 cat >>confdefs.h
<<_ACEOF
1881 #define PACKAGE_STRING "$PACKAGE_STRING"
1885 cat >>confdefs.h
<<_ACEOF
1886 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1890 # Let the site file select an alternate cache file if it wants to.
1891 # Prefer an explicitly selected file to automatically selected ones.
1894 if test -n "$CONFIG_SITE"; then
1895 ac_site_file1
=$CONFIG_SITE
1896 elif test "x$prefix" != xNONE
; then
1897 ac_site_file1
=$prefix/share
/config.site
1898 ac_site_file2
=$prefix/etc
/config.site
1900 ac_site_file1
=$ac_default_prefix/share
/config.site
1901 ac_site_file2
=$ac_default_prefix/etc
/config.site
1903 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1905 test "x$ac_site_file" = xNONE
&& continue
1906 if test -r "$ac_site_file"; then
1907 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1908 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1909 sed 's/^/| /' "$ac_site_file" >&5
1914 if test -r "$cache_file"; then
1915 # Some versions of bash will fail to source /dev/null (special
1916 # files actually), so we avoid doing that.
1917 if test -f "$cache_file"; then
1918 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1919 $as_echo "$as_me: loading cache $cache_file" >&6;}
1921 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1922 *) .
"./$cache_file";;
1926 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1927 $as_echo "$as_me: creating cache $cache_file" >&6;}
1931 ac_header_list
="$ac_header_list sys/time.h"
1932 ac_header_list
="$ac_header_list unistd.h"
1933 ac_func_list
="$ac_func_list alarm"
1934 # Check that the precious variables saved in the cache have kept the same
1936 ac_cache_corrupted
=false
1937 for ac_var
in $ac_precious_vars; do
1938 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1939 eval ac_new_set
=\
$ac_env_${ac_var}_set
1940 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1941 eval ac_new_val
=\
$ac_env_${ac_var}_value
1942 case $ac_old_set,$ac_new_set in
1944 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1945 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1946 ac_cache_corrupted
=: ;;
1948 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1949 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1950 ac_cache_corrupted
=: ;;
1953 if test "x$ac_old_val" != "x$ac_new_val"; then
1954 # differences in whitespace do not lead to failure.
1955 ac_old_val_w
=`echo x $ac_old_val`
1956 ac_new_val_w
=`echo x $ac_new_val`
1957 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1958 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1959 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1960 ac_cache_corrupted
=:
1962 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1963 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1964 eval $ac_var=\
$ac_old_val
1966 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1967 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1968 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1969 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1972 # Pass precious variables to config.status.
1973 if test "$ac_new_set" = set; then
1975 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1976 *) ac_arg
=$ac_var=$ac_new_val ;;
1978 case " $ac_configure_args " in
1979 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1980 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1984 if $ac_cache_corrupted; then
1985 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1986 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1987 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1988 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1989 { (exit 1); exit 1; }; }
2017 ac_cpp
='$CPP $CPPFLAGS'
2018 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2019 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2020 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2023 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2027 test "$program_prefix" != NONE
&&
2028 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2029 # Use a double $ so make ignores it.
2030 test "$program_suffix" != NONE
&&
2031 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2032 # Double any \ or $.
2033 # By default was `s,x,x', remove it if useless.
2034 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2035 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2038 lispdir
='${datadir}/emacs/${version}/lisp'
2039 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2040 '${datadir}/emacs/site-lisp'
2041 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2042 etcdir
='${datadir}/emacs/${version}/etc'
2043 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2044 docdir
='${datadir}/emacs/${version}/etc'
2045 gamedir
='${localstatedir}/games/emacs'
2052 # Check whether --with-pop was given.
2053 if test "${with_pop+set}" = set; then
2059 if test "$with_pop" = yes; then
2060 cat >>confdefs.h
<<\_ACEOF
2061 #define MAIL_USE_POP 1
2068 # Check whether --with-kerberos was given.
2069 if test "${with_kerberos+set}" = set; then
2070 withval
=$with_kerberos;
2075 if test "$with_kerberos" != no
; then
2076 cat >>confdefs.h
<<\_ACEOF
2084 # Check whether --with-kerberos5 was given.
2085 if test "${with_kerberos5+set}" = set; then
2086 withval
=$with_kerberos5;
2091 if test "${with_kerberos5}" != no
; then
2092 if test "${with_kerberos}" = no
; then
2094 cat >>confdefs.h
<<\_ACEOF
2100 cat >>confdefs.h
<<\_ACEOF
2107 # Check whether --with-hesiod was given.
2108 if test "${with_hesiod+set}" = set; then
2109 withval
=$with_hesiod;
2114 if test "$with_hesiod" != no
; then
2116 cat >>confdefs.h
<<\_ACEOF
2123 # Check whether --with-mmdf was given.
2124 if test "${with_mmdf+set}" = set; then
2130 if test "$with_mmdf" != no
; then
2132 cat >>confdefs.h
<<\_ACEOF
2133 #define MAIL_USE_MMDF 1
2139 # Check whether --with-mail-unlink was given.
2140 if test "${with_mail_unlink+set}" = set; then
2141 withval
=$with_mail_unlink;
2146 if test "$with_mail_unlink" != no
; then
2148 cat >>confdefs.h
<<\_ACEOF
2149 #define MAIL_UNLINK_SPOOL 1
2155 # Check whether --with-mailhost was given.
2156 if test "${with_mailhost+set}" = set; then
2157 withval
=$with_mailhost;
2158 cat >>confdefs.h
<<_ACEOF
2159 #define MAILHOST "$withval"
2166 # Check whether --with-sound was given.
2167 if test "${with_sound+set}" = set; then
2168 withval
=$with_sound;
2175 # Check whether --with-sync-input was given.
2176 if test "${with_sync_input+set}" = set; then
2177 withval
=$with_sync_input;
2182 if test "$with_sync_input" = yes; then
2184 cat >>confdefs.h
<<\_ACEOF
2185 #define SYNC_INPUT 1
2191 # Check whether --with-x-toolkit was given.
2192 if test "${with_x_toolkit+set}" = set; then
2193 withval
=$with_x_toolkit; case "${withval}" in
2194 y | ye |
yes ) val
=gtk
;;
2196 l | lu | luc | luci | lucid
) val
=lucid
;;
2197 a |
at | ath | athe | athen | athena
) val
=athena
;;
2198 m | mo | mot | moti | motif
) val
=motif
;;
2199 g | gt | gtk
) val
=gtk
;;
2201 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2202 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2203 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2204 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2205 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2206 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2207 { (exit 1); exit 1; }; }
2216 # Check whether --with-xpm was given.
2217 if test "${with_xpm+set}" = set; then
2224 # Check whether --with-jpeg was given.
2225 if test "${with_jpeg+set}" = set; then
2232 # Check whether --with-tiff was given.
2233 if test "${with_tiff+set}" = set; then
2240 # Check whether --with-gif was given.
2241 if test "${with_gif+set}" = set; then
2248 # Check whether --with-png was given.
2249 if test "${with_png+set}" = set; then
2256 # Check whether --with-rsvg was given.
2257 if test "${with_rsvg+set}" = set; then
2265 # Check whether --with-xft was given.
2266 if test "${with_xft+set}" = set; then
2273 # Check whether --with-libotf was given.
2274 if test "${with_libotf+set}" = set; then
2275 withval
=$with_libotf;
2281 # Check whether --with-m17n-flt was given.
2282 if test "${with_m17n_flt+set}" = set; then
2283 withval
=$with_m17n_flt;
2290 # Check whether --with-toolkit-scroll-bars was given.
2291 if test "${with_toolkit_scroll_bars+set}" = set; then
2292 withval
=$with_toolkit_scroll_bars;
2294 with_toolkit_scroll_bars
=yes
2298 # Check whether --with-xaw3d was given.
2299 if test "${with_xaw3d+set}" = set; then
2300 withval
=$with_xaw3d;
2306 # Check whether --with-xim was given.
2307 if test "${with_xim+set}" = set; then
2314 # Check whether --with-ns was given.
2315 if test "${with_ns+set}" = set; then
2323 # Check whether --with-gpm was given.
2324 if test "${with_gpm+set}" = set; then
2331 # Check whether --with-dbus was given.
2332 if test "${with_dbus+set}" = set; then
2339 # Check whether --with-gconf was given.
2340 if test "${with_gconf+set}" = set; then
2341 withval
=$with_gconf;
2347 # Check whether --with-selinux was given.
2348 if test "${with_selinux+set}" = set; then
2349 withval
=$with_selinux;
2355 ## For the times when you want to build Emacs but don't have
2356 ## a suitable makeinfo, and can live without the manuals.
2358 # Check whether --with-makeinfo was given.
2359 if test "${with_makeinfo+set}" = set; then
2360 withval
=$with_makeinfo;
2367 # Check whether --with-gtk was given.
2368 if test "${with_gtk+set}" = set; then
2369 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2370 specify a toolkit." >&5
2371 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2372 specify a toolkit." >&2;}
2373 { (exit 1); exit 1; }; }
2378 # Check whether --with-gcc was given.
2379 if test "${with_gcc+set}" = set; then
2380 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2381 variable to specify a compiler." >&5
2382 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2383 variable to specify a compiler." >&2;}
2384 { (exit 1); exit 1; }; }
2389 # Check whether --with-pkg-config-prog was given.
2390 if test "${with_pkg_config_prog+set}" = set; then
2391 withval
=$with_pkg_config_prog;
2394 if test "X${with_pkg_config_prog}" != X
; then
2395 if test "${with_pkg_config_prog}" != yes; then
2396 PKG_CONFIG
="${with_pkg_config_prog}"
2402 # Check whether --with-crt-dir was given.
2403 if test "${with_crt_dir+set}" = set; then
2404 withval
=$with_crt_dir;
2407 CRT_DIR
="${with_crt_dir}"
2410 # Check whether --with-gnustep-conf was given.
2411 if test "${with_gnustep_conf+set}" = set; then
2412 withval
=$with_gnustep_conf;
2415 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2416 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2417 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2418 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2420 # Check whether --enable-ns-self-contained was given.
2421 if test "${enable_ns_self_contained+set}" = set; then
2422 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2424 EN_NS_SELF_CONTAINED
=yes
2428 # Check whether --enable-asserts was given.
2429 if test "${enable_asserts+set}" = set; then
2430 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2436 # Check whether --enable-maintainer-mode was given.
2437 if test "${enable_maintainer_mode+set}" = set; then
2438 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2440 USE_MAINTAINER_MODE
=no
2443 if test $USE_MAINTAINER_MODE = yes; then
2450 # Check whether --enable-locallisppath was given.
2451 if test "${enable_locallisppath+set}" = set; then
2452 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2454 elif test "${enableval}" != "yes"; then
2455 locallisppath
=${enableval}
2460 # Check whether --enable-checking was given.
2461 if test "${enable_checking+set}" = set; then
2462 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2465 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2466 for check
in $ac_checking_flags
2469 # these set all the flags to specific states
2470 yes) ac_enable_checking
=1 ;;
2471 no
) ac_enable_checking
= ;
2472 ac_gc_check_stringbytes
= ;
2473 ac_gc_check_string_overrun
= ;
2474 ac_gc_check_string_free_list
= ;
2475 ac_xmalloc_overrun
= ;
2476 ac_gc_check_cons_list
= ;;
2477 all
) ac_enable_checking
=1 ;
2478 ac_gc_check_stringbytes
=1 ;
2479 ac_gc_check_string_overrun
=1 ;
2480 ac_gc_check_string_free_list
=1 ;
2481 ac_xmalloc_overrun
=1 ;
2482 ac_gc_check_cons_list
=1 ;;
2483 # these enable particular checks
2484 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2485 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2486 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2487 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2488 conslist
) ac_gc_check_cons_list
=1 ;;
2489 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2490 $as_echo "$as_me: error: unknown check category $check" >&2;}
2491 { (exit 1); exit 1; }; } ;;
2496 if test x
$ac_enable_checking != x
; then
2498 cat >>confdefs.h
<<\_ACEOF
2499 #define ENABLE_CHECKING 1
2503 if test x
$ac_gc_check_stringbytes != x
; then
2505 cat >>confdefs.h
<<\_ACEOF
2506 #define GC_CHECK_STRING_BYTES 1
2510 if test x
$ac_gc_check_stringoverrun != x
; then
2512 cat >>confdefs.h
<<\_ACEOF
2513 #define GC_CHECK_STRING_OVERRUN 1
2517 if test x
$ac_gc_check_string_free_list != x
; then
2519 cat >>confdefs.h
<<\_ACEOF
2520 #define GC_CHECK_STRING_FREE_LIST 1
2524 if test x
$ac_xmalloc_overrun != x
; then
2526 cat >>confdefs.h
<<\_ACEOF
2527 #define XMALLOC_OVERRUN_CHECK 1
2531 if test x
$ac_gc_check_cons_list != x
; then
2533 cat >>confdefs.h
<<\_ACEOF
2534 #define GC_CHECK_CONS_LIST 1
2539 # Check whether --enable-profiling was given.
2540 if test "${enable_profiling+set}" = set; then
2541 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2544 if test x
$ac_enable_profiling != x
; then
2545 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2546 PROFILING_LDFLAGS
="-pg"
2552 # Check whether --enable-autodepend was given.
2553 if test "${enable_autodepend+set}" = set; then
2554 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2556 ac_enable_autodepend
=yes
2560 #### Make srcdir absolute, if it isn't already. It's important to
2561 #### avoid running the path through pwd unnecessarily, since pwd can
2562 #### give you automounter prefixes, which can go away. We do all this
2563 #### so Emacs can find its files when run uninstalled.
2564 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2569 ## We may be able to use the $PWD environment variable to make this
2570 ## absolute. But sometimes PWD is inaccurate.
2571 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2572 ## but that tested only for a well-formed and valid PWD,
2573 ## it did not object when PWD was well-formed and valid but just wrong.
2574 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2578 srcdir
="`(cd ${srcdir}; pwd)`"
2581 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2584 #### Check if the source directory already has a configured system in it.
2585 if test `pwd` != `(cd ${srcdir} && pwd)` \
2586 && test -f "${srcdir}/src/config.h" ; then
2587 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2588 as a build directory right now; it has been configured in its own
2589 right. To configure in another directory as well, you MUST
2590 use GNU make. If you do not have GNU make, then you must
2591 now do \`make distclean' in ${srcdir},
2592 and then run $0 again." >&5
2593 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2594 as a build directory right now; it has been configured in its own
2595 right. To configure in another directory as well, you MUST
2596 use GNU make. If you do not have GNU make, then you must
2597 now do \`make distclean' in ${srcdir},
2598 and then run $0 again." >&2;}
2601 #### Given the configuration name, set machfile and opsysfile to the
2602 #### names of the m/*.h and s/*.h files we should use.
2604 ### Canonicalize the configuration name.
2607 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2608 if test -f "$ac_dir/install-sh"; then
2610 ac_install_sh
="$ac_aux_dir/install-sh -c"
2612 elif test -f "$ac_dir/install.sh"; then
2614 ac_install_sh
="$ac_aux_dir/install.sh -c"
2616 elif test -f "$ac_dir/shtool"; then
2618 ac_install_sh
="$ac_aux_dir/shtool install -c"
2622 if test -z "$ac_aux_dir"; then
2623 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2624 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2625 { (exit 1); exit 1; }; }
2628 # These three variables are undocumented and unsupported,
2629 # and are intended to be withdrawn in a future Autoconf release.
2630 # They can cause serious problems if a builder's source tree is in a directory
2631 # whose full name contains unusual characters.
2632 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2633 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2634 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2637 # Make sure we can run config.sub.
2638 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2639 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2640 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2641 { (exit 1); exit 1; }; }
2643 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2644 $as_echo_n "checking build system type... " >&6; }
2645 if test "${ac_cv_build+set}" = set; then
2646 $as_echo_n "(cached) " >&6
2648 ac_build_alias
=$build_alias
2649 test "x$ac_build_alias" = x
&&
2650 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2651 test "x$ac_build_alias" = x
&&
2652 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2653 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2654 { (exit 1); exit 1; }; }
2655 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2656 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2657 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2658 { (exit 1); exit 1; }; }
2661 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2662 $as_echo "$ac_cv_build" >&6; }
2663 case $ac_cv_build in
2665 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2666 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2667 { (exit 1); exit 1; }; };;
2670 ac_save_IFS
=$IFS; IFS
='-'
2676 # Remember, the first character of IFS is used to create $*,
2677 # except with old shells:
2680 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2683 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2684 $as_echo_n "checking host system type... " >&6; }
2685 if test "${ac_cv_host+set}" = set; then
2686 $as_echo_n "(cached) " >&6
2688 if test "x$host_alias" = x
; then
2689 ac_cv_host
=$ac_cv_build
2691 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2692 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2693 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2694 { (exit 1); exit 1; }; }
2698 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2699 $as_echo "$ac_cv_host" >&6; }
2702 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2703 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2704 { (exit 1); exit 1; }; };;
2707 ac_save_IFS
=$IFS; IFS
='-'
2713 # Remember, the first character of IFS is used to create $*,
2714 # except with old shells:
2717 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2721 configuration
=${host_alias-${build_alias-$host}}
2725 ### If you add support for a new configuration, add code to this
2726 ### switch statement to recognize your configuration name and select
2727 ### the appropriate operating system and machine description files.
2729 ### You would hope that you could choose an m/*.h file pretty much
2730 ### based on the machine portion of the configuration name, and an s-
2731 ### file based on the operating system portion. However, it turns out
2732 ### that each m/*.h file is pretty manufacturer-specific - for
2733 ### example mips.h is MIPS
2734 ### So we basically have to have a special case for each
2735 ### configuration name.
2737 ### As far as handling version numbers on operating systems is
2738 ### concerned, make sure things will fail in a fixable way. If
2739 ### /etc/MACHINES doesn't say anything about version numbers, be
2740 ### prepared to handle anything reasonably. If version numbers
2741 ### matter, be sure /etc/MACHINES says something about it.
2743 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2744 ### "System V Release 4"; he writes, "The old convention encouraged
2745 ### confusion between `system' and `release' levels'."
2747 machine
='' opsys
='' unported
=no
2748 case "${canonical}" in
2753 case "${canonical}" in
2754 alpha
*-*-freebsd*) machine
=alpha
;;
2755 arm
*-*-freebsd*) machine
=arm
;;
2756 ia64-
*-freebsd*) machine
=ia64
;;
2757 sparc-
*-freebsd*) machine
=sparc
;;
2758 sparc64-
*-freebsd*) machine
=sparc
;;
2759 powerpc-
*-freebsd*) machine
=macppc
;;
2760 i
[3456]86-*-freebsd*) machine
=intel386
;;
2761 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2765 ## FreeBSD kernel + glibc based userland
2768 case "${canonical}" in
2769 alpha
*-*-kfreebsd*) machine
=alpha
;;
2770 ia64-
*-kfreebsd*) machine
=ia64
;;
2771 sparc-
*-kfreebsd*) machine
=sparc
;;
2772 sparc64-
*-kfreebsd*) machine
=sparc
;;
2773 powerpc-
*-kfreebsd*) machine
=macppc
;;
2774 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2775 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2782 if test -f /usr
/lib
/crti.o
; then
2784 cat >>confdefs.h
<<\_ACEOF
2785 #define HAVE_CRTIN /**/
2790 case "${canonical}" in
2791 alpha
*-*-netbsd*) machine
=alpha
;;
2792 i
[3456]86-*-netbsd*) machine
=intel386
;;
2793 mips-
*-netbsd*) machine
=mips
;;
2794 mipsel-
*-netbsd*) machine
=mips
;;
2795 mipseb-
*-netbsd*) machine
=mips
;;
2796 powerpc-
*-netbsd*) machine
=macppc
;;
2797 sparc
*-*-netbsd*) machine
=sparc
;;
2798 vax-
*-netbsd*) machine
=vax
;;
2799 arm-
*-netbsd*) machine
=arm
;;
2800 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2801 hppa-
*-netbsd*) machine
=hp800
;;
2802 m68k-
*-netbsd*) machine
=m68k
;;
2809 case "${canonical}" in
2810 alpha
*-*-openbsd*) machine
=alpha
;;
2811 arm-
*-openbsd*) machine
=arm
;;
2812 i386-
*-openbsd*) machine
=intel386
;;
2813 powerpc-
*-openbsd*) machine
=macppc
;;
2814 sparc
*-*-openbsd*) machine
=sparc
;;
2815 vax-
*-openbsd*) machine
=vax
;;
2816 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2817 hppa-
*-openbsd*) machine
=hp800
;;
2821 alpha
*-*-linux-gnu* )
2822 machine
=alpha opsys
=gnu-linux
2826 machine
=arm opsys
=gnu-linux
2829 ## Apple Darwin / Mac OS X
2831 case "${canonical}" in
2832 i
[3456]86-* ) machine
=intel386
;;
2833 powerpc-
* ) machine
=macppc
;;
2834 x86_64-
* ) machine
=amdx86-64
;;
2838 # Define CPP as follows to make autoconf work correctly.
2839 CPP
="${CC-cc} -E -no-cpp-precomp"
2840 # Use fink packages if available.
2841 if test -d /sw
/include
&& test -d /sw
/lib
; then
2842 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2843 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2844 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2848 ## HP 9000 series 700 and 800, running HP/UX
2849 hppa
*-hp-hpux10.2
* )
2850 machine
=hp800 opsys
=hpux10-20
2852 hppa
*-hp-hpux1[1-9]* )
2853 machine
=hp800 opsys
=hpux11
2854 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2857 hppa
*-*-linux-gnu* )
2858 machine
=hp800 opsys
=gnu-linux
2863 machine
=ibms390 opsys
=gnu-linux
2865 s390x-
*-linux-gnu* )
2866 machine
=ibms390x opsys
=gnu-linux
2868 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2869 machine
=ibmrs6000 opsys
=aix4-2
2871 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2872 machine
=ibmrs6000 opsys
=aix4-2
2874 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2875 machine
=ibmrs6000 opsys
=aix4-2
2877 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2878 machine
=ibmrs6000 opsys
=aix4-2
2881 ## Macintosh PowerPC
2882 powerpc
*-*-linux-gnu* )
2883 machine
=macppc opsys
=gnu-linux
2886 ## Silicon Graphics machines
2889 machine
=iris4d opsys
=irix6-5
2890 # Without defining _LANGUAGE_C, things get masked out in the headers
2891 # so that, for instance, grepping for `free' in stdlib.h fails and
2892 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2893 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2894 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2898 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2899 machine
=sparc opsys
=gnu-linux
2903 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2904 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2905 case "${canonical}" in
2906 i
[3456]86-*-* ) machine
=intel386
;;
2907 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2908 sparc
* ) machine
=sparc
;;
2911 case "${canonical}" in
2912 *-sunos5.6
* |
*-solaris2.6
* )
2914 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2917 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2919 emacs_check_sunpro_c
=yes
2920 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2922 *-sunos5* |
*-solaris* )
2924 emacs_check_sunpro_c
=yes
2925 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2928 ## Watch out for a compiler that we know will not work.
2929 case "${canonical}" in
2930 *-solaris* |
*-sunos5* )
2931 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2932 ## /usr/ucb/cc doesn't work;
2933 ## we should find some other compiler that does work.
2943 machine
=ia64 opsys
=gnu-linux
2946 ## Intel 386 machines where we don't care about the manufacturer
2949 case "${canonical}" in
2950 *-cygwin ) opsys
=cygwin
;;
2951 *-darwin* ) opsys
=darwin
2952 CPP
="${CC-cc} -E -no-cpp-precomp"
2954 *-linux-gnu* ) opsys
=gnu-linux
;;
2955 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2956 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2957 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2958 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2962 ## m68k Linux-based GNU system
2964 machine
=m68k opsys
=gnu-linux
2967 ## Mips Linux-based GNU system
2968 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2969 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2970 machine
=mips opsys
=gnu-linux
2973 ## AMD x86-64 Linux-based GNU system
2974 x86_64-
*-linux-gnu* )
2975 machine
=amdx86-64 opsys
=gnu-linux
2978 ## Tensilica Xtensa Linux-based GNU system
2979 xtensa
*-*-linux-gnu* )
2980 machine
=xtensa opsys
=gnu-linux
2983 ## SuperH Linux-based GNU system
2984 sh
[34]*-*-linux-gnu* )
2985 machine
=sh3 opsys
=gnu-linux
2993 ### If the code above didn't choose an operating system, just choose
2994 ### an operating system based on the configuration name. You really
2995 ### only want to use this when you have no idea what the right
2996 ### operating system is; if you know what operating systems a machine
2997 ### runs, it's cleaner to make it explicit in the case statement
2999 if test x
"${opsys}" = x
; then
3000 case "${canonical}" in
3001 *-gnu* ) opsys
=gnu
;;
3010 if test $unported = yes; then
3011 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3012 Check \`etc/MACHINES' for recognized configuration names." >&5
3013 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3014 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3015 { (exit 1); exit 1; }; }
3018 machfile
="m/${machine}.h"
3019 opsysfile
="s/${opsys}.h"
3022 #### Choose a compiler.
3023 test -n "$CC" && cc_specified
=yes
3025 # Save the value of CFLAGS that the user specified.
3026 SPECIFIED_CFLAGS
="$CFLAGS"
3029 ac_cpp
='$CPP $CPPFLAGS'
3030 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3031 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3032 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3033 if test -n "$ac_tool_prefix"; then
3034 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3035 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3036 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if test "${ac_cv_prog_CC+set}" = set; then
3039 $as_echo_n "(cached) " >&6
3041 if test -n "$CC"; then
3042 ac_cv_prog_CC
="$CC" # Let the user override the test.
3044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3048 test -z "$as_dir" && as_dir
=.
3049 for ac_exec_ext
in '' $ac_executable_extensions; do
3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 if test -n "$CC"; then
3063 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3064 $as_echo "$CC" >&6; }
3066 { $as_echo "$as_me:$LINENO: result: no" >&5
3067 $as_echo "no" >&6; }
3072 if test -z "$ac_cv_prog_CC"; then
3074 # Extract the first word of "gcc", so it can be a program name with args.
3075 set dummy gcc
; ac_word
=$2
3076 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3079 $as_echo_n "(cached) " >&6
3081 if test -n "$ac_ct_CC"; then
3082 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir
=.
3089 for ac_exec_ext
in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_ac_ct_CC
="gcc"
3092 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3102 if test -n "$ac_ct_CC"; then
3103 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3104 $as_echo "$ac_ct_CC" >&6; }
3106 { $as_echo "$as_me:$LINENO: result: no" >&5
3107 $as_echo "no" >&6; }
3110 if test "x$ac_ct_CC" = x
; then
3113 case $cross_compiling:$ac_tool_warned in
3115 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3116 whose name does not start with the host triplet. If you think this
3117 configuration is useful to you, please write to autoconf@gnu.org." >&5
3118 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3119 whose name does not start with the host triplet. If you think this
3120 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3121 ac_tool_warned
=yes ;;
3129 if test -z "$CC"; then
3130 if test -n "$ac_tool_prefix"; then
3131 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3132 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if test "${ac_cv_prog_CC+set}" = set; then
3136 $as_echo_n "(cached) " >&6
3138 if test -n "$CC"; then
3139 ac_cv_prog_CC
="$CC" # Let the user override the test.
3141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3145 test -z "$as_dir" && as_dir
=.
3146 for ac_exec_ext
in '' $ac_executable_extensions; do
3147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 if test -n "$CC"; then
3160 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3163 { $as_echo "$as_me:$LINENO: result: no" >&5
3164 $as_echo "no" >&6; }
3170 if test -z "$CC"; then
3171 # Extract the first word of "cc", so it can be a program name with args.
3172 set dummy cc
; ac_word
=$2
3173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3174 $as_echo_n "checking for $ac_word... " >&6; }
3175 if test "${ac_cv_prog_CC+set}" = set; then
3176 $as_echo_n "(cached) " >&6
3178 if test -n "$CC"; then
3179 ac_cv_prog_CC
="$CC" # Let the user override the test.
3182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3186 test -z "$as_dir" && as_dir
=.
3187 for ac_exec_ext
in '' $ac_executable_extensions; do
3188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3189 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3190 ac_prog_rejected
=yes
3194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 if test $ac_prog_rejected = yes; then
3202 # We found a bogon in the path, so make sure we never use it.
3203 set dummy
$ac_cv_prog_CC
3205 if test $# != 0; then
3206 # We chose a different compiler from the bogus one.
3207 # However, it has the same basename, so the bogon will be chosen
3208 # first if we set CC to just the basename; use the full file name.
3210 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3216 if test -n "$CC"; then
3217 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3218 $as_echo "$CC" >&6; }
3220 { $as_echo "$as_me:$LINENO: result: no" >&5
3221 $as_echo "no" >&6; }
3226 if test -z "$CC"; then
3227 if test -n "$ac_tool_prefix"; then
3228 for ac_prog
in cl.exe
3230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3231 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if test "${ac_cv_prog_CC+set}" = set; then
3235 $as_echo_n "(cached) " >&6
3237 if test -n "$CC"; then
3238 ac_cv_prog_CC
="$CC" # Let the user override the test.
3240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir
=.
3245 for ac_exec_ext
in '' $ac_executable_extensions; do
3246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 if test -n "$CC"; then
3259 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3260 $as_echo "$CC" >&6; }
3262 { $as_echo "$as_me:$LINENO: result: no" >&5
3263 $as_echo "no" >&6; }
3267 test -n "$CC" && break
3270 if test -z "$CC"; then
3272 for ac_prog
in cl.exe
3274 # Extract the first word of "$ac_prog", so it can be a program name with args.
3275 set dummy
$ac_prog; ac_word
=$2
3276 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3279 $as_echo_n "(cached) " >&6
3281 if test -n "$ac_ct_CC"; then
3282 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir
=.
3289 for ac_exec_ext
in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_prog_ac_ct_CC
="$ac_prog"
3292 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3302 if test -n "$ac_ct_CC"; then
3303 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3304 $as_echo "$ac_ct_CC" >&6; }
3306 { $as_echo "$as_me:$LINENO: result: no" >&5
3307 $as_echo "no" >&6; }
3311 test -n "$ac_ct_CC" && break
3314 if test "x$ac_ct_CC" = x
; then
3317 case $cross_compiling:$ac_tool_warned in
3319 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3320 whose name does not start with the host triplet. If you think this
3321 configuration is useful to you, please write to autoconf@gnu.org." >&5
3322 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3323 whose name does not start with the host triplet. If you think this
3324 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3325 ac_tool_warned
=yes ;;
3334 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3335 See \`config.log' for more details." >&5
3336 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3337 See \`config.log' for more details." >&2;}
3338 { (exit 1); exit 1; }; }
3340 # Provide some information about the compiler.
3341 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3344 { (ac_try
="$ac_compiler --version >&5"
3346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3350 $as_echo "$ac_try_echo") >&5
3351 (eval "$ac_compiler --version >&5") 2>&5
3353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }
3355 { (ac_try="$ac_compiler -v >&5"
3357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3358 *) ac_try_echo
=$ac_try;;
3360 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3361 $as_echo "$ac_try_echo") >&5
3362 (eval "$ac_compiler -v >&5") 2>&5
3364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }
3366 { (ac_try
="$ac_compiler -V >&5"
3368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3372 $as_echo "$ac_try_echo") >&5
3373 (eval "$ac_compiler -V >&5") 2>&5
3375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }
3378 cat >conftest.$ac_ext <<_ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h. */
3393 ac_clean_files_save=$ac_clean_files
3394 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3395 # Try to create an executable without -o first, disregard a.out.
3396 # It will help us diagnose broken compilers, and finding out an intuition
3398 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3399 $as_echo_n "checking for C compiler default output file name... " >&6; }
3400 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3402 # The possible output files:
3403 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3406 for ac_file in $ac_files
3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3410 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3415 if { (ac_try="$ac_link_default"
3417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3418 *) ac_try_echo
=$ac_try;;
3420 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3421 $as_echo "$ac_try_echo") >&5
3422 (eval "$ac_link_default") 2>&5
3424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; then
3426 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3427 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3428 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3429 # so that the user can short-circuit this test for compilers unknown to
3431 for ac_file
in $ac_files ''
3433 test -f "$ac_file" ||
continue
3435 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3438 # We found the default executable, but exeext='' is most
3442 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3444 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3446 # We set ac_cv_exeext here because the later test for it is not
3447 # safe: cross compilers may not add the suffix if given an `-o'
3448 # argument, so we may need to know it at that point already.
3449 # Even if this section looks crufty: it has the advantage of
3456 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3462 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3463 $as_echo "$ac_file" >&6; }
3464 if test -z "$ac_file"; then
3465 $as_echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.
$ac_ext >&5
3468 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3469 See \`config.log' for more details." >&5
3470 $as_echo "$as_me: error: C compiler cannot create executables
3471 See \`config.log' for more details." >&2;}
3472 { (exit 77); exit 77; }; }
3475 ac_exeext
=$ac_cv_exeext
3477 # Check that the compiler produces executables we can run. If not, either
3478 # the compiler is broken, or we cross compile.
3479 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3480 $as_echo_n "checking whether the C compiler works... " >&6; }
3481 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3482 # If not cross compiling, check that we can run a simple program.
3483 if test "$cross_compiling" != yes; then
3484 if { ac_try
='./$ac_file'
3485 { (case "(($ac_try" in
3486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3490 $as_echo "$ac_try_echo") >&5
3491 (eval "$ac_try") 2>&5
3493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3497 if test "$cross_compiling" = maybe; then
3500 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3501 If you meant to cross compile, use \`--host'.
3502 See \`config.log' for more details.
" >&5
3503 $as_echo "$as_me: error
: cannot run C compiled programs.
3504 If you meant to cross compile
, use \
`--host'.
3505 See \`config.log
' for more details." >&2;}
3506 { (exit 1); exit 1; }; }
3510 { $as_echo "$as_me:$LINENO: result: yes" >&5
3511 $as_echo "yes" >&6; }
3513 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3514 ac_clean_files=$ac_clean_files_save
3515 # Check that the compiler produces executables we can run. If not, either
3516 # the compiler is broken, or we cross compile.
3517 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3518 $as_echo_n "checking whether we are cross compiling... " >&6; }
3519 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3520 $as_echo "$cross_compiling" >&6; }
3522 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3523 $as_echo_n "checking for suffix of executables... " >&6; }
3524 if { (ac_try="$ac_link"
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3530 $as_echo "$ac_try_echo") >&5
3531 (eval "$ac_link") 2>&5
3533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); }; then
3535 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3536 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3537 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3539 for ac_file
in conftest.exe conftest conftest.
*; do
3540 test -f "$ac_file" ||
continue
3542 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3543 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3549 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3550 See \`config.log' for more details." >&5
3551 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3552 See \`config.log' for more details." >&2;}
3553 { (exit 1); exit 1; }; }
3556 rm -f conftest
$ac_cv_exeext
3557 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3558 $as_echo "$ac_cv_exeext" >&6; }
3560 rm -f conftest.
$ac_ext
3561 EXEEXT
=$ac_cv_exeext
3563 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3564 $as_echo_n "checking for suffix of object files... " >&6; }
3565 if test "${ac_cv_objext+set}" = set; then
3566 $as_echo_n "(cached) " >&6
3568 cat >conftest.
$ac_ext <<_ACEOF
3571 cat confdefs.h
>>conftest.
$ac_ext
3572 cat >>conftest.
$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3583 rm -f conftest.o conftest.obj
3584 if { (ac_try
="$ac_compile"
3586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3590 $as_echo "$ac_try_echo") >&5
3591 (eval "$ac_compile") 2>&5
3593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; then
3595 for ac_file in conftest.o conftest.obj conftest.*; do
3596 test -f "$ac_file" || continue;
3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3604 $as_echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3608 See \`config.log
' for more details." >&5
3609 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3610 See \`config.log' for more details.
" >&2;}
3611 { (exit 1); exit 1; }; }
3614 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3616 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3617 $as_echo "$ac_cv_objext" >&6; }
3618 OBJEXT=$ac_cv_objext
3620 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3621 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3622 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3623 $as_echo_n "(cached
) " >&6
3625 cat >conftest.$ac_ext <<_ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h. */
3643 rm -f conftest.$ac_objext
3644 if { (ac_try="$ac_compile"
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3649 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3650 $as_echo "$ac_try_echo") >&5
3651 (eval "$ac_compile") 2>conftest.er1
3653 grep -v '^ *+' conftest.er1 >conftest.err
3655 cat conftest.err >&5
3656 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3657 (exit $ac_status); } && {
3658 test -z "$ac_c_werror_flag" ||
3659 test ! -s conftest.err
3660 } && test -s conftest.$ac_objext; then
3663 $as_echo "$as_me: failed program was
:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3673 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3674 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3675 if test $ac_compiler_gnu = yes; then
3680 ac_test_CFLAGS=${CFLAGS+set}
3681 ac_save_CFLAGS=$CFLAGS
3682 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3683 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3684 if test "${ac_cv_prog_cc_g+set}" = set; then
3685 $as_echo_n "(cached
) " >&6
3687 ac_save_c_werror_flag=$ac_c_werror_flag
3688 ac_c_werror_flag=yes
3691 cat >conftest.$ac_ext <<_ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3706 rm -f conftest.$ac_objext
3707 if { (ac_try="$ac_compile"
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3713 $as_echo "$ac_try_echo") >&5
3714 (eval "$ac_compile") 2>conftest.er1
3716 grep -v '^ *+' conftest.er1 >conftest.err
3718 cat conftest.err >&5
3719 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3720 (exit $ac_status); } && {
3721 test -z "$ac_c_werror_flag" ||
3722 test ! -s conftest.err
3723 } && test -s conftest.$ac_objext; then
3726 $as_echo "$as_me: failed program was
:" >&5
3727 sed 's/^/| /' conftest.$ac_ext >&5
3730 cat >conftest.$ac_ext <<_ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h. */
3745 rm -f conftest.$ac_objext
3746 if { (ac_try="$ac_compile"
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3751 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3752 $as_echo "$ac_try_echo") >&5
3753 (eval "$ac_compile") 2>conftest.er1
3755 grep -v '^ *+' conftest.er1 >conftest.err
3757 cat conftest.err >&5
3758 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3759 (exit $ac_status); } && {
3760 test -z "$ac_c_werror_flag" ||
3761 test ! -s conftest.err
3762 } && test -s conftest.$ac_objext; then
3765 $as_echo "$as_me: failed program was
:" >&5
3766 sed 's/^/| /' conftest.$ac_ext >&5
3768 ac_c_werror_flag=$ac_save_c_werror_flag
3770 cat >conftest.$ac_ext <<_ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3785 rm -f conftest.$ac_objext
3786 if { (ac_try="$ac_compile"
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3791 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3792 $as_echo "$ac_try_echo") >&5
3793 (eval "$ac_compile") 2>conftest.er1
3795 grep -v '^ *+' conftest.er1 >conftest.err
3797 cat conftest.err >&5
3798 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3799 (exit $ac_status); } && {
3800 test -z "$ac_c_werror_flag" ||
3801 test ! -s conftest.err
3802 } && test -s conftest.$ac_objext; then
3805 $as_echo "$as_me: failed program was
:" >&5
3806 sed 's/^/| /' conftest.$ac_ext >&5
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 ac_c_werror_flag=$ac_save_c_werror_flag
3820 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3821 $as_echo "$ac_cv_prog_cc_g" >&6; }
3822 if test "$ac_test_CFLAGS" = set; then
3823 CFLAGS=$ac_save_CFLAGS
3824 elif test $ac_cv_prog_cc_g = yes; then
3825 if test "$GCC" = yes; then
3831 if test "$GCC" = yes; then
3837 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3838 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3839 if test "${ac_cv_prog_cc_c89+set}" = set; then
3840 $as_echo_n "(cached
) " >&6
3842 ac_cv_prog_cc_c89=no
3844 cat >conftest.$ac_ext <<_ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3852 #include <sys/types.h>
3853 #include <sys/stat.h>
3854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3855 struct buf { int x; };
3856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3857 static char *e (p, i)
3863 static char *f (char * (*g) (char **, int), char **p, ...)
3868 s = g (p, va_arg (v,int));
3873 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3874 function prototypes and stuff, but not '\xHH' hex character constants.
3875 These don't provoke an error unfortunately, instead are silently treated
3876 as 'x'. The following induces an error, until -std is added to get
3877 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3878 array size at least. It's necessary to write '\x00'==0 to get something
3879 that's true only with -std. */
3880 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3882 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3883 inside strings and character constants. */
3885 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3887 int test (int i, double x);
3888 struct s1 {int (*f) (int a);};
3889 struct s2 {int (*f) (double a);};
3890 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3896 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3901 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3902 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3904 CC="$ac_save_CC $ac_arg"
3905 rm -f conftest.$ac_objext
3906 if { (ac_try="$ac_compile"
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3912 $as_echo "$ac_try_echo") >&5
3913 (eval "$ac_compile") 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3919 (exit $ac_status); } && {
3920 test -z "$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest.$ac_objext; then
3923 ac_cv_prog_cc_c89=$ac_arg
3925 $as_echo "$as_me: failed program was
:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3931 rm -f core conftest.err conftest.$ac_objext
3932 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3934 rm -f conftest.$ac_ext
3939 case "x
$ac_cv_prog_cc_c89" in
3941 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3942 $as_echo "none needed
" >&6; } ;;
3944 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3945 $as_echo "unsupported
" >&6; } ;;
3947 CC="$CC $ac_cv_prog_cc_c89"
3948 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3949 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960 # On Suns, sometimes $CPP names a directory.
3961 if test -n "$CPP" && test -d "$CPP"; then
3965 ## If not using gcc, and on Solaris, and no CPP specified, see if
3966 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3967 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3968 test x"$CPP" = x; then
3969 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3970 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3972 if test "${emacs_cv_sunpro_c+set}" = set; then
3973 $as_echo_n "(cached
) " >&6
3975 cat >conftest.$ac_ext <<_ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3993 rm -f conftest.$ac_objext conftest$ac_exeext
3994 if { (ac_try="$ac_link"
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4000 $as_echo "$ac_try_echo") >&5
4001 (eval "$ac_link") 2>conftest.er1
4003 grep -v '^ *+' conftest.er1 >conftest.err
4005 cat conftest.err >&5
4006 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4007 (exit $ac_status); } && {
4008 test -z "$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4010 } && test -s conftest$ac_exeext && {
4011 test "$cross_compiling" = yes ||
4012 $as_test_x conftest$ac_exeext
4014 emacs_cv_sunpro_c=yes
4016 $as_echo "$as_me: failed program was
:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4019 emacs_cv_sunpro_c=no
4022 rm -rf conftest.dSYM
4023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4024 conftest$ac_exeext conftest.$ac_ext
4027 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4028 $as_echo "$emacs_cv_sunpro_c" >&6; }
4030 if test x"$emacs_cv_sunpro_c" = xyes; then
4031 NON_GNU_CPP="$CC -E -Xs"
4035 #### Some systems specify a CPP to use unless we are using GCC.
4036 #### Now that we know whether we are using GCC, we can decide whether
4037 #### to use that one.
4038 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4043 #### Some systems specify a CC to use unless we are using GCC.
4044 #### Now that we know whether we are using GCC, we can decide whether
4045 #### to use that one.
4046 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4047 test x$cc_specified != xyes
4052 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4054 CC="$CC $GCC_TEST_OPTIONS"
4057 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4059 CC="$CC $NON_GCC_TEST_OPTIONS"
4063 ac_cpp='$CPP $CPPFLAGS'
4064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4067 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4068 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4069 # On Suns, sometimes $CPP names a directory.
4070 if test -n "$CPP" && test -d "$CPP"; then
4073 if test -z "$CPP"; then
4074 if test "${ac_cv_prog_CPP+set}" = set; then
4075 $as_echo_n "(cached
) " >&6
4077 # Double quotes because CPP needs to be expanded
4078 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4081 for ac_c_preproc_warn_flag in '' yes
4083 # Use a header file that comes with gcc, so configuring glibc
4084 # with a fresh cross-compiler works.
4085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086 # <limits.h> exists even on freestanding compilers.
4087 # On the NeXT, cc -E runs the code through the compiler's parser,
4088 # not just through cpp. "Syntax error
" is here to catch this case.
4089 cat >conftest.$ac_ext <<_ACEOF
4092 cat confdefs.h >>conftest.$ac_ext
4093 cat >>conftest.$ac_ext <<_ACEOF
4094 /* end confdefs.h. */
4096 # include <limits.h>
4098 # include <assert.h>
4102 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4107 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4108 $as_echo "$ac_try_echo") >&5
4109 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4111 grep -v '^ *+' conftest.er1 >conftest.err
4113 cat conftest.err >&5
4114 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4115 (exit $ac_status); } >/dev/null && {
4116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4121 $as_echo "$as_me: failed program was
:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 # Broken: fails on valid input.
4128 rm -f conftest.err conftest.$ac_ext
4130 # OK, works on sane cases. Now check whether nonexistent headers
4131 # can be detected and how.
4132 cat >conftest.$ac_ext <<_ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4138 #include <ac_nonexistent.h>
4140 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4145 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4146 $as_echo "$ac_try_echo") >&5
4147 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4149 grep -v '^ *+' conftest.er1 >conftest.err
4151 cat conftest.err >&5
4152 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4153 (exit $ac_status); } >/dev/null && {
4154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4155 test ! -s conftest.err
4157 # Broken: success on invalid input.
4160 $as_echo "$as_me: failed program was
:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 # Passes both tests.
4168 rm -f conftest.err conftest.$ac_ext
4171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4172 rm -f conftest.err conftest.$ac_ext
4173 if $ac_preproc_ok; then
4185 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4186 $as_echo "$CPP" >&6; }
4188 for ac_c_preproc_warn_flag in '' yes
4190 # Use a header file that comes with gcc, so configuring glibc
4191 # with a fresh cross-compiler works.
4192 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4193 # <limits.h> exists even on freestanding compilers.
4194 # On the NeXT, cc -E runs the code through the compiler's parser,
4195 # not just through cpp. "Syntax error
" is here to catch this case.
4196 cat >conftest.$ac_ext <<_ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4203 # include <limits.h>
4205 # include <assert.h>
4209 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4214 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4215 $as_echo "$ac_try_echo") >&5
4216 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4218 grep -v '^ *+' conftest.er1 >conftest.err
4220 cat conftest.err >&5
4221 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4222 (exit $ac_status); } >/dev/null && {
4223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4224 test ! -s conftest.err
4228 $as_echo "$as_me: failed program was
:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4231 # Broken: fails on valid input.
4235 rm -f conftest.err conftest.$ac_ext
4237 # OK, works on sane cases. Now check whether nonexistent headers
4238 # can be detected and how.
4239 cat >conftest.$ac_ext <<_ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4245 #include <ac_nonexistent.h>
4247 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4252 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4253 $as_echo "$ac_try_echo") >&5
4254 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4256 grep -v '^ *+' conftest.er1 >conftest.err
4258 cat conftest.err >&5
4259 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4260 (exit $ac_status); } >/dev/null && {
4261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4262 test ! -s conftest.err
4264 # Broken: success on invalid input.
4267 $as_echo "$as_me: failed program was
:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4270 # Passes both tests.
4275 rm -f conftest.err conftest.$ac_ext
4278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4279 rm -f conftest.err conftest.$ac_ext
4280 if $ac_preproc_ok; then
4283 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4284 See \
`config.log' for more details." >&5
4285 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4286 See \`config.log
' for more details." >&2;}
4287 { (exit 1); exit 1; }; }
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4293 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4298 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4299 if test "${ac_cv_path_GREP+set}" = set; then
4300 $as_echo_n "(cached) " >&6
4302 if test -z "$GREP"; then
4303 ac_path_GREP_found=false
4304 # Loop through the user's path and
test for each of PROGNAME-LIST
4305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4306 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4309 test -z "$as_dir" && as_dir
=.
4310 for ac_prog
in grep ggrep
; do
4311 for ac_exec_ext
in '' $ac_executable_extensions; do
4312 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4313 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4314 # Check for GNU ac_path_GREP and select it if it is found.
4315 # Check for GNU $ac_path_GREP
4316 case `"$ac_path_GREP" --version 2>&1` in
4318 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4321 $as_echo_n 0123456789 >"conftest.in"
4324 cat "conftest.in" "conftest.in" >"conftest.tmp"
4325 mv "conftest.tmp" "conftest.in"
4326 cp "conftest.in" "conftest.nl"
4327 $as_echo 'GREP' >> "conftest.nl"
4328 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4329 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4330 ac_count
=`expr $ac_count + 1`
4331 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4332 # Best one so far, save it but keep looking for a better one
4333 ac_cv_path_GREP
="$ac_path_GREP"
4334 ac_path_GREP_max
=$ac_count
4336 # 10*(2^10) chars as input seems more than enough
4337 test $ac_count -gt 10 && break
4339 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4342 $ac_path_GREP_found && break 3
4347 if test -z "$ac_cv_path_GREP"; then
4348 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4349 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4350 { (exit 1); exit 1; }; }
4353 ac_cv_path_GREP
=$GREP
4357 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4358 $as_echo "$ac_cv_path_GREP" >&6; }
4359 GREP
="$ac_cv_path_GREP"
4362 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4363 $as_echo_n "checking for egrep... " >&6; }
4364 if test "${ac_cv_path_EGREP+set}" = set; then
4365 $as_echo_n "(cached) " >&6
4367 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4368 then ac_cv_path_EGREP
="$GREP -E"
4370 if test -z "$EGREP"; then
4371 ac_path_EGREP_found
=false
4372 # Loop through the user's path and test for each of PROGNAME-LIST
4373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4374 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4377 test -z "$as_dir" && as_dir
=.
4378 for ac_prog
in egrep; do
4379 for ac_exec_ext
in '' $ac_executable_extensions; do
4380 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4381 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4382 # Check for GNU ac_path_EGREP and select it if it is found.
4383 # Check for GNU $ac_path_EGREP
4384 case `"$ac_path_EGREP" --version 2>&1` in
4386 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4389 $as_echo_n 0123456789 >"conftest.in"
4392 cat "conftest.in" "conftest.in" >"conftest.tmp"
4393 mv "conftest.tmp" "conftest.in"
4394 cp "conftest.in" "conftest.nl"
4395 $as_echo 'EGREP' >> "conftest.nl"
4396 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4397 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4398 ac_count
=`expr $ac_count + 1`
4399 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4400 # Best one so far, save it but keep looking for a better one
4401 ac_cv_path_EGREP
="$ac_path_EGREP"
4402 ac_path_EGREP_max
=$ac_count
4404 # 10*(2^10) chars as input seems more than enough
4405 test $ac_count -gt 10 && break
4407 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4410 $ac_path_EGREP_found && break 3
4415 if test -z "$ac_cv_path_EGREP"; then
4416 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4417 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4418 { (exit 1); exit 1; }; }
4421 ac_cv_path_EGREP
=$EGREP
4426 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4427 $as_echo "$ac_cv_path_EGREP" >&6; }
4428 EGREP
="$ac_cv_path_EGREP"
4431 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4432 $as_echo_n "checking for ANSI C header files... " >&6; }
4433 if test "${ac_cv_header_stdc+set}" = set; then
4434 $as_echo_n "(cached) " >&6
4436 cat >conftest.
$ac_ext <<_ACEOF
4439 cat confdefs.h
>>conftest.
$ac_ext
4440 cat >>conftest.
$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4455 rm -f conftest.
$ac_objext
4456 if { (ac_try
="$ac_compile"
4458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4462 $as_echo "$ac_try_echo") >&5
4463 (eval "$ac_compile") 2>conftest.er1
4465 grep -v '^ *+' conftest.er1 >conftest.err
4467 cat conftest.err >&5
4468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } && {
4470 test -z "$ac_c_werror_flag" ||
4471 test ! -s conftest.err
4472 } && test -s conftest.$ac_objext; then
4473 ac_cv_header_stdc=yes
4475 $as_echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4478 ac_cv_header_stdc=no
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483 if test $ac_cv_header_stdc = yes; then
4484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4485 cat >conftest.$ac_ext <<_ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4495 $EGREP "memchr" >/dev/null 2>&1; then
4498 ac_cv_header_stdc=no
4504 if test $ac_cv_header_stdc = yes; then
4505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4506 cat >conftest.$ac_ext <<_ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4516 $EGREP "free" >/dev/null 2>&1; then
4519 ac_cv_header_stdc=no
4525 if test $ac_cv_header_stdc = yes; then
4526 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4527 if test "$cross_compiling" = yes; then
4530 cat >conftest.$ac_ext <<_ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4538 #if ((' ' & 0x0FF) == 0x020)
4539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4542 # define ISLOWER(c) \
4543 (('a' <= (c) && (c) <= 'i') \
4544 || ('j' <= (c) && (c) <= 'r') \
4545 || ('s' <= (c) && (c) <= 'z'))
4546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4554 for (i = 0; i < 256; i++)
4555 if (XOR (islower (i), ISLOWER (i))
4556 || toupper (i) != TOUPPER (i))
4561 rm -f conftest$ac_exeext
4562 if { (ac_try="$ac_link"
4564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4565 *) ac_try_echo
=$ac_try;;
4567 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4568 $as_echo "$ac_try_echo") >&5
4569 (eval "$ac_link") 2>&5
4571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4573 { (case "(($ac_try" in
4574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4578 $as_echo "$ac_try_echo") >&5
4579 (eval "$ac_try") 2>&5
4581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4585 $as_echo "$as_me: program exited with status $ac_status" >&5
4586 $as_echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4590 ac_cv_header_stdc=no
4592 rm -rf conftest.dSYM
4593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4599 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4600 $as_echo "$ac_cv_header_stdc" >&6; }
4601 if test $ac_cv_header_stdc = yes; then
4603 cat >>confdefs.h <<\_ACEOF
4604 #define STDC_HEADERS 1
4609 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4619 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4620 inttypes.h stdint.h unistd.h
4622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4623 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4624 $as_echo_n "checking for $ac_header... " >&6; }
4625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4626 $as_echo_n "(cached) " >&6
4628 cat >conftest.$ac_ext <<_ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4634 $ac_includes_default
4636 #include <$ac_header>
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4641 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4642 *) ac_try_echo
=$ac_try;;
4644 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4645 $as_echo "$ac_try_echo") >&5
4646 (eval "$ac_compile") 2>conftest.er1
4648 grep -v '^ *+' conftest.er1
>conftest.err
4650 cat conftest.err
>&5
4651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest.
$ac_objext; then
4656 eval "$as_ac_Header=yes"
4658 $as_echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.
$ac_ext >&5
4661 eval "$as_ac_Header=no"
4664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4666 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4667 $as_echo "$as_val"'`
4668 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4669 $as_echo "$ac_res" >&6; }
4670 if test `eval 'as_val=${'$as_ac_Header'}
4671 $as_echo "$as_val"'` = yes; then
4672 cat >>confdefs.h
<<_ACEOF
4673 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4682 if test "${ac_cv_header_minix_config_h+set}" = set; then
4683 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4684 $as_echo_n "checking for minix/config.h... " >&6; }
4685 if test "${ac_cv_header_minix_config_h+set}" = set; then
4686 $as_echo_n "(cached) " >&6
4688 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4689 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4691 # Is the header compilable?
4692 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4693 $as_echo_n "checking minix/config.h usability... " >&6; }
4694 cat >conftest.
$ac_ext <<_ACEOF
4697 cat confdefs.h
>>conftest.
$ac_ext
4698 cat >>conftest.
$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4700 $ac_includes_default
4701 #include <minix/config.h>
4703 rm -f conftest.
$ac_objext
4704 if { (ac_try
="$ac_compile"
4706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4710 $as_echo "$ac_try_echo") >&5
4711 (eval "$ac_compile") 2>conftest.er1
4713 grep -v '^ *+' conftest.er1 >conftest.err
4715 cat conftest.err >&5
4716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); } && {
4718 test -z "$ac_c_werror_flag" ||
4719 test ! -s conftest.err
4720 } && test -s conftest.$ac_objext; then
4721 ac_header_compiler=yes
4723 $as_echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4726 ac_header_compiler=no
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4731 $as_echo "$ac_header_compiler" >&6; }
4733 # Is the header present?
4734 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4735 $as_echo_n "checking minix/config.h presence... " >&6; }
4736 cat >conftest.$ac_ext <<_ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h. */
4742 #include <minix/config.h>
4744 if { (ac_try="$ac_cpp conftest.$ac_ext"
4746 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4747 *) ac_try_echo
=$ac_try;;
4749 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4750 $as_echo "$ac_try_echo") >&5
4751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4753 grep -v '^ *+' conftest.er1
>conftest.err
4755 cat conftest.err
>&5
4756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } >/dev
/null
&& {
4758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4759 test ! -s conftest.err
4761 ac_header_preproc
=yes
4763 $as_echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.
$ac_ext >&5
4766 ac_header_preproc
=no
4769 rm -f conftest.err conftest.
$ac_ext
4770 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4771 $as_echo "$ac_header_preproc" >&6; }
4773 # So? What about this header?
4774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4776 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4777 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4778 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4779 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4780 ac_header_preproc
=yes
4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4784 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4786 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4788 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4790 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4791 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4792 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4793 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4794 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4798 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4799 $as_echo_n "checking for minix/config.h... " >&6; }
4800 if test "${ac_cv_header_minix_config_h+set}" = set; then
4801 $as_echo_n "(cached) " >&6
4803 ac_cv_header_minix_config_h
=$ac_header_preproc
4805 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4806 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4809 if test $ac_cv_header_minix_config_h = yes; then
4816 if test "$MINIX" = yes; then
4818 cat >>confdefs.h
<<\_ACEOF
4819 #define _POSIX_SOURCE 1
4823 cat >>confdefs.h
<<\_ACEOF
4824 #define _POSIX_1_SOURCE 2
4828 cat >>confdefs.h
<<\_ACEOF
4836 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4837 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4838 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4839 $as_echo_n "(cached) " >&6
4841 cat >conftest.
$ac_ext <<_ACEOF
4844 cat confdefs.h
>>conftest.
$ac_ext
4845 cat >>conftest.
$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4848 # define __EXTENSIONS__ 1
4849 $ac_includes_default
4858 rm -f conftest.
$ac_objext
4859 if { (ac_try
="$ac_compile"
4861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4865 $as_echo "$ac_try_echo") >&5
4866 (eval "$ac_compile") 2>conftest.er1
4868 grep -v '^ *+' conftest.er1 >conftest.err
4870 cat conftest.err >&5
4871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } && {
4873 test -z "$ac_c_werror_flag" ||
4874 test ! -s conftest.err
4875 } && test -s conftest.$ac_objext; then
4876 ac_cv_safe_to_define___extensions__=yes
4878 $as_echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4881 ac_cv_safe_to_define___extensions__=no
4884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4887 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4888 test $ac_cv_safe_to_define___extensions__ = yes &&
4889 cat >>confdefs.h <<\_ACEOF
4890 #define __EXTENSIONS__ 1
4893 cat >>confdefs.h <<\_ACEOF
4894 #define _ALL_SOURCE 1
4897 cat >>confdefs.h <<\_ACEOF
4898 #define _GNU_SOURCE 1
4901 cat >>confdefs.h <<\_ACEOF
4902 #define _POSIX_PTHREAD_SEMANTICS 1
4905 cat >>confdefs.h <<\_ACEOF
4906 #define _TANDEM_SOURCE 1
4911 ### Use -Wno-pointer-sign if the compiler supports it
4912 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4913 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4914 SAVE_CFLAGS="$CFLAGS"
4915 CFLAGS="$CFLAGS -Wno-pointer-sign"
4916 cat >conftest.$ac_ext <<_ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4935 *) ac_try_echo
=$ac_try;;
4937 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4938 $as_echo "$ac_try_echo") >&5
4939 (eval "$ac_compile") 2>conftest.er1
4941 grep -v '^ *+' conftest.er1
>conftest.err
4943 cat conftest.err
>&5
4944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } && {
4946 test -z "$ac_c_werror_flag" ||
4947 test ! -s conftest.err
4948 } && test -s conftest.
$ac_objext; then
4951 $as_echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.
$ac_ext >&5
4957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4958 if test $has_option = yes; then
4959 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4961 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4962 $as_echo "$has_option" >&6; }
4963 CFLAGS
="$SAVE_CFLAGS"
4967 ### Use -Wdeclaration-after-statement if the compiler supports it
4968 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4969 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4970 SAVE_CFLAGS
="$CFLAGS"
4971 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4972 cat >conftest.
$ac_ext <<_ACEOF
4975 cat confdefs.h
>>conftest.
$ac_ext
4976 cat >>conftest.
$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4987 rm -f conftest.
$ac_objext
4988 if { (ac_try
="$ac_compile"
4990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4994 $as_echo "$ac_try_echo") >&5
4995 (eval "$ac_compile") 2>conftest.er1
4997 grep -v '^ *+' conftest.er1 >conftest.err
4999 cat conftest.err >&5
5000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } && {
5002 test -z "$ac_c_werror_flag" ||
5003 test ! -s conftest.err
5004 } && test -s conftest.$ac_objext; then
5007 $as_echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5014 if test $has_option = yes; then
5015 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5017 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5018 $as_echo "$has_option" >&6; }
5019 CFLAGS="$SAVE_CFLAGS"
5023 #### Some other nice autoconf tests.
5025 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5026 $as_echo_n "checking whether ln -s works... " >&6; }
5028 if test "$LN_S" = "ln -s"; then
5029 { $as_echo "$as_me:$LINENO: result: yes" >&5
5030 $as_echo "yes" >&6; }
5032 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5033 $as_echo "no, using $LN_S" >&6; }
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5041 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5042 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5043 # On Suns, sometimes $CPP names a directory.
5044 if test -n "$CPP" && test -d "$CPP"; then
5047 if test -z "$CPP"; then
5048 if test "${ac_cv_prog_CPP+set}" = set; then
5049 $as_echo_n "(cached) " >&6
5051 # Double quotes because CPP needs to be expanded
5052 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5055 for ac_c_preproc_warn_flag in '' yes
5057 # Use a header file that comes with gcc, so configuring glibc
5058 # with a fresh cross-compiler works.
5059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5060 # <limits.h> exists even on freestanding compilers.
5061 # On the NeXT, cc -E runs the code through the compiler's parser,
5062 # not just through cpp. "Syntax error" is here to catch this case.
5063 cat >conftest.$ac_ext <<_ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5070 # include <limits.h>
5072 # include <assert.h>
5076 if { (ac_try="$ac_cpp conftest.$ac_ext"
5078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5079 *) ac_try_echo
=$ac_try;;
5081 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5082 $as_echo "$ac_try_echo") >&5
5083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5085 grep -v '^ *+' conftest.er1
>conftest.err
5087 cat conftest.err
>&5
5088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } >/dev
/null
&& {
5090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5091 test ! -s conftest.err
5095 $as_echo "$as_me: failed program was:" >&5
5096 sed 's/^/| /' conftest.
$ac_ext >&5
5098 # Broken: fails on valid input.
5102 rm -f conftest.err conftest.
$ac_ext
5104 # OK, works on sane cases. Now check whether nonexistent headers
5105 # can be detected and how.
5106 cat >conftest.
$ac_ext <<_ACEOF
5109 cat confdefs.h
>>conftest.
$ac_ext
5110 cat >>conftest.
$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 #include <ac_nonexistent.h>
5114 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5117 *) ac_try_echo=$ac_try;;
5119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5120 $as_echo "$ac_try_echo") >&5
5121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5123 grep -v '^ *+' conftest.er1 >conftest.err
5125 cat conftest.err >&5
5126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } >/dev/null && {
5128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5129 test ! -s conftest.err
5131 # Broken: success on invalid input.
5134 $as_echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5137 # Passes both tests.
5142 rm -f conftest.err conftest.$ac_ext
5145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5146 rm -f conftest.err conftest.
$ac_ext
5147 if $ac_preproc_ok; then
5159 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5160 $as_echo "$CPP" >&6; }
5162 for ac_c_preproc_warn_flag
in '' yes
5164 # Use a header file that comes with gcc, so configuring glibc
5165 # with a fresh cross-compiler works.
5166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5167 # <limits.h> exists even on freestanding compilers.
5168 # On the NeXT, cc -E runs the code through the compiler's parser,
5169 # not just through cpp. "Syntax error" is here to catch this case.
5170 cat >conftest.
$ac_ext <<_ACEOF
5173 cat confdefs.h
>>conftest.
$ac_ext
5174 cat >>conftest.
$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5177 # include <limits.h>
5179 # include <assert.h>
5183 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5189 $as_echo "$ac_try_echo") >&5
5190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5192 grep -v '^ *+' conftest.er1 >conftest.err
5194 cat conftest.err >&5
5195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } >/dev/null && {
5197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5198 test ! -s conftest.err
5202 $as_echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5205 # Broken: fails on valid input.
5209 rm -f conftest.err conftest.$ac_ext
5211 # OK, works on sane cases. Now check whether nonexistent headers
5212 # can be detected and how.
5213 cat >conftest.$ac_ext <<_ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219 #include <ac_nonexistent.h>
5221 if { (ac_try="$ac_cpp conftest.$ac_ext"
5223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5224 *) ac_try_echo
=$ac_try;;
5226 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5227 $as_echo "$ac_try_echo") >&5
5228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5230 grep -v '^ *+' conftest.er1
>conftest.err
5232 cat conftest.err
>&5
5233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } >/dev
/null
&& {
5235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5236 test ! -s conftest.err
5238 # Broken: success on invalid input.
5241 $as_echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.
$ac_ext >&5
5244 # Passes both tests.
5249 rm -f conftest.err conftest.
$ac_ext
5252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5253 rm -f conftest.err conftest.
$ac_ext
5254 if $ac_preproc_ok; then
5257 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5258 See \`config.log' for more details." >&5
5259 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5260 See \`config.log' for more details." >&2;}
5261 { (exit 1); exit 1; }; }
5265 ac_cpp
='$CPP $CPPFLAGS'
5266 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5267 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5268 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5270 # Find a good install program. We prefer a C program (faster),
5271 # so one script is as good as another. But avoid the broken or
5272 # incompatible versions:
5273 # SysV /etc/install, /usr/sbin/install
5274 # SunOS /usr/etc/install
5275 # IRIX /sbin/install
5277 # AmigaOS /C/install, which installs bootblocks on floppy discs
5278 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5279 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5280 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5281 # OS/2's system install, which has a completely different semantic
5282 # ./install, which can be erroneously created by make from ./install.sh.
5283 # Reject install programs that cannot install multiple files.
5284 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5285 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5286 if test -z "$INSTALL"; then
5287 if test "${ac_cv_path_install+set}" = set; then
5288 $as_echo_n "(cached) " >&6
5290 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5294 test -z "$as_dir" && as_dir
=.
5295 # Account for people who put trailing slashes in PATH elements.
5297 .
/ | .
// |
/cC
/* | \
5298 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5299 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5302 # OSF1 and SCO ODT 3.0 have their own names for install.
5303 # Don't use installbsd from OSF since it installs stuff as root
5305 for ac_prog
in ginstall scoinst
install; do
5306 for ac_exec_ext
in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5308 if test $ac_prog = install &&
5309 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5310 # AIX install. It has an incompatible calling convention.
5312 elif test $ac_prog = install &&
5313 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5314 # program-specific install script used by HP pwplus--don't use.
5317 rm -rf conftest.one conftest.two conftest.dir
5318 echo one
> conftest.one
5319 echo two
> conftest.two
5321 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5322 test -s conftest.one
&& test -s conftest.two
&&
5323 test -s conftest.dir
/conftest.one
&&
5324 test -s conftest.dir
/conftest.two
5326 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5339 rm -rf conftest.one conftest.two conftest.dir
5342 if test "${ac_cv_path_install+set}" = set; then
5343 INSTALL
=$ac_cv_path_install
5345 # As a last resort, use the slow shell script. Don't cache a
5346 # value for INSTALL within a source directory, because that will
5347 # break other packages using the cache if that directory is
5348 # removed, or if the value is a relative name.
5349 INSTALL
=$ac_install_sh
5352 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5353 $as_echo "$INSTALL" >&6; }
5355 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5356 # It thinks the first close brace ends the variable substitution.
5357 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5359 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5361 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5363 if test "x$RANLIB" = x
; then
5364 if test -n "$ac_tool_prefix"; then
5365 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5366 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 $as_echo_n "checking for $ac_word... " >&6; }
5369 if test "${ac_cv_prog_RANLIB+set}" = set; then
5370 $as_echo_n "(cached) " >&6
5372 if test -n "$RANLIB"; then
5373 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5379 test -z "$as_dir" && as_dir
=.
5380 for ac_exec_ext
in '' $ac_executable_extensions; do
5381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5383 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5392 RANLIB
=$ac_cv_prog_RANLIB
5393 if test -n "$RANLIB"; then
5394 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5395 $as_echo "$RANLIB" >&6; }
5397 { $as_echo "$as_me:$LINENO: result: no" >&5
5398 $as_echo "no" >&6; }
5403 if test -z "$ac_cv_prog_RANLIB"; then
5404 ac_ct_RANLIB
=$RANLIB
5405 # Extract the first word of "ranlib", so it can be a program name with args.
5406 set dummy ranlib
; ac_word
=$2
5407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5410 $as_echo_n "(cached) " >&6
5412 if test -n "$ac_ct_RANLIB"; then
5413 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5419 test -z "$as_dir" && as_dir
=.
5420 for ac_exec_ext
in '' $ac_executable_extensions; do
5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5433 if test -n "$ac_ct_RANLIB"; then
5434 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5435 $as_echo "$ac_ct_RANLIB" >&6; }
5437 { $as_echo "$as_me:$LINENO: result: no" >&5
5438 $as_echo "no" >&6; }
5441 if test "x$ac_ct_RANLIB" = x
; then
5444 case $cross_compiling:$ac_tool_warned in
5446 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5447 whose name does not start with the host triplet. If you think this
5448 configuration is useful to you, please write to autoconf@gnu.org." >&5
5449 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5450 whose name does not start with the host triplet. If you think this
5451 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5452 ac_tool_warned
=yes ;;
5454 RANLIB
=$ac_ct_RANLIB
5457 RANLIB
="$ac_cv_prog_RANLIB"
5462 ## Although we're running on an amd64 kernel, we're actually compiling for
5463 ## the x86 architecture. The user should probably have provided an
5464 ## explicit --build to `configure', but if everything else than the kernel
5465 ## is running in i386 mode, we can help them out.
5466 if test "$machine" = "amdx86-64"; then
5467 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5468 $as_echo_n "checking whether i386 is declared... " >&6; }
5469 if test "${ac_cv_have_decl_i386+set}" = set; then
5470 $as_echo_n "(cached) " >&6
5472 cat >conftest.
$ac_ext <<_ACEOF
5475 cat confdefs.h
>>conftest.
$ac_ext
5476 cat >>conftest.
$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5478 $ac_includes_default
5490 rm -f conftest.
$ac_objext
5491 if { (ac_try
="$ac_compile"
5493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5497 $as_echo "$ac_try_echo") >&5
5498 (eval "$ac_compile") 2>conftest.er1
5500 grep -v '^ *+' conftest.er1 >conftest.err
5502 cat conftest.err >&5
5503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } && {
5505 test -z "$ac_c_werror_flag" ||
5506 test ! -s conftest.err
5507 } && test -s conftest.$ac_objext; then
5508 ac_cv_have_decl_i386=yes
5510 $as_echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 ac_cv_have_decl_i386=no
5516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5519 $as_echo "$ac_cv_have_decl_i386" >&6; }
5521 if test "$ac_cv_have_decl_i386" = "yes"; then
5522 canonical=`echo "$canonical" |
sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5524 machfile="m/${machine}.h"
5528 # Extract the first word of "install-info", so it can be a program name with args.
5529 set dummy install-info; ac_word=$2
5530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5533 $as_echo_n "(cached) " >&6
5535 case $INSTALL_INFO in
5537 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5559 if test -n "$INSTALL_INFO"; then
5560 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5561 $as_echo "$INSTALL_INFO" >&6; }
5563 { $as_echo "$as_me:$LINENO: result: no" >&5
5564 $as_echo "no" >&6; }
5568 # Extract the first word of "install-info", so it can be a program name with args.
5569 set dummy install-info; ac_word=$2
5570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5573 $as_echo_n "(cached) " >&6
5575 case $INSTALL_INFO in
5577 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in /usr/sbin
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5588 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5599 if test -n "$INSTALL_INFO"; then
5600 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5601 $as_echo "$INSTALL_INFO" >&6; }
5603 { $as_echo "$as_me:$LINENO: result: no" >&5
5604 $as_echo "no" >&6; }
5608 # Extract the first word of "install-info", so it can be a program name with args.
5609 set dummy install-info; ac_word=$2
5610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5613 $as_echo_n "(cached) " >&6
5615 case $INSTALL_INFO in
5617 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5639 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5640 if test -n "$INSTALL_INFO"; then
5641 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5642 $as_echo "$INSTALL_INFO" >&6; }
5644 { $as_echo "$as_me:$LINENO: result: no" >&5
5645 $as_echo "no" >&6; }
5649 # Extract the first word of "gzip", so it can be a program name with args.
5650 set dummy gzip; ac_word=$2
5651 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5652 $as_echo_n "checking for $ac_word... " >&6; }
5653 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5654 $as_echo_n "(cached) " >&6
5658 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 GZIP_PROG=$ac_cv_path_GZIP_PROG
5680 if test -n "$GZIP_PROG"; then
5681 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5682 $as_echo "$GZIP_PROG" >&6; }
5684 { $as_echo "$as_me:$LINENO: result: no" >&5
5685 $as_echo "no" >&6; }
5691 ## Need makeinfo >= 4.6 (?) to build the manuals.
5692 # Extract the first word of "makeinfo", so it can be a program name with args.
5693 set dummy makeinfo; ac_word=$2
5694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5695 $as_echo_n "checking for $ac_word... " >&6; }
5696 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5697 $as_echo_n "(cached) " >&6
5701 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5723 MAKEINFO=$ac_cv_path_MAKEINFO
5724 if test -n "$MAKEINFO"; then
5725 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5726 $as_echo "$MAKEINFO" >&6; }
5728 { $as_echo "$as_me:$LINENO: result: no" >&5
5729 $as_echo "no" >&6; }
5733 if test "$MAKEINFO" != "no" && \
5734 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
5738 ## Makeinfo is unusual. For a released Emacs, the manuals are
5739 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5740 ## therefore in the category of "special tools" not normally required, which
5741 ## configure does not have to check for (eg autoconf itself).
5742 ## In a Bazaar checkout on the other hand, the manuals are not included.
5743 ## So makeinfo is a requirement to build from Bazaar, and configure
5744 ## should test for it as it does for any other build requirement.
5745 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5746 ## with pre-built manuals, from a Bazaar checkout.
5747 if test "$MAKEINFO" = "no"; then
5748 if test "x${with_makeinfo}" = "xno"; then
5750 elif test ! -e $srcdir/info/emacs; then
5751 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5752 source tree does not seem to have pre-built manuals in the \`info
' directory.
5753 Either install a suitable version of makeinfo, or re-run configure
5754 with the \`--without-makeinfo' option to build without the manuals.
" >&5
5755 $as_echo "$as_me: error
: You
do not seem to have makeinfo
>= 4.6, and your
5756 source tree does not seem to have pre-built manuals
in the \
`info' directory.
5757 Either install a suitable version of makeinfo, or re-run configure
5758 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5759 { (exit 1); exit 1; }; }
5764 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5766 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5769 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5771 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5775 late_LDFLAGS=$LDFLAGS
5776 if test "$GCC" = yes; then
5777 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5779 LDFLAGS="$LDFLAGS -znocombreloc"
5782 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5783 $as_echo_n "checking for -znocombreloc... " >&6; }
5784 cat >conftest.$ac_ext <<_ACEOF
5787 rm -f conftest.$ac_objext conftest$ac_exeext
5788 if { (ac_try="$ac_link"
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5794 $as_echo "$ac_try_echo") >&5
5795 (eval "$ac_link") 2>conftest.er1
5797 grep -v '^
*+' conftest.er1 >conftest.err
5799 cat conftest.err >&5
5800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } && {
5802 test -z "$ac_c_werror_flag" ||
5803 test ! -s conftest.err
5804 } && test -s conftest$ac_exeext && {
5805 test "$cross_compiling" = yes ||
5806 $as_test_x conftest$ac_exeext
5808 { $as_echo "$as_me:$LINENO: result: yes" >&5
5809 $as_echo "yes" >&6; }
5811 $as_echo "$as_me: failed program was:" >&5
5812 sed 's
/^
/|
/' conftest.$ac_ext >&5
5814 LDFLAGS=$late_LDFLAGS
5815 { $as_echo "$as_me:$LINENO: result: no" >&5
5816 $as_echo "no" >&6; }
5819 rm -rf conftest.dSYM
5820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5821 conftest$ac_exeext conftest.$ac_ext
5830 ## Adding -lm confuses the dynamic linker, so omit it.
5837 #### Extract some information from the operating system and machine files.
5839 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5840 - which libraries the lib-src programs will want, and
5841 - whether the GNU malloc routines are usable..." >&5
5842 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5843 - which libraries the lib-src programs will want, and
5844 - whether the GNU malloc routines are usable..." >&6;}
5846 ### First figure out CFLAGS (which we use for running the compiler here)
5847 ### and REAL_CFLAGS (which we use for real compilation).
5848 ### The two are the same except on a few systems, where they are made
5849 ### different to work around various lossages. For example,
5850 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5851 ### as implying static linking.
5853 ### If the CFLAGS env var is specified, we use that value
5854 ### instead of the default.
5856 ### It's not important that this name contain the PID
; you can
't run
5857 ### two configures in the same directory and have anything work
5859 tempcname="conftest.c"
5862 #include "'${srcdir}'/src/'${opsysfile}'"
5863 #include "'${srcdir}'/src/'${machfile}'"
5867 #ifndef C_SWITCH_SYSTEM
5868 #define C_SWITCH_SYSTEM
5870 #ifndef C_SWITCH_MACHINE
5871 #define C_SWITCH_MACHINE
5873 configure___ libsrc_libs
=LIBS_SYSTEM
5874 configure___ c_switch_system
=C_SWITCH_SYSTEM
5875 configure___ c_switch_machine
=C_SWITCH_MACHINE
5877 configure___ LIBX
=-lX11
5879 configure___ unexec
=UNEXEC
5881 #ifdef SYSTEM_MALLOC
5882 configure___ system_malloc
=yes
5884 configure___ system_malloc
=no
5887 #ifdef USE_MMAP_FOR_BUFFERS
5888 configure___ use_mmap_for_buffers
=yes
5890 configure___ use_mmap_for_buffers
=no
5893 #ifndef C_OPTIMIZE_SWITCH
5895 #define C_OPTIMIZE_SWITCH -O2
5897 #define C_OPTIMIZE_SWITCH -O
5901 #ifndef C_WARNINGS_SWITCH
5902 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5905 #ifndef LD_SWITCH_MACHINE
5906 #define LD_SWITCH_MACHINE
5909 #ifndef LD_SWITCH_SYSTEM
5910 #define LD_SWITCH_SYSTEM
5913 #ifndef LD_SWITCH_X_SITE_AUX
5914 #define LD_SWITCH_X_SITE_AUX
5917 configure___ ld_switch_system
=LD_SWITCH_SYSTEM
5918 configure___ ld_switch_machine
=LD_SWITCH_MACHINE
5920 #ifdef THIS_IS_CONFIGURE
5922 /* Get the CFLAGS
for tests
in configure.
*/
5924 configure___ CFLAGS
=-g C_OPTIMIZE_SWITCH
'${SPECIFIED_CFLAGS}'
5926 configure___ CFLAGS
='${SPECIFIED_CFLAGS}'
5929 #else /* not THIS_IS_CONFIGURE */
5931 /* Get the CFLAGS
for real compilation.
*/
5933 configure___ REAL_CFLAGS
=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH
${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5935 configure___ REAL_CFLAGS
='${SPECIFIED_CFLAGS}'
5938 #endif /* not THIS_IS_CONFIGURE */
5941 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5943 # The value of CPP is a quoted variable reference, so we need to do this
5944 # to get its actual value...
5945 CPP=`eval "echo $CPP"`
5946 eval `${CPP} -Isrc ${tempcname} \
5947 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5948 if test "x$SPECIFIED_CFLAGS" = x; then
5949 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5950 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5952 REAL_CFLAGS="$CFLAGS"
5956 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5958 ### Make sure subsequent tests use flags consistent with the build flags.
5960 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5961 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5963 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5968 # Check whether --enable-largefile was given.
5969 if test "${enable_largefile+set}" = set; then
5970 enableval=$enable_largefile;
5973 if test "$enable_largefile" != no; then
5975 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5976 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5977 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5978 $as_echo_n "(cached) " >&6
5980 ac_cv_sys_largefile_CC=no
5981 if test "$GCC" != yes; then
5984 # IRIX 6.2 and later do not support large files by default,
5985 # so use the C compiler's
-n32 option
if that helps.
5986 cat >conftest.
$ac_ext <<_ACEOF
5989 cat confdefs.h
>>conftest.
$ac_ext
5990 cat >>conftest.
$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 #include <sys/types.h>
5993 /* Check that off_t can represent 2**63 - 1 correctly.
5994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5995 since some C++ compilers masquerading as C compilers
5996 incorrectly reject 9223372036854775807. */
5997 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5999 && LARGE_OFF_T % 2147483647 == 1)
6009 rm -f conftest.
$ac_objext
6010 if { (ac_try
="$ac_compile"
6012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6016 $as_echo "$ac_try_echo") >&5
6017 (eval "$ac_compile") 2>conftest.er1
6019 grep -v '^ *+' conftest.er1 >conftest.err
6021 cat conftest.err >&5
6022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } && {
6024 test -z "$ac_c_werror_flag" ||
6025 test ! -s conftest.err
6026 } && test -s conftest.$ac_objext; then
6029 $as_echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6035 rm -f core conftest.err conftest.$ac_objext
6037 rm -f conftest.$ac_objext
6038 if { (ac_try="$ac_compile"
6040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6041 *) ac_try_echo
=$ac_try;;
6043 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6044 $as_echo "$ac_try_echo") >&5
6045 (eval "$ac_compile") 2>conftest.er1
6047 grep -v '^ *+' conftest.er1
>conftest.err
6049 cat conftest.err
>&5
6050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } && {
6052 test -z "$ac_c_werror_flag" ||
6053 test ! -s conftest.err
6054 } && test -s conftest.
$ac_objext; then
6055 ac_cv_sys_largefile_CC
=' -n32'; break
6057 $as_echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.
$ac_ext >&5
6063 rm -f core conftest.err conftest.
$ac_objext
6067 rm -f conftest.
$ac_ext
6070 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6071 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6072 if test "$ac_cv_sys_largefile_CC" != no
; then
6073 CC
=$CC$ac_cv_sys_largefile_CC
6076 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6077 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6078 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6079 $as_echo_n "(cached) " >&6
6082 cat >conftest.
$ac_ext <<_ACEOF
6085 cat confdefs.h
>>conftest.
$ac_ext
6086 cat >>conftest.
$ac_ext <<_ACEOF
6087 /* end confdefs.h. */
6088 #include <sys/types.h>
6089 /* Check that off_t can represent 2**63 - 1 correctly.
6090 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6091 since some C++ compilers masquerading as C compilers
6092 incorrectly reject 9223372036854775807. */
6093 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6094 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6095 && LARGE_OFF_T % 2147483647 == 1)
6105 rm -f conftest.
$ac_objext
6106 if { (ac_try
="$ac_compile"
6108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6109 *) ac_try_echo=$ac_try;;
6111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6112 $as_echo "$ac_try_echo") >&5
6113 (eval "$ac_compile") 2>conftest.er1
6115 grep -v '^ *+' conftest.er1 >conftest.err
6117 cat conftest.err >&5
6118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } && {
6120 test -z "$ac_c_werror_flag" ||
6121 test ! -s conftest.err
6122 } && test -s conftest.$ac_objext; then
6123 ac_cv_sys_file_offset_bits=no; break
6125 $as_echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132 cat >conftest.$ac_ext <<_ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6138 #define _FILE_OFFSET_BITS 64
6139 #include <sys/types.h>
6140 /* Check that off_t can represent 2**63 - 1 correctly.
6141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6142 since some C++ compilers masquerading as C compilers
6143 incorrectly reject 9223372036854775807. */
6144 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6146 && LARGE_OFF_T % 2147483647 == 1)
6156 rm -f conftest.$ac_objext
6157 if { (ac_try="$ac_compile"
6159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6160 *) ac_try_echo
=$ac_try;;
6162 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6163 $as_echo "$ac_try_echo") >&5
6164 (eval "$ac_compile") 2>conftest.er1
6166 grep -v '^ *+' conftest.er1
>conftest.err
6168 cat conftest.err
>&5
6169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } && {
6171 test -z "$ac_c_werror_flag" ||
6172 test ! -s conftest.err
6173 } && test -s conftest.
$ac_objext; then
6174 ac_cv_sys_file_offset_bits
=64; break
6176 $as_echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.
$ac_ext >&5
6182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6183 ac_cv_sys_file_offset_bits
=unknown
6187 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6188 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6189 case $ac_cv_sys_file_offset_bits in #(
6192 cat >>confdefs.h
<<_ACEOF
6193 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6198 if test $ac_cv_sys_file_offset_bits = unknown
; then
6199 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6200 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6201 if test "${ac_cv_sys_large_files+set}" = set; then
6202 $as_echo_n "(cached) " >&6
6205 cat >conftest.
$ac_ext <<_ACEOF
6208 cat confdefs.h
>>conftest.
$ac_ext
6209 cat >>conftest.
$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 #include <sys/types.h>
6212 /* Check that off_t can represent 2**63 - 1 correctly.
6213 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6214 since some C++ compilers masquerading as C compilers
6215 incorrectly reject 9223372036854775807. */
6216 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6217 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6218 && LARGE_OFF_T % 2147483647 == 1)
6228 rm -f conftest.
$ac_objext
6229 if { (ac_try
="$ac_compile"
6231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6232 *) ac_try_echo=$ac_try;;
6234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6235 $as_echo "$ac_try_echo") >&5
6236 (eval "$ac_compile") 2>conftest.er1
6238 grep -v '^ *+' conftest.er1 >conftest.err
6240 cat conftest.err >&5
6241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } && {
6243 test -z "$ac_c_werror_flag" ||
6244 test ! -s conftest.err
6245 } && test -s conftest.$ac_objext; then
6246 ac_cv_sys_large_files=no; break
6248 $as_echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 cat >conftest.$ac_ext <<_ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6261 #define _LARGE_FILES 1
6262 #include <sys/types.h>
6263 /* Check that off_t can represent 2**63 - 1 correctly.
6264 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6265 since some C++ compilers masquerading as C compilers
6266 incorrectly reject 9223372036854775807. */
6267 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6268 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6269 && LARGE_OFF_T % 2147483647 == 1)
6279 rm -f conftest.$ac_objext
6280 if { (ac_try="$ac_compile"
6282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6283 *) ac_try_echo
=$ac_try;;
6285 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6286 $as_echo "$ac_try_echo") >&5
6287 (eval "$ac_compile") 2>conftest.er1
6289 grep -v '^ *+' conftest.er1
>conftest.err
6291 cat conftest.err
>&5
6292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } && {
6294 test -z "$ac_c_werror_flag" ||
6295 test ! -s conftest.err
6296 } && test -s conftest.
$ac_objext; then
6297 ac_cv_sys_large_files
=1; break
6299 $as_echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.
$ac_ext >&5
6305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6306 ac_cv_sys_large_files
=unknown
6310 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6311 $as_echo "$ac_cv_sys_large_files" >&6; }
6312 case $ac_cv_sys_large_files in #(
6315 cat >>confdefs.h
<<_ACEOF
6316 #define _LARGE_FILES $ac_cv_sys_large_files
6326 ## If user specified a crt-dir, use that unconditionally.
6327 if test "X$CRT_DIR" = "X"; then
6329 case "$canonical" in
6330 x86_64-
*-linux-gnu* | s390x-
*-linux-gnu*)
6331 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6332 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6333 ## For anything else (eg /usr/lib32), it is up the user to specify
6334 ## the location (bug#5655).
6335 ## Test for crtn.o, not just the directory, because sometimes the
6336 ## directory exists but does not have the relevant files (bug#1287).
6337 ## FIXME better to test for binary compatibility somehow.
6338 test -e /usr
/lib64
/crtn.o
&& CRT_DIR
=/usr
/lib64
6341 powerpc64-
*-linux-gnu* | sparc64-
*-linux-gnu*) CRT_DIR
=/usr
/lib64
;;
6345 hpux10-20
) CRT_DIR
=/lib
;;
6348 ## Default is /usr/lib.
6349 test "X$CRT_DIR" = "X" && CRT_DIR
=/usr
/lib
6353 ## Some platforms don't use any of these files, so it is not
6354 ## appropriate to put this test outside the if block.
6355 test -e $CRT_DIR/crtn.o ||
test -e $CRT_DIR/crt0.o || \
6356 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6357 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6358 { (exit 1); exit 1; }; }
6368 if test "${with_sound}" != "no"; then
6369 # Sound support for GNU/Linux and the free BSDs.
6373 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
6375 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6376 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6378 $as_echo_n "checking for $ac_header... " >&6; }
6379 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6380 $as_echo_n "(cached) " >&6
6382 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6383 $as_echo "$as_val"'`
6384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6385 $as_echo "$ac_res" >&6; }
6387 # Is the header compilable?
6388 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6389 $as_echo_n "checking $ac_header usability... " >&6; }
6390 cat >conftest.
$ac_ext <<_ACEOF
6393 cat confdefs.h
>>conftest.
$ac_ext
6394 cat >>conftest.
$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6397 #include <$ac_header>
6399 rm -f conftest.
$ac_objext
6400 if { (ac_try
="$ac_compile"
6402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6406 $as_echo "$ac_try_echo") >&5
6407 (eval "$ac_compile") 2>conftest.er1
6409 grep -v '^ *+' conftest.er1 >conftest.err
6411 cat conftest.err >&5
6412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } && {
6414 test -z "$ac_c_werror_flag" ||
6415 test ! -s conftest.err
6416 } && test -s conftest.$ac_objext; then
6417 ac_header_compiler=yes
6419 $as_echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6422 ac_header_compiler=no
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6427 $as_echo "$ac_header_compiler" >&6; }
6429 # Is the header present?
6430 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6431 $as_echo_n "checking $ac_header presence... " >&6; }
6432 cat >conftest.$ac_ext <<_ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 #include <$ac_header>
6440 if { (ac_try="$ac_cpp conftest.$ac_ext"
6442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6443 *) ac_try_echo
=$ac_try;;
6445 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6446 $as_echo "$ac_try_echo") >&5
6447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6449 grep -v '^ *+' conftest.er1
>conftest.err
6451 cat conftest.err
>&5
6452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } >/dev
/null
&& {
6454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6455 test ! -s conftest.err
6457 ac_header_preproc
=yes
6459 $as_echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.
$ac_ext >&5
6462 ac_header_preproc
=no
6465 rm -f conftest.err conftest.
$ac_ext
6466 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6467 $as_echo "$ac_header_preproc" >&6; }
6469 # So? What about this header?
6470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6473 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6476 ac_header_preproc
=yes
6479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6480 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6482 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6484 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6486 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6490 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6494 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6495 $as_echo_n "checking for $ac_header... " >&6; }
6496 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6497 $as_echo_n "(cached) " >&6
6499 eval "$as_ac_Header=\$ac_header_preproc"
6501 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6502 $as_echo "$as_val"'`
6503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6504 $as_echo "$ac_res" >&6; }
6507 if test `eval 'as_val=${'$as_ac_Header'}
6508 $as_echo "$as_val"'` = yes; then
6509 cat >>confdefs.h
<<_ACEOF
6510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6517 # Emulation library used on NetBSD.
6518 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6519 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6520 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6521 $as_echo_n "(cached) " >&6
6523 ac_check_lib_save_LIBS
=$LIBS
6524 LIBS
="-lossaudio $LIBS"
6525 cat >conftest.
$ac_ext <<_ACEOF
6528 cat confdefs.h
>>conftest.
$ac_ext
6529 cat >>conftest.
$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6532 /* Override any GCC internal prototype to avoid an error.
6533 Use char because int might match the return type of a GCC
6534 builtin and then its argument prototype would still apply. */
6542 return _oss_ioctl ();
6547 rm -f conftest.
$ac_objext conftest
$ac_exeext
6548 if { (ac_try
="$ac_link"
6550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6554 $as_echo "$ac_try_echo") >&5
6555 (eval "$ac_link") 2>conftest.er1
6557 grep -v '^ *+' conftest.er1 >conftest.err
6559 cat conftest.err >&5
6560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } && {
6562 test -z "$ac_c_werror_flag" ||
6563 test ! -s conftest.err
6564 } && test -s conftest$ac_exeext && {
6565 test "$cross_compiling" = yes ||
6566 $as_test_x conftest$ac_exeext
6568 ac_cv_lib_ossaudio__oss_ioctl=yes
6570 $as_echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6573 ac_cv_lib_ossaudio__oss_ioctl=no
6576 rm -rf conftest.dSYM
6577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6578 conftest$ac_exeext conftest.$ac_ext
6579 LIBS=$ac_check_lib_save_LIBS
6581 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6582 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6583 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6592 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6596 # Extract the first word of "pkg-config", so it can be a program name with args.
6597 set dummy pkg-config; ac_word=$2
6598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6601 $as_echo_n "(cached) " >&6
6605 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6627 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6628 if test -n "$PKG_CONFIG"; then
6629 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6630 $as_echo "$PKG_CONFIG" >&6; }
6632 { $as_echo "$as_me:$LINENO: result: no" >&5
6633 $as_echo "no" >&6; }
6638 if test "$PKG_CONFIG" = "no" ; then
6641 PKG_CONFIG_MIN_VERSION=0.9.0
6642 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6643 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6644 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6646 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6647 { $as_echo "$as_me:$LINENO: result: yes" >&5
6648 $as_echo "yes" >&6; }
6651 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6652 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6653 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|
sed -e 's,///*,/,g'`
6654 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6655 $as_echo "$ALSA_CFLAGS" >&6; }
6657 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6658 $as_echo_n "checking ALSA_LIBS... " >&6; }
6659 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|
sed -e 's,///*,/,g'`
6660 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6661 $as_echo "$ALSA_LIBS" >&6; }
6663 { $as_echo "$as_me:$LINENO: result: no" >&5
6664 $as_echo "no" >&6; }
6667 ## If we have a custom action on failure, don't print errors, but
6668 ## do set a variable so people can do so.
6669 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6676 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6677 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6681 if test $succeeded = yes; then
6687 if test $HAVE_ALSA = yes; then
6688 SAVE_CFLAGS="$CFLAGS"
6689 SAVE_LDFLAGS="$LDFLAGS"
6690 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6691 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6692 cat >conftest.$ac_ext <<_ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <asoundlib.h>
6702 snd_lib_error_set_handler (0);
6707 rm -f conftest.$ac_objext
6708 if { (ac_try="$ac_compile"
6710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6711 *) ac_try_echo
=$ac_try;;
6713 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6714 $as_echo "$ac_try_echo") >&5
6715 (eval "$ac_compile") 2>conftest.er1
6717 grep -v '^ *+' conftest.er1
>conftest.err
6719 cat conftest.err
>&5
6720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && {
6722 test -z "$ac_c_werror_flag" ||
6723 test ! -s conftest.err
6724 } && test -s conftest.
$ac_objext; then
6725 emacs_alsa_normal
=yes
6727 $as_echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.
$ac_ext >&5
6730 emacs_alsa_normal
=no
6733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6734 if test "$emacs_alsa_normal" != yes; then
6735 cat >conftest.
$ac_ext <<_ACEOF
6738 cat confdefs.h
>>conftest.
$ac_ext
6739 cat >>conftest.
$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 #include <alsa/asoundlib.h>
6745 snd_lib_error_set_handler (0);
6750 rm -f conftest.
$ac_objext
6751 if { (ac_try
="$ac_compile"
6753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6757 $as_echo "$ac_try_echo") >&5
6758 (eval "$ac_compile") 2>conftest.er1
6760 grep -v '^ *+' conftest.er1 >conftest.err
6762 cat conftest.err >&5
6763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } && {
6765 test -z "$ac_c_werror_flag" ||
6766 test ! -s conftest.err
6767 } && test -s conftest.$ac_objext; then
6768 emacs_alsa_subdir=yes
6770 $as_echo "$as_me: failed program was:" >&5
6771 sed 's/^/| /' conftest.$ac_ext >&5
6773 emacs_alsa_subdir=no
6776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777 if test "$emacs_alsa_subdir" != yes; then
6778 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6779 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6780 { (exit 1); exit 1; }; }
6782 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6785 CFLAGS="$SAVE_CFLAGS"
6786 LDFLAGS="$SAVE_LDFLAGS"
6787 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6788 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6790 cat >>confdefs.h <<\_ACEOF
6823 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6824 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6825 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6826 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6827 sys/utsname.h pwd.h utmp.h
6829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6831 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6832 $as_echo_n "checking for $ac_header... " >&6; }
6833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6834 $as_echo_n "(cached) " >&6
6836 ac_res=`eval 'as_val=${'$as_ac_Header'}
6837 $as_echo "$as_val"'`
6838 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6839 $as_echo "$ac_res" >&6; }
6841 # Is the header compilable?
6842 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6843 $as_echo_n "checking $ac_header usability... " >&6; }
6844 cat >conftest.$ac_ext <<_ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 $ac_includes_default
6851 #include <$ac_header>
6853 rm -f conftest.$ac_objext
6854 if { (ac_try="$ac_compile"
6856 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6857 *) ac_try_echo
=$ac_try;;
6859 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6860 $as_echo "$ac_try_echo") >&5
6861 (eval "$ac_compile") 2>conftest.er1
6863 grep -v '^ *+' conftest.er1
>conftest.err
6865 cat conftest.err
>&5
6866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } && {
6868 test -z "$ac_c_werror_flag" ||
6869 test ! -s conftest.err
6870 } && test -s conftest.
$ac_objext; then
6871 ac_header_compiler
=yes
6873 $as_echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.
$ac_ext >&5
6876 ac_header_compiler
=no
6879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6880 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6881 $as_echo "$ac_header_compiler" >&6; }
6883 # Is the header present?
6884 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6885 $as_echo_n "checking $ac_header presence... " >&6; }
6886 cat >conftest.
$ac_ext <<_ACEOF
6889 cat confdefs.h
>>conftest.
$ac_ext
6890 cat >>conftest.
$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 #include <$ac_header>
6894 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6897 *) ac_try_echo=$ac_try;;
6899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6900 $as_echo "$ac_try_echo") >&5
6901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6903 grep -v '^ *+' conftest.er1 >conftest.err
6905 cat conftest.err >&5
6906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } >/dev/null && {
6908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6909 test ! -s conftest.err
6911 ac_header_preproc=yes
6913 $as_echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6916 ac_header_preproc=no
6919 rm -f conftest.err conftest.$ac_ext
6920 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6921 $as_echo "$ac_header_preproc" >&6; }
6923 # So? What about this header?
6924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6927 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6929 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6930 ac_header_preproc=yes
6933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6934 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6936 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6938 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6940 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6942 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6944 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6948 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6949 $as_echo_n "checking for $ac_header... " >&6; }
6950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6951 $as_echo_n "(cached) " >&6
6953 eval "$as_ac_Header=\$ac_header_preproc"
6955 ac_res=`eval 'as_val=${'$as_ac_Header'}
6956 $as_echo "$as_val"'`
6957 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6958 $as_echo "$ac_res" >&6; }
6961 if test `eval 'as_val=${'$as_ac_Header'}
6962 $as_echo "$as_val"'` = yes; then
6963 cat >>confdefs.h <<_ACEOF
6964 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6972 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6973 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6974 cat >conftest.$ac_ext <<_ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6980 #include <sys/personality.h>
6984 personality (PER_LINUX32)
6989 rm -f conftest.$ac_objext
6990 if { (ac_try="$ac_compile"
6992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6993 *) ac_try_echo
=$ac_try;;
6995 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6996 $as_echo "$ac_try_echo") >&5
6997 (eval "$ac_compile") 2>conftest.er1
6999 grep -v '^ *+' conftest.er1
>conftest.err
7001 cat conftest.err
>&5
7002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } && {
7004 test -z "$ac_c_werror_flag" ||
7005 test ! -s conftest.err
7006 } && test -s conftest.
$ac_objext; then
7007 emacs_cv_personality_linux32
=yes
7009 $as_echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.
$ac_ext >&5
7012 emacs_cv_personality_linux32
=no
7015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7016 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7017 $as_echo "$emacs_cv_personality_linux32" >&6; }
7019 if test $emacs_cv_personality_linux32 = yes; then
7021 cat >>confdefs.h
<<\_ACEOF
7022 #define HAVE_PERSONALITY_LINUX32 1
7028 for ac_header
in term.h
7030 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7032 $as_echo_n "checking for $ac_header... " >&6; }
7033 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7034 $as_echo_n "(cached) " >&6
7036 cat >conftest.
$ac_ext <<_ACEOF
7039 cat confdefs.h
>>conftest.
$ac_ext
7040 cat >>conftest.
$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 #include <$ac_header>
7044 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7050 $as_echo "$ac_try_echo") >&5
7051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7053 grep -v '^ *+' conftest.er1 >conftest.err
7055 cat conftest.err >&5
7056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } >/dev/null && {
7058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7059 test ! -s conftest.err
7061 eval "$as_ac_Header=yes"
7063 $as_echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7066 eval "$as_ac_Header=no"
7069 rm -f conftest.err conftest.$ac_ext
7071 ac_res=`eval 'as_val=${'$as_ac_Header'}
7072 $as_echo "$as_val"'`
7073 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7074 $as_echo "$ac_res" >&6; }
7075 if test `eval 'as_val=${'$as_ac_Header'}
7076 $as_echo "$as_val"'` = yes; then
7077 cat >>confdefs.h <<_ACEOF
7078 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7085 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7086 $as_echo_n "checking for ANSI C header files... " >&6; }
7087 if test "${ac_cv_header_stdc+set}" = set; then
7088 $as_echo_n "(cached) " >&6
7090 cat >conftest.$ac_ext <<_ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7109 rm -f conftest.$ac_objext
7110 if { (ac_try="$ac_compile"
7112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7113 *) ac_try_echo
=$ac_try;;
7115 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7116 $as_echo "$ac_try_echo") >&5
7117 (eval "$ac_compile") 2>conftest.er1
7119 grep -v '^ *+' conftest.er1
>conftest.err
7121 cat conftest.err
>&5
7122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } && {
7124 test -z "$ac_c_werror_flag" ||
7125 test ! -s conftest.err
7126 } && test -s conftest.
$ac_objext; then
7127 ac_cv_header_stdc
=yes
7129 $as_echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.
$ac_ext >&5
7132 ac_cv_header_stdc
=no
7135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7137 if test $ac_cv_header_stdc = yes; then
7138 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7139 cat >conftest.
$ac_ext <<_ACEOF
7142 cat confdefs.h
>>conftest.
$ac_ext
7143 cat >>conftest.
$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7149 $EGREP "memchr" >/dev
/null
2>&1; then
7152 ac_cv_header_stdc
=no
7158 if test $ac_cv_header_stdc = yes; then
7159 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7160 cat >conftest.
$ac_ext <<_ACEOF
7163 cat confdefs.h
>>conftest.
$ac_ext
7164 cat >>conftest.
$ac_ext <<_ACEOF
7165 /* end confdefs.h. */
7169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7170 $EGREP "free" >/dev
/null
2>&1; then
7173 ac_cv_header_stdc
=no
7179 if test $ac_cv_header_stdc = yes; then
7180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7181 if test "$cross_compiling" = yes; then
7184 cat >conftest.
$ac_ext <<_ACEOF
7187 cat confdefs.h
>>conftest.
$ac_ext
7188 cat >>conftest.
$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7192 #if ((' ' & 0x0FF) == 0x020)
7193 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7194 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7196 # define ISLOWER(c) \
7197 (('a' <= (c) && (c) <= 'i') \
7198 || ('j' <= (c) && (c) <= 'r') \
7199 || ('s' <= (c) && (c) <= 'z'))
7200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7208 for (i = 0; i < 256; i++)
7209 if (XOR (islower (i), ISLOWER (i))
7210 || toupper (i) != TOUPPER (i))
7215 rm -f conftest
$ac_exeext
7216 if { (ac_try
="$ac_link"
7218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7222 $as_echo "$ac_try_echo") >&5
7223 (eval "$ac_link") 2>&5
7225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7227 { (case "(($ac_try" in
7228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7229 *) ac_try_echo
=$ac_try;;
7231 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7232 $as_echo "$ac_try_echo") >&5
7233 (eval "$ac_try") 2>&5
7235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
7239 $as_echo "$as_me: program exited with status $ac_status" >&5
7240 $as_echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.
$ac_ext >&5
7244 ac_cv_header_stdc
=no
7246 rm -rf conftest.dSYM
7247 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7253 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7254 $as_echo "$ac_cv_header_stdc" >&6; }
7255 if test $ac_cv_header_stdc = yes; then
7257 cat >>confdefs.h
<<\_ACEOF
7258 #define STDC_HEADERS 1
7263 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7264 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7265 if test "${ac_cv_header_time+set}" = set; then
7266 $as_echo_n "(cached) " >&6
7268 cat >conftest.
$ac_ext <<_ACEOF
7271 cat confdefs.h
>>conftest.
$ac_ext
7272 cat >>conftest.
$ac_ext <<_ACEOF
7273 /* end confdefs.h. */
7274 #include <sys/types.h>
7275 #include <sys/time.h>
7281 if ((struct tm *) 0)
7287 rm -f conftest.
$ac_objext
7288 if { (ac_try
="$ac_compile"
7290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7294 $as_echo "$ac_try_echo") >&5
7295 (eval "$ac_compile") 2>conftest.er1
7297 grep -v '^ *+' conftest.er1 >conftest.err
7299 cat conftest.err >&5
7300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && {
7302 test -z "$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7304 } && test -s conftest.$ac_objext; then
7305 ac_cv_header_time=yes
7307 $as_echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 ac_cv_header_time=no
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7316 $as_echo "$ac_cv_header_time" >&6; }
7317 if test $ac_cv_header_time = yes; then
7319 cat >>confdefs.h <<\_ACEOF
7320 #define TIME_WITH_SYS_TIME 1
7325 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7326 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7327 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7328 $as_echo_n "(cached) " >&6
7330 cat >conftest.$ac_ext <<_ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7336 $ac_includes_default
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7352 *) ac_try_echo
=$ac_try;;
7354 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7355 $as_echo "$ac_try_echo") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7358 grep -v '^ *+' conftest.er1
>conftest.err
7360 cat conftest.err
>&5
7361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.
$ac_objext; then
7366 ac_cv_have_decl_sys_siglist
=yes
7368 $as_echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.
$ac_ext >&5
7371 ac_cv_have_decl_sys_siglist
=no
7374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7376 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7377 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7378 if test $ac_cv_have_decl_sys_siglist = yes; then
7380 cat >>confdefs.h
<<_ACEOF
7381 #define HAVE_DECL_SYS_SIGLIST 1
7386 cat >>confdefs.h
<<_ACEOF
7387 #define HAVE_DECL_SYS_SIGLIST 0
7394 if test $ac_cv_have_decl_sys_siglist != yes; then
7395 # For Tru64, at least:
7396 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7397 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7398 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7399 $as_echo_n "(cached) " >&6
7401 cat >conftest.
$ac_ext <<_ACEOF
7404 cat confdefs.h
>>conftest.
$ac_ext
7405 cat >>conftest.
$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7407 $ac_includes_default
7411 #ifndef __sys_siglist
7412 (void) __sys_siglist;
7419 rm -f conftest.
$ac_objext
7420 if { (ac_try
="$ac_compile"
7422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7426 $as_echo "$ac_try_echo") >&5
7427 (eval "$ac_compile") 2>conftest.er1
7429 grep -v '^ *+' conftest.er1 >conftest.err
7431 cat conftest.err >&5
7432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } && {
7434 test -z "$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7436 } && test -s conftest.$ac_objext; then
7437 ac_cv_have_decl___sys_siglist=yes
7439 $as_echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7442 ac_cv_have_decl___sys_siglist=no
7445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7447 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7448 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7449 if test $ac_cv_have_decl___sys_siglist = yes; then
7451 cat >>confdefs.h <<_ACEOF
7452 #define HAVE_DECL___SYS_SIGLIST 1
7457 cat >>confdefs.h <<_ACEOF
7458 #define HAVE_DECL___SYS_SIGLIST 0
7465 if test $ac_cv_have_decl___sys_siglist = yes; then
7467 cat >>confdefs.h <<\_ACEOF
7468 #define sys_siglist __sys_siglist
7473 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7474 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7475 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7476 $as_echo_n "(cached) " >&6
7478 cat >conftest.$ac_ext <<_ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 #include <sys/types.h>
7485 #include <sys/wait.h>
7487 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7490 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7498 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7503 rm -f conftest.$ac_objext
7504 if { (ac_try="$ac_compile"
7506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7507 *) ac_try_echo
=$ac_try;;
7509 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7510 $as_echo "$ac_try_echo") >&5
7511 (eval "$ac_compile") 2>conftest.er1
7513 grep -v '^ *+' conftest.er1
>conftest.err
7515 cat conftest.err
>&5
7516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest.
$ac_objext; then
7521 ac_cv_header_sys_wait_h
=yes
7523 $as_echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.
$ac_ext >&5
7526 ac_cv_header_sys_wait_h
=no
7529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7532 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7533 if test $ac_cv_header_sys_wait_h = yes; then
7535 cat >>confdefs.h
<<\_ACEOF
7536 #define HAVE_SYS_WAIT_H 1
7542 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7543 $as_echo_n "checking for struct utimbuf... " >&6; }
7544 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7545 $as_echo_n "(cached) " >&6
7547 cat >conftest.
$ac_ext <<_ACEOF
7550 cat confdefs.h
>>conftest.
$ac_ext
7551 cat >>conftest.
$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7553 #ifdef TIME_WITH_SYS_TIME
7554 #include <sys/time.h>
7557 #ifdef HAVE_SYS_TIME_H
7558 #include <sys/time.h>
7569 static struct utimbuf x; x.actime = x.modtime;
7574 rm -f conftest.
$ac_objext
7575 if { (ac_try
="$ac_compile"
7577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7581 $as_echo "$ac_try_echo") >&5
7582 (eval "$ac_compile") 2>conftest.er1
7584 grep -v '^ *+' conftest.er1 >conftest.err
7586 cat conftest.err >&5
7587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } && {
7589 test -z "$ac_c_werror_flag" ||
7590 test ! -s conftest.err
7591 } && test -s conftest.$ac_objext; then
7592 emacs_cv_struct_utimbuf=yes
7594 $as_echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 emacs_cv_struct_utimbuf=no
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7603 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7604 if test $emacs_cv_struct_utimbuf = yes; then
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_STRUCT_UTIMBUF 1
7612 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7613 $as_echo_n "checking return type of signal handlers... " >&6; }
7614 if test "${ac_cv_type_signal+set}" = set; then
7615 $as_echo_n "(cached) " >&6
7617 cat >conftest.$ac_ext <<_ACEOF
7620 cat confdefs.h >>conftest.$ac_ext
7621 cat >>conftest.$ac_ext <<_ACEOF
7622 /* end confdefs.h. */
7623 #include <sys/types.h>
7629 return *(signal (0, 0)) (0) == 1;
7634 rm -f conftest.$ac_objext
7635 if { (ac_try="$ac_compile"
7637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7638 *) ac_try_echo
=$ac_try;;
7640 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7641 $as_echo "$ac_try_echo") >&5
7642 (eval "$ac_compile") 2>conftest.er1
7644 grep -v '^ *+' conftest.er1
>conftest.err
7646 cat conftest.err
>&5
7647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } && {
7649 test -z "$ac_c_werror_flag" ||
7650 test ! -s conftest.err
7651 } && test -s conftest.
$ac_objext; then
7652 ac_cv_type_signal
=int
7654 $as_echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.
$ac_ext >&5
7657 ac_cv_type_signal
=void
7660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7662 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7663 $as_echo "$ac_cv_type_signal" >&6; }
7665 cat >>confdefs.h
<<_ACEOF
7666 #define RETSIGTYPE $ac_cv_type_signal
7671 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7672 $as_echo_n "checking for speed_t... " >&6; }
7673 if test "${emacs_cv_speed_t+set}" = set; then
7674 $as_echo_n "(cached) " >&6
7676 cat >conftest.
$ac_ext <<_ACEOF
7679 cat confdefs.h
>>conftest.
$ac_ext
7680 cat >>conftest.
$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 #include <termios.h>
7691 rm -f conftest.
$ac_objext
7692 if { (ac_try
="$ac_compile"
7694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7698 $as_echo "$ac_try_echo") >&5
7699 (eval "$ac_compile") 2>conftest.er1
7701 grep -v '^ *+' conftest.er1 >conftest.err
7703 cat conftest.err >&5
7704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } && {
7706 test -z "$ac_c_werror_flag" ||
7707 test ! -s conftest.err
7708 } && test -s conftest.$ac_objext; then
7709 emacs_cv_speed_t=yes
7711 $as_echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7720 $as_echo "$emacs_cv_speed_t" >&6; }
7721 if test $emacs_cv_speed_t = yes; then
7723 cat >>confdefs.h <<\_ACEOF
7724 #define HAVE_SPEED_T 1
7729 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7730 $as_echo_n "checking for struct timeval... " >&6; }
7731 if test "${emacs_cv_struct_timeval+set}" = set; then
7732 $as_echo_n "(cached) " >&6
7734 cat >conftest.$ac_ext <<_ACEOF
7737 cat confdefs.h >>conftest.$ac_ext
7738 cat >>conftest.$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7740 #ifdef TIME_WITH_SYS_TIME
7741 #include <sys/time.h>
7744 #ifdef HAVE_SYS_TIME_H
7745 #include <sys/time.h>
7753 static struct timeval x; x.tv_sec = x.tv_usec;
7758 rm -f conftest.$ac_objext
7759 if { (ac_try="$ac_compile"
7761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7762 *) ac_try_echo
=$ac_try;;
7764 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7765 $as_echo "$ac_try_echo") >&5
7766 (eval "$ac_compile") 2>conftest.er1
7768 grep -v '^ *+' conftest.er1
>conftest.err
7770 cat conftest.err
>&5
7771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && {
7773 test -z "$ac_c_werror_flag" ||
7774 test ! -s conftest.err
7775 } && test -s conftest.
$ac_objext; then
7776 emacs_cv_struct_timeval
=yes
7778 $as_echo "$as_me: failed program was:" >&5
7779 sed 's/^/| /' conftest.
$ac_ext >&5
7781 emacs_cv_struct_timeval
=no
7784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7786 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7787 $as_echo "$emacs_cv_struct_timeval" >&6; }
7788 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
7789 if test $emacs_cv_struct_timeval = yes; then
7791 cat >>confdefs.h
<<\_ACEOF
7792 #define HAVE_TIMEVAL 1
7797 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7798 $as_echo_n "checking for struct exception... " >&6; }
7799 if test "${emacs_cv_struct_exception+set}" = set; then
7800 $as_echo_n "(cached) " >&6
7802 cat >conftest.
$ac_ext <<_ACEOF
7805 cat confdefs.h
>>conftest.
$ac_ext
7806 cat >>conftest.
$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7812 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7817 rm -f conftest.
$ac_objext
7818 if { (ac_try
="$ac_compile"
7820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7824 $as_echo "$ac_try_echo") >&5
7825 (eval "$ac_compile") 2>conftest.er1
7827 grep -v '^ *+' conftest.er1 >conftest.err
7829 cat conftest.err >&5
7830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); } && {
7832 test -z "$ac_c_werror_flag" ||
7833 test ! -s conftest.err
7834 } && test -s conftest.$ac_objext; then
7835 emacs_cv_struct_exception=yes
7837 $as_echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7840 emacs_cv_struct_exception=no
7843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7846 $as_echo "$emacs_cv_struct_exception" >&6; }
7847 HAVE_EXCEPTION=$emacs_cv_struct_exception
7848 if test $emacs_cv_struct_exception != yes; then
7850 cat >>confdefs.h <<\_ACEOF
7851 #define NO_MATHERR 1
7857 for ac_header in sys/socket.h
7859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7861 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7862 $as_echo_n "checking for $ac_header... " >&6; }
7863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7864 $as_echo_n "(cached) " >&6
7866 ac_res=`eval 'as_val=${'$as_ac_Header'}
7867 $as_echo "$as_val"'`
7868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7869 $as_echo "$ac_res" >&6; }
7871 # Is the header compilable?
7872 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7873 $as_echo_n "checking $ac_header usability... " >&6; }
7874 cat >conftest.$ac_ext <<_ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 $ac_includes_default
7881 #include <$ac_header>
7883 rm -f conftest.$ac_objext
7884 if { (ac_try="$ac_compile"
7886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7887 *) ac_try_echo
=$ac_try;;
7889 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7890 $as_echo "$ac_try_echo") >&5
7891 (eval "$ac_compile") 2>conftest.er1
7893 grep -v '^ *+' conftest.er1
>conftest.err
7895 cat conftest.err
>&5
7896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
7900 } && test -s conftest.
$ac_objext; then
7901 ac_header_compiler
=yes
7903 $as_echo "$as_me: failed program was:" >&5
7904 sed 's/^/| /' conftest.
$ac_ext >&5
7906 ac_header_compiler
=no
7909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7910 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7911 $as_echo "$ac_header_compiler" >&6; }
7913 # Is the header present?
7914 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7915 $as_echo_n "checking $ac_header presence... " >&6; }
7916 cat >conftest.
$ac_ext <<_ACEOF
7919 cat confdefs.h
>>conftest.
$ac_ext
7920 cat >>conftest.
$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 #include <$ac_header>
7924 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7930 $as_echo "$ac_try_echo") >&5
7931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7933 grep -v '^ *+' conftest.er1 >conftest.err
7935 cat conftest.err >&5
7936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } >/dev/null && {
7938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7939 test ! -s conftest.err
7941 ac_header_preproc=yes
7943 $as_echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7946 ac_header_preproc=no
7949 rm -f conftest.err conftest.$ac_ext
7950 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7951 $as_echo "$ac_header_preproc" >&6; }
7953 # So? What about this header?
7954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7957 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7959 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7960 ac_header_preproc=yes
7963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7964 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7966 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7968 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7970 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7972 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7974 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7978 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7979 $as_echo_n "checking for $ac_header... " >&6; }
7980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7981 $as_echo_n "(cached) " >&6
7983 eval "$as_ac_Header=\$ac_header_preproc"
7985 ac_res=`eval 'as_val=${'$as_ac_Header'}
7986 $as_echo "$as_val"'`
7987 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7988 $as_echo "$ac_res" >&6; }
7991 if test `eval 'as_val=${'$as_ac_Header'}
7992 $as_echo "$as_val"'` = yes; then
7993 cat >>confdefs.h <<_ACEOF
7994 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8002 for ac_header in net/if.h
8004 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
8005 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8006 $as_echo_n "checking for $ac_header... " >&6; }
8007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8008 $as_echo_n "(cached) " >&6
8010 cat >conftest.$ac_ext <<_ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 $ac_includes_default
8017 #if HAVE_SYS_SOCKET_H
8018 #include <sys/socket.h>
8021 #include <$ac_header>
8023 rm -f conftest.$ac_objext
8024 if { (ac_try="$ac_compile"
8026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8027 *) ac_try_echo
=$ac_try;;
8029 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8030 $as_echo "$ac_try_echo") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8033 grep -v '^ *+' conftest.er1
>conftest.err
8035 cat conftest.err
>&5
8036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.
$ac_objext; then
8041 eval "$as_ac_Header=yes"
8043 $as_echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.
$ac_ext >&5
8046 eval "$as_ac_Header=no"
8049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8051 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8052 $as_echo "$as_val"'`
8053 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8054 $as_echo "$ac_res" >&6; }
8055 if test `eval 'as_val=${'$as_ac_Header'}
8056 $as_echo "$as_val"'` = yes; then
8057 cat >>confdefs.h
<<_ACEOF
8058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8066 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8067 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8068 if test "${ac_cv_struct_tm+set}" = set; then
8069 $as_echo_n "(cached) " >&6
8071 cat >conftest.
$ac_ext <<_ACEOF
8074 cat confdefs.h
>>conftest.
$ac_ext
8075 cat >>conftest.
$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 #include <sys/types.h>
8084 int *p = &tm.tm_sec;
8090 rm -f conftest.
$ac_objext
8091 if { (ac_try
="$ac_compile"
8093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8097 $as_echo "$ac_try_echo") >&5
8098 (eval "$ac_compile") 2>conftest.er1
8100 grep -v '^ *+' conftest.er1 >conftest.err
8102 cat conftest.err >&5
8103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } && {
8105 test -z "$ac_c_werror_flag" ||
8106 test ! -s conftest.err
8107 } && test -s conftest.$ac_objext; then
8108 ac_cv_struct_tm=time.h
8110 $as_echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 ac_cv_struct_tm=sys/time.h
8116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8118 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8119 $as_echo "$ac_cv_struct_tm" >&6; }
8120 if test $ac_cv_struct_tm = sys/time.h; then
8122 cat >>confdefs.h <<\_ACEOF
8123 #define TM_IN_SYS_TIME 1
8128 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8129 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8130 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8131 $as_echo_n "(cached) " >&6
8133 cat >conftest.$ac_ext <<_ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8139 #include <sys/types.h>
8140 #include <$ac_cv_struct_tm>
8146 static struct tm ac_aggr;
8147 if (ac_aggr.tm_zone)
8153 rm -f conftest.$ac_objext
8154 if { (ac_try="$ac_compile"
8156 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8157 *) ac_try_echo
=$ac_try;;
8159 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8160 $as_echo "$ac_try_echo") >&5
8161 (eval "$ac_compile") 2>conftest.er1
8163 grep -v '^ *+' conftest.er1
>conftest.err
8165 cat conftest.err
>&5
8166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } && {
8168 test -z "$ac_c_werror_flag" ||
8169 test ! -s conftest.err
8170 } && test -s conftest.
$ac_objext; then
8171 ac_cv_member_struct_tm_tm_zone
=yes
8173 $as_echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.
$ac_ext >&5
8176 cat >conftest.
$ac_ext <<_ACEOF
8179 cat confdefs.h
>>conftest.
$ac_ext
8180 cat >>conftest.
$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 #include <sys/types.h>
8183 #include <$ac_cv_struct_tm>
8189 static struct tm ac_aggr;
8190 if (sizeof ac_aggr.tm_zone)
8196 rm -f conftest.
$ac_objext
8197 if { (ac_try
="$ac_compile"
8199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8200 *) ac_try_echo=$ac_try;;
8202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8203 $as_echo "$ac_try_echo") >&5
8204 (eval "$ac_compile") 2>conftest.er1
8206 grep -v '^ *+' conftest.er1 >conftest.err
8208 cat conftest.err >&5
8209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } && {
8211 test -z "$ac_c_werror_flag" ||
8212 test ! -s conftest.err
8213 } && test -s conftest.$ac_objext; then
8214 ac_cv_member_struct_tm_tm_zone=yes
8216 $as_echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8219 ac_cv_member_struct_tm_tm_zone=no
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8227 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8228 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8229 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8231 cat >>confdefs.h <<_ACEOF
8232 #define HAVE_STRUCT_TM_TM_ZONE 1
8238 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8240 cat >>confdefs.h <<\_ACEOF
8241 #define HAVE_TM_ZONE 1
8245 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8246 $as_echo_n "checking whether tzname is declared... " >&6; }
8247 if test "${ac_cv_have_decl_tzname+set}" = set; then
8248 $as_echo_n "(cached) " >&6
8250 cat >conftest.$ac_ext <<_ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8269 rm -f conftest.$ac_objext
8270 if { (ac_try="$ac_compile"
8272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8273 *) ac_try_echo
=$ac_try;;
8275 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8276 $as_echo "$ac_try_echo") >&5
8277 (eval "$ac_compile") 2>conftest.er1
8279 grep -v '^ *+' conftest.er1
>conftest.err
8281 cat conftest.err
>&5
8282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } && {
8284 test -z "$ac_c_werror_flag" ||
8285 test ! -s conftest.err
8286 } && test -s conftest.
$ac_objext; then
8287 ac_cv_have_decl_tzname
=yes
8289 $as_echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.
$ac_ext >&5
8292 ac_cv_have_decl_tzname
=no
8295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8297 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8298 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8299 if test $ac_cv_have_decl_tzname = yes; then
8301 cat >>confdefs.h
<<_ACEOF
8302 #define HAVE_DECL_TZNAME 1
8307 cat >>confdefs.h
<<_ACEOF
8308 #define HAVE_DECL_TZNAME 0
8315 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8316 $as_echo_n "checking for tzname... " >&6; }
8317 if test "${ac_cv_var_tzname+set}" = set; then
8318 $as_echo_n "(cached) " >&6
8320 cat >conftest.
$ac_ext <<_ACEOF
8323 cat confdefs.h
>>conftest.
$ac_ext
8324 cat >>conftest.
$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8327 #if !HAVE_DECL_TZNAME
8328 extern char *tzname[];
8334 return tzname[0][0];
8339 rm -f conftest.
$ac_objext conftest
$ac_exeext
8340 if { (ac_try
="$ac_link"
8342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8346 $as_echo "$ac_try_echo") >&5
8347 (eval "$ac_link") 2>conftest.er1
8349 grep -v '^ *+' conftest.er1 >conftest.err
8351 cat conftest.err >&5
8352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } && {
8354 test -z "$ac_c_werror_flag" ||
8355 test ! -s conftest.err
8356 } && test -s conftest$ac_exeext && {
8357 test "$cross_compiling" = yes ||
8358 $as_test_x conftest$ac_exeext
8360 ac_cv_var_tzname=yes
8362 $as_echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8368 rm -rf conftest.dSYM
8369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8370 conftest$ac_exeext conftest.$ac_ext
8372 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8373 $as_echo "$ac_cv_var_tzname" >&6; }
8374 if test $ac_cv_var_tzname = yes; then
8376 cat >>confdefs.h <<\_ACEOF
8377 #define HAVE_TZNAME 1
8383 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8384 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8385 if test "${ac_cv_member_struct_tm_tm_gmtoff+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. */
8399 static struct tm ac_aggr;
8400 if (ac_aggr.tm_gmtoff)
8406 rm -f conftest.$ac_objext
8407 if { (ac_try="$ac_compile"
8409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8410 *) ac_try_echo
=$ac_try;;
8412 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8413 $as_echo "$ac_try_echo") >&5
8414 (eval "$ac_compile") 2>conftest.er1
8416 grep -v '^ *+' conftest.er1
>conftest.err
8418 cat conftest.err
>&5
8419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && {
8421 test -z "$ac_c_werror_flag" ||
8422 test ! -s conftest.err
8423 } && test -s conftest.
$ac_objext; then
8424 ac_cv_member_struct_tm_tm_gmtoff
=yes
8426 $as_echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.
$ac_ext >&5
8429 cat >conftest.
$ac_ext <<_ACEOF
8432 cat confdefs.h
>>conftest.
$ac_ext
8433 cat >>conftest.
$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8440 static struct tm ac_aggr;
8441 if (sizeof ac_aggr.tm_gmtoff)
8447 rm -f conftest.
$ac_objext
8448 if { (ac_try
="$ac_compile"
8450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8454 $as_echo "$ac_try_echo") >&5
8455 (eval "$ac_compile") 2>conftest.er1
8457 grep -v '^ *+' conftest.er1 >conftest.err
8459 cat conftest.err >&5
8460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && {
8462 test -z "$ac_c_werror_flag" ||
8463 test ! -s conftest.err
8464 } && test -s conftest.$ac_objext; then
8465 ac_cv_member_struct_tm_tm_gmtoff=yes
8467 $as_echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 ac_cv_member_struct_tm_tm_gmtoff=no
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8479 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8480 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8482 cat >>confdefs.h <<\_ACEOF
8483 #define HAVE_TM_GMTOFF 1
8488 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8489 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8490 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8491 $as_echo_n "(cached) " >&6
8493 cat >conftest.$ac_ext <<_ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 $ac_includes_default
8500 #if HAVE_SYS_SOCKET_H
8501 #include <sys/socket.h>
8510 static struct ifreq ac_aggr;
8511 if (ac_aggr.ifr_flags)
8517 rm -f conftest.$ac_objext
8518 if { (ac_try="$ac_compile"
8520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8521 *) ac_try_echo
=$ac_try;;
8523 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8524 $as_echo "$ac_try_echo") >&5
8525 (eval "$ac_compile") 2>conftest.er1
8527 grep -v '^ *+' conftest.er1
>conftest.err
8529 cat conftest.err
>&5
8530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_c_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest.
$ac_objext; then
8535 ac_cv_member_struct_ifreq_ifr_flags
=yes
8537 $as_echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.
$ac_ext >&5
8540 cat >conftest.
$ac_ext <<_ACEOF
8543 cat confdefs.h
>>conftest.
$ac_ext
8544 cat >>conftest.
$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 $ac_includes_default
8547 #if HAVE_SYS_SOCKET_H
8548 #include <sys/socket.h>
8557 static struct ifreq ac_aggr;
8558 if (sizeof ac_aggr.ifr_flags)
8564 rm -f conftest.
$ac_objext
8565 if { (ac_try
="$ac_compile"
8567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8571 $as_echo "$ac_try_echo") >&5
8572 (eval "$ac_compile") 2>conftest.er1
8574 grep -v '^ *+' conftest.er1 >conftest.err
8576 cat conftest.err >&5
8577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } && {
8579 test -z "$ac_c_werror_flag" ||
8580 test ! -s conftest.err
8581 } && test -s conftest.$ac_objext; then
8582 ac_cv_member_struct_ifreq_ifr_flags=yes
8584 $as_echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 ac_cv_member_struct_ifreq_ifr_flags=no
8590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8596 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8597 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8599 cat >>confdefs.h <<_ACEOF
8600 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8605 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8606 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8607 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8608 $as_echo_n "(cached) " >&6
8610 cat >conftest.$ac_ext <<_ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8616 $ac_includes_default
8617 #if HAVE_SYS_SOCKET_H
8618 #include <sys/socket.h>
8627 static struct ifreq ac_aggr;
8628 if (ac_aggr.ifr_hwaddr)
8634 rm -f conftest.$ac_objext
8635 if { (ac_try="$ac_compile"
8637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8638 *) ac_try_echo
=$ac_try;;
8640 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8641 $as_echo "$ac_try_echo") >&5
8642 (eval "$ac_compile") 2>conftest.er1
8644 grep -v '^ *+' conftest.er1
>conftest.err
8646 cat conftest.err
>&5
8647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } && {
8649 test -z "$ac_c_werror_flag" ||
8650 test ! -s conftest.err
8651 } && test -s conftest.
$ac_objext; then
8652 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8654 $as_echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.
$ac_ext >&5
8657 cat >conftest.
$ac_ext <<_ACEOF
8660 cat confdefs.h
>>conftest.
$ac_ext
8661 cat >>conftest.
$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8663 $ac_includes_default
8664 #if HAVE_SYS_SOCKET_H
8665 #include <sys/socket.h>
8674 static struct ifreq ac_aggr;
8675 if (sizeof ac_aggr.ifr_hwaddr)
8681 rm -f conftest.
$ac_objext
8682 if { (ac_try
="$ac_compile"
8684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8685 *) ac_try_echo=$ac_try;;
8687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8688 $as_echo "$ac_try_echo") >&5
8689 (eval "$ac_compile") 2>conftest.er1
8691 grep -v '^ *+' conftest.er1 >conftest.err
8693 cat conftest.err >&5
8694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && {
8696 test -z "$ac_c_werror_flag" ||
8697 test ! -s conftest.err
8698 } && test -s conftest.$ac_objext; then
8699 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8701 $as_echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8704 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8713 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8714 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8716 cat >>confdefs.h <<_ACEOF
8717 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8722 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8723 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8724 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8725 $as_echo_n "(cached) " >&6
8727 cat >conftest.$ac_ext <<_ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8733 $ac_includes_default
8734 #if HAVE_SYS_SOCKET_H
8735 #include <sys/socket.h>
8744 static struct ifreq ac_aggr;
8745 if (ac_aggr.ifr_netmask)
8751 rm -f conftest.$ac_objext
8752 if { (ac_try="$ac_compile"
8754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8755 *) ac_try_echo
=$ac_try;;
8757 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8758 $as_echo "$ac_try_echo") >&5
8759 (eval "$ac_compile") 2>conftest.er1
8761 grep -v '^ *+' conftest.er1
>conftest.err
8763 cat conftest.err
>&5
8764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } && {
8766 test -z "$ac_c_werror_flag" ||
8767 test ! -s conftest.err
8768 } && test -s conftest.
$ac_objext; then
8769 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8771 $as_echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.
$ac_ext >&5
8774 cat >conftest.
$ac_ext <<_ACEOF
8777 cat confdefs.h
>>conftest.
$ac_ext
8778 cat >>conftest.
$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 $ac_includes_default
8781 #if HAVE_SYS_SOCKET_H
8782 #include <sys/socket.h>
8791 static struct ifreq ac_aggr;
8792 if (sizeof ac_aggr.ifr_netmask)
8798 rm -f conftest.
$ac_objext
8799 if { (ac_try
="$ac_compile"
8801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8805 $as_echo "$ac_try_echo") >&5
8806 (eval "$ac_compile") 2>conftest.er1
8808 grep -v '^ *+' conftest.er1 >conftest.err
8810 cat conftest.err >&5
8811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } && {
8813 test -z "$ac_c_werror_flag" ||
8814 test ! -s conftest.err
8815 } && test -s conftest.$ac_objext; then
8816 ac_cv_member_struct_ifreq_ifr_netmask=yes
8818 $as_echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8821 ac_cv_member_struct_ifreq_ifr_netmask=no
8824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8830 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8831 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8833 cat >>confdefs.h <<_ACEOF
8834 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8839 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8840 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8841 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8842 $as_echo_n "(cached) " >&6
8844 cat >conftest.$ac_ext <<_ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8850 $ac_includes_default
8851 #if HAVE_SYS_SOCKET_H
8852 #include <sys/socket.h>
8861 static struct ifreq ac_aggr;
8862 if (ac_aggr.ifr_broadaddr)
8868 rm -f conftest.$ac_objext
8869 if { (ac_try="$ac_compile"
8871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8872 *) ac_try_echo
=$ac_try;;
8874 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8875 $as_echo "$ac_try_echo") >&5
8876 (eval "$ac_compile") 2>conftest.er1
8878 grep -v '^ *+' conftest.er1
>conftest.err
8880 cat conftest.err
>&5
8881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } && {
8883 test -z "$ac_c_werror_flag" ||
8884 test ! -s conftest.err
8885 } && test -s conftest.
$ac_objext; then
8886 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8888 $as_echo "$as_me: failed program was:" >&5
8889 sed 's/^/| /' conftest.
$ac_ext >&5
8891 cat >conftest.
$ac_ext <<_ACEOF
8894 cat confdefs.h
>>conftest.
$ac_ext
8895 cat >>conftest.
$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 $ac_includes_default
8898 #if HAVE_SYS_SOCKET_H
8899 #include <sys/socket.h>
8908 static struct ifreq ac_aggr;
8909 if (sizeof ac_aggr.ifr_broadaddr)
8915 rm -f conftest.
$ac_objext
8916 if { (ac_try
="$ac_compile"
8918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8922 $as_echo "$ac_try_echo") >&5
8923 (eval "$ac_compile") 2>conftest.er1
8925 grep -v '^ *+' conftest.er1 >conftest.err
8927 cat conftest.err >&5
8928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } && {
8930 test -z "$ac_c_werror_flag" ||
8931 test ! -s conftest.err
8932 } && test -s conftest.$ac_objext; then
8933 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8935 $as_echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8938 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8947 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8948 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8950 cat >>confdefs.h <<_ACEOF
8951 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8956 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8957 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8958 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8959 $as_echo_n "(cached) " >&6
8961 cat >conftest.$ac_ext <<_ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8967 $ac_includes_default
8968 #if HAVE_SYS_SOCKET_H
8969 #include <sys/socket.h>
8978 static struct ifreq ac_aggr;
8979 if (ac_aggr.ifr_addr)
8985 rm -f conftest.$ac_objext
8986 if { (ac_try="$ac_compile"
8988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8989 *) ac_try_echo
=$ac_try;;
8991 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8992 $as_echo "$ac_try_echo") >&5
8993 (eval "$ac_compile") 2>conftest.er1
8995 grep -v '^ *+' conftest.er1
>conftest.err
8997 cat conftest.err
>&5
8998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } && {
9000 test -z "$ac_c_werror_flag" ||
9001 test ! -s conftest.err
9002 } && test -s conftest.
$ac_objext; then
9003 ac_cv_member_struct_ifreq_ifr_addr
=yes
9005 $as_echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.
$ac_ext >&5
9008 cat >conftest.
$ac_ext <<_ACEOF
9011 cat confdefs.h
>>conftest.
$ac_ext
9012 cat >>conftest.
$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 $ac_includes_default
9015 #if HAVE_SYS_SOCKET_H
9016 #include <sys/socket.h>
9025 static struct ifreq ac_aggr;
9026 if (sizeof ac_aggr.ifr_addr)
9032 rm -f conftest.
$ac_objext
9033 if { (ac_try
="$ac_compile"
9035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9036 *) ac_try_echo=$ac_try;;
9038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9039 $as_echo "$ac_try_echo") >&5
9040 (eval "$ac_compile") 2>conftest.er1
9042 grep -v '^ *+' conftest.er1 >conftest.err
9044 cat conftest.err >&5
9045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } && {
9047 test -z "$ac_c_werror_flag" ||
9048 test ! -s conftest.err
9049 } && test -s conftest.$ac_objext; then
9050 ac_cv_member_struct_ifreq_ifr_addr=yes
9052 $as_echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9055 ac_cv_member_struct_ifreq_ifr_addr=no
9058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9064 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9065 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9067 cat >>confdefs.h <<_ACEOF
9068 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9076 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9077 $as_echo_n "checking for function prototypes... " >&6; }
9078 if test "$ac_cv_prog_cc_c89" != no; then
9079 { $as_echo "$as_me:$LINENO: result: yes" >&5
9080 $as_echo "yes" >&6; }
9082 cat >>confdefs.h <<\_ACEOF
9083 #define PROTOTYPES 1
9087 cat >>confdefs.h <<\_ACEOF
9088 #define __PROTOTYPES 1
9092 { $as_echo "$as_me:$LINENO: result: no" >&5
9093 $as_echo "no" >&6; }
9096 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9097 $as_echo_n "checking for working volatile... " >&6; }
9098 if test "${ac_cv_c_volatile+set}" = set; then
9099 $as_echo_n "(cached) " >&6
9101 cat >conftest.$ac_ext <<_ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9113 int * volatile y = (int *) 0;
9119 rm -f conftest.$ac_objext
9120 if { (ac_try="$ac_compile"
9122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9123 *) ac_try_echo
=$ac_try;;
9125 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9126 $as_echo "$ac_try_echo") >&5
9127 (eval "$ac_compile") 2>conftest.er1
9129 grep -v '^ *+' conftest.er1
>conftest.err
9131 cat conftest.err
>&5
9132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } && {
9134 test -z "$ac_c_werror_flag" ||
9135 test ! -s conftest.err
9136 } && test -s conftest.
$ac_objext; then
9137 ac_cv_c_volatile
=yes
9139 $as_echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.
$ac_ext >&5
9145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9147 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9148 $as_echo "$ac_cv_c_volatile" >&6; }
9149 if test $ac_cv_c_volatile = no
; then
9151 cat >>confdefs.h
<<\_ACEOF
9152 #define volatile /**/
9157 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9158 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9159 if test "${ac_cv_c_const+set}" = set; then
9160 $as_echo_n "(cached) " >&6
9162 cat >conftest.
$ac_ext <<_ACEOF
9165 cat confdefs.h
>>conftest.
$ac_ext
9166 cat >>conftest.
$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9172 /* FIXME: Include the comments suggested by Paul. */
9174 /* Ultrix mips cc rejects this. */
9175 typedef int charset[2];
9177 /* SunOS 4.1.1 cc rejects this. */
9178 char const *const *pcpcc;
9180 /* NEC SVR4.0.2 mips cc rejects this. */
9181 struct point {int x, y;};
9182 static struct point const zero = {0,0};
9183 /* AIX XL C 1.02.0.0 rejects this.
9184 It does not let you subtract one const X* pointer from another in
9185 an arm of an if-expression whose if-part is not a constant
9187 const char *g = "string";
9188 pcpcc = &g + (g ? g-g : 0);
9189 /* HPUX 7.0 cc rejects these. */
9191 ppc = (char**) pcpcc;
9192 pcpcc = (char const *const *) ppc;
9193 { /* SCO 3.2v4 cc rejects this. */
9195 char const *s = 0 ? (char *) 0 : (char const *) 0;
9200 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9202 const int *foo = &x[0];
9205 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9206 typedef const int *iptr;
9210 { /* AIX XL C 1.02.0.0 rejects this saying
9211 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9212 struct s { int j; const int *ap[3]; };
9213 struct s *b; b->j = 5;
9215 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9219 return !cs[0] && !zero.x;
9226 rm -f conftest.
$ac_objext
9227 if { (ac_try
="$ac_compile"
9229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9233 $as_echo "$ac_try_echo") >&5
9234 (eval "$ac_compile") 2>conftest.er1
9236 grep -v '^ *+' conftest.er1 >conftest.err
9238 cat conftest.err >&5
9239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } && {
9241 test -z "$ac_c_werror_flag" ||
9242 test ! -s conftest.err
9243 } && test -s conftest.$ac_objext; then
9246 $as_echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9255 $as_echo "$ac_cv_c_const" >&6; }
9256 if test $ac_cv_c_const = no; then
9258 cat >>confdefs.h <<\_ACEOF
9264 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9265 $as_echo_n "checking for void * support... " >&6; }
9266 if test "${emacs_cv_void_star+set}" = set; then
9267 $as_echo_n "(cached) " >&6
9269 cat >conftest.$ac_ext <<_ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9284 rm -f conftest.$ac_objext
9285 if { (ac_try="$ac_compile"
9287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9288 *) ac_try_echo
=$ac_try;;
9290 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9291 $as_echo "$ac_try_echo") >&5
9292 (eval "$ac_compile") 2>conftest.er1
9294 grep -v '^ *+' conftest.er1
>conftest.err
9296 cat conftest.err
>&5
9297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } && {
9299 test -z "$ac_c_werror_flag" ||
9300 test ! -s conftest.err
9301 } && test -s conftest.
$ac_objext; then
9302 emacs_cv_void_star
=yes
9304 $as_echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.
$ac_ext >&5
9307 emacs_cv_void_star
=no
9310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9312 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9313 $as_echo "$emacs_cv_void_star" >&6; }
9314 if test $emacs_cv_void_star = yes; then
9315 cat >>confdefs.h
<<\_ACEOF
9316 #define POINTER_TYPE void
9320 cat >>confdefs.h
<<\_ACEOF
9321 #define POINTER_TYPE char
9330 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9331 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9333 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9334 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9335 $as_echo_n "(cached) " >&6
9337 cat >conftest.
make <<\_ACEOF
9340 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9342 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9343 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9345 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9347 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9351 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9352 { $as_echo "$as_me:$LINENO: result: yes" >&5
9353 $as_echo "yes" >&6; }
9356 { $as_echo "$as_me:$LINENO: result: no" >&5
9357 $as_echo "no" >&6; }
9358 SET_MAKE
="MAKE=${MAKE-make}"
9362 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9363 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9364 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9366 testval
=`make --version 2>/dev/null | grep 'GNU Make'`
9367 if test "x$testval" != x
; then
9370 ac_enable_autodepend
=no
9372 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9373 $as_echo "$HAVE_GNU_MAKE" >&6; }
9374 if test $HAVE_GNU_MAKE = yes; then
9375 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9376 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9377 SAVE_CFLAGS
="$CFLAGS"
9378 CFLAGS
="$CFLAGS -MMD -MF deps.d"
9379 cat >conftest.
$ac_ext <<_ACEOF
9382 cat confdefs.h
>>conftest.
$ac_ext
9383 cat >>conftest.
$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9394 rm -f conftest.
$ac_objext
9395 if { (ac_try
="$ac_compile"
9397 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9398 *) ac_try_echo=$ac_try;;
9400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9401 $as_echo "$ac_try_echo") >&5
9402 (eval "$ac_compile") 2>conftest.er1
9404 grep -v '^ *+' conftest.er1 >conftest.err
9406 cat conftest.err >&5
9407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } && {
9409 test -z "$ac_c_werror_flag" ||
9410 test ! -s conftest.err
9411 } && test -s conftest.$ac_objext; then
9414 $as_echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9417 ac_enable_autodepend=no
9420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9421 CFLAGS="$SAVE_CFLAGS"
9422 test -f deps.d || ac_enable_autodepend=no
9424 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9425 $as_echo "$ac_enable_autodepend" >&6; }
9427 if test $ac_enable_autodepend = yes; then
9429 cat >>confdefs.h <<\_ACEOF
9430 #define AUTO_DEPEND 1
9436 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9437 $as_echo_n "checking for long file names... " >&6; }
9438 if test "${ac_cv_sys_long_file_names+set}" = set; then
9439 $as_echo_n "(cached) " >&6
9441 ac_cv_sys_long_file_names=yes
9442 # Test for long file names in all the places we know might matter:
9443 # . the current directory, where building will happen
9444 # $prefix/lib where we will be installing things
9445 # $exec_prefix/lib likewise
9446 # $TMPDIR if set, where it might want to write temporary files
9447 # /tmp where it might want to write temporary files
9450 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9451 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9452 # in the usual case where exec_prefix is '${prefix}'.
9454 . | /* | ?:[\\/]*) ;; #(
9457 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9458 ac_xdir=$ac_dir/cf$$
9459 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9460 ac_tf1=$ac_xdir/conftest9012345
9461 ac_tf2=$ac_xdir/conftest9012346
9462 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9463 ac_cv_sys_long_file_names=no
9464 rm -f -r "$ac_xdir" 2>/dev/null
9465 test $ac_cv_sys_long_file_names = no && break
9468 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9469 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9470 if test $ac_cv_sys_long_file_names = yes; then
9472 cat >>confdefs.h <<\_ACEOF
9473 #define HAVE_LONG_FILE_NAMES 1
9479 #### Choose a window system.
9481 { $as_echo "$as_me:$LINENO: checking for X" >&5
9482 $as_echo_n "checking for X... " >&6; }
9485 # Check whether --with-x was given.
9486 if test "${with_x+set}" = set; then
9490 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9491 if test "x$with_x" = xno; then
9492 # The user explicitly disabled X.
9495 case $x_includes,$x_libraries in #(
9496 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9497 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9498 { (exit 1); exit 1; }; };; #(
9499 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9500 $as_echo_n "(cached) " >&6
9502 # One or both of the vars are not set, and there is no cached value.
9503 ac_x_includes=no ac_x_libraries=no
9504 rm -f -r conftest.dir
9505 if mkdir conftest.dir; then
9507 cat >Imakefile <<'_ACEOF'
9509 @echo incroot='${INCROOT}'
9511 @echo usrlibdir='${USRLIBDIR}'
9513 @echo libdir='${LIBDIR}'
9515 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9516 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9517 for ac_var in incroot usrlibdir libdir; do
9518 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9520 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9521 for ac_extension in a so sl dylib la dll; do
9522 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9523 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9524 ac_im_usrlibdir=$ac_im_libdir; break
9527 # Screen out bogus values from the imake configuration. They are
9528 # bogus both because they are the default anyway, and because
9529 # using them would break gcc on systems where it needs fixed includes.
9530 case $ac_im_incroot in
9531 /usr/include) ac_x_includes= ;;
9532 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9534 case $ac_im_usrlibdir in
9536 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9540 rm -f -r conftest.dir
9543 # Standard set of common directories for X headers.
9544 # Check X11 before X11Rn because it is often a symlink to the current release.
9556 /usr/local/X11/include
9557 /usr/local/X11R6/include
9558 /usr/local/X11R5/include
9559 /usr/local/X11R4/include
9561 /usr/local/include/X11
9562 /usr/local/include/X11R6
9563 /usr/local/include/X11R5
9564 /usr/local/include/X11R4
9568 /usr/XFree86/include/X11
9572 /usr/unsupported/include
9574 /usr/local/x11r5/include
9575 /usr/lpp/Xamples/include
9577 /usr/openwin/include
9578 /usr/openwin/share/include'
9580 if test "$ac_x_includes" = no; then
9581 # Guess where to find include files, by looking for Xlib.h.
9582 # First, try using that file with no special directory specified.
9583 cat >conftest.$ac_ext <<_ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9589 #include <X11/Xlib.h>
9591 if { (ac_try="$ac_cpp conftest.$ac_ext"
9593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9594 *) ac_try_echo
=$ac_try;;
9596 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9597 $as_echo "$ac_try_echo") >&5
9598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9600 grep -v '^ *+' conftest.er1
>conftest.err
9602 cat conftest.err
>&5
9603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } >/dev
/null
&& {
9605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9606 test ! -s conftest.err
9608 # We can compile using X headers with no special include directory.
9611 $as_echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.
$ac_ext >&5
9614 for ac_dir
in $ac_x_header_dirs; do
9615 if test -r "$ac_dir/X11/Xlib.h"; then
9616 ac_x_includes
=$ac_dir
9622 rm -f conftest.err conftest.
$ac_ext
9623 fi # $ac_x_includes = no
9625 if test "$ac_x_libraries" = no
; then
9626 # Check for the libraries.
9627 # See if we find them without any special options.
9628 # Don't add to $LIBS permanently.
9631 cat >conftest.
$ac_ext <<_ACEOF
9634 cat confdefs.h
>>conftest.
$ac_ext
9635 cat >>conftest.
$ac_ext <<_ACEOF
9636 /* end confdefs.h. */
9637 #include <X11/Xlib.h>
9646 rm -f conftest.
$ac_objext conftest
$ac_exeext
9647 if { (ac_try
="$ac_link"
9649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9653 $as_echo "$ac_try_echo") >&5
9654 (eval "$ac_link") 2>conftest.er1
9656 grep -v '^ *+' conftest.er1 >conftest.err
9658 cat conftest.err >&5
9659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && {
9661 test -z "$ac_c_werror_flag" ||
9662 test ! -s conftest.err
9663 } && test -s conftest$ac_exeext && {
9664 test "$cross_compiling" = yes ||
9665 $as_test_x conftest$ac_exeext
9668 # We can link X programs with no special library path.
9671 $as_echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9675 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9677 # Don't even attempt the hair of trying to link an X program!
9678 for ac_extension in a so sl dylib la dll; do
9679 if test -r "$ac_dir/libX11.$ac_extension"; then
9680 ac_x_libraries=$ac_dir
9687 rm -rf conftest.dSYM
9688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9689 conftest$ac_exeext conftest.$ac_ext
9690 fi # $ac_x_libraries = no
9692 case $ac_x_includes,$ac_x_libraries in #(
9694 # Didn't find X, or a directory has "'" in its name.
9695 ac_cv_have_x="have_x=no";; #(
9697 # Record where we found X for the cache.
9698 ac_cv_have_x="have_x=yes\
9699 ac_x_includes='$ac_x_includes'\
9700 ac_x_libraries='$ac_x_libraries'"
9706 eval "$ac_cv_have_x"
9709 if test "$have_x" != yes; then
9710 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9711 $as_echo "$have_x" >&6; }
9714 # If each of the values was on the command line, it overrides each guess.
9715 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9716 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9717 # Update the cache value to reflect the command line values.
9718 ac_cv_have_x="have_x=yes\
9719 ac_x_includes='$x_includes'\
9720 ac_x_libraries='$x_libraries'"
9721 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9722 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9725 if test "$no_x" = yes; then
9731 ## Workaround for bug in autoconf <= 2.62.
9732 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9733 ## No need to do anything special for these standard directories.
9734 ## This is an experiment, take it out if it causes problems.
9735 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9737 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9741 if test "${x_libraries}" != NONE; then
9742 if test -n "${x_libraries}"; then
9743 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9744 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9746 x_default_search_path=""
9747 x_search_path=${x_libraries}
9748 if test -z "${x_search_path}"; then
9749 x_search_path=/usr/lib
9751 for x_library in `echo ${x_search_path}: | \
9752 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9754 ${x_library}/X11/%L/%T/%N%C%S:\
9755 ${x_library}/X11/%l/%T/%N%C%S:\
9756 ${x_library}/X11/%T/%N%C%S:\
9757 ${x_library}/X11/%L/%T/%N%S:\
9758 ${x_library}/X11/%l/%T/%N%S:\
9759 ${x_library}/X11/%T/%N%S"
9760 if test x"${x_default_search_path}" = x; then
9761 x_default_search_path=${x_search_path}
9763 x_default_search_path="${x_search_path}:${x_default_search_path}"
9767 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9768 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9771 if test x"${x_includes}" = x; then
9772 bitmapdir=/usr/include/X11/bitmaps
9774 # accumulate include directories that have X11 bitmap subdirectories
9776 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9777 if test -d "${bmd}/X11/bitmaps"; then
9778 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9780 if test -d "${bmd}/bitmaps"; then
9781 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9784 if test ${bmd_acc} != "dummyval"; then
9785 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9792 tmp_CPPFLAGS="$CPPFLAGS"
9793 tmp_CFLAGS="$CFLAGS"
9794 CPPFLAGS="$CPPFLAGS -x objective-c"
9795 CFLAGS="$CFLAGS -x objective-c"
9796 if test "${with_ns}" != no; then
9797 if test "${opsys}" = darwin; then
9799 ns_appdir=`pwd`/nextstep/Emacs.app
9800 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9801 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9802 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9803 elif test -f $GNUSTEP_CONFIG_FILE; then
9805 ns_appdir=`pwd`/nextstep/Emacs.app
9806 ns_appbindir=`pwd`/nextstep/Emacs.app
9807 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9808 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9809 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9810 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9811 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9812 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9813 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9814 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9815 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9817 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9818 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9819 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9820 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9821 $as_echo_n "(cached) " >&6
9823 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9824 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9826 # Is the header compilable?
9827 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9828 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9829 cat >conftest.$ac_ext <<_ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9835 $ac_includes_default
9836 #include <AppKit/AppKit.h>
9838 rm -f conftest.$ac_objext
9839 if { (ac_try="$ac_compile"
9841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9842 *) ac_try_echo
=$ac_try;;
9844 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9845 $as_echo "$ac_try_echo") >&5
9846 (eval "$ac_compile") 2>conftest.er1
9848 grep -v '^ *+' conftest.er1
>conftest.err
9850 cat conftest.err
>&5
9851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } && {
9853 test -z "$ac_c_werror_flag" ||
9854 test ! -s conftest.err
9855 } && test -s conftest.
$ac_objext; then
9856 ac_header_compiler
=yes
9858 $as_echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.
$ac_ext >&5
9861 ac_header_compiler
=no
9864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9865 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9866 $as_echo "$ac_header_compiler" >&6; }
9868 # Is the header present?
9869 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9870 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9871 cat >conftest.
$ac_ext <<_ACEOF
9874 cat confdefs.h
>>conftest.
$ac_ext
9875 cat >>conftest.
$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9877 #include <AppKit/AppKit.h>
9879 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9881 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9885 $as_echo "$ac_try_echo") >&5
9886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9888 grep -v '^ *+' conftest.er1 >conftest.err
9890 cat conftest.err >&5
9891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } >/dev/null && {
9893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9894 test ! -s conftest.err
9896 ac_header_preproc=yes
9898 $as_echo "$as_me: failed program was:" >&5
9899 sed 's/^/| /' conftest.$ac_ext >&5
9901 ac_header_preproc=no
9904 rm -f conftest.err conftest.$ac_ext
9905 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9906 $as_echo "$ac_header_preproc" >&6; }
9908 # So? What about this header?
9909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9911 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9912 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9913 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9914 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9915 ac_header_preproc=yes
9918 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9919 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9920 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9921 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9922 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9923 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9924 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9925 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9926 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9927 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9928 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9929 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9933 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9934 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9935 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9936 $as_echo_n "(cached) " >&6
9938 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9940 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9941 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9944 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9947 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9948 files are missing or cannot be compiled." >&5
9949 $as_echo "$as_me: error: \`--with-ns' was specified
, but the include
9950 files are missing or cannot be compiled.
" >&2;}
9951 { (exit 1); exit 1; }; }
9955 NS_HAVE_NSINTEGER=yes
9956 cat >conftest.$ac_ext <<_ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9962 #include <Foundation/NSObjCRuntime.h>
9971 rm -f conftest.$ac_objext
9972 if { (ac_try="$ac_compile"
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9977 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
9978 $as_echo "$ac_try_echo") >&5
9979 (eval "$ac_compile") 2>conftest.er1
9981 grep -v '^ *+' conftest.er1 >conftest.err
9983 cat conftest.err >&5
9984 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9985 (exit $ac_status); } && {
9986 test -z "$ac_c_werror_flag" ||
9987 test ! -s conftest.err
9988 } && test -s conftest.$ac_objext; then
9989 ns_have_nsinteger=yes
9991 $as_echo "$as_me: failed program was
:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9994 ns_have_nsinteger=no
9997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9998 if test $ns_have_nsinteger = no; then
9999 NS_HAVE_NSINTEGER=no
10005 if test "${HAVE_NS}" = yes; then
10006 window_system=nextstep
10008 # set up packaging dirs
10009 exec_prefix=${ns_appbindir}
10010 libexecdir=${ns_appbindir}/libexec
10011 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10012 prefix=${ns_appresdir}
10014 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o
"
10015 NS_SUPPORT="\
${lispsource}emacs-lisp
/easymenu.elc \
${lispsource}term
/ns-win.elc
"
10017 CFLAGS="$tmp_CFLAGS"
10018 CPPFLAGS="$tmp_CPPFLAGS"
10022 case "${window_system}" in
10026 case "${with_x_toolkit}" in
10027 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10028 motif ) USE_X_TOOLKIT=MOTIF ;;
10030 USE_X_TOOLKIT=none ;;
10031 no ) USE_X_TOOLKIT=none ;;
10032 * ) USE_X_TOOLKIT=maybe ;;
10042 if test "$window_system" = none && test "X
$with_x" != "Xno
"; then
10043 # Extract the first word of "X
", so it can be a program name with args.
10044 set dummy X; ac_word=$2
10045 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
10046 $as_echo_n "checking
for $ac_word...
" >&6; }
10047 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10048 $as_echo_n "(cached
) " >&6
10050 if test -n "$HAVE_XSERVER"; then
10051 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10060 ac_cv_prog_HAVE_XSERVER="true
"
10061 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
10068 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false
"
10071 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10072 if test -n "$HAVE_XSERVER"; then
10073 { $as_echo "$as_me:$LINENO: result
: $HAVE_XSERVER" >&5
10074 $as_echo "$HAVE_XSERVER" >&6; }
10076 { $as_echo "$as_me:$LINENO: result
: no
" >&5
10077 $as_echo "no
" >&6; }
10081 if test "$HAVE_XSERVER" = true ||
10082 test -n "$DISPLAY" ||
10083 test "`echo /usr/lib/libX11.*`" != "/usr
/lib
/libX11.
*"; then
10084 { { $as_echo "$as_me:$LINENO: error
: You seem to be running X
, but no X development libraries
10085 were found. You should
install the relevant development files
for X
10086 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
10087 sure you have development files
for image handling
, i.e.
10088 tiff
, gif
, jpeg
, png and xpm.
10089 If you are sure you want Emacs compiled without X window support
, pass
10092 $as_echo "$as_me: error
: You seem to be running X
, but no X development libraries
10093 were found. You should
install the relevant development files
for X
10094 and
for the toolkit you want
, such as Gtk
+, Lesstif or Motif. Also
make
10095 sure you have development files
for image handling
, i.e.
10096 tiff
, gif
, jpeg
, png and xpm.
10097 If you are sure you want Emacs compiled without X window support
, pass
10099 to configure.
" >&2;}
10100 { (exit 1); exit 1; }; }
10104 ### If we're using X11, we should use the X menu package.
10106 case ${HAVE_X11} in
10107 yes ) HAVE_MENUS=yes ;;
10110 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10111 # Assume not, until told otherwise.
10113 doug_lea_malloc=yes
10114 { $as_echo "$as_me:$LINENO: checking
for malloc_get_state
" >&5
10115 $as_echo_n "checking
for malloc_get_state...
" >&6; }
10116 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10117 $as_echo_n "(cached
) " >&6
10119 cat >conftest.$ac_ext <<_ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10125 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10127 #define malloc_get_state innocuous_malloc_get_state
10129 /* System header to define __stub macros and hopefully few prototypes,
10130 which can conflict with char malloc_get_state (); below.
10131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10132 <limits.h> exists even on freestanding compilers. */
10135 # include <limits.h>
10137 # include <assert.h>
10140 #undef malloc_get_state
10142 /* Override any GCC internal prototype to avoid an error.
10143 Use char because int might match the return type of a GCC
10144 builtin and then its argument prototype would still apply. */
10148 char malloc_get_state ();
10149 /* The GNU C library defines this for functions which it implements
10150 to always fail with ENOSYS. Some functions are actually named
10151 something starting with __ and the normal name is an alias. */
10152 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10159 return malloc_get_state ();
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (ac_try="$ac_link"
10166 case "(($ac_try" in
10167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10168 *) ac_try_echo=$ac_try;;
10170 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10171 $as_echo "$ac_try_echo") >&5
10172 (eval "$ac_link") 2>conftest.er1
10174 grep -v '^ *+' conftest.er1 >conftest.err
10176 cat conftest.err >&5
10177 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10178 (exit $ac_status); } && {
10179 test -z "$ac_c_werror_flag" ||
10180 test ! -s conftest.err
10181 } && test -s conftest$ac_exeext && {
10182 test "$cross_compiling" = yes ||
10183 $as_test_x conftest$ac_exeext
10185 ac_cv_func_malloc_get_state=yes
10187 $as_echo "$as_me: failed program was
:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10190 ac_cv_func_malloc_get_state=no
10193 rm -rf conftest.dSYM
10194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10195 conftest$ac_exeext conftest.$ac_ext
10197 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_get_state" >&5
10198 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10199 if test $ac_cv_func_malloc_get_state = yes; then
10205 { $as_echo "$as_me:$LINENO: checking
for malloc_set_state
" >&5
10206 $as_echo_n "checking
for malloc_set_state...
" >&6; }
10207 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10208 $as_echo_n "(cached
) " >&6
10210 cat >conftest.$ac_ext <<_ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10216 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10218 #define malloc_set_state innocuous_malloc_set_state
10220 /* System header to define __stub macros and hopefully few prototypes,
10221 which can conflict with char malloc_set_state (); below.
10222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10223 <limits.h> exists even on freestanding compilers. */
10226 # include <limits.h>
10228 # include <assert.h>
10231 #undef malloc_set_state
10233 /* Override any GCC internal prototype to avoid an error.
10234 Use char because int might match the return type of a GCC
10235 builtin and then its argument prototype would still apply. */
10239 char malloc_set_state ();
10240 /* The GNU C library defines this for functions which it implements
10241 to always fail with ENOSYS. Some functions are actually named
10242 something starting with __ and the normal name is an alias. */
10243 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10250 return malloc_set_state ();
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (ac_try="$ac_link"
10257 case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10261 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10262 $as_echo "$ac_try_echo") >&5
10263 (eval "$ac_link") 2>conftest.er1
10265 grep -v '^ *+' conftest.er1 >conftest.err
10267 cat conftest.err >&5
10268 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10269 (exit $ac_status); } && {
10270 test -z "$ac_c_werror_flag" ||
10271 test ! -s conftest.err
10272 } && test -s conftest$ac_exeext && {
10273 test "$cross_compiling" = yes ||
10274 $as_test_x conftest$ac_exeext
10276 ac_cv_func_malloc_set_state=yes
10278 $as_echo "$as_me: failed program was
:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10281 ac_cv_func_malloc_set_state=no
10284 rm -rf conftest.dSYM
10285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10286 conftest$ac_exeext conftest.$ac_ext
10288 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_malloc_set_state" >&5
10289 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10290 if test $ac_cv_func_malloc_set_state = yes; then
10296 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists
" >&5
10297 $as_echo_n "checking whether __after_morecore_hook exists...
" >&6; }
10298 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10299 $as_echo_n "(cached
) " >&6
10301 cat >conftest.$ac_ext <<_ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h. */
10307 extern void (* __after_morecore_hook)();
10311 __after_morecore_hook = 0
10316 rm -f conftest.$ac_objext conftest$ac_exeext
10317 if { (ac_try="$ac_link"
10318 case "(($ac_try" in
10319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320 *) ac_try_echo=$ac_try;;
10322 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10323 $as_echo "$ac_try_echo") >&5
10324 (eval "$ac_link") 2>conftest.er1
10326 grep -v '^ *+' conftest.er1 >conftest.err
10328 cat conftest.err >&5
10329 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10330 (exit $ac_status); } && {
10331 test -z "$ac_c_werror_flag" ||
10332 test ! -s conftest.err
10333 } && test -s conftest$ac_exeext && {
10334 test "$cross_compiling" = yes ||
10335 $as_test_x conftest$ac_exeext
10337 emacs_cv_var___after_morecore_hook=yes
10339 $as_echo "$as_me: failed program was
:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10342 emacs_cv_var___after_morecore_hook=no
10345 rm -rf conftest.dSYM
10346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10347 conftest$ac_exeext conftest.$ac_ext
10349 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_var___after_morecore_hook" >&5
10350 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10351 if test $emacs_cv_var___after_morecore_hook = no; then
10354 if test "${system_malloc}" = "yes"; then
10356 GNU_MALLOC_reason="
10357 (The GNU allocators don
't work with this system configuration.)"
10359 if test "$doug_lea_malloc" = "yes" ; then
10360 if test "$GNU_MALLOC" = yes ; then
10361 GNU_MALLOC_reason="
10362 (Using Doug Lea's new malloc from the GNU C Library.
)"
10365 cat >>confdefs.h <<\_ACEOF
10366 #define DOUG_LEA_MALLOC 1
10371 if test x"${REL_ALLOC}" = x; then
10372 REL_ALLOC=${GNU_MALLOC}
10378 for ac_header in stdlib.h unistd.h
10380 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
10381 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10382 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10383 $as_echo_n "checking
for $ac_header...
" >&6; }
10384 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10385 $as_echo_n "(cached
) " >&6
10387 ac_res=`eval 'as_val=${'$as_ac_Header'}
10388 $as_echo "$as_val"'`
10389 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10390 $as_echo "$ac_res" >&6; }
10392 # Is the header compilable?
10393 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
10394 $as_echo_n "checking
$ac_header usability...
" >&6; }
10395 cat >conftest.$ac_ext <<_ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h. */
10401 $ac_includes_default
10402 #include <$ac_header>
10404 rm -f conftest.$ac_objext
10405 if { (ac_try="$ac_compile"
10406 case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10410 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10411 $as_echo "$ac_try_echo") >&5
10412 (eval "$ac_compile") 2>conftest.er1
10414 grep -v '^ *+' conftest.er1 >conftest.err
10416 cat conftest.err >&5
10417 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10418 (exit $ac_status); } && {
10419 test -z "$ac_c_werror_flag" ||
10420 test ! -s conftest.err
10421 } && test -s conftest.$ac_objext; then
10422 ac_header_compiler=yes
10424 $as_echo "$as_me: failed program was
:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10427 ac_header_compiler=no
10430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10431 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
10432 $as_echo "$ac_header_compiler" >&6; }
10434 # Is the header present?
10435 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
10436 $as_echo_n "checking
$ac_header presence...
" >&6; }
10437 cat >conftest.$ac_ext <<_ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10443 #include <$ac_header>
10445 if { (ac_try="$ac_cpp conftest.
$ac_ext"
10446 case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10450 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10451 $as_echo "$ac_try_echo") >&5
10452 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
10454 grep -v '^ *+' conftest.er1 >conftest.err
10456 cat conftest.err >&5
10457 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10458 (exit $ac_status); } >/dev/null && {
10459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10460 test ! -s conftest.err
10462 ac_header_preproc=yes
10464 $as_echo "$as_me: failed program was
:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10467 ac_header_preproc=no
10470 rm -f conftest.err conftest.$ac_ext
10471 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
10472 $as_echo "$ac_header_preproc" >&6; }
10474 # So? What about this header?
10475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10477 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
10478 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
10479 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
10480 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
10481 ac_header_preproc=yes
10484 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
10485 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
10486 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
10487 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
10488 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
10489 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
10490 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
10491 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
10492 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
10493 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
10494 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
10495 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
10499 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
10500 $as_echo_n "checking
for $ac_header...
" >&6; }
10501 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
10502 $as_echo_n "(cached
) " >&6
10504 eval "$as_ac_Header=\
$ac_header_preproc"
10506 ac_res=`eval 'as_val=${'$as_ac_Header'}
10507 $as_echo "$as_val"'`
10508 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10509 $as_echo "$ac_res" >&6; }
10512 if test `eval 'as_val=${'$as_ac_Header'}
10513 $as_echo "$as_val"'` = yes; then
10514 cat >>confdefs.h <<_ACEOF
10515 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
10523 for ac_func in getpagesize
10525 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
10526 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
10527 $as_echo_n "checking
for $ac_func...
" >&6; }
10528 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
10529 $as_echo_n "(cached
) " >&6
10531 cat >conftest.$ac_ext <<_ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10539 #define $ac_func innocuous_$ac_func
10541 /* System header to define __stub macros and hopefully few prototypes,
10542 which can conflict with char $ac_func (); below.
10543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10544 <limits.h> exists even on freestanding compilers. */
10547 # include <limits.h>
10549 # include <assert.h>
10554 /* Override any GCC internal prototype to avoid an error.
10555 Use char because int might match the return type of a GCC
10556 builtin and then its argument prototype would still apply. */
10561 /* The GNU C library defines this for functions which it implements
10562 to always fail with ENOSYS. Some functions are actually named
10563 something starting with __ and the normal name is an alias. */
10564 #if defined __stub_$ac_func || defined __stub___$ac_func
10571 return $ac_func ();
10576 rm -f conftest.$ac_objext conftest$ac_exeext
10577 if { (ac_try="$ac_link"
10578 case "(($ac_try" in
10579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10580 *) ac_try_echo=$ac_try;;
10582 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10583 $as_echo "$ac_try_echo") >&5
10584 (eval "$ac_link") 2>conftest.er1
10586 grep -v '^ *+' conftest.er1 >conftest.err
10588 cat conftest.err >&5
10589 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10590 (exit $ac_status); } && {
10591 test -z "$ac_c_werror_flag" ||
10592 test ! -s conftest.err
10593 } && test -s conftest$ac_exeext && {
10594 test "$cross_compiling" = yes ||
10595 $as_test_x conftest$ac_exeext
10597 eval "$as_ac_var=yes"
10599 $as_echo "$as_me: failed program was
:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 eval "$as_ac_var=no
"
10605 rm -rf conftest.dSYM
10606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10607 conftest$ac_exeext conftest.$ac_ext
10609 ac_res=`eval 'as_val=${'$as_ac_var'}
10610 $as_echo "$as_val"'`
10611 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
10612 $as_echo "$ac_res" >&6; }
10613 if test `eval 'as_val=${'$as_ac_var'}
10614 $as_echo "$as_val"'` = yes; then
10615 cat >>confdefs.h <<_ACEOF
10616 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
10622 { $as_echo "$as_me:$LINENO: checking
for working mmap
" >&5
10623 $as_echo_n "checking
for working mmap...
" >&6; }
10624 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10625 $as_echo_n "(cached
) " >&6
10627 if test "$cross_compiling" = yes; then
10628 ac_cv_func_mmap_fixed_mapped=no
10630 cat >conftest.$ac_ext <<_ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 $ac_includes_default
10637 /* malloc might have been renamed as rpl_malloc. */
10640 /* Thanks to Mike Haertel and Jim Avera for this test.
10641 Here is a matrix of mmap possibilities:
10642 mmap private not fixed
10643 mmap private fixed at somewhere currently unmapped
10644 mmap private fixed at somewhere already mapped
10645 mmap shared not fixed
10646 mmap shared fixed at somewhere currently unmapped
10647 mmap shared fixed at somewhere already mapped
10648 For private mappings, we should verify that changes cannot be read()
10649 back from the file, nor mmap's back from the file at a different
10650 address. (There have been systems where private was not correctly
10651 implemented like the infamous i386 svr4.0, and systems where the
10652 VM page cache was not coherent with the file system buffer cache
10653 like early versions of FreeBSD and possibly contemporary NetBSD.)
10654 For shared mappings, we should conversely verify that changes get
10655 propagated back to all the places they're supposed to be.
10657 Grep wants private fixed already mapped.
10658 The main things grep needs to know about mmap are:
10659 * does it exist and is it safe to write into the mmap'd area
10660 * how to use it (BSD variants) */
10663 #include <sys/mman.h>
10665 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10669 /* This mess was copied from the GNU getpagesize.h. */
10670 #ifndef HAVE_GETPAGESIZE
10671 /* Assume that all systems that can run configure have sys/param.h. */
10672 # ifndef HAVE_SYS_PARAM_H
10673 # define HAVE_SYS_PARAM_H 1
10676 # ifdef _SC_PAGESIZE
10677 # define getpagesize() sysconf(_SC_PAGESIZE)
10678 # else /* no _SC_PAGESIZE */
10679 # ifdef HAVE_SYS_PARAM_H
10680 # include <sys/param.h>
10681 # ifdef EXEC_PAGESIZE
10682 # define getpagesize() EXEC_PAGESIZE
10683 # else /* no EXEC_PAGESIZE */
10685 # define getpagesize() NBPG * CLSIZE
10688 # endif /* no CLSIZE */
10689 # else /* no NBPG */
10691 # define getpagesize() NBPC
10692 # else /* no NBPC */
10694 # define getpagesize() PAGESIZE
10695 # endif /* PAGESIZE */
10696 # endif /* no NBPC */
10697 # endif /* no NBPG */
10698 # endif /* no EXEC_PAGESIZE */
10699 # else /* no HAVE_SYS_PARAM_H */
10700 # define getpagesize() 8192 /* punt totally */
10701 # endif /* no HAVE_SYS_PARAM_H */
10702 # endif /* no _SC_PAGESIZE */
10704 #endif /* no HAVE_GETPAGESIZE */
10709 char *data, *data2, *data3;
10713 pagesize = getpagesize ();
10715 /* First, make a file with some known garbage in it. */
10716 data = (char *) malloc (pagesize);
10719 for (i = 0; i < pagesize; ++i)
10720 *(data + i) = rand ();
10722 fd = creat ("conftest.mmap
", 0600);
10725 if (write (fd, data, pagesize) != pagesize)
10729 /* Next, try to mmap the file at a fixed address which already has
10730 something else allocated at it. If we can, also make sure that
10731 we see the same garbage. */
10732 fd = open ("conftest.mmap
", O_RDWR);
10735 data2 = (char *) malloc (2 * pagesize);
10738 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10739 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10740 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10742 for (i = 0; i < pagesize; ++i)
10743 if (*(data + i) != *(data2 + i))
10746 /* Finally, make sure that changes to the mapped area do not
10747 percolate back to the file as seen by read(). (This is a bug on
10748 some variants of i386 svr4.0.) */
10749 for (i = 0; i < pagesize; ++i)
10750 *(data2 + i) = *(data2 + i) + 1;
10751 data3 = (char *) malloc (pagesize);
10754 if (read (fd, data3, pagesize) != pagesize)
10756 for (i = 0; i < pagesize; ++i)
10757 if (*(data + i) != *(data3 + i))
10763 rm -f conftest$ac_exeext
10764 if { (ac_try="$ac_link"
10765 case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10769 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10770 $as_echo "$ac_try_echo") >&5
10771 (eval "$ac_link") 2>&5
10773 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10775 { (case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10779 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10780 $as_echo "$ac_try_echo") >&5
10781 (eval "$ac_try") 2>&5
10783 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10784 (exit $ac_status); }; }; then
10785 ac_cv_func_mmap_fixed_mapped=yes
10787 $as_echo "$as_me: program exited with status
$ac_status" >&5
10788 $as_echo "$as_me: failed program was
:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791 ( exit $ac_status )
10792 ac_cv_func_mmap_fixed_mapped=no
10794 rm -rf conftest.dSYM
10795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10800 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
10801 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10802 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10804 cat >>confdefs.h <<\_ACEOF
10805 #define HAVE_MMAP 1
10809 rm -f conftest.mmap
10811 if test $use_mmap_for_buffers = yes; then
10815 LIBS="$libsrc_libs $LIBS"
10818 { $as_echo "$as_me:$LINENO: checking
for dnet_ntoa
in -ldnet" >&5
10819 $as_echo_n "checking
for dnet_ntoa
in -ldnet...
" >&6; }
10820 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10821 $as_echo_n "(cached
) " >&6
10823 ac_check_lib_save_LIBS=$LIBS
10824 LIBS="-ldnet $LIBS"
10825 cat >conftest.$ac_ext <<_ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10832 /* Override any GCC internal prototype to avoid an error.
10833 Use char because int might match the return type of a GCC
10834 builtin and then its argument prototype would still apply. */
10842 return dnet_ntoa ();
10847 rm -f conftest.$ac_objext conftest$ac_exeext
10848 if { (ac_try="$ac_link"
10849 case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10853 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10854 $as_echo "$ac_try_echo") >&5
10855 (eval "$ac_link") 2>conftest.er1
10857 grep -v '^ *+' conftest.er1 >conftest.err
10859 cat conftest.err >&5
10860 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10861 (exit $ac_status); } && {
10862 test -z "$ac_c_werror_flag" ||
10863 test ! -s conftest.err
10864 } && test -s conftest$ac_exeext && {
10865 test "$cross_compiling" = yes ||
10866 $as_test_x conftest$ac_exeext
10868 ac_cv_lib_dnet_dnet_ntoa=yes
10870 $as_echo "$as_me: failed program was
:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10873 ac_cv_lib_dnet_dnet_ntoa=no
10876 rm -rf conftest.dSYM
10877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10878 conftest$ac_exeext conftest.$ac_ext
10879 LIBS=$ac_check_lib_save_LIBS
10881 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dnet_dnet_ntoa" >&5
10882 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10883 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10884 cat >>confdefs.h <<_ACEOF
10885 #define HAVE_LIBDNET 1
10888 LIBS="-ldnet $LIBS"
10893 { $as_echo "$as_me:$LINENO: checking
for main
in -lXbsd" >&5
10894 $as_echo_n "checking
for main
in -lXbsd...
" >&6; }
10895 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10896 $as_echo_n "(cached
) " >&6
10898 ac_check_lib_save_LIBS=$LIBS
10899 LIBS="-lXbsd $LIBS"
10900 cat >conftest.$ac_ext <<_ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10916 rm -f conftest.$ac_objext conftest$ac_exeext
10917 if { (ac_try="$ac_link"
10918 case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10922 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10923 $as_echo "$ac_try_echo") >&5
10924 (eval "$ac_link") 2>conftest.er1
10926 grep -v '^ *+' conftest.er1 >conftest.err
10928 cat conftest.err >&5
10929 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
10930 (exit $ac_status); } && {
10931 test -z "$ac_c_werror_flag" ||
10932 test ! -s conftest.err
10933 } && test -s conftest$ac_exeext && {
10934 test "$cross_compiling" = yes ||
10935 $as_test_x conftest$ac_exeext
10937 ac_cv_lib_Xbsd_main=yes
10939 $as_echo "$as_me: failed program was
:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10942 ac_cv_lib_Xbsd_main=no
10945 rm -rf conftest.dSYM
10946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10947 conftest$ac_exeext conftest.$ac_ext
10948 LIBS=$ac_check_lib_save_LIBS
10950 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xbsd_main" >&5
10951 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10952 if test $ac_cv_lib_Xbsd_main = yes; then
10953 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10958 { $as_echo "$as_me:$LINENO: checking
for cma_open
in -lpthreads" >&5
10959 $as_echo_n "checking
for cma_open
in -lpthreads...
" >&6; }
10960 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10961 $as_echo_n "(cached
) " >&6
10963 ac_check_lib_save_LIBS=$LIBS
10964 LIBS="-lpthreads $LIBS"
10965 cat >conftest.$ac_ext <<_ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10972 /* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10982 return cma_open ();
10987 rm -f conftest.$ac_objext conftest$ac_exeext
10988 if { (ac_try="$ac_link"
10989 case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10993 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
10994 $as_echo "$ac_try_echo") >&5
10995 (eval "$ac_link") 2>conftest.er1
10997 grep -v '^ *+' conftest.er1 >conftest.err
10999 cat conftest.err >&5
11000 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11001 (exit $ac_status); } && {
11002 test -z "$ac_c_werror_flag" ||
11003 test ! -s conftest.err
11004 } && test -s conftest$ac_exeext && {
11005 test "$cross_compiling" = yes ||
11006 $as_test_x conftest$ac_exeext
11008 ac_cv_lib_pthreads_cma_open=yes
11010 $as_echo "$as_me: failed program was
:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 ac_cv_lib_pthreads_cma_open=no
11016 rm -rf conftest.dSYM
11017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11021 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthreads_cma_open" >&5
11022 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11023 if test $ac_cv_lib_pthreads_cma_open = yes; then
11024 cat >>confdefs.h <<_ACEOF
11025 #define HAVE_LIBPTHREADS 1
11028 LIBS="-lpthreads $LIBS"
11036 { $as_echo "$as_me:$LINENO: checking
for -bbigtoc option
" >&5
11037 $as_echo_n "checking
for -bbigtoc option...
" >&6; }
11038 if test "${gdb_cv_bigtoc+set}" = set; then
11039 $as_echo_n "(cached
) " >&6
11043 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11044 *) gdb_cv_bigtoc=-bbigtoc ;;
11047 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11048 cat >conftest.$ac_ext <<_ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11063 rm -f conftest.$ac_objext conftest$ac_exeext
11064 if { (ac_try="$ac_link"
11065 case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11069 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11070 $as_echo "$ac_try_echo") >&5
11071 (eval "$ac_link") 2>conftest.er1
11073 grep -v '^ *+' conftest.er1 >conftest.err
11075 cat conftest.err >&5
11076 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11077 (exit $ac_status); } && {
11078 test -z "$ac_c_werror_flag" ||
11079 test ! -s conftest.err
11080 } && test -s conftest$ac_exeext && {
11081 test "$cross_compiling" = yes ||
11082 $as_test_x conftest$ac_exeext
11086 $as_echo "$as_me: failed program was
:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11092 rm -rf conftest.dSYM
11093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11094 conftest$ac_exeext conftest.$ac_ext
11097 { $as_echo "$as_me:$LINENO: result
: $gdb_cv_bigtoc" >&5
11098 $as_echo "$gdb_cv_bigtoc" >&6; }
11102 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11103 # used for the tests that follow. We set them back to REAL_CFLAGS and
11104 # REAL_CPPFLAGS later on.
11106 REAL_CPPFLAGS="$CPPFLAGS"
11108 if test "${HAVE_X11}" = "yes"; then
11109 DEFS="$C_SWITCH_X_SITE $DEFS"
11110 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11112 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11113 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11115 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11116 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11117 # but it's more convenient here to set LD_RUN_PATH
11118 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11119 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11120 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11124 if test "${opsys}" = "gnu-linux
"; then
11125 { $as_echo "$as_me:$LINENO: checking whether X on GNU
/Linux needs
-b to link
" >&5
11126 $as_echo_n "checking whether X on GNU
/Linux needs
-b to link...
" >&6; }
11127 cat >conftest.$ac_ext <<_ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11137 XOpenDisplay ("foo
");
11142 rm -f conftest.$ac_objext conftest$ac_exeext
11143 if { (ac_try="$ac_link"
11144 case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11148 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11149 $as_echo "$ac_try_echo") >&5
11150 (eval "$ac_link") 2>conftest.er1
11152 grep -v '^ *+' conftest.er1 >conftest.err
11154 cat conftest.err >&5
11155 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11156 (exit $ac_status); } && {
11157 test -z "$ac_c_werror_flag" ||
11158 test ! -s conftest.err
11159 } && test -s conftest$ac_exeext && {
11160 test "$cross_compiling" = yes ||
11161 $as_test_x conftest$ac_exeext
11163 xlinux_first_failure=no
11165 $as_echo "$as_me: failed program was
:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168 xlinux_first_failure=yes
11171 rm -rf conftest.dSYM
11172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11173 conftest$ac_exeext conftest.$ac_ext
11174 if test "${xlinux_first_failure}" = "yes"; then
11175 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11176 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11177 OLD_CPPFLAGS="$CPPFLAGS"
11179 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout
"
11180 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout
"
11181 CPPFLAGS="$CPPFLAGS -b i486-linuxaout
"
11182 LIBS="$LIBS -b i486-linuxaout
"
11183 cat >conftest.$ac_ext <<_ACEOF
11186 cat confdefs.h >>conftest.$ac_ext
11187 cat >>conftest.$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11193 XOpenDisplay ("foo
");
11198 rm -f conftest.$ac_objext conftest$ac_exeext
11199 if { (ac_try="$ac_link"
11200 case "(($ac_try" in
11201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202 *) ac_try_echo=$ac_try;;
11204 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11205 $as_echo "$ac_try_echo") >&5
11206 (eval "$ac_link") 2>conftest.er1
11208 grep -v '^ *+' conftest.er1 >conftest.err
11210 cat conftest.err >&5
11211 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11212 (exit $ac_status); } && {
11213 test -z "$ac_c_werror_flag" ||
11214 test ! -s conftest.err
11215 } && test -s conftest$ac_exeext && {
11216 test "$cross_compiling" = yes ||
11217 $as_test_x conftest$ac_exeext
11219 xlinux_second_failure=no
11221 $as_echo "$as_me: failed program was
:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11224 xlinux_second_failure=yes
11227 rm -rf conftest.dSYM
11228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11229 conftest$ac_exeext conftest.$ac_ext
11230 if test "${xlinux_second_failure}" = "yes"; then
11231 # If we get the same failure with -b, there is no use adding -b.
11232 # So take it out. This plays safe.
11233 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11234 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11235 CPPFLAGS="$OLD_CPPFLAGS"
11237 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11238 $as_echo "no
" >&6; }
11240 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11241 $as_echo "yes" >&6; }
11244 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11245 $as_echo "no
" >&6; }
11249 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11250 # header files included from there.
11251 { $as_echo "$as_me:$LINENO: checking
for Xkb
" >&5
11252 $as_echo_n "checking
for Xkb...
" >&6; }
11253 cat >conftest.$ac_ext <<_ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 #include <X11/Xlib.h>
11260 #include <X11/XKBlib.h>
11264 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11269 rm -f conftest.$ac_objext conftest$ac_exeext
11270 if { (ac_try="$ac_link"
11271 case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11275 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11276 $as_echo "$ac_try_echo") >&5
11277 (eval "$ac_link") 2>conftest.er1
11279 grep -v '^ *+' conftest.er1 >conftest.err
11281 cat conftest.err >&5
11282 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11283 (exit $ac_status); } && {
11284 test -z "$ac_c_werror_flag" ||
11285 test ! -s conftest.err
11286 } && test -s conftest$ac_exeext && {
11287 test "$cross_compiling" = yes ||
11288 $as_test_x conftest$ac_exeext
11292 $as_echo "$as_me: failed program was
:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11298 rm -rf conftest.dSYM
11299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11300 conftest$ac_exeext conftest.$ac_ext
11301 { $as_echo "$as_me:$LINENO: result
: $emacs_xkb" >&5
11302 $as_echo "$emacs_xkb" >&6; }
11303 if test $emacs_xkb = yes; then
11305 cat >>confdefs.h <<\_ACEOF
11306 #define HAVE_XKBGETKEYBOARD 1
11315 for ac_func in XrmSetDatabase XScreenResourceString \
11316 XScreenNumberOfScreen XSetWMProtocols
11318 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11319 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11320 $as_echo_n "checking
for $ac_func...
" >&6; }
11321 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11322 $as_echo_n "(cached
) " >&6
11324 cat >conftest.$ac_ext <<_ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11332 #define $ac_func innocuous_$ac_func
11334 /* System header to define __stub macros and hopefully few prototypes,
11335 which can conflict with char $ac_func (); below.
11336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11337 <limits.h> exists even on freestanding compilers. */
11340 # include <limits.h>
11342 # include <assert.h>
11347 /* Override any GCC internal prototype to avoid an error.
11348 Use char because int might match the return type of a GCC
11349 builtin and then its argument prototype would still apply. */
11354 /* The GNU C library defines this for functions which it implements
11355 to always fail with ENOSYS. Some functions are actually named
11356 something starting with __ and the normal name is an alias. */
11357 #if defined __stub_$ac_func || defined __stub___$ac_func
11364 return $ac_func ();
11369 rm -f conftest.$ac_objext conftest$ac_exeext
11370 if { (ac_try="$ac_link"
11371 case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11375 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11376 $as_echo "$ac_try_echo") >&5
11377 (eval "$ac_link") 2>conftest.er1
11379 grep -v '^ *+' conftest.er1 >conftest.err
11381 cat conftest.err >&5
11382 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11383 (exit $ac_status); } && {
11384 test -z "$ac_c_werror_flag" ||
11385 test ! -s conftest.err
11386 } && test -s conftest$ac_exeext && {
11387 test "$cross_compiling" = yes ||
11388 $as_test_x conftest$ac_exeext
11390 eval "$as_ac_var=yes"
11392 $as_echo "$as_me: failed program was
:" >&5
11393 sed 's/^/| /' conftest.$ac_ext >&5
11395 eval "$as_ac_var=no
"
11398 rm -rf conftest.dSYM
11399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11400 conftest$ac_exeext conftest.$ac_ext
11402 ac_res=`eval 'as_val=${'$as_ac_var'}
11403 $as_echo "$as_val"'`
11404 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11405 $as_echo "$ac_res" >&6; }
11406 if test `eval 'as_val=${'$as_ac_var'}
11407 $as_echo "$as_val"'` = yes; then
11408 cat >>confdefs.h <<_ACEOF
11409 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11417 if test "${window_system}" = "x11
"; then
11418 { $as_echo "$as_me:$LINENO: checking X11 version
6" >&5
11419 $as_echo_n "checking X11 version
6...
" >&6; }
11420 if test "${emacs_cv_x11_version_6+set}" = set; then
11421 $as_echo_n "(cached
) " >&6
11423 cat >conftest.$ac_ext <<_ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 #include <X11/Xlib.h>
11433 #if XlibSpecificationRelease < 6
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (ac_try="$ac_link"
11443 case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11447 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11448 $as_echo "$ac_try_echo") >&5
11449 (eval "$ac_link") 2>conftest.er1
11451 grep -v '^ *+' conftest.er1 >conftest.err
11453 cat conftest.err >&5
11454 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11455 (exit $ac_status); } && {
11456 test -z "$ac_c_werror_flag" ||
11457 test ! -s conftest.err
11458 } && test -s conftest$ac_exeext && {
11459 test "$cross_compiling" = yes ||
11460 $as_test_x conftest$ac_exeext
11462 emacs_cv_x11_version_6=yes
11464 $as_echo "$as_me: failed program was
:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11467 emacs_cv_x11_version_6=no
11470 rm -rf conftest.dSYM
11471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11472 conftest$ac_exeext conftest.$ac_ext
11475 if test $emacs_cv_x11_version_6 = yes; then
11476 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
11477 $as_echo "6 or newer
" >&6; }
11479 cat >>confdefs.h <<\_ACEOF
11480 #define HAVE_X11R6 1
11484 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
11485 $as_echo "before
6" >&6; }
11490 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11492 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11493 if test "${with_rsvg}" != "no
"; then
11494 RSVG_REQUIRED=2.11.0
11495 RSVG_MODULE="librsvg-2.0
>= $RSVG_REQUIRED"
11500 # Extract the first word of "pkg-config
", so it can be a program name with args.
11501 set dummy pkg-config; ac_word=$2
11502 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11503 $as_echo_n "checking
for $ac_word...
" >&6; }
11504 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11505 $as_echo_n "(cached
) " >&6
11507 case $PKG_CONFIG in
11509 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $PATH
11516 test -z "$as_dir" && as_dir=.
11517 for ac_exec_ext in '' $ac_executable_extensions; do
11518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11519 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11520 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11527 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11531 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11532 if test -n "$PKG_CONFIG"; then
11533 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11534 $as_echo "$PKG_CONFIG" >&6; }
11536 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11537 $as_echo "no
" >&6; }
11542 if test "$PKG_CONFIG" = "no
" ; then
11545 PKG_CONFIG_MIN_VERSION=0.9.0
11546 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11547 { $as_echo "$as_me:$LINENO: checking
for $RSVG_MODULE" >&5
11548 $as_echo_n "checking
for $RSVG_MODULE...
" >&6; }
11550 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11551 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11552 $as_echo "yes" >&6; }
11555 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS
" >&5
11556 $as_echo_n "checking RSVG_CFLAGS...
" >&6; }
11557 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11558 { $as_echo "$as_me:$LINENO: result
: $RSVG_CFLAGS" >&5
11559 $as_echo "$RSVG_CFLAGS" >&6; }
11561 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS
" >&5
11562 $as_echo_n "checking RSVG_LIBS...
" >&6; }
11563 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11564 { $as_echo "$as_me:$LINENO: result
: $RSVG_LIBS" >&5
11565 $as_echo "$RSVG_LIBS" >&6; }
11567 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11568 $as_echo "no
" >&6; }
11571 ## If we have a custom action on failure, don't print errors, but
11572 ## do set a variable so people can do so.
11573 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11580 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11581 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11585 if test $succeeded = yes; then
11594 if test ".
${RSVG_CFLAGS}" != ".
"; then
11597 cat >>confdefs.h <<\_ACEOF
11598 #define HAVE_RSVG 1
11601 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11602 LIBS="$RSVG_LIBS $LIBS"
11609 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe
"; then
11612 GTK_MODULES="gtk
+-2.0
>= $GTK_REQUIRED glib-2.0
>= $GLIB_REQUIRED"
11617 # Extract the first word of "pkg-config
", so it can be a program name with args.
11618 set dummy pkg-config; ac_word=$2
11619 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
11620 $as_echo_n "checking
for $ac_word...
" >&6; }
11621 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11622 $as_echo_n "(cached
) " >&6
11624 case $PKG_CONFIG in
11626 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11630 for as_dir in $PATH
11633 test -z "$as_dir" && as_dir=.
11634 for ac_exec_ext in '' $ac_executable_extensions; do
11635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11636 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11637 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
11644 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
11648 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11649 if test -n "$PKG_CONFIG"; then
11650 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
11651 $as_echo "$PKG_CONFIG" >&6; }
11653 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11654 $as_echo "no
" >&6; }
11659 if test "$PKG_CONFIG" = "no
" ; then
11662 PKG_CONFIG_MIN_VERSION=0.9.0
11663 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11664 { $as_echo "$as_me:$LINENO: checking
for $GTK_MODULES" >&5
11665 $as_echo_n "checking
for $GTK_MODULES...
" >&6; }
11667 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11668 { $as_echo "$as_me:$LINENO: result
: yes" >&5
11669 $as_echo "yes" >&6; }
11672 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS
" >&5
11673 $as_echo_n "checking GTK_CFLAGS...
" >&6; }
11674 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11675 { $as_echo "$as_me:$LINENO: result
: $GTK_CFLAGS" >&5
11676 $as_echo "$GTK_CFLAGS" >&6; }
11678 { $as_echo "$as_me:$LINENO: checking GTK_LIBS
" >&5
11679 $as_echo_n "checking GTK_LIBS...
" >&6; }
11680 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11681 { $as_echo "$as_me:$LINENO: result
: $GTK_LIBS" >&5
11682 $as_echo "$GTK_LIBS" >&6; }
11684 { $as_echo "$as_me:$LINENO: result
: no
" >&5
11685 $as_echo "no
" >&6; }
11688 ## If we have a custom action on failure, don't print errors, but
11689 ## do set a variable so people can do so.
11690 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11697 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
11698 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
11702 if test $succeeded = yes; then
11708 if test "$pkg_check_gtk" = "no
" && test "$USE_X_TOOLKIT" != "maybe
"; then
11709 { { $as_echo "$as_me:$LINENO: error
: $GTK_PKG_ERRORS" >&5
11710 $as_echo "$as_me: error
: $GTK_PKG_ERRORS" >&2;}
11711 { (exit 1); exit 1; }; }
11717 if test x"$pkg_check_gtk" = xyes; then
11721 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11722 CFLAGS="$CFLAGS $GTK_CFLAGS"
11723 LIBS="$GTK_LIBS $LIBS"
11726 for ac_func in gtk_main
11728 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11729 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11730 $as_echo_n "checking
for $ac_func...
" >&6; }
11731 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11732 $as_echo_n "(cached
) " >&6
11734 cat >conftest.$ac_ext <<_ACEOF
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11742 #define $ac_func innocuous_$ac_func
11744 /* System header to define __stub macros and hopefully few prototypes,
11745 which can conflict with char $ac_func (); below.
11746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747 <limits.h> exists even on freestanding compilers. */
11750 # include <limits.h>
11752 # include <assert.h>
11757 /* Override any GCC internal prototype to avoid an error.
11758 Use char because int might match the return type of a GCC
11759 builtin and then its argument prototype would still apply. */
11764 /* The GNU C library defines this for functions which it implements
11765 to always fail with ENOSYS. Some functions are actually named
11766 something starting with __ and the normal name is an alias. */
11767 #if defined __stub_$ac_func || defined __stub___$ac_func
11774 return $ac_func ();
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (ac_try="$ac_link"
11781 case "(($ac_try" in
11782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11785 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11786 $as_echo "$ac_try_echo") >&5
11787 (eval "$ac_link") 2>conftest.er1
11789 grep -v '^ *+' conftest.er1 >conftest.err
11791 cat conftest.err >&5
11792 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_c_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest$ac_exeext && {
11797 test "$cross_compiling" = yes ||
11798 $as_test_x conftest$ac_exeext
11800 eval "$as_ac_var=yes"
11802 $as_echo "$as_me: failed program was
:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 eval "$as_ac_var=no
"
11808 rm -rf conftest.dSYM
11809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11810 conftest$ac_exeext conftest.$ac_ext
11812 ac_res=`eval 'as_val=${'$as_ac_var'}
11813 $as_echo "$as_val"'`
11814 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11815 $as_echo "$ac_res" >&6; }
11816 if test `eval 'as_val=${'$as_ac_var'}
11817 $as_echo "$as_val"'` = yes; then
11818 cat >>confdefs.h <<_ACEOF
11819 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11825 if test "${GTK_COMPILES}" != "yes"; then
11826 if test "$USE_X_TOOLKIT" != "maybe
"; then
11827 { { $as_echo "$as_me:$LINENO: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&5
11828 $as_echo "$as_me: error
: Gtk
+ wanted
, but it does not compile
, see config.log. Maybe some x11-devel files missing?
" >&2;}
11829 { (exit 1); exit 1; }; };
11834 cat >>confdefs.h <<\_ACEOF
11840 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11843 { $as_echo "$as_me:$LINENO: WARNING
: Your version of Gtk
+ will have problems with
11844 closing open displays. This is no problem
if you just use
11845 one display
, but
if you use
more than one and close one of them
11846 Emacs may crash.
" >&5
11847 $as_echo "$as_me: WARNING
: Your version of Gtk
+ will have problems with
11848 closing open displays. This is no problem
if you just use
11849 one display
, but
if you use
more than one and close one of them
11850 Emacs may crash.
" >&2;}
11859 if test "${HAVE_GTK}" = "yes"; then
11861 if test "$with_toolkit_scroll_bars" != no; then
11862 with_toolkit_scroll_bars=yes
11865 HAVE_GTK_MULTIDISPLAY=no
11867 for ac_func in gdk_display_open
11869 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
11870 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
11871 $as_echo_n "checking
for $ac_func...
" >&6; }
11872 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
11873 $as_echo_n "(cached
) " >&6
11875 cat >conftest.$ac_ext <<_ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11883 #define $ac_func innocuous_$ac_func
11885 /* System header to define __stub macros and hopefully few prototypes,
11886 which can conflict with char $ac_func (); below.
11887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11888 <limits.h> exists even on freestanding compilers. */
11891 # include <limits.h>
11893 # include <assert.h>
11898 /* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11905 /* The GNU C library defines this for functions which it implements
11906 to always fail with ENOSYS. Some functions are actually named
11907 something starting with __ and the normal name is an alias. */
11908 #if defined __stub_$ac_func || defined __stub___$ac_func
11915 return $ac_func ();
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (ac_try="$ac_link"
11922 case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11926 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
11927 $as_echo "$ac_try_echo") >&5
11928 (eval "$ac_link") 2>conftest.er1
11930 grep -v '^ *+' conftest.er1 >conftest.err
11932 cat conftest.err >&5
11933 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
11934 (exit $ac_status); } && {
11935 test -z "$ac_c_werror_flag" ||
11936 test ! -s conftest.err
11937 } && test -s conftest$ac_exeext && {
11938 test "$cross_compiling" = yes ||
11939 $as_test_x conftest$ac_exeext
11941 eval "$as_ac_var=yes"
11943 $as_echo "$as_me: failed program was
:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11946 eval "$as_ac_var=no
"
11949 rm -rf conftest.dSYM
11950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11951 conftest$ac_exeext conftest.$ac_ext
11953 ac_res=`eval 'as_val=${'$as_ac_var'}
11954 $as_echo "$as_val"'`
11955 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
11956 $as_echo "$ac_res" >&6; }
11957 if test `eval 'as_val=${'$as_ac_var'}
11958 $as_echo "$as_val"'` = yes; then
11959 cat >>confdefs.h <<_ACEOF
11960 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
11962 HAVE_GTK_MULTIDISPLAY=yes
11966 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11968 cat >>confdefs.h <<\_ACEOF
11969 #define HAVE_GTK_MULTIDISPLAY 1
11974 HAVE_GTK_FILE_SELECTION=no
11975 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared
" >&5
11976 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared...
" >&6; }
11977 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11978 $as_echo_n "(cached
) " >&6
11980 cat >conftest.$ac_ext <<_ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11986 $ac_includes_default
11987 #include <gtk/gtk.h>
11992 #ifndef GTK_TYPE_FILE_SELECTION
11993 (void) GTK_TYPE_FILE_SELECTION;
12000 rm -f conftest.$ac_objext
12001 if { (ac_try="$ac_compile"
12002 case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12006 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12007 $as_echo "$ac_try_echo") >&5
12008 (eval "$ac_compile") 2>conftest.er1
12010 grep -v '^ *+' conftest.er1 >conftest.err
12012 cat conftest.err >&5
12013 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12014 (exit $ac_status); } && {
12015 test -z "$ac_c_werror_flag" ||
12016 test ! -s conftest.err
12017 } && test -s conftest.$ac_objext; then
12018 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12020 $as_echo "$as_me: failed program was
:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12023 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12028 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12029 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12030 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12031 HAVE_GTK_FILE_SELECTION=yes
12033 HAVE_GTK_FILE_SELECTION=no
12036 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12038 for ac_func in gtk_file_selection_new
12040 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12041 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
12042 $as_echo_n "checking
for $ac_func...
" >&6; }
12043 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12044 $as_echo_n "(cached
) " >&6
12046 cat >conftest.$ac_ext <<_ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12054 #define $ac_func innocuous_$ac_func
12056 /* System header to define __stub macros and hopefully few prototypes,
12057 which can conflict with char $ac_func (); below.
12058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12059 <limits.h> exists even on freestanding compilers. */
12062 # include <limits.h>
12064 # include <assert.h>
12069 /* Override any GCC internal prototype to avoid an error.
12070 Use char because int might match the return type of a GCC
12071 builtin and then its argument prototype would still apply. */
12076 /* The GNU C library defines this for functions which it implements
12077 to always fail with ENOSYS. Some functions are actually named
12078 something starting with __ and the normal name is an alias. */
12079 #if defined __stub_$ac_func || defined __stub___$ac_func
12086 return $ac_func ();
12091 rm -f conftest.$ac_objext conftest$ac_exeext
12092 if { (ac_try="$ac_link"
12093 case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12097 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12098 $as_echo "$ac_try_echo") >&5
12099 (eval "$ac_link") 2>conftest.er1
12101 grep -v '^ *+' conftest.er1 >conftest.err
12103 cat conftest.err >&5
12104 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12105 (exit $ac_status); } && {
12106 test -z "$ac_c_werror_flag" ||
12107 test ! -s conftest.err
12108 } && test -s conftest$ac_exeext && {
12109 test "$cross_compiling" = yes ||
12110 $as_test_x conftest$ac_exeext
12112 eval "$as_ac_var=yes"
12114 $as_echo "$as_me: failed program was
:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12117 eval "$as_ac_var=no
"
12120 rm -rf conftest.dSYM
12121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12122 conftest$ac_exeext conftest.$ac_ext
12124 ac_res=`eval 'as_val=${'$as_ac_var'}
12125 $as_echo "$as_val"'`
12126 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12127 $as_echo "$ac_res" >&6; }
12128 if test `eval 'as_val=${'$as_ac_var'}
12129 $as_echo "$as_val"'` = yes; then
12130 cat >>confdefs.h <<_ACEOF
12131 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12133 HAVE_GTK_FILE_SELECTION=yes
12135 HAVE_GTK_FILE_SELECTION=no
12141 HAVE_GTK_FILE_CHOOSER=no
12142 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared
" >&5
12143 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared...
" >&6; }
12144 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12145 $as_echo_n "(cached
) " >&6
12147 cat >conftest.$ac_ext <<_ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12153 $ac_includes_default
12154 #include <gtk/gtk.h>
12159 #ifndef GTK_TYPE_FILE_CHOOSER
12160 (void) GTK_TYPE_FILE_CHOOSER;
12167 rm -f conftest.$ac_objext
12168 if { (ac_try="$ac_compile"
12169 case "(($ac_try" in
12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171 *) ac_try_echo=$ac_try;;
12173 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12174 $as_echo "$ac_try_echo") >&5
12175 (eval "$ac_compile") 2>conftest.er1
12177 grep -v '^ *+' conftest.er1 >conftest.err
12179 cat conftest.err >&5
12180 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12181 (exit $ac_status); } && {
12182 test -z "$ac_c_werror_flag" ||
12183 test ! -s conftest.err
12184 } && test -s conftest.$ac_objext; then
12185 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12187 $as_echo "$as_me: failed program was
:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12190 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12195 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12196 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12197 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12198 HAVE_GTK_FILE_CHOOSER=yes
12200 HAVE_GTK_FILE_CHOOSER=no
12203 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12205 for ac_func in gtk_file_chooser_dialog_new
12207 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12208 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
12209 $as_echo_n "checking
for $ac_func...
" >&6; }
12210 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12211 $as_echo_n "(cached
) " >&6
12213 cat >conftest.$ac_ext <<_ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12221 #define $ac_func innocuous_$ac_func
12223 /* System header to define __stub macros and hopefully few prototypes,
12224 which can conflict with char $ac_func (); below.
12225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12226 <limits.h> exists even on freestanding compilers. */
12229 # include <limits.h>
12231 # include <assert.h>
12236 /* Override any GCC internal prototype to avoid an error.
12237 Use char because int might match the return type of a GCC
12238 builtin and then its argument prototype would still apply. */
12243 /* The GNU C library defines this for functions which it implements
12244 to always fail with ENOSYS. Some functions are actually named
12245 something starting with __ and the normal name is an alias. */
12246 #if defined __stub_$ac_func || defined __stub___$ac_func
12253 return $ac_func ();
12258 rm -f conftest.$ac_objext conftest$ac_exeext
12259 if { (ac_try="$ac_link"
12260 case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12264 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12265 $as_echo "$ac_try_echo") >&5
12266 (eval "$ac_link") 2>conftest.er1
12268 grep -v '^ *+' conftest.er1 >conftest.err
12270 cat conftest.err >&5
12271 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12272 (exit $ac_status); } && {
12273 test -z "$ac_c_werror_flag" ||
12274 test ! -s conftest.err
12275 } && test -s conftest$ac_exeext && {
12276 test "$cross_compiling" = yes ||
12277 $as_test_x conftest$ac_exeext
12279 eval "$as_ac_var=yes"
12281 $as_echo "$as_me: failed program was
:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12284 eval "$as_ac_var=no
"
12287 rm -rf conftest.dSYM
12288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12289 conftest$ac_exeext conftest.$ac_ext
12291 ac_res=`eval 'as_val=${'$as_ac_var'}
12292 $as_echo "$as_val"'`
12293 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12294 $as_echo "$ac_res" >&6; }
12295 if test `eval 'as_val=${'$as_ac_var'}
12296 $as_echo "$as_val"'` = yes; then
12297 cat >>confdefs.h <<_ACEOF
12298 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12300 HAVE_GTK_FILE_CHOOSER=yes
12302 HAVE_GTK_FILE_CHOOSER=no
12308 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12309 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12311 cat >>confdefs.h <<\_ACEOF
12312 #define HAVE_GTK_FILE_BOTH 1
12317 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12318 HAVE_GTK_AND_PTHREAD=no
12320 for ac_header in pthread.h
12322 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
12323 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12324 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12325 $as_echo_n "checking
for $ac_header...
" >&6; }
12326 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12327 $as_echo_n "(cached
) " >&6
12329 ac_res=`eval 'as_val=${'$as_ac_Header'}
12330 $as_echo "$as_val"'`
12331 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12332 $as_echo "$ac_res" >&6; }
12334 # Is the header compilable?
12335 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
12336 $as_echo_n "checking
$ac_header usability...
" >&6; }
12337 cat >conftest.$ac_ext <<_ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343 $ac_includes_default
12344 #include <$ac_header>
12346 rm -f conftest.$ac_objext
12347 if { (ac_try="$ac_compile"
12348 case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12352 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12353 $as_echo "$ac_try_echo") >&5
12354 (eval "$ac_compile") 2>conftest.er1
12356 grep -v '^ *+' conftest.er1 >conftest.err
12358 cat conftest.err >&5
12359 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12360 (exit $ac_status); } && {
12361 test -z "$ac_c_werror_flag" ||
12362 test ! -s conftest.err
12363 } && test -s conftest.$ac_objext; then
12364 ac_header_compiler=yes
12366 $as_echo "$as_me: failed program was
:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_header_compiler=no
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12373 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
12374 $as_echo "$ac_header_compiler" >&6; }
12376 # Is the header present?
12377 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
12378 $as_echo_n "checking
$ac_header presence...
" >&6; }
12379 cat >conftest.$ac_ext <<_ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 #include <$ac_header>
12387 if { (ac_try="$ac_cpp conftest.
$ac_ext"
12388 case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12392 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12393 $as_echo "$ac_try_echo") >&5
12394 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
12396 grep -v '^ *+' conftest.er1 >conftest.err
12398 cat conftest.err >&5
12399 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12400 (exit $ac_status); } >/dev/null && {
12401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12402 test ! -s conftest.err
12404 ac_header_preproc=yes
12406 $as_echo "$as_me: failed program was
:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12409 ac_header_preproc=no
12412 rm -f conftest.err conftest.$ac_ext
12413 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
12414 $as_echo "$ac_header_preproc" >&6; }
12416 # So? What about this header?
12417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12419 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
12420 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
12421 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
12422 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
12423 ac_header_preproc=yes
12426 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
12427 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
12428 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
12429 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
12430 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
12431 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
12432 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
12433 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
12434 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
12435 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
12436 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
12437 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
12441 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
12442 $as_echo_n "checking
for $ac_header...
" >&6; }
12443 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
12444 $as_echo_n "(cached
) " >&6
12446 eval "$as_ac_Header=\
$ac_header_preproc"
12448 ac_res=`eval 'as_val=${'$as_ac_Header'}
12449 $as_echo "$as_val"'`
12450 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12451 $as_echo "$ac_res" >&6; }
12454 if test `eval 'as_val=${'$as_ac_Header'}
12455 $as_echo "$as_val"'` = yes; then
12456 cat >>confdefs.h <<_ACEOF
12457 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
12464 if test "$ac_cv_header_pthread_h"; then
12465 { $as_echo "$as_me:$LINENO: checking
for pthread_self
in -lpthread" >&5
12466 $as_echo_n "checking
for pthread_self
in -lpthread...
" >&6; }
12467 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12468 $as_echo_n "(cached
) " >&6
12470 ac_check_lib_save_LIBS=$LIBS
12471 LIBS="-lpthread $LIBS"
12472 cat >conftest.$ac_ext <<_ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12479 /* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
12485 char pthread_self ();
12489 return pthread_self ();
12494 rm -f conftest.$ac_objext conftest$ac_exeext
12495 if { (ac_try="$ac_link"
12496 case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12500 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12501 $as_echo "$ac_try_echo") >&5
12502 (eval "$ac_link") 2>conftest.er1
12504 grep -v '^ *+' conftest.er1 >conftest.err
12506 cat conftest.err >&5
12507 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12508 (exit $ac_status); } && {
12509 test -z "$ac_c_werror_flag" ||
12510 test ! -s conftest.err
12511 } && test -s conftest$ac_exeext && {
12512 test "$cross_compiling" = yes ||
12513 $as_test_x conftest$ac_exeext
12515 ac_cv_lib_pthread_pthread_self=yes
12517 $as_echo "$as_me: failed program was
:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12520 ac_cv_lib_pthread_pthread_self=no
12523 rm -rf conftest.dSYM
12524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12525 conftest$ac_exeext conftest.$ac_ext
12526 LIBS=$ac_check_lib_save_LIBS
12528 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_pthread_pthread_self" >&5
12529 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12530 if test $ac_cv_lib_pthread_pthread_self = yes; then
12531 HAVE_GTK_AND_PTHREAD=yes
12535 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12536 case "${canonical}" in
12538 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12541 cat >>confdefs.h <<\_ACEOF
12542 #define HAVE_GTK_AND_PTHREAD 1
12551 if test "${with_dbus}" = "yes"; then
12555 # Extract the first word of "pkg-config
", so it can be a program name with args.
12556 set dummy pkg-config; ac_word=$2
12557 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
12558 $as_echo_n "checking
for $ac_word...
" >&6; }
12559 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12560 $as_echo_n "(cached
) " >&6
12562 case $PKG_CONFIG in
12564 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in $PATH
12571 test -z "$as_dir" && as_dir=.
12572 for ac_exec_ext in '' $ac_executable_extensions; do
12573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12574 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12575 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12582 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12586 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12587 if test -n "$PKG_CONFIG"; then
12588 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12589 $as_echo "$PKG_CONFIG" >&6; }
12591 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12592 $as_echo "no
" >&6; }
12597 if test "$PKG_CONFIG" = "no
" ; then
12600 PKG_CONFIG_MIN_VERSION=0.9.0
12601 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12602 { $as_echo "$as_me:$LINENO: checking
for dbus-1
>= 1.0" >&5
12603 $as_echo_n "checking
for dbus-1
>= 1.0...
" >&6; }
12605 if $PKG_CONFIG --exists "dbus-1
>= 1.0" 2>&5; then
12606 { $as_echo "$as_me:$LINENO: result
: yes" >&5
12607 $as_echo "yes" >&6; }
12610 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS
" >&5
12611 $as_echo_n "checking DBUS_CFLAGS...
" >&6; }
12612 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12613 { $as_echo "$as_me:$LINENO: result
: $DBUS_CFLAGS" >&5
12614 $as_echo "$DBUS_CFLAGS" >&6; }
12616 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS
" >&5
12617 $as_echo_n "checking DBUS_LIBS...
" >&6; }
12618 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1
>= 1.0"|sed -e 's,///*,/,g'`
12619 { $as_echo "$as_me:$LINENO: result
: $DBUS_LIBS" >&5
12620 $as_echo "$DBUS_LIBS" >&6; }
12622 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12623 $as_echo "no
" >&6; }
12626 ## If we have a custom action on failure, don't print errors, but
12627 ## do set a variable so people can do so.
12628 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1
>= 1.0"`
12635 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12636 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12640 if test $succeeded = yes; then
12646 if test "$HAVE_DBUS" = yes; then
12647 LIBS="$LIBS $DBUS_LIBS"
12649 cat >>confdefs.h <<\_ACEOF
12650 #define HAVE_DBUS 1
12654 for ac_func in dbus_watch_get_unix_fd
12656 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
12657 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
12658 $as_echo_n "checking
for $ac_func...
" >&6; }
12659 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
12660 $as_echo_n "(cached
) " >&6
12662 cat >conftest.$ac_ext <<_ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12670 #define $ac_func innocuous_$ac_func
12672 /* System header to define __stub macros and hopefully few prototypes,
12673 which can conflict with char $ac_func (); below.
12674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12675 <limits.h> exists even on freestanding compilers. */
12678 # include <limits.h>
12680 # include <assert.h>
12685 /* Override any GCC internal prototype to avoid an error.
12686 Use char because int might match the return type of a GCC
12687 builtin and then its argument prototype would still apply. */
12692 /* The GNU C library defines this for functions which it implements
12693 to always fail with ENOSYS. Some functions are actually named
12694 something starting with __ and the normal name is an alias. */
12695 #if defined __stub_$ac_func || defined __stub___$ac_func
12702 return $ac_func ();
12707 rm -f conftest.$ac_objext conftest$ac_exeext
12708 if { (ac_try="$ac_link"
12709 case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12713 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12714 $as_echo "$ac_try_echo") >&5
12715 (eval "$ac_link") 2>conftest.er1
12717 grep -v '^ *+' conftest.er1 >conftest.err
12719 cat conftest.err >&5
12720 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12721 (exit $ac_status); } && {
12722 test -z "$ac_c_werror_flag" ||
12723 test ! -s conftest.err
12724 } && test -s conftest$ac_exeext && {
12725 test "$cross_compiling" = yes ||
12726 $as_test_x conftest$ac_exeext
12728 eval "$as_ac_var=yes"
12730 $as_echo "$as_me: failed program was
:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12733 eval "$as_ac_var=no
"
12736 rm -rf conftest.dSYM
12737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12738 conftest$ac_exeext conftest.$ac_ext
12740 ac_res=`eval 'as_val=${'$as_ac_var'}
12741 $as_echo "$as_val"'`
12742 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
12743 $as_echo "$ac_res" >&6; }
12744 if test `eval 'as_val=${'$as_ac_var'}
12745 $as_echo "$as_val"'` = yes; then
12746 cat >>confdefs.h <<_ACEOF
12747 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
12753 DBUS_OBJ=dbusbind.o
12759 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12763 # Extract the first word of "pkg-config
", so it can be a program name with args.
12764 set dummy pkg-config; ac_word=$2
12765 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
12766 $as_echo_n "checking
for $ac_word...
" >&6; }
12767 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12768 $as_echo_n "(cached
) " >&6
12770 case $PKG_CONFIG in
12772 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776 for as_dir in $PATH
12779 test -z "$as_dir" && as_dir=.
12780 for ac_exec_ext in '' $ac_executable_extensions; do
12781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12782 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12783 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
12790 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
12794 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12795 if test -n "$PKG_CONFIG"; then
12796 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
12797 $as_echo "$PKG_CONFIG" >&6; }
12799 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12800 $as_echo "no
" >&6; }
12805 if test "$PKG_CONFIG" = "no
" ; then
12808 PKG_CONFIG_MIN_VERSION=0.9.0
12809 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12810 { $as_echo "$as_me:$LINENO: checking
for gconf-2.0
>= 2.13" >&5
12811 $as_echo_n "checking
for gconf-2.0
>= 2.13...
" >&6; }
12813 if $PKG_CONFIG --exists "gconf-2.0
>= 2.13" 2>&5; then
12814 { $as_echo "$as_me:$LINENO: result
: yes" >&5
12815 $as_echo "yes" >&6; }
12818 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS
" >&5
12819 $as_echo_n "checking GCONF_CFLAGS...
" >&6; }
12820 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0
>= 2.13"|sed -e 's,///*,/,g'`
12821 { $as_echo "$as_me:$LINENO: result
: $GCONF_CFLAGS" >&5
12822 $as_echo "$GCONF_CFLAGS" >&6; }
12824 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS
" >&5
12825 $as_echo_n "checking GCONF_LIBS...
" >&6; }
12826 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0
>= 2.13"|sed -e 's,///*,/,g'`
12827 { $as_echo "$as_me:$LINENO: result
: $GCONF_LIBS" >&5
12828 $as_echo "$GCONF_LIBS" >&6; }
12830 { $as_echo "$as_me:$LINENO: result
: no
" >&5
12831 $as_echo "no
" >&6; }
12834 ## If we have a custom action on failure, don't print errors, but
12835 ## do set a variable so people can do so.
12836 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0
>= 2.13"`
12843 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
12844 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
12848 if test $succeeded = yes; then
12854 if test "$HAVE_GCONF" = yes; then
12856 cat >>confdefs.h <<\_ACEOF
12857 #define HAVE_GCONF 1
12865 if test "${with_selinux}" = "yes"; then
12866 { $as_echo "$as_me:$LINENO: checking
for lgetfilecon
in -lselinux" >&5
12867 $as_echo_n "checking
for lgetfilecon
in -lselinux...
" >&6; }
12868 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
12869 $as_echo_n "(cached
) " >&6
12871 ac_check_lib_save_LIBS=$LIBS
12872 LIBS="-lselinux $LIBS"
12873 cat >conftest.$ac_ext <<_ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12880 /* Override any GCC internal prototype to avoid an error.
12881 Use char because int might match the return type of a GCC
12882 builtin and then its argument prototype would still apply. */
12886 char lgetfilecon ();
12890 return lgetfilecon ();
12895 rm -f conftest.$ac_objext conftest$ac_exeext
12896 if { (ac_try="$ac_link"
12897 case "(($ac_try" in
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12901 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12902 $as_echo "$ac_try_echo") >&5
12903 (eval "$ac_link") 2>conftest.er1
12905 grep -v '^ *+' conftest.er1 >conftest.err
12907 cat conftest.err >&5
12908 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12909 (exit $ac_status); } && {
12910 test -z "$ac_c_werror_flag" ||
12911 test ! -s conftest.err
12912 } && test -s conftest$ac_exeext && {
12913 test "$cross_compiling" = yes ||
12914 $as_test_x conftest$ac_exeext
12916 ac_cv_lib_selinux_lgetfilecon=yes
12918 $as_echo "$as_me: failed program was
:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12921 ac_cv_lib_selinux_lgetfilecon=no
12924 rm -rf conftest.dSYM
12925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12926 conftest$ac_exeext conftest.$ac_ext
12927 LIBS=$ac_check_lib_save_LIBS
12929 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_selinux_lgetfilecon" >&5
12930 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12931 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
12932 HAVE_LIBSELINUX=yes
12937 if test "$HAVE_LIBSELINUX" = yes; then
12939 cat >>confdefs.h <<\_ACEOF
12940 #define HAVE_LIBSELINUX 1
12943 LIBSELINUX_LIBS=-lselinux
12950 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12951 if test "$with_xaw3d" != no; then
12952 { $as_echo "$as_me:$LINENO: checking
for xaw3d
" >&5
12953 $as_echo_n "checking
for xaw3d...
" >&6; }
12954 if test "${emacs_cv_xaw3d+set}" = set; then
12955 $as_echo_n "(cached
) " >&6
12957 cat >conftest.$ac_ext <<_ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12964 #include <X11/Intrinsic.h>
12965 #include <X11/Xaw3d/Simple.h>
12974 rm -f conftest.$ac_objext conftest$ac_exeext
12975 if { (ac_try="$ac_link"
12976 case "(($ac_try" in
12977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978 *) ac_try_echo=$ac_try;;
12980 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
12981 $as_echo "$ac_try_echo") >&5
12982 (eval "$ac_link") 2>conftest.er1
12984 grep -v '^ *+' conftest.er1 >conftest.err
12986 cat conftest.err >&5
12987 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12988 (exit $ac_status); } && {
12989 test -z "$ac_c_werror_flag" ||
12990 test ! -s conftest.err
12991 } && test -s conftest$ac_exeext && {
12992 test "$cross_compiling" = yes ||
12993 $as_test_x conftest$ac_exeext
12997 $as_echo "$as_me: failed program was
:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
13003 rm -rf conftest.dSYM
13004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13005 conftest$ac_exeext conftest.$ac_ext
13011 if test $emacs_cv_xaw3d = yes; then
13012 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
13013 $as_echo "yes; using Lucid toolkit
" >&6; }
13014 USE_X_TOOLKIT=LUCID
13018 cat >>confdefs.h <<\_ACEOF
13019 #define HAVE_XAW3D 1
13023 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13024 $as_echo "no
" >&6; }
13025 { $as_echo "$as_me:$LINENO: checking
for libXaw
" >&5
13026 $as_echo_n "checking
for libXaw...
" >&6; }
13027 if test "${emacs_cv_xaw+set}" = set; then
13028 $as_echo_n "(cached
) " >&6
13030 cat >conftest.$ac_ext <<_ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13037 #include <X11/Intrinsic.h>
13038 #include <X11/Xaw/Simple.h>
13047 rm -f conftest.$ac_objext conftest$ac_exeext
13048 if { (ac_try="$ac_link"
13049 case "(($ac_try" in
13050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051 *) ac_try_echo=$ac_try;;
13053 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13054 $as_echo "$ac_try_echo") >&5
13055 (eval "$ac_link") 2>conftest.er1
13057 grep -v '^ *+' conftest.er1 >conftest.err
13059 cat conftest.err >&5
13060 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13061 (exit $ac_status); } && {
13062 test -z "$ac_c_werror_flag" ||
13063 test ! -s conftest.err
13064 } && test -s conftest$ac_exeext && {
13065 test "$cross_compiling" = yes ||
13066 $as_test_x conftest$ac_exeext
13070 $as_echo "$as_me: failed program was
:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13076 rm -rf conftest.dSYM
13077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13078 conftest$ac_exeext conftest.$ac_ext
13081 if test $emacs_cv_xaw = yes; then
13082 { $as_echo "$as_me:$LINENO: result
: yes; using Lucid toolkit
" >&5
13083 $as_echo "yes; using Lucid toolkit
" >&6; }
13084 USE_X_TOOLKIT=LUCID
13086 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13087 { { $as_echo "$as_me:$LINENO: error
: Lucid toolkit requires X11
/Xaw include files
" >&5
13088 $as_echo "$as_me: error
: Lucid toolkit requires X11
/Xaw include files
" >&2;}
13089 { (exit 1); exit 1; }; }
13091 { $as_echo "$as_me:$LINENO: result
: no
; do not use toolkit by default
" >&5
13092 $as_echo "no
; do not use toolkit by default
" >&6; }
13098 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13101 if test "${USE_X_TOOLKIT}" != "none
"; then
13102 { $as_echo "$as_me:$LINENO: checking X11 toolkit version
" >&5
13103 $as_echo_n "checking X11 toolkit version...
" >&6; }
13104 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13105 $as_echo_n "(cached
) " >&6
13107 cat >conftest.$ac_ext <<_ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 #include <X11/Intrinsic.h>
13117 #if XtSpecificationRelease < 6
13125 rm -f conftest.$ac_objext conftest$ac_exeext
13126 if { (ac_try="$ac_link"
13127 case "(($ac_try" in
13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129 *) ac_try_echo=$ac_try;;
13131 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13132 $as_echo "$ac_try_echo") >&5
13133 (eval "$ac_link") 2>conftest.er1
13135 grep -v '^ *+' conftest.er1 >conftest.err
13137 cat conftest.err >&5
13138 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13139 (exit $ac_status); } && {
13140 test -z "$ac_c_werror_flag" ||
13141 test ! -s conftest.err
13142 } && test -s conftest$ac_exeext && {
13143 test "$cross_compiling" = yes ||
13144 $as_test_x conftest$ac_exeext
13146 emacs_cv_x11_toolkit_version_6=yes
13148 $as_echo "$as_me: failed program was
:" >&5
13149 sed 's/^/| /' conftest.$ac_ext >&5
13151 emacs_cv_x11_toolkit_version_6=no
13154 rm -rf conftest.dSYM
13155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13156 conftest$ac_exeext conftest.$ac_ext
13159 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13160 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13161 { $as_echo "$as_me:$LINENO: result
: 6 or newer
" >&5
13162 $as_echo "6 or newer
" >&6; }
13164 cat >>confdefs.h <<\_ACEOF
13165 #define HAVE_X11XTR6 1
13168 LIBXTR6="-lSM -lICE"
13170 ## Use libw.a along with X11R6 Xt.
13171 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13174 { $as_echo "$as_me:$LINENO: result
: before
6" >&5
13175 $as_echo "before
6" >&6; }
13179 if test x$HAVE_X11XTR6 = xyes; then
13180 LIBS="-lXt -lSM -lICE $LIBS"
13185 { $as_echo "$as_me:$LINENO: checking
for XmuConvertStandardSelection
in -lXmu" >&5
13186 $as_echo_n "checking
for XmuConvertStandardSelection
in -lXmu...
" >&6; }
13187 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13188 $as_echo_n "(cached
) " >&6
13190 ac_check_lib_save_LIBS=$LIBS
13192 cat >conftest.$ac_ext <<_ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h. */
13199 /* Override any GCC internal prototype to avoid an error.
13200 Use char because int might match the return type of a GCC
13201 builtin and then its argument prototype would still apply. */
13205 char XmuConvertStandardSelection ();
13209 return XmuConvertStandardSelection ();
13214 rm -f conftest.$ac_objext conftest$ac_exeext
13215 if { (ac_try="$ac_link"
13216 case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13220 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13221 $as_echo "$ac_try_echo") >&5
13222 (eval "$ac_link") 2>conftest.er1
13224 grep -v '^ *+' conftest.er1 >conftest.err
13226 cat conftest.err >&5
13227 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13228 (exit $ac_status); } && {
13229 test -z "$ac_c_werror_flag" ||
13230 test ! -s conftest.err
13231 } && test -s conftest$ac_exeext && {
13232 test "$cross_compiling" = yes ||
13233 $as_test_x conftest$ac_exeext
13235 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13237 $as_echo "$as_me: failed program was
:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13240 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13243 rm -rf conftest.dSYM
13244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13245 conftest$ac_exeext conftest.$ac_ext
13246 LIBS=$ac_check_lib_save_LIBS
13248 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13249 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13250 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13251 cat >>confdefs.h <<_ACEOF
13252 #define HAVE_LIBXMU 1
13259 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13265 ## These machines don't supply Xmu.
13267 test "X
$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes
" && LIBXMU=
13272 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13273 if test "${HAVE_X11}" = "yes"; then
13274 if test "${USE_X_TOOLKIT}" != "none
"; then
13276 { $as_echo "$as_me:$LINENO: checking
for XShapeQueryExtension
in -lXext" >&5
13277 $as_echo_n "checking
for XShapeQueryExtension
in -lXext...
" >&6; }
13278 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13279 $as_echo_n "(cached
) " >&6
13281 ac_check_lib_save_LIBS=$LIBS
13282 LIBS="-lXext $LIBS"
13283 cat >conftest.$ac_ext <<_ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13290 /* Override any GCC internal prototype to avoid an error.
13291 Use char because int might match the return type of a GCC
13292 builtin and then its argument prototype would still apply. */
13296 char XShapeQueryExtension ();
13300 return XShapeQueryExtension ();
13305 rm -f conftest.$ac_objext conftest$ac_exeext
13306 if { (ac_try="$ac_link"
13307 case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13311 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13312 $as_echo "$ac_try_echo") >&5
13313 (eval "$ac_link") 2>conftest.er1
13315 grep -v '^ *+' conftest.er1 >conftest.err
13317 cat conftest.err >&5
13318 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13319 (exit $ac_status); } && {
13320 test -z "$ac_c_werror_flag" ||
13321 test ! -s conftest.err
13322 } && test -s conftest$ac_exeext && {
13323 test "$cross_compiling" = yes ||
13324 $as_test_x conftest$ac_exeext
13326 ac_cv_lib_Xext_XShapeQueryExtension=yes
13328 $as_echo "$as_me: failed program was
:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13331 ac_cv_lib_Xext_XShapeQueryExtension=no
13334 rm -rf conftest.dSYM
13335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13336 conftest$ac_exeext conftest.$ac_ext
13337 LIBS=$ac_check_lib_save_LIBS
13339 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13340 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13341 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13342 cat >>confdefs.h <<_ACEOF
13343 #define HAVE_LIBXEXT 1
13346 LIBS="-lXext $LIBS"
13354 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
13355 { $as_echo "$as_me:$LINENO: checking
for Motif version
2.1" >&5
13356 $as_echo_n "checking
for Motif version
2.1...
" >&6; }
13357 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13358 $as_echo_n "(cached
) " >&6
13360 cat >conftest.$ac_ext <<_ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13370 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13373 Motif version prior to 2.1.
13379 rm -f conftest.$ac_objext
13380 if { (ac_try="$ac_compile"
13381 case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13385 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13386 $as_echo "$ac_try_echo") >&5
13387 (eval "$ac_compile") 2>conftest.er1
13389 grep -v '^ *+' conftest.er1 >conftest.err
13391 cat conftest.err >&5
13392 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13393 (exit $ac_status); } && {
13394 test -z "$ac_c_werror_flag" ||
13395 test ! -s conftest.err
13396 } && test -s conftest.$ac_objext; then
13397 emacs_cv_motif_version_2_1=yes
13399 $as_echo "$as_me: failed program was
:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13402 emacs_cv_motif_version_2_1=no
13405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_motif_version_2_1" >&5
13408 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13409 if test $emacs_cv_motif_version_2_1 = yes; then
13410 { $as_echo "$as_me:$LINENO: checking
for XpCreateContext
in -lXp" >&5
13411 $as_echo_n "checking
for XpCreateContext
in -lXp...
" >&6; }
13412 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13413 $as_echo_n "(cached
) " >&6
13415 ac_check_lib_save_LIBS=$LIBS
13417 cat >conftest.$ac_ext <<_ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13424 /* Override any GCC internal prototype to avoid an error.
13425 Use char because int might match the return type of a GCC
13426 builtin and then its argument prototype would still apply. */
13430 char XpCreateContext ();
13434 return XpCreateContext ();
13439 rm -f conftest.$ac_objext conftest$ac_exeext
13440 if { (ac_try="$ac_link"
13441 case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13445 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13446 $as_echo "$ac_try_echo") >&5
13447 (eval "$ac_link") 2>conftest.er1
13449 grep -v '^ *+' conftest.er1 >conftest.err
13451 cat conftest.err >&5
13452 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13453 (exit $ac_status); } && {
13454 test -z "$ac_c_werror_flag" ||
13455 test ! -s conftest.err
13456 } && test -s conftest$ac_exeext && {
13457 test "$cross_compiling" = yes ||
13458 $as_test_x conftest$ac_exeext
13460 ac_cv_lib_Xp_XpCreateContext=yes
13462 $as_echo "$as_me: failed program was
:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13465 ac_cv_lib_Xp_XpCreateContext=no
13468 rm -rf conftest.dSYM
13469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13470 conftest$ac_exeext conftest.$ac_ext
13471 LIBS=$ac_check_lib_save_LIBS
13473 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xp_XpCreateContext" >&5
13474 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13475 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13480 { $as_echo "$as_me:$LINENO: checking
for LessTif where some systems put it
" >&5
13481 $as_echo_n "checking
for LessTif where some systems put it...
" >&6; }
13482 if test "${emacs_cv_lesstif+set}" = set; then
13483 $as_echo_n "(cached
) " >&6
13485 # We put this in CFLAGS temporarily to precede other -I options
13486 # that might be in CFLAGS temporarily.
13487 # We put this in CPPFLAGS where it precedes the other -I options.
13488 OLD_CPPFLAGS=$CPPFLAGS
13490 CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CPPFLAGS"
13491 CFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$CFLAGS"
13492 cat >conftest.$ac_ext <<_ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13498 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13507 rm -f conftest.$ac_objext
13508 if { (ac_try="$ac_compile"
13509 case "(($ac_try" in
13510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511 *) ac_try_echo=$ac_try;;
13513 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13514 $as_echo "$ac_try_echo") >&5
13515 (eval "$ac_compile") 2>conftest.er1
13517 grep -v '^ *+' conftest.er1 >conftest.err
13519 cat conftest.err >&5
13520 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13521 (exit $ac_status); } && {
13522 test -z "$ac_c_werror_flag" ||
13523 test ! -s conftest.err
13524 } && test -s conftest.$ac_objext; then
13525 emacs_cv_lesstif=yes
13527 $as_echo "$as_me: failed program was
:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13530 emacs_cv_lesstif=no
13533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13535 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_lesstif" >&5
13536 $as_echo "$emacs_cv_lesstif" >&6; }
13537 if test $emacs_cv_lesstif = yes; then
13538 # Make sure this -I option remains in CPPFLAGS after it is set
13539 # back to REAL_CPPFLAGS.
13540 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13541 # have those other -I options anyway. Ultimately, having this
13542 # directory ultimately in CPPFLAGS will be enough.
13543 REAL_CPPFLAGS="-I/usr
/X11R
6/LessTif
/Motif1.2
/include
$REAL_CPPFLAGS"
13544 LDFLAGS="-L/usr
/X11R
6/LessTif
/Motif1.2
/lib
$LDFLAGS"
13547 CPPFLAGS=$OLD_CPPFLAGS
13554 USE_TOOLKIT_SCROLL_BARS=no
13555 if test "${with_toolkit_scroll_bars}" != "no
"; then
13556 if test "${USE_X_TOOLKIT}" != "none
"; then
13557 if test "${USE_X_TOOLKIT}" = "MOTIF
"; then
13558 cat >>confdefs.h <<\_ACEOF
13559 #define USE_TOOLKIT_SCROLL_BARS 1
13563 USE_TOOLKIT_SCROLL_BARS=yes
13564 elif test "${HAVE_XAW3D}" = "yes"; then
13565 cat >>confdefs.h <<\_ACEOF
13566 #define USE_TOOLKIT_SCROLL_BARS 1
13569 USE_TOOLKIT_SCROLL_BARS=yes
13571 elif test "${HAVE_GTK}" = "yes"; then
13572 cat >>confdefs.h <<\_ACEOF
13573 #define USE_TOOLKIT_SCROLL_BARS 1
13576 USE_TOOLKIT_SCROLL_BARS=yes
13577 elif test "${HAVE_NS}" = "yes"; then
13578 cat >>confdefs.h <<\_ACEOF
13579 #define USE_TOOLKIT_SCROLL_BARS 1
13582 USE_TOOLKIT_SCROLL_BARS=yes
13586 cat >conftest.$ac_ext <<_ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13593 #include <X11/Xlib.h>
13594 #include <X11/Xresource.h>
13603 rm -f conftest.$ac_objext
13604 if { (ac_try="$ac_compile"
13605 case "(($ac_try" in
13606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607 *) ac_try_echo=$ac_try;;
13609 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13610 $as_echo "$ac_try_echo") >&5
13611 (eval "$ac_compile") 2>conftest.er1
13613 grep -v '^ *+' conftest.er1 >conftest.err
13615 cat conftest.err >&5
13616 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13617 (exit $ac_status); } && {
13618 test -z "$ac_c_werror_flag" ||
13619 test ! -s conftest.err
13620 } && test -s conftest.$ac_objext; then
13623 cat >>confdefs.h <<\_ACEOF
13628 $as_echo "$as_me: failed program was
:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637 if test "${with_xim}" != "no
"; then
13639 cat >>confdefs.h <<\_ACEOF
13646 if test "${HAVE_XIM}" != "no
"; then
13647 late_CFLAGS=$CFLAGS
13648 if test "$GCC" = yes; then
13649 CFLAGS="$CFLAGS --pedantic-errors"
13651 cat >conftest.$ac_ext <<_ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h. */
13658 #include <X11/Xlib.h>
13659 #include <X11/Xresource.h>
13668 XPointer *client_data;
13670 /* If we're not using GCC, it's probably not XFree86, and this is
13671 probably right, but we can't use something like --pedantic-errors. */
13672 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13673 char*, XIMProc, XPointer*);
13675 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13681 rm -f conftest.$ac_objext
13682 if { (ac_try="$ac_compile"
13683 case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13687 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13688 $as_echo "$ac_try_echo") >&5
13689 (eval "$ac_compile") 2>conftest.er1
13691 grep -v '^ *+' conftest.er1 >conftest.err
13693 cat conftest.err >&5
13694 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13695 (exit $ac_status); } && {
13696 test -z "$ac_c_werror_flag" ||
13697 test ! -s conftest.err
13698 } && test -s conftest.$ac_objext; then
13699 emacs_cv_arg6_star=yes
13701 $as_echo "$as_me: failed program was
:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13709 if test "$emacs_cv_arg6_star" = yes; then
13710 cat >>confdefs.h <<\_ACEOF
13711 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13715 cat >>confdefs.h <<\_ACEOF
13716 #define XRegisterIMInstantiateCallback_arg6 XPointer
13720 CFLAGS=$late_CFLAGS
13723 ### Start of font-backend (under any platform) section.
13724 # (nothing here yet -- this is a placeholder)
13725 ### End of font-backend (under any platform) section.
13727 ### Start of font-backend (under X11) section.
13728 if test "${HAVE_X11}" = "yes"; then
13732 # Extract the first word of "pkg-config
", so it can be a program name with args.
13733 set dummy pkg-config; ac_word=$2
13734 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13735 $as_echo_n "checking
for $ac_word...
" >&6; }
13736 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13737 $as_echo_n "(cached
) " >&6
13739 case $PKG_CONFIG in
13741 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745 for as_dir in $PATH
13748 test -z "$as_dir" && as_dir=.
13749 for ac_exec_ext in '' $ac_executable_extensions; do
13750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13751 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13752 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13759 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13763 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13764 if test -n "$PKG_CONFIG"; then
13765 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13766 $as_echo "$PKG_CONFIG" >&6; }
13768 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13769 $as_echo "no
" >&6; }
13774 if test "$PKG_CONFIG" = "no
" ; then
13777 PKG_CONFIG_MIN_VERSION=0.9.0
13778 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13779 { $as_echo "$as_me:$LINENO: checking
for fontconfig
>= 2.2.0" >&5
13780 $as_echo_n "checking
for fontconfig
>= 2.2.0...
" >&6; }
13782 if $PKG_CONFIG --exists "fontconfig
>= 2.2.0" 2>&5; then
13783 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13784 $as_echo "yes" >&6; }
13787 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS
" >&5
13788 $as_echo_n "checking FONTCONFIG_CFLAGS...
" >&6; }
13789 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13790 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_CFLAGS" >&5
13791 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13793 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS
" >&5
13794 $as_echo_n "checking FONTCONFIG_LIBS...
" >&6; }
13795 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig
>= 2.2.0"|sed -e 's,///*,/,g'`
13796 { $as_echo "$as_me:$LINENO: result
: $FONTCONFIG_LIBS" >&5
13797 $as_echo "$FONTCONFIG_LIBS" >&6; }
13799 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13800 $as_echo "no
" >&6; }
13801 FONTCONFIG_CFLAGS=""
13803 ## If we have a custom action on failure, don't print errors, but
13804 ## do set a variable so people can do so.
13805 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig
>= 2.2.0"`
13812 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13813 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13817 if test $succeeded = yes; then
13824 ## Use -lXft if available, unless `--with-xft=no'.
13826 if test "${HAVE_FC}" = "no
" || test "x
${with_x}" = "xno
"; then
13829 if test "x
${with_xft}" != "xno
"; then
13834 # Extract the first word of "pkg-config
", so it can be a program name with args.
13835 set dummy pkg-config; ac_word=$2
13836 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
13837 $as_echo_n "checking
for $ac_word...
" >&6; }
13838 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13839 $as_echo_n "(cached
) " >&6
13841 case $PKG_CONFIG in
13843 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13847 for as_dir in $PATH
13850 test -z "$as_dir" && as_dir=.
13851 for ac_exec_ext in '' $ac_executable_extensions; do
13852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13853 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13854 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
13861 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
13865 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13866 if test -n "$PKG_CONFIG"; then
13867 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
13868 $as_echo "$PKG_CONFIG" >&6; }
13870 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13871 $as_echo "no
" >&6; }
13876 if test "$PKG_CONFIG" = "no
" ; then
13879 PKG_CONFIG_MIN_VERSION=0.9.0
13880 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13881 { $as_echo "$as_me:$LINENO: checking
for xft
>= 0.13.0" >&5
13882 $as_echo_n "checking
for xft
>= 0.13.0...
" >&6; }
13884 if $PKG_CONFIG --exists "xft
>= 0.13.0" 2>&5; then
13885 { $as_echo "$as_me:$LINENO: result
: yes" >&5
13886 $as_echo "yes" >&6; }
13889 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS
" >&5
13890 $as_echo_n "checking XFT_CFLAGS...
" >&6; }
13891 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13892 { $as_echo "$as_me:$LINENO: result
: $XFT_CFLAGS" >&5
13893 $as_echo "$XFT_CFLAGS" >&6; }
13895 { $as_echo "$as_me:$LINENO: checking XFT_LIBS
" >&5
13896 $as_echo_n "checking XFT_LIBS...
" >&6; }
13897 XFT_LIBS=`$PKG_CONFIG --libs "xft
>= 0.13.0"|sed -e 's,///*,/,g'`
13898 { $as_echo "$as_me:$LINENO: result
: $XFT_LIBS" >&5
13899 $as_echo "$XFT_LIBS" >&6; }
13901 { $as_echo "$as_me:$LINENO: result
: no
" >&5
13902 $as_echo "no
" >&6; }
13905 ## If we have a custom action on failure, don't print errors, but
13906 ## do set a variable so people can do so.
13907 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft
>= 0.13.0"`
13914 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
13915 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
13919 if test $succeeded = yes; then
13925 ## Because xftfont.c uses XRenderQueryExtension, we also
13926 ## need to link to -lXrender.
13928 { $as_echo "$as_me:$LINENO: checking
for XRenderQueryExtension
in -lXrender" >&5
13929 $as_echo_n "checking
for XRenderQueryExtension
in -lXrender...
" >&6; }
13930 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13931 $as_echo_n "(cached
) " >&6
13933 ac_check_lib_save_LIBS=$LIBS
13934 LIBS="-lXrender $LIBS"
13935 cat >conftest.$ac_ext <<_ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h. */
13942 /* Override any GCC internal prototype to avoid an error.
13943 Use char because int might match the return type of a GCC
13944 builtin and then its argument prototype would still apply. */
13948 char XRenderQueryExtension ();
13952 return XRenderQueryExtension ();
13957 rm -f conftest.$ac_objext conftest$ac_exeext
13958 if { (ac_try="$ac_link"
13959 case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13963 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
13964 $as_echo "$ac_try_echo") >&5
13965 (eval "$ac_link") 2>conftest.er1
13967 grep -v '^ *+' conftest.er1 >conftest.err
13969 cat conftest.err >&5
13970 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13971 (exit $ac_status); } && {
13972 test -z "$ac_c_werror_flag" ||
13973 test ! -s conftest.err
13974 } && test -s conftest$ac_exeext && {
13975 test "$cross_compiling" = yes ||
13976 $as_test_x conftest$ac_exeext
13978 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13980 $as_echo "$as_me: failed program was
:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13983 ac_cv_lib_Xrender_XRenderQueryExtension=no
13986 rm -rf conftest.dSYM
13987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13988 conftest$ac_exeext conftest.$ac_ext
13989 LIBS=$ac_check_lib_save_LIBS
13991 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13992 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13993 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13997 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13998 OLD_CPPFLAGS="$CPPFLAGS"
13999 OLD_CFLAGS="$CFLAGS"
14001 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14002 CFLAGS="$CFLAGS $XFT_CFLAGS"
14003 XFT_LIBS="-lXrender $XFT_LIBS"
14004 LIBS="$XFT_LIBS $LIBS"
14005 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14006 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
14007 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
14008 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14009 $as_echo_n "(cached
) " >&6
14011 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
14012 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14014 # Is the header compilable?
14015 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h usability
" >&5
14016 $as_echo_n "checking X11
/Xft
/Xft.h usability...
" >&6; }
14017 cat >conftest.$ac_ext <<_ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14023 $ac_includes_default
14024 #include <X11/Xft/Xft.h>
14026 rm -f conftest.$ac_objext
14027 if { (ac_try="$ac_compile"
14028 case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14032 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14033 $as_echo "$ac_try_echo") >&5
14034 (eval "$ac_compile") 2>conftest.er1
14036 grep -v '^ *+' conftest.er1 >conftest.err
14038 cat conftest.err >&5
14039 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14040 (exit $ac_status); } && {
14041 test -z "$ac_c_werror_flag" ||
14042 test ! -s conftest.err
14043 } && test -s conftest.$ac_objext; then
14044 ac_header_compiler=yes
14046 $as_echo "$as_me: failed program was
:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14049 ac_header_compiler=no
14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14054 $as_echo "$ac_header_compiler" >&6; }
14056 # Is the header present?
14057 { $as_echo "$as_me:$LINENO: checking X11
/Xft
/Xft.h presence
" >&5
14058 $as_echo_n "checking X11
/Xft
/Xft.h presence...
" >&6; }
14059 cat >conftest.$ac_ext <<_ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14065 #include <X11/Xft/Xft.h>
14067 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14068 case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14072 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14073 $as_echo "$ac_try_echo") >&5
14074 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14076 grep -v '^ *+' conftest.er1 >conftest.err
14078 cat conftest.err >&5
14079 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14080 (exit $ac_status); } >/dev/null && {
14081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14082 test ! -s conftest.err
14084 ac_header_preproc=yes
14086 $as_echo "$as_me: failed program was
:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14089 ac_header_preproc=no
14092 rm -f conftest.err conftest.$ac_ext
14093 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14094 $as_echo "$ac_header_preproc" >&6; }
14096 # So? What about this header?
14097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14099 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14100 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14101 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the compiler
's result" >&5
14102 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result
" >&2;}
14103 ac_header_preproc=yes
14106 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&5
14107 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: present but cannot be compiled
" >&2;}
14108 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&5
14109 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: check
for missing prerequisite headers?
" >&2;}
14110 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&5
14111 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: see the Autoconf documentation
" >&2;}
14112 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14113 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14114 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: proceeding with the preprocessor
's result" >&5
14115 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result
" >&2;}
14116 { $as_echo "$as_me:$LINENO: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&5
14117 $as_echo "$as_me: WARNING
: X11
/Xft
/Xft.h
: in the future
, the compiler will take precedence
" >&2;}
14121 { $as_echo "$as_me:$LINENO: checking
for X11
/Xft
/Xft.h
" >&5
14122 $as_echo_n "checking
for X11
/Xft
/Xft.h...
" >&6; }
14123 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14124 $as_echo_n "(cached
) " >&6
14126 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14128 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_Xft_Xft_h" >&5
14129 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14132 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14133 { $as_echo "$as_me:$LINENO: checking
for XftFontOpen
in -lXft" >&5
14134 $as_echo_n "checking
for XftFontOpen
in -lXft...
" >&6; }
14135 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14136 $as_echo_n "(cached
) " >&6
14138 ac_check_lib_save_LIBS=$LIBS
14139 LIBS="-lXft $XFT_LIBS $LIBS"
14140 cat >conftest.$ac_ext <<_ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14147 /* Override any GCC internal prototype to avoid an error.
14148 Use char because int might match the return type of a GCC
14149 builtin and then its argument prototype would still apply. */
14153 char XftFontOpen ();
14157 return XftFontOpen ();
14162 rm -f conftest.$ac_objext conftest$ac_exeext
14163 if { (ac_try="$ac_link"
14164 case "(($ac_try" in
14165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166 *) ac_try_echo=$ac_try;;
14168 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14169 $as_echo "$ac_try_echo") >&5
14170 (eval "$ac_link") 2>conftest.er1
14172 grep -v '^ *+' conftest.er1 >conftest.err
14174 cat conftest.err >&5
14175 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14176 (exit $ac_status); } && {
14177 test -z "$ac_c_werror_flag" ||
14178 test ! -s conftest.err
14179 } && test -s conftest$ac_exeext && {
14180 test "$cross_compiling" = yes ||
14181 $as_test_x conftest$ac_exeext
14183 ac_cv_lib_Xft_XftFontOpen=yes
14185 $as_echo "$as_me: failed program was
:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 ac_cv_lib_Xft_XftFontOpen=no
14191 rm -rf conftest.dSYM
14192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14193 conftest$ac_exeext conftest.$ac_ext
14194 LIBS=$ac_check_lib_save_LIBS
14196 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xft_XftFontOpen" >&5
14197 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14198 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14206 if test "${HAVE_XFT}" = "yes"; then
14208 cat >>confdefs.h <<\_ACEOF
14213 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14215 CPPFLAGS="$OLD_CPPFLAGS"
14216 CFLAGS="$OLD_CFLAGS"
14218 fi # "${HAVE_XFT}" = "yes"
14219 fi # "$HAVE_XFT" != no
14220 fi # "x
${with_xft}" != "xno
"
14222 if test "$HAVE_XFT" != "yes"; then
14228 ## We used to allow building with FreeType and without Xft.
14229 ## However, the ftx font backend driver is not in good shape.
14230 if test "${HAVE_XFT}" = "yes"; then
14237 if test "${HAVE_FREETYPE}" = "yes"; then
14239 cat >>confdefs.h <<\_ACEOF
14240 #define HAVE_FREETYPE 1
14243 if test "${with_libotf}" != "no
"; then
14247 # Extract the first word of "pkg-config
", so it can be a program name with args.
14248 set dummy pkg-config; ac_word=$2
14249 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
14250 $as_echo_n "checking
for $ac_word...
" >&6; }
14251 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14252 $as_echo_n "(cached
) " >&6
14254 case $PKG_CONFIG in
14256 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14260 for as_dir in $PATH
14263 test -z "$as_dir" && as_dir=.
14264 for ac_exec_ext in '' $ac_executable_extensions; do
14265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14266 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14267 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14274 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
14278 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14279 if test -n "$PKG_CONFIG"; then
14280 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
14281 $as_echo "$PKG_CONFIG" >&6; }
14283 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14284 $as_echo "no
" >&6; }
14289 if test "$PKG_CONFIG" = "no
" ; then
14292 PKG_CONFIG_MIN_VERSION=0.9.0
14293 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14294 { $as_echo "$as_me:$LINENO: checking
for libotf
" >&5
14295 $as_echo_n "checking
for libotf...
" >&6; }
14297 if $PKG_CONFIG --exists "libotf
" 2>&5; then
14298 { $as_echo "$as_me:$LINENO: result
: yes" >&5
14299 $as_echo "yes" >&6; }
14302 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS
" >&5
14303 $as_echo_n "checking LIBOTF_CFLAGS...
" >&6; }
14304 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf
"|sed -e 's,///*,/,g'`
14305 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_CFLAGS" >&5
14306 $as_echo "$LIBOTF_CFLAGS" >&6; }
14308 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS
" >&5
14309 $as_echo_n "checking LIBOTF_LIBS...
" >&6; }
14310 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf
"|sed -e 's,///*,/,g'`
14311 { $as_echo "$as_me:$LINENO: result
: $LIBOTF_LIBS" >&5
14312 $as_echo "$LIBOTF_LIBS" >&6; }
14314 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14315 $as_echo "no
" >&6; }
14318 ## If we have a custom action on failure, don't print errors, but
14319 ## do set a variable so people can do so.
14320 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf
"`
14327 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
14328 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
14332 if test $succeeded = yes; then
14338 if test "$HAVE_LIBOTF" = "yes"; then
14340 cat >>confdefs.h <<\_ACEOF
14341 #define HAVE_LIBOTF 1
14344 { $as_echo "$as_me:$LINENO: checking
for OTF_get_variation_glyphs
in -lotf" >&5
14345 $as_echo_n "checking
for OTF_get_variation_glyphs
in -lotf...
" >&6; }
14346 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14347 $as_echo_n "(cached
) " >&6
14349 ac_check_lib_save_LIBS=$LIBS
14351 cat >conftest.$ac_ext <<_ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14358 /* Override any GCC internal prototype to avoid an error.
14359 Use char because int might match the return type of a GCC
14360 builtin and then its argument prototype would still apply. */
14364 char OTF_get_variation_glyphs ();
14368 return OTF_get_variation_glyphs ();
14373 rm -f conftest.$ac_objext conftest$ac_exeext
14374 if { (ac_try="$ac_link"
14375 case "(($ac_try" in
14376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14377 *) ac_try_echo=$ac_try;;
14379 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14380 $as_echo "$ac_try_echo") >&5
14381 (eval "$ac_link") 2>conftest.er1
14383 grep -v '^ *+' conftest.er1 >conftest.err
14385 cat conftest.err >&5
14386 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14387 (exit $ac_status); } && {
14388 test -z "$ac_c_werror_flag" ||
14389 test ! -s conftest.err
14390 } && test -s conftest$ac_exeext && {
14391 test "$cross_compiling" = yes ||
14392 $as_test_x conftest$ac_exeext
14394 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14396 $as_echo "$as_me: failed program was
:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14399 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14402 rm -rf conftest.dSYM
14403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14404 conftest$ac_exeext conftest.$ac_ext
14405 LIBS=$ac_check_lib_save_LIBS
14407 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14408 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14409 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14410 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14412 HAVE_OTF_GET_VARIATION_GLYPHS=no
14415 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14417 cat >>confdefs.h <<\_ACEOF
14418 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14427 if test "${HAVE_LIBOTF}" = yes; then
14428 if test "${with_m17n_flt}" != "no
"; then
14432 # Extract the first word of "pkg-config
", so it can be a program name with args.
14433 set dummy pkg-config; ac_word=$2
14434 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
14435 $as_echo_n "checking
for $ac_word...
" >&6; }
14436 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14437 $as_echo_n "(cached
) " >&6
14439 case $PKG_CONFIG in
14441 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14445 for as_dir in $PATH
14448 test -z "$as_dir" && as_dir=.
14449 for ac_exec_ext in '' $ac_executable_extensions; do
14450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14451 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14452 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14459 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no
"
14463 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14464 if test -n "$PKG_CONFIG"; then
14465 { $as_echo "$as_me:$LINENO: result
: $PKG_CONFIG" >&5
14466 $as_echo "$PKG_CONFIG" >&6; }
14468 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14469 $as_echo "no
" >&6; }
14474 if test "$PKG_CONFIG" = "no
" ; then
14477 PKG_CONFIG_MIN_VERSION=0.9.0
14478 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14479 { $as_echo "$as_me:$LINENO: checking
for m17n-flt
" >&5
14480 $as_echo_n "checking
for m17n-flt...
" >&6; }
14482 if $PKG_CONFIG --exists "m17n-flt
" 2>&5; then
14483 { $as_echo "$as_me:$LINENO: result
: yes" >&5
14484 $as_echo "yes" >&6; }
14487 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS
" >&5
14488 $as_echo_n "checking M17N_FLT_CFLAGS...
" >&6; }
14489 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt
"|sed -e 's,///*,/,g'`
14490 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_CFLAGS" >&5
14491 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14493 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS
" >&5
14494 $as_echo_n "checking M17N_FLT_LIBS...
" >&6; }
14495 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt
"|sed -e 's,///*,/,g'`
14496 { $as_echo "$as_me:$LINENO: result
: $M17N_FLT_LIBS" >&5
14497 $as_echo "$M17N_FLT_LIBS" >&6; }
14499 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14500 $as_echo "no
" >&6; }
14503 ## If we have a custom action on failure, don't print errors, but
14504 ## do set a variable so people can do so.
14505 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt
"`
14512 echo "*** Your version of pkg-config is too old. You need version
$PKG_CONFIG_MIN_VERSION or newer.
"
14513 echo "*** See http
://www.freedesktop.org
/software
/pkgconfig
"
14517 if test $succeeded = yes; then
14523 if test "$HAVE_M17N_FLT" = "yes"; then
14525 cat >>confdefs.h <<\_ACEOF
14526 #define HAVE_M17N_FLT 1
14540 if test "$HAVE_XFT" = "yes"; then
14541 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o
"
14542 elif test "$HAVE_FREETYPE" = "yes"; then
14543 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o
"
14547 ### End of font-backend (under X11) section.
14558 ### Use -lXpm if available, unless `--with-xpm=no'.
14561 if test "${HAVE_X11}" = "yes"; then
14562 if test "${with_xpm}" != "no
"; then
14563 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14564 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
14565 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
14566 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14567 $as_echo_n "(cached
) " >&6
14569 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
14570 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14572 # Is the header compilable?
14573 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h usability
" >&5
14574 $as_echo_n "checking X11
/xpm.h usability...
" >&6; }
14575 cat >conftest.$ac_ext <<_ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14581 $ac_includes_default
14582 #include <X11/xpm.h>
14584 rm -f conftest.$ac_objext
14585 if { (ac_try="$ac_compile"
14586 case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14590 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14591 $as_echo "$ac_try_echo") >&5
14592 (eval "$ac_compile") 2>conftest.er1
14594 grep -v '^ *+' conftest.er1 >conftest.err
14596 cat conftest.err >&5
14597 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14598 (exit $ac_status); } && {
14599 test -z "$ac_c_werror_flag" ||
14600 test ! -s conftest.err
14601 } && test -s conftest.$ac_objext; then
14602 ac_header_compiler=yes
14604 $as_echo "$as_me: failed program was
:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14607 ac_header_compiler=no
14610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14611 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14612 $as_echo "$ac_header_compiler" >&6; }
14614 # Is the header present?
14615 { $as_echo "$as_me:$LINENO: checking X11
/xpm.h presence
" >&5
14616 $as_echo_n "checking X11
/xpm.h presence...
" >&6; }
14617 cat >conftest.$ac_ext <<_ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 #include <X11/xpm.h>
14625 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14626 case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14630 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14631 $as_echo "$ac_try_echo") >&5
14632 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14634 grep -v '^ *+' conftest.er1 >conftest.err
14636 cat conftest.err >&5
14637 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14638 (exit $ac_status); } >/dev/null && {
14639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14640 test ! -s conftest.err
14642 ac_header_preproc=yes
14644 $as_echo "$as_me: failed program was
:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14647 ac_header_preproc=no
14650 rm -f conftest.err conftest.$ac_ext
14651 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14652 $as_echo "$ac_header_preproc" >&6; }
14654 # So? What about this header?
14655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14657 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14658 $as_echo "$as_me: WARNING
: X11
/xpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14659 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&5
14660 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&2;}
14661 ac_header_preproc=yes
14664 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&5
14665 $as_echo "$as_me: WARNING
: X11
/xpm.h
: present but cannot be compiled
" >&2;}
14666 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&5
14667 $as_echo "$as_me: WARNING
: X11
/xpm.h
: check
for missing prerequisite headers?
" >&2;}
14668 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&5
14669 $as_echo "$as_me: WARNING
: X11
/xpm.h
: see the Autoconf documentation
" >&2;}
14670 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14671 $as_echo "$as_me: WARNING
: X11
/xpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14672 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&5
14673 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&2;}
14674 { $as_echo "$as_me:$LINENO: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&5
14675 $as_echo "$as_me: WARNING
: X11
/xpm.h
: in the future
, the compiler will take precedence
" >&2;}
14679 { $as_echo "$as_me:$LINENO: checking
for X11
/xpm.h
" >&5
14680 $as_echo_n "checking
for X11
/xpm.h...
" >&6; }
14681 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14682 $as_echo_n "(cached
) " >&6
14684 ac_cv_header_X11_xpm_h=$ac_header_preproc
14686 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_xpm_h" >&5
14687 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14690 if test $ac_cv_header_X11_xpm_h = yes; then
14691 { $as_echo "$as_me:$LINENO: checking
for XpmReadFileToPixmap
in -lXpm" >&5
14692 $as_echo_n "checking
for XpmReadFileToPixmap
in -lXpm...
" >&6; }
14693 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14694 $as_echo_n "(cached
) " >&6
14696 ac_check_lib_save_LIBS=$LIBS
14697 LIBS="-lXpm -lX11 $LIBS"
14698 cat >conftest.$ac_ext <<_ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h. */
14705 /* Override any GCC internal prototype to avoid an error.
14706 Use char because int might match the return type of a GCC
14707 builtin and then its argument prototype would still apply. */
14711 char XpmReadFileToPixmap ();
14715 return XpmReadFileToPixmap ();
14720 rm -f conftest.$ac_objext conftest$ac_exeext
14721 if { (ac_try="$ac_link"
14722 case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14726 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14727 $as_echo "$ac_try_echo") >&5
14728 (eval "$ac_link") 2>conftest.er1
14730 grep -v '^ *+' conftest.er1 >conftest.err
14732 cat conftest.err >&5
14733 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14734 (exit $ac_status); } && {
14735 test -z "$ac_c_werror_flag" ||
14736 test ! -s conftest.err
14737 } && test -s conftest$ac_exeext && {
14738 test "$cross_compiling" = yes ||
14739 $as_test_x conftest$ac_exeext
14741 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14743 $as_echo "$as_me: failed program was
:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14749 rm -rf conftest.dSYM
14750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14751 conftest$ac_exeext conftest.$ac_ext
14752 LIBS=$ac_check_lib_save_LIBS
14754 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14755 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14756 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14763 if test "${HAVE_XPM}" = "yes"; then
14764 { $as_echo "$as_me:$LINENO: checking
for XpmReturnAllocPixels preprocessor define
" >&5
14765 $as_echo_n "checking
for XpmReturnAllocPixels preprocessor define...
" >&6; }
14766 cat >conftest.$ac_ext <<_ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h. */
14772 #include "X11
/xpm.h
"
14773 #ifndef XpmReturnAllocPixels
14774 no_return_alloc_pixels
14778 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14779 $EGREP "no_return_alloc_pixels
" >/dev/null 2>&1; then
14787 if test "${HAVE_XPM}" = "yes"; then
14788 { $as_echo "$as_me:$LINENO: result
: yes" >&5
14789 $as_echo "yes" >&6; }
14791 { $as_echo "$as_me:$LINENO: result
: no
" >&5
14792 $as_echo "no
" >&6; }
14797 if test "${HAVE_XPM}" = "yes"; then
14799 cat >>confdefs.h <<\_ACEOF
14808 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14811 if test "${HAVE_X11}" = "yes"; then
14812 if test "${with_jpeg}" != "no
"; then
14813 if test "${ac_cv_header_jerror_h+set}" = set; then
14814 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14815 $as_echo_n "checking
for jerror.h...
" >&6; }
14816 if test "${ac_cv_header_jerror_h+set}" = set; then
14817 $as_echo_n "(cached
) " >&6
14819 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14820 $as_echo "$ac_cv_header_jerror_h" >&6; }
14822 # Is the header compilable?
14823 { $as_echo "$as_me:$LINENO: checking jerror.h usability
" >&5
14824 $as_echo_n "checking jerror.h usability...
" >&6; }
14825 cat >conftest.$ac_ext <<_ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 $ac_includes_default
14832 #include <jerror.h>
14834 rm -f conftest.$ac_objext
14835 if { (ac_try="$ac_compile"
14836 case "(($ac_try" in
14837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838 *) ac_try_echo=$ac_try;;
14840 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14841 $as_echo "$ac_try_echo") >&5
14842 (eval "$ac_compile") 2>conftest.er1
14844 grep -v '^ *+' conftest.er1 >conftest.err
14846 cat conftest.err >&5
14847 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14848 (exit $ac_status); } && {
14849 test -z "$ac_c_werror_flag" ||
14850 test ! -s conftest.err
14851 } && test -s conftest.$ac_objext; then
14852 ac_header_compiler=yes
14854 $as_echo "$as_me: failed program was
:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14857 ac_header_compiler=no
14860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14861 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14862 $as_echo "$ac_header_compiler" >&6; }
14864 # Is the header present?
14865 { $as_echo "$as_me:$LINENO: checking jerror.h presence
" >&5
14866 $as_echo_n "checking jerror.h presence...
" >&6; }
14867 cat >conftest.$ac_ext <<_ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 #include <jerror.h>
14875 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14876 case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14880 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14881 $as_echo "$ac_try_echo") >&5
14882 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14884 grep -v '^ *+' conftest.er1 >conftest.err
14886 cat conftest.err >&5
14887 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14888 (exit $ac_status); } >/dev/null && {
14889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14890 test ! -s conftest.err
14892 ac_header_preproc=yes
14894 $as_echo "$as_me: failed program was
:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14897 ac_header_preproc=no
14900 rm -f conftest.err conftest.$ac_ext
14901 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14902 $as_echo "$ac_header_preproc" >&6; }
14904 # So? What about this header?
14905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14907 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
14908 $as_echo "$as_me: WARNING
: jerror.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14909 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the compiler
's result" >&5
14910 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result
" >&2;}
14911 ac_header_preproc=yes
14914 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: present but cannot be compiled
" >&5
14915 $as_echo "$as_me: WARNING
: jerror.h
: present but cannot be compiled
" >&2;}
14916 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&5
14917 $as_echo "$as_me: WARNING
: jerror.h
: check
for missing prerequisite headers?
" >&2;}
14918 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: see the Autoconf documentation
" >&5
14919 $as_echo "$as_me: WARNING
: jerror.h
: see the Autoconf documentation
" >&2;}
14920 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&5
14921 $as_echo "$as_me: WARNING
: jerror.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
14922 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&5
14923 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result
" >&2;}
14924 { $as_echo "$as_me:$LINENO: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&5
14925 $as_echo "$as_me: WARNING
: jerror.h
: in the future
, the compiler will take precedence
" >&2;}
14929 { $as_echo "$as_me:$LINENO: checking
for jerror.h
" >&5
14930 $as_echo_n "checking
for jerror.h...
" >&6; }
14931 if test "${ac_cv_header_jerror_h+set}" = set; then
14932 $as_echo_n "(cached
) " >&6
14934 ac_cv_header_jerror_h=$ac_header_preproc
14936 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_jerror_h" >&5
14937 $as_echo "$ac_cv_header_jerror_h" >&6; }
14940 if test $ac_cv_header_jerror_h = yes; then
14941 { $as_echo "$as_me:$LINENO: checking
for jpeg_destroy_compress
in -ljpeg" >&5
14942 $as_echo_n "checking
for jpeg_destroy_compress
in -ljpeg...
" >&6; }
14943 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14944 $as_echo_n "(cached
) " >&6
14946 ac_check_lib_save_LIBS=$LIBS
14947 LIBS="-ljpeg $LIBS"
14948 cat >conftest.$ac_ext <<_ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h. */
14955 /* Override any GCC internal prototype to avoid an error.
14956 Use char because int might match the return type of a GCC
14957 builtin and then its argument prototype would still apply. */
14961 char jpeg_destroy_compress ();
14965 return jpeg_destroy_compress ();
14970 rm -f conftest.$ac_objext conftest$ac_exeext
14971 if { (ac_try="$ac_link"
14972 case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14976 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
14977 $as_echo "$ac_try_echo") >&5
14978 (eval "$ac_link") 2>conftest.er1
14980 grep -v '^ *+' conftest.er1 >conftest.err
14982 cat conftest.err >&5
14983 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14984 (exit $ac_status); } && {
14985 test -z "$ac_c_werror_flag" ||
14986 test ! -s conftest.err
14987 } && test -s conftest$ac_exeext && {
14988 test "$cross_compiling" = yes ||
14989 $as_test_x conftest$ac_exeext
14991 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14993 $as_echo "$as_me: failed program was
:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14999 rm -rf conftest.dSYM
15000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15001 conftest$ac_exeext conftest.$ac_ext
15002 LIBS=$ac_check_lib_save_LIBS
15004 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15005 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15006 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15016 if test "${HAVE_JPEG}" = "yes"; then
15017 cat >>confdefs.h <<\_ACEOF
15018 #define HAVE_JPEG 1
15021 cat >conftest.$ac_ext <<_ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15027 #include <jpeglib.h>
15028 version=JPEG_LIB_VERSION
15031 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15032 $EGREP "version
= *(6[2-9]|
[7-9][0-9])" >/dev/null 2>&1; then
15033 cat >>confdefs.h <<\_ACEOF
15034 #define HAVE_JPEG 1
15038 { $as_echo "$as_me:$LINENO: WARNING
: libjpeg found
, but not version
6b or later
" >&5
15039 $as_echo "$as_me: WARNING
: libjpeg found
, but not version
6b or later
" >&2;}
15045 if test "${HAVE_JPEG}" = "yes"; then
15051 ### Use -lpng if available, unless `--with-png=no'.
15054 if test "${HAVE_X11}" = "yes"; then
15055 if test "${with_png}" != "no
"; then
15056 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15057 # in /usr/include/libpng.
15060 for ac_header in png.h libpng/png.h
15062 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15063 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15064 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
15065 $as_echo_n "checking
for $ac_header...
" >&6; }
15066 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15067 $as_echo_n "(cached
) " >&6
15069 ac_res=`eval 'as_val=${'$as_ac_Header'}
15070 $as_echo "$as_val"'`
15071 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
15072 $as_echo "$ac_res" >&6; }
15074 # Is the header compilable?
15075 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15076 $as_echo_n "checking
$ac_header usability...
" >&6; }
15077 cat >conftest.$ac_ext <<_ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15083 $ac_includes_default
15084 #include <$ac_header>
15086 rm -f conftest.$ac_objext
15087 if { (ac_try="$ac_compile"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15092 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15093 $as_echo "$ac_try_echo") >&5
15094 (eval "$ac_compile") 2>conftest.er1
15096 grep -v '^ *+' conftest.er1 >conftest.err
15098 cat conftest.err >&5
15099 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15100 (exit $ac_status); } && {
15101 test -z "$ac_c_werror_flag" ||
15102 test ! -s conftest.err
15103 } && test -s conftest.$ac_objext; then
15104 ac_header_compiler=yes
15106 $as_echo "$as_me: failed program was
:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15109 ac_header_compiler=no
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15114 $as_echo "$ac_header_compiler" >&6; }
15116 # Is the header present?
15117 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15118 $as_echo_n "checking
$ac_header presence...
" >&6; }
15119 cat >conftest.$ac_ext <<_ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h. */
15125 #include <$ac_header>
15127 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15128 case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15132 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15133 $as_echo "$ac_try_echo") >&5
15134 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15136 grep -v '^ *+' conftest.er1 >conftest.err
15138 cat conftest.err >&5
15139 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15140 (exit $ac_status); } >/dev/null && {
15141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15142 test ! -s conftest.err
15144 ac_header_preproc=yes
15146 $as_echo "$as_me: failed program was
:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15149 ac_header_preproc=no
15152 rm -f conftest.err conftest.$ac_ext
15153 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15154 $as_echo "$ac_header_preproc" >&6; }
15156 # So? What about this header?
15157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15159 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15160 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15161 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15162 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15163 ac_header_preproc=yes
15166 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15167 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15168 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15169 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15170 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15171 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15172 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15173 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15174 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15175 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15176 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15177 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15181 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
15182 $as_echo_n "checking
for $ac_header...
" >&6; }
15183 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15184 $as_echo_n "(cached
) " >&6
15186 eval "$as_ac_Header=\
$ac_header_preproc"
15188 ac_res=`eval 'as_val=${'$as_ac_Header'}
15189 $as_echo "$as_val"'`
15190 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
15191 $as_echo "$ac_res" >&6; }
15194 if test `eval 'as_val=${'$as_ac_Header'}
15195 $as_echo "$as_val"'` = yes; then
15196 cat >>confdefs.h <<_ACEOF
15197 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15204 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15205 { $as_echo "$as_me:$LINENO: checking
for png_get_channels
in -lpng" >&5
15206 $as_echo_n "checking
for png_get_channels
in -lpng...
" >&6; }
15207 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15208 $as_echo_n "(cached
) " >&6
15210 ac_check_lib_save_LIBS=$LIBS
15211 LIBS="-lpng -lz -lm $LIBS"
15212 cat >conftest.$ac_ext <<_ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h. */
15219 /* Override any GCC internal prototype to avoid an error.
15220 Use char because int might match the return type of a GCC
15221 builtin and then its argument prototype would still apply. */
15225 char png_get_channels ();
15229 return png_get_channels ();
15234 rm -f conftest.$ac_objext conftest$ac_exeext
15235 if { (ac_try="$ac_link"
15236 case "(($ac_try" in
15237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238 *) ac_try_echo=$ac_try;;
15240 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15241 $as_echo "$ac_try_echo") >&5
15242 (eval "$ac_link") 2>conftest.er1
15244 grep -v '^ *+' conftest.er1 >conftest.err
15246 cat conftest.err >&5
15247 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15248 (exit $ac_status); } && {
15249 test -z "$ac_c_werror_flag" ||
15250 test ! -s conftest.err
15251 } && test -s conftest$ac_exeext && {
15252 test "$cross_compiling" = yes ||
15253 $as_test_x conftest$ac_exeext
15255 ac_cv_lib_png_png_get_channels=yes
15257 $as_echo "$as_me: failed program was
:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15260 ac_cv_lib_png_png_get_channels=no
15263 rm -rf conftest.dSYM
15264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15265 conftest$ac_exeext conftest.$ac_ext
15266 LIBS=$ac_check_lib_save_LIBS
15268 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_png_png_get_channels" >&5
15269 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15270 if test $ac_cv_lib_png_png_get_channels = yes; then
15277 if test "${HAVE_PNG}" = "yes"; then
15279 cat >>confdefs.h <<\_ACEOF
15283 LIBPNG="-lpng -lz -lm"
15288 ### Use -ltiff if available, unless `--with-tiff=no'.
15291 if test "${HAVE_X11}" = "yes"; then
15292 if test "${with_tiff}" != "no
"; then
15293 if test "${ac_cv_header_tiffio_h+set}" = set; then
15294 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
15295 $as_echo_n "checking
for tiffio.h...
" >&6; }
15296 if test "${ac_cv_header_tiffio_h+set}" = set; then
15297 $as_echo_n "(cached
) " >&6
15299 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
15300 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15302 # Is the header compilable?
15303 { $as_echo "$as_me:$LINENO: checking tiffio.h usability
" >&5
15304 $as_echo_n "checking tiffio.h usability...
" >&6; }
15305 cat >conftest.$ac_ext <<_ACEOF
15308 cat confdefs.h >>conftest.$ac_ext
15309 cat >>conftest.$ac_ext <<_ACEOF
15310 /* end confdefs.h. */
15311 $ac_includes_default
15312 #include <tiffio.h>
15314 rm -f conftest.$ac_objext
15315 if { (ac_try="$ac_compile"
15316 case "(($ac_try" in
15317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318 *) ac_try_echo=$ac_try;;
15320 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15321 $as_echo "$ac_try_echo") >&5
15322 (eval "$ac_compile") 2>conftest.er1
15324 grep -v '^ *+' conftest.er1 >conftest.err
15326 cat conftest.err >&5
15327 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15328 (exit $ac_status); } && {
15329 test -z "$ac_c_werror_flag" ||
15330 test ! -s conftest.err
15331 } && test -s conftest.$ac_objext; then
15332 ac_header_compiler=yes
15334 $as_echo "$as_me: failed program was
:" >&5
15335 sed 's/^/| /' conftest.$ac_ext >&5
15337 ac_header_compiler=no
15340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15341 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15342 $as_echo "$ac_header_compiler" >&6; }
15344 # Is the header present?
15345 { $as_echo "$as_me:$LINENO: checking tiffio.h presence
" >&5
15346 $as_echo_n "checking tiffio.h presence...
" >&6; }
15347 cat >conftest.$ac_ext <<_ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 #include <tiffio.h>
15355 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15356 case "(($ac_try" in
15357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358 *) ac_try_echo=$ac_try;;
15360 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15361 $as_echo "$ac_try_echo") >&5
15362 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15364 grep -v '^ *+' conftest.er1 >conftest.err
15366 cat conftest.err >&5
15367 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15368 (exit $ac_status); } >/dev/null && {
15369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15370 test ! -s conftest.err
15372 ac_header_preproc=yes
15374 $as_echo "$as_me: failed program was
:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 ac_header_preproc=no
15380 rm -f conftest.err conftest.$ac_ext
15381 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15382 $as_echo "$ac_header_preproc" >&6; }
15384 # So? What about this header?
15385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15387 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15388 $as_echo "$as_me: WARNING
: tiffio.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15389 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&5
15390 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result
" >&2;}
15391 ac_header_preproc=yes
15394 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: present but cannot be compiled
" >&5
15395 $as_echo "$as_me: WARNING
: tiffio.h
: present but cannot be compiled
" >&2;}
15396 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&5
15397 $as_echo "$as_me: WARNING
: tiffio.h
: check
for missing prerequisite headers?
" >&2;}
15398 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: see the Autoconf documentation
" >&5
15399 $as_echo "$as_me: WARNING
: tiffio.h
: see the Autoconf documentation
" >&2;}
15400 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15401 $as_echo "$as_me: WARNING
: tiffio.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15402 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&5
15403 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&2;}
15404 { $as_echo "$as_me:$LINENO: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&5
15405 $as_echo "$as_me: WARNING
: tiffio.h
: in the future
, the compiler will take precedence
" >&2;}
15409 { $as_echo "$as_me:$LINENO: checking
for tiffio.h
" >&5
15410 $as_echo_n "checking
for tiffio.h...
" >&6; }
15411 if test "${ac_cv_header_tiffio_h+set}" = set; then
15412 $as_echo_n "(cached
) " >&6
15414 ac_cv_header_tiffio_h=$ac_header_preproc
15416 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_tiffio_h" >&5
15417 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15420 if test $ac_cv_header_tiffio_h = yes; then
15422 # At least one tiff package requires the jpeg library.
15423 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15424 { $as_echo "$as_me:$LINENO: checking
for TIFFGetVersion
in -ltiff" >&5
15425 $as_echo_n "checking
for TIFFGetVersion
in -ltiff...
" >&6; }
15426 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15427 $as_echo_n "(cached
) " >&6
15429 ac_check_lib_save_LIBS=$LIBS
15430 LIBS="-ltiff $tifflibs $LIBS"
15431 cat >conftest.$ac_ext <<_ACEOF
15434 cat confdefs.h >>conftest.$ac_ext
15435 cat >>conftest.$ac_ext <<_ACEOF
15436 /* end confdefs.h. */
15438 /* Override any GCC internal prototype to avoid an error.
15439 Use char because int might match the return type of a GCC
15440 builtin and then its argument prototype would still apply. */
15444 char TIFFGetVersion ();
15448 return TIFFGetVersion ();
15453 rm -f conftest.$ac_objext conftest$ac_exeext
15454 if { (ac_try="$ac_link"
15455 case "(($ac_try" in
15456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15457 *) ac_try_echo=$ac_try;;
15459 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15460 $as_echo "$ac_try_echo") >&5
15461 (eval "$ac_link") 2>conftest.er1
15463 grep -v '^ *+' conftest.er1 >conftest.err
15465 cat conftest.err >&5
15466 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15467 (exit $ac_status); } && {
15468 test -z "$ac_c_werror_flag" ||
15469 test ! -s conftest.err
15470 } && test -s conftest$ac_exeext && {
15471 test "$cross_compiling" = yes ||
15472 $as_test_x conftest$ac_exeext
15474 ac_cv_lib_tiff_TIFFGetVersion=yes
15476 $as_echo "$as_me: failed program was
:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15479 ac_cv_lib_tiff_TIFFGetVersion=no
15482 rm -rf conftest.dSYM
15483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15484 conftest$ac_exeext conftest.$ac_ext
15485 LIBS=$ac_check_lib_save_LIBS
15487 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15488 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15489 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15498 if test "${HAVE_TIFF}" = "yes"; then
15500 cat >>confdefs.h <<\_ACEOF
15501 #define HAVE_TIFF 1
15509 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15512 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no
"; then
15513 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15514 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
15515 $as_echo_n "checking
for gif_lib.h...
" >&6; }
15516 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15517 $as_echo_n "(cached
) " >&6
15519 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
15520 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15522 # Is the header compilable?
15523 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability
" >&5
15524 $as_echo_n "checking gif_lib.h usability...
" >&6; }
15525 cat >conftest.$ac_ext <<_ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15531 $ac_includes_default
15532 #include <gif_lib.h>
15534 rm -f conftest.$ac_objext
15535 if { (ac_try="$ac_compile"
15536 case "(($ac_try" in
15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538 *) ac_try_echo=$ac_try;;
15540 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15541 $as_echo "$ac_try_echo") >&5
15542 (eval "$ac_compile") 2>conftest.er1
15544 grep -v '^ *+' conftest.er1 >conftest.err
15546 cat conftest.err >&5
15547 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15548 (exit $ac_status); } && {
15549 test -z "$ac_c_werror_flag" ||
15550 test ! -s conftest.err
15551 } && test -s conftest.$ac_objext; then
15552 ac_header_compiler=yes
15554 $as_echo "$as_me: failed program was
:" >&5
15555 sed 's/^/| /' conftest.$ac_ext >&5
15557 ac_header_compiler=no
15560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15561 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15562 $as_echo "$ac_header_compiler" >&6; }
15564 # Is the header present?
15565 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence
" >&5
15566 $as_echo_n "checking gif_lib.h presence...
" >&6; }
15567 cat >conftest.$ac_ext <<_ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15573 #include <gif_lib.h>
15575 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15576 case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15580 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15581 $as_echo "$ac_try_echo") >&5
15582 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15584 grep -v '^ *+' conftest.er1 >conftest.err
15586 cat conftest.err >&5
15587 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15588 (exit $ac_status); } >/dev/null && {
15589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15590 test ! -s conftest.err
15592 ac_header_preproc=yes
15594 $as_echo "$as_me: failed program was
:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15597 ac_header_preproc=no
15600 rm -f conftest.err conftest.$ac_ext
15601 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15602 $as_echo "$ac_header_preproc" >&6; }
15604 # So? What about this header?
15605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15607 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15608 $as_echo "$as_me: WARNING
: gif_lib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15609 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&5
15610 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result
" >&2;}
15611 ac_header_preproc=yes
15614 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: present but cannot be compiled
" >&5
15615 $as_echo "$as_me: WARNING
: gif_lib.h
: present but cannot be compiled
" >&2;}
15616 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&5
15617 $as_echo "$as_me: WARNING
: gif_lib.h
: check
for missing prerequisite headers?
" >&2;}
15618 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&5
15619 $as_echo "$as_me: WARNING
: gif_lib.h
: see the Autoconf documentation
" >&2;}
15620 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15621 $as_echo "$as_me: WARNING
: gif_lib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15622 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&5
15623 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&2;}
15624 { $as_echo "$as_me:$LINENO: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&5
15625 $as_echo "$as_me: WARNING
: gif_lib.h
: in the future
, the compiler will take precedence
" >&2;}
15629 { $as_echo "$as_me:$LINENO: checking
for gif_lib.h
" >&5
15630 $as_echo_n "checking
for gif_lib.h...
" >&6; }
15631 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15632 $as_echo_n "(cached
) " >&6
15634 ac_cv_header_gif_lib_h=$ac_header_preproc
15636 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gif_lib_h" >&5
15637 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15640 if test $ac_cv_header_gif_lib_h = yes; then
15641 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15642 # Earlier versions can crash Emacs.
15643 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lgif" >&5
15644 $as_echo_n "checking
for EGifPutExtensionLast
in -lgif...
" >&6; }
15645 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15646 $as_echo_n "(cached
) " >&6
15648 ac_check_lib_save_LIBS=$LIBS
15650 cat >conftest.$ac_ext <<_ACEOF
15653 cat confdefs.h >>conftest.$ac_ext
15654 cat >>conftest.$ac_ext <<_ACEOF
15655 /* end confdefs.h. */
15657 /* Override any GCC internal prototype to avoid an error.
15658 Use char because int might match the return type of a GCC
15659 builtin and then its argument prototype would still apply. */
15663 char EGifPutExtensionLast ();
15667 return EGifPutExtensionLast ();
15672 rm -f conftest.$ac_objext conftest$ac_exeext
15673 if { (ac_try="$ac_link"
15674 case "(($ac_try" in
15675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15676 *) ac_try_echo=$ac_try;;
15678 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15679 $as_echo "$ac_try_echo") >&5
15680 (eval "$ac_link") 2>conftest.er1
15682 grep -v '^ *+' conftest.er1 >conftest.err
15684 cat conftest.err >&5
15685 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15686 (exit $ac_status); } && {
15687 test -z "$ac_c_werror_flag" ||
15688 test ! -s conftest.err
15689 } && test -s conftest$ac_exeext && {
15690 test "$cross_compiling" = yes ||
15691 $as_test_x conftest$ac_exeext
15693 ac_cv_lib_gif_EGifPutExtensionLast=yes
15695 $as_echo "$as_me: failed program was
:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15698 ac_cv_lib_gif_EGifPutExtensionLast=no
15701 rm -rf conftest.dSYM
15702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15703 conftest$ac_exeext conftest.$ac_ext
15704 LIBS=$ac_check_lib_save_LIBS
15706 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15707 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15708 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15718 if test "$HAVE_GIF" = yes; then
15720 elif test "$HAVE_GIF" = maybe; then
15721 # If gif_lib.h but no libgif, try libungif.
15722 { $as_echo "$as_me:$LINENO: checking
for EGifPutExtensionLast
in -lungif" >&5
15723 $as_echo_n "checking
for EGifPutExtensionLast
in -lungif...
" >&6; }
15724 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15725 $as_echo_n "(cached
) " >&6
15727 ac_check_lib_save_LIBS=$LIBS
15728 LIBS="-lungif $LIBS"
15729 cat >conftest.$ac_ext <<_ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h. */
15736 /* Override any GCC internal prototype to avoid an error.
15737 Use char because int might match the return type of a GCC
15738 builtin and then its argument prototype would still apply. */
15742 char EGifPutExtensionLast ();
15746 return EGifPutExtensionLast ();
15751 rm -f conftest.$ac_objext conftest$ac_exeext
15752 if { (ac_try="$ac_link"
15753 case "(($ac_try" in
15754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755 *) ac_try_echo=$ac_try;;
15757 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15758 $as_echo "$ac_try_echo") >&5
15759 (eval "$ac_link") 2>conftest.er1
15761 grep -v '^ *+' conftest.er1 >conftest.err
15763 cat conftest.err >&5
15764 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15765 (exit $ac_status); } && {
15766 test -z "$ac_c_werror_flag" ||
15767 test ! -s conftest.err
15768 } && test -s conftest$ac_exeext && {
15769 test "$cross_compiling" = yes ||
15770 $as_test_x conftest$ac_exeext
15772 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15774 $as_echo "$as_me: failed program was
:" >&5
15775 sed 's/^/| /' conftest.$ac_ext >&5
15777 ac_cv_lib_ungif_EGifPutExtensionLast=no
15780 rm -rf conftest.dSYM
15781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15782 conftest$ac_exeext conftest.$ac_ext
15783 LIBS=$ac_check_lib_save_LIBS
15785 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15786 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15787 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15793 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15796 if test "${HAVE_GIF}" = "yes"; then
15798 cat >>confdefs.h <<\_ACEOF
15806 if test "${HAVE_X11}" = "yes"; then
15809 test "${with_xpm}" != "no
" && test "${HAVE_XPM}" != "yes" &&
15810 MISSING="libXpm
" && WITH_NO="--with-xpm=no
"
15811 test "${with_jpeg}" != "no
" && test "${HAVE_JPEG}" != "yes" &&
15812 MISSING="$MISSING libjpeg
" && WITH_NO="$WITH_NO --with-jpeg=no
"
15813 test "${with_png}" != "no
" && test "${HAVE_PNG}" != "yes" &&
15814 MISSING="$MISSING libpng
" && WITH_NO="$WITH_NO --with-png=no
"
15815 test "${with_gif}" != "no
" && test "${HAVE_GIF}" != "yes" &&
15816 MISSING="$MISSING libgif
/libungif
" && WITH_NO="$WITH_NO --with-gif=no
"
15817 test "${with_tiff}" != "no
" && test "${HAVE_TIFF}" != "yes" &&
15818 MISSING="$MISSING libtiff
" && WITH_NO="$WITH_NO --with-tiff=no
"
15820 if test "X
${MISSING}" != X; then
15821 { { $as_echo "$as_me:$LINENO: error
: The following required libraries were not found
:
15823 Maybe some development libraries
/packages are missing?
15824 If you don
't want to link with them give
15826 as options to configure" >&5
15827 $as_echo "$as_me: error: The following required libraries were not found:
15829 Maybe some development libraries/packages are missing?
15830 If you don't want to link with them give
15832 as options to configure
" >&2;}
15833 { (exit 1); exit 1; }; }
15837 ### Use -lgpm if available, unless `--with-gpm=no'.
15841 if test "${with_gpm}" != "no
"; then
15842 if test "${ac_cv_header_gpm_h+set}" = set; then
15843 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15844 $as_echo_n "checking
for gpm.h...
" >&6; }
15845 if test "${ac_cv_header_gpm_h+set}" = set; then
15846 $as_echo_n "(cached
) " >&6
15848 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15849 $as_echo "$ac_cv_header_gpm_h" >&6; }
15851 # Is the header compilable?
15852 { $as_echo "$as_me:$LINENO: checking gpm.h usability
" >&5
15853 $as_echo_n "checking gpm.h usability...
" >&6; }
15854 cat >conftest.$ac_ext <<_ACEOF
15857 cat confdefs.h >>conftest.$ac_ext
15858 cat >>conftest.$ac_ext <<_ACEOF
15859 /* end confdefs.h. */
15860 $ac_includes_default
15863 rm -f conftest.$ac_objext
15864 if { (ac_try="$ac_compile"
15865 case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15869 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15870 $as_echo "$ac_try_echo") >&5
15871 (eval "$ac_compile") 2>conftest.er1
15873 grep -v '^ *+' conftest.er1 >conftest.err
15875 cat conftest.err >&5
15876 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15877 (exit $ac_status); } && {
15878 test -z "$ac_c_werror_flag" ||
15879 test ! -s conftest.err
15880 } && test -s conftest.$ac_objext; then
15881 ac_header_compiler=yes
15883 $as_echo "$as_me: failed program was
:" >&5
15884 sed 's/^/| /' conftest.$ac_ext >&5
15886 ac_header_compiler=no
15889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15890 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15891 $as_echo "$ac_header_compiler" >&6; }
15893 # Is the header present?
15894 { $as_echo "$as_me:$LINENO: checking gpm.h presence
" >&5
15895 $as_echo_n "checking gpm.h presence...
" >&6; }
15896 cat >conftest.$ac_ext <<_ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h. */
15904 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15905 case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15909 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
15910 $as_echo "$ac_try_echo") >&5
15911 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15913 grep -v '^ *+' conftest.er1 >conftest.err
15915 cat conftest.err >&5
15916 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15917 (exit $ac_status); } >/dev/null && {
15918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15919 test ! -s conftest.err
15921 ac_header_preproc=yes
15923 $as_echo "$as_me: failed program was
:" >&5
15924 sed 's/^/| /' conftest.$ac_ext >&5
15926 ac_header_preproc=no
15929 rm -f conftest.err conftest.$ac_ext
15930 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15931 $as_echo "$ac_header_preproc" >&6; }
15933 # So? What about this header?
15934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15936 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15937 $as_echo "$as_me: WARNING
: gpm.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15938 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the compiler
's result" >&5
15939 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result
" >&2;}
15940 ac_header_preproc=yes
15943 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: present but cannot be compiled
" >&5
15944 $as_echo "$as_me: WARNING
: gpm.h
: present but cannot be compiled
" >&2;}
15945 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&5
15946 $as_echo "$as_me: WARNING
: gpm.h
: check
for missing prerequisite headers?
" >&2;}
15947 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: see the Autoconf documentation
" >&5
15948 $as_echo "$as_me: WARNING
: gpm.h
: see the Autoconf documentation
" >&2;}
15949 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15950 $as_echo "$as_me: WARNING
: gpm.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15951 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: proceeding with the preprocessor
's result" >&5
15952 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result
" >&2;}
15953 { $as_echo "$as_me:$LINENO: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&5
15954 $as_echo "$as_me: WARNING
: gpm.h
: in the future
, the compiler will take precedence
" >&2;}
15958 { $as_echo "$as_me:$LINENO: checking
for gpm.h
" >&5
15959 $as_echo_n "checking
for gpm.h...
" >&6; }
15960 if test "${ac_cv_header_gpm_h+set}" = set; then
15961 $as_echo_n "(cached
) " >&6
15963 ac_cv_header_gpm_h=$ac_header_preproc
15965 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_gpm_h" >&5
15966 $as_echo "$ac_cv_header_gpm_h" >&6; }
15969 if test $ac_cv_header_gpm_h = yes; then
15970 { $as_echo "$as_me:$LINENO: checking
for Gpm_Open
in -lgpm" >&5
15971 $as_echo_n "checking
for Gpm_Open
in -lgpm...
" >&6; }
15972 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15973 $as_echo_n "(cached
) " >&6
15975 ac_check_lib_save_LIBS=$LIBS
15977 cat >conftest.$ac_ext <<_ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15984 /* Override any GCC internal prototype to avoid an error.
15985 Use char because int might match the return type of a GCC
15986 builtin and then its argument prototype would still apply. */
15994 return Gpm_Open ();
15999 rm -f conftest.$ac_objext conftest$ac_exeext
16000 if { (ac_try="$ac_link"
16001 case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16005 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16006 $as_echo "$ac_try_echo") >&5
16007 (eval "$ac_link") 2>conftest.er1
16009 grep -v '^ *+' conftest.er1 >conftest.err
16011 cat conftest.err >&5
16012 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16013 (exit $ac_status); } && {
16014 test -z "$ac_c_werror_flag" ||
16015 test ! -s conftest.err
16016 } && test -s conftest$ac_exeext && {
16017 test "$cross_compiling" = yes ||
16018 $as_test_x conftest$ac_exeext
16020 ac_cv_lib_gpm_Gpm_Open=yes
16022 $as_echo "$as_me: failed program was
:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16025 ac_cv_lib_gpm_Gpm_Open=no
16028 rm -rf conftest.dSYM
16029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16030 conftest$ac_exeext conftest.$ac_ext
16031 LIBS=$ac_check_lib_save_LIBS
16033 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_gpm_Gpm_Open" >&5
16034 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16035 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16043 if test "${HAVE_GPM}" = "yes"; then
16045 cat >>confdefs.h <<\_ACEOF
16050 GPM_MOUSE_SUPPORT="\
${lispsource}mouse.elc
"
16056 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16057 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
16058 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
16059 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16060 $as_echo_n "(cached
) " >&6
16062 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
16063 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16065 # Is the header compilable?
16066 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h usability
" >&5
16067 $as_echo_n "checking malloc
/malloc.h usability...
" >&6; }
16068 cat >conftest.$ac_ext <<_ACEOF
16071 cat confdefs.h >>conftest.$ac_ext
16072 cat >>conftest.$ac_ext <<_ACEOF
16073 /* end confdefs.h. */
16074 $ac_includes_default
16075 #include <malloc/malloc.h>
16077 rm -f conftest.$ac_objext
16078 if { (ac_try="$ac_compile"
16079 case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16083 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16084 $as_echo "$ac_try_echo") >&5
16085 (eval "$ac_compile") 2>conftest.er1
16087 grep -v '^ *+' conftest.er1 >conftest.err
16089 cat conftest.err >&5
16090 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16091 (exit $ac_status); } && {
16092 test -z "$ac_c_werror_flag" ||
16093 test ! -s conftest.err
16094 } && test -s conftest.$ac_objext; then
16095 ac_header_compiler=yes
16097 $as_echo "$as_me: failed program was
:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16100 ac_header_compiler=no
16103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16104 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16105 $as_echo "$ac_header_compiler" >&6; }
16107 # Is the header present?
16108 { $as_echo "$as_me:$LINENO: checking malloc
/malloc.h presence
" >&5
16109 $as_echo_n "checking malloc
/malloc.h presence...
" >&6; }
16110 cat >conftest.$ac_ext <<_ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 #include <malloc/malloc.h>
16118 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16119 case "(($ac_try" in
16120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121 *) ac_try_echo=$ac_try;;
16123 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16124 $as_echo "$ac_try_echo") >&5
16125 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16127 grep -v '^ *+' conftest.er1 >conftest.err
16129 cat conftest.err >&5
16130 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16131 (exit $ac_status); } >/dev/null && {
16132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16133 test ! -s conftest.err
16135 ac_header_preproc=yes
16137 $as_echo "$as_me: failed program was
:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16140 ac_header_preproc=no
16143 rm -f conftest.err conftest.$ac_ext
16144 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16145 $as_echo "$ac_header_preproc" >&6; }
16147 # So? What about this header?
16148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16150 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16151 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16152 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&5
16153 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&2;}
16154 ac_header_preproc=yes
16157 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&5
16158 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: present but cannot be compiled
" >&2;}
16159 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&5
16160 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: check
for missing prerequisite headers?
" >&2;}
16161 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&5
16162 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: see the Autoconf documentation
" >&2;}
16163 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16164 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16165 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&5
16166 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&2;}
16167 { $as_echo "$as_me:$LINENO: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&5
16168 $as_echo "$as_me: WARNING
: malloc
/malloc.h
: in the future
, the compiler will take precedence
" >&2;}
16172 { $as_echo "$as_me:$LINENO: checking
for malloc
/malloc.h
" >&5
16173 $as_echo_n "checking
for malloc
/malloc.h...
" >&6; }
16174 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16175 $as_echo_n "(cached
) " >&6
16177 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16179 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_malloc_malloc_h" >&5
16180 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16183 if test $ac_cv_header_malloc_malloc_h = yes; then
16185 cat >>confdefs.h <<\_ACEOF
16186 #define HAVE_MALLOC_MALLOC_H 1
16194 ### Use NeXTstep API to implement GUI.
16195 if test "${HAVE_NS}" = "yes"; then
16197 cat >>confdefs.h <<\_ACEOF
16201 if test "${NS_IMPL_COCOA}" = "yes"; then
16203 cat >>confdefs.h <<\_ACEOF
16204 #define NS_IMPL_COCOA 1
16209 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16211 cat >>confdefs.h <<\_ACEOF
16212 #define NS_IMPL_GNUSTEP 1
16215 # See also .m.o rule in Makefile.in */
16216 # FIXME: are all these flags really needed? Document here why. */
16217 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16218 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString
-DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16220 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16222 cat >>confdefs.h <<\_ACEOF
16223 #define NS_HAVE_NSINTEGER 1
16227 # We also have mouse menus.
16233 ### Use session management (-lSM -lICE) if available
16236 if test "${HAVE_X11}" = "yes"; then
16237 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16238 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
16239 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
16240 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16241 $as_echo_n "(cached
) " >&6
16243 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
16244 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16246 # Is the header compilable?
16247 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h usability
" >&5
16248 $as_echo_n "checking X11
/SM
/SMlib.h usability...
" >&6; }
16249 cat >conftest.$ac_ext <<_ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 $ac_includes_default
16256 #include <X11/SM/SMlib.h>
16258 rm -f conftest.$ac_objext
16259 if { (ac_try="$ac_compile"
16260 case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16264 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16265 $as_echo "$ac_try_echo") >&5
16266 (eval "$ac_compile") 2>conftest.er1
16268 grep -v '^ *+' conftest.er1 >conftest.err
16270 cat conftest.err >&5
16271 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16272 (exit $ac_status); } && {
16273 test -z "$ac_c_werror_flag" ||
16274 test ! -s conftest.err
16275 } && test -s conftest.$ac_objext; then
16276 ac_header_compiler=yes
16278 $as_echo "$as_me: failed program was
:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16281 ac_header_compiler=no
16284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16286 $as_echo "$ac_header_compiler" >&6; }
16288 # Is the header present?
16289 { $as_echo "$as_me:$LINENO: checking X11
/SM
/SMlib.h presence
" >&5
16290 $as_echo_n "checking X11
/SM
/SMlib.h presence...
" >&6; }
16291 cat >conftest.$ac_ext <<_ACEOF
16294 cat confdefs.h >>conftest.$ac_ext
16295 cat >>conftest.$ac_ext <<_ACEOF
16296 /* end confdefs.h. */
16297 #include <X11/SM/SMlib.h>
16299 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16300 case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16304 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16305 $as_echo "$ac_try_echo") >&5
16306 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16308 grep -v '^ *+' conftest.er1 >conftest.err
16310 cat conftest.err >&5
16311 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16312 (exit $ac_status); } >/dev/null && {
16313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16314 test ! -s conftest.err
16316 ac_header_preproc=yes
16318 $as_echo "$as_me: failed program was
:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16321 ac_header_preproc=no
16324 rm -f conftest.err conftest.$ac_ext
16325 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16326 $as_echo "$ac_header_preproc" >&6; }
16328 # So? What about this header?
16329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16331 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16332 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16333 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&5
16334 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&2;}
16335 ac_header_preproc=yes
16338 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&5
16339 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: present but cannot be compiled
" >&2;}
16340 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&5
16341 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: check
for missing prerequisite headers?
" >&2;}
16342 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&5
16343 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: see the Autoconf documentation
" >&2;}
16344 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16345 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16346 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&5
16347 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&2;}
16348 { $as_echo "$as_me:$LINENO: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&5
16349 $as_echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: in the future
, the compiler will take precedence
" >&2;}
16353 { $as_echo "$as_me:$LINENO: checking
for X11
/SM
/SMlib.h
" >&5
16354 $as_echo_n "checking
for X11
/SM
/SMlib.h...
" >&6; }
16355 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16356 $as_echo_n "(cached
) " >&6
16358 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16360 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_X11_SM_SMlib_h" >&5
16361 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16364 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16365 { $as_echo "$as_me:$LINENO: checking
for SmcOpenConnection
in -lSM" >&5
16366 $as_echo_n "checking
for SmcOpenConnection
in -lSM...
" >&6; }
16367 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16368 $as_echo_n "(cached
) " >&6
16370 ac_check_lib_save_LIBS=$LIBS
16371 LIBS="-lSM -lICE $LIBS"
16372 cat >conftest.$ac_ext <<_ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16379 /* Override any GCC internal prototype to avoid an error.
16380 Use char because int might match the return type of a GCC
16381 builtin and then its argument prototype would still apply. */
16385 char SmcOpenConnection ();
16389 return SmcOpenConnection ();
16394 rm -f conftest.$ac_objext conftest$ac_exeext
16395 if { (ac_try="$ac_link"
16396 case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16400 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16401 $as_echo "$ac_try_echo") >&5
16402 (eval "$ac_link") 2>conftest.er1
16404 grep -v '^ *+' conftest.er1 >conftest.err
16406 cat conftest.err >&5
16407 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16408 (exit $ac_status); } && {
16409 test -z "$ac_c_werror_flag" ||
16410 test ! -s conftest.err
16411 } && test -s conftest$ac_exeext && {
16412 test "$cross_compiling" = yes ||
16413 $as_test_x conftest$ac_exeext
16415 ac_cv_lib_SM_SmcOpenConnection=yes
16417 $as_echo "$as_me: failed program was
:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16420 ac_cv_lib_SM_SmcOpenConnection=no
16423 rm -rf conftest.dSYM
16424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16425 conftest$ac_exeext conftest.$ac_ext
16426 LIBS=$ac_check_lib_save_LIBS
16428 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_SM_SmcOpenConnection" >&5
16429 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16430 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16438 if test "${HAVE_X_SM}" = "yes"; then
16440 cat >>confdefs.h <<\_ACEOF
16441 #define HAVE_X_SM 1
16444 LIBXSM="-lSM -lICE"
16447 *) LIBS="$LIBXSM $LIBS" ;;
16453 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16454 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno
" >&5
16455 $as_echo_n "checking whether netdb declares h_errno...
" >&6; }
16456 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16457 $as_echo_n "(cached
) " >&6
16459 cat >conftest.$ac_ext <<_ACEOF
16462 cat confdefs.h >>conftest.$ac_ext
16463 cat >>conftest.$ac_ext <<_ACEOF
16464 /* end confdefs.h. */
16474 rm -f conftest.$ac_objext conftest$ac_exeext
16475 if { (ac_try="$ac_link"
16476 case "(($ac_try" in
16477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478 *) ac_try_echo=$ac_try;;
16480 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16481 $as_echo "$ac_try_echo") >&5
16482 (eval "$ac_link") 2>conftest.er1
16484 grep -v '^ *+' conftest.er1 >conftest.err
16486 cat conftest.err >&5
16487 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16488 (exit $ac_status); } && {
16489 test -z "$ac_c_werror_flag" ||
16490 test ! -s conftest.err
16491 } && test -s conftest$ac_exeext && {
16492 test "$cross_compiling" = yes ||
16493 $as_test_x conftest$ac_exeext
16495 emacs_cv_netdb_declares_h_errno=yes
16497 $as_echo "$as_me: failed program was
:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16500 emacs_cv_netdb_declares_h_errno=no
16503 rm -rf conftest.dSYM
16504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16505 conftest$ac_exeext conftest.$ac_ext
16507 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_netdb_declares_h_errno" >&5
16508 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16509 if test $emacs_cv_netdb_declares_h_errno = yes; then
16511 cat >>confdefs.h <<\_ACEOF
16512 #define HAVE_H_ERRNO 1
16517 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16518 # for constant arguments. Useless!
16519 { $as_echo "$as_me:$LINENO: checking
for working alloca.h
" >&5
16520 $as_echo_n "checking
for working alloca.h...
" >&6; }
16521 if test "${ac_cv_working_alloca_h+set}" = set; then
16522 $as_echo_n "(cached
) " >&6
16524 cat >conftest.$ac_ext <<_ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h. */
16530 #include <alloca.h>
16534 char *p = (char *) alloca (2 * sizeof (int));
16540 rm -f conftest.$ac_objext conftest$ac_exeext
16541 if { (ac_try="$ac_link"
16542 case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16546 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16547 $as_echo "$ac_try_echo") >&5
16548 (eval "$ac_link") 2>conftest.er1
16550 grep -v '^ *+' conftest.er1 >conftest.err
16552 cat conftest.err >&5
16553 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16554 (exit $ac_status); } && {
16555 test -z "$ac_c_werror_flag" ||
16556 test ! -s conftest.err
16557 } && test -s conftest$ac_exeext && {
16558 test "$cross_compiling" = yes ||
16559 $as_test_x conftest$ac_exeext
16561 ac_cv_working_alloca_h=yes
16563 $as_echo "$as_me: failed program was
:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16566 ac_cv_working_alloca_h=no
16569 rm -rf conftest.dSYM
16570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16571 conftest$ac_exeext conftest.$ac_ext
16573 { $as_echo "$as_me:$LINENO: result
: $ac_cv_working_alloca_h" >&5
16574 $as_echo "$ac_cv_working_alloca_h" >&6; }
16575 if test $ac_cv_working_alloca_h = yes; then
16577 cat >>confdefs.h <<\_ACEOF
16578 #define HAVE_ALLOCA_H 1
16583 { $as_echo "$as_me:$LINENO: checking
for alloca
" >&5
16584 $as_echo_n "checking
for alloca...
" >&6; }
16585 if test "${ac_cv_func_alloca_works+set}" = set; then
16586 $as_echo_n "(cached
) " >&6
16588 cat >conftest.$ac_ext <<_ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16595 # define alloca __builtin_alloca
16598 # include <malloc.h>
16599 # define alloca _alloca
16601 # ifdef HAVE_ALLOCA_H
16602 # include <alloca.h>
16607 # ifndef alloca /* predefined by HP cc +Olibcalls */
16618 char *p = (char *) alloca (1);
16624 rm -f conftest.$ac_objext conftest$ac_exeext
16625 if { (ac_try="$ac_link"
16626 case "(($ac_try" in
16627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628 *) ac_try_echo=$ac_try;;
16630 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16631 $as_echo "$ac_try_echo") >&5
16632 (eval "$ac_link") 2>conftest.er1
16634 grep -v '^ *+' conftest.er1 >conftest.err
16636 cat conftest.err >&5
16637 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16638 (exit $ac_status); } && {
16639 test -z "$ac_c_werror_flag" ||
16640 test ! -s conftest.err
16641 } && test -s conftest$ac_exeext && {
16642 test "$cross_compiling" = yes ||
16643 $as_test_x conftest$ac_exeext
16645 ac_cv_func_alloca_works=yes
16647 $as_echo "$as_me: failed program was
:" >&5
16648 sed 's/^/| /' conftest.$ac_ext >&5
16650 ac_cv_func_alloca_works=no
16653 rm -rf conftest.dSYM
16654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16655 conftest$ac_exeext conftest.$ac_ext
16657 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_alloca_works" >&5
16658 $as_echo "$ac_cv_func_alloca_works" >&6; }
16660 if test $ac_cv_func_alloca_works = yes; then
16662 cat >>confdefs.h <<\_ACEOF
16663 #define HAVE_ALLOCA 1
16667 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16668 # that cause trouble. Some versions do not even contain alloca or
16669 # contain a buggy version. If you still want to use their alloca,
16670 # use ar to extract alloca.o from them instead of compiling alloca.c.
16672 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16674 cat >>confdefs.h <<\_ACEOF
16679 { $as_echo "$as_me:$LINENO: checking whether \
`alloca.c' needs Cray hooks" >&5
16680 $as_echo_n "checking whether \`alloca.c
' needs Cray hooks... " >&6; }
16681 if test "${ac_cv_os_cray+set}" = set; then
16682 $as_echo_n "(cached) " >&6
16684 cat >conftest.$ac_ext <<_ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16690 #if defined CRAY && ! defined CRAY2
16697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16698 $EGREP "webecray" >/dev/null 2>&1; then
16706 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16707 $as_echo "$ac_cv_os_cray" >&6; }
16708 if test $ac_cv_os_cray = yes; then
16709 for ac_func in _getb67 GETB67 getb67; do
16710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16711 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16712 $as_echo_n "checking for $ac_func... " >&6; }
16713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16714 $as_echo_n "(cached) " >&6
16716 cat >conftest.$ac_ext <<_ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h. */
16722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16724 #define $ac_func innocuous_$ac_func
16726 /* System header to define __stub macros and hopefully few prototypes,
16727 which can conflict with char $ac_func (); below.
16728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16729 <limits.h> exists even on freestanding compilers. */
16732 # include <limits.h>
16734 # include <assert.h>
16739 /* Override any GCC internal prototype to avoid an error.
16740 Use char because int might match the return type of a GCC
16741 builtin and then its argument prototype would still apply. */
16746 /* The GNU C library defines this for functions which it implements
16747 to always fail with ENOSYS. Some functions are actually named
16748 something starting with __ and the normal name is an alias. */
16749 #if defined __stub_$ac_func || defined __stub___$ac_func
16756 return $ac_func ();
16761 rm -f conftest.$ac_objext conftest$ac_exeext
16762 if { (ac_try="$ac_link"
16763 case "(($ac_try" in
16764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765 *) ac_try_echo=$ac_try;;
16767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16768 $as_echo "$ac_try_echo") >&5
16769 (eval "$ac_link") 2>conftest.er1
16771 grep -v '^
*+' conftest.er1 >conftest.err
16773 cat conftest.err >&5
16774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } && {
16776 test -z "$ac_c_werror_flag" ||
16777 test ! -s conftest.err
16778 } && test -s conftest$ac_exeext && {
16779 test "$cross_compiling" = yes ||
16780 $as_test_x conftest$ac_exeext
16782 eval "$as_ac_var=yes"
16784 $as_echo "$as_me: failed program was:" >&5
16785 sed 's
/^
/|
/' conftest.$ac_ext >&5
16787 eval "$as_ac_var=no"
16790 rm -rf conftest.dSYM
16791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16792 conftest$ac_exeext conftest.$ac_ext
16794 ac_res=`eval 'as_val
=${'$as_ac_var'}
16795 $as_echo "$as_val"'`
16796 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16797 $as_echo "$ac_res" >&6; }
16798 if test `eval 'as_val
=${'$as_ac_var'}
16799 $as_echo "$as_val"'` = yes; then
16801 cat >>confdefs.h <<_ACEOF
16802 #define CRAY_STACKSEG_END $ac_func
16811 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16812 $as_echo_n "checking stack direction for C alloca... " >&6; }
16813 if test "${ac_cv_c_stack_direction+set}" = set; then
16814 $as_echo_n "(cached) " >&6
16816 if test "$cross_compiling" = yes; then
16817 ac_cv_c_stack_direction=0
16819 cat >conftest.$ac_ext <<_ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 $ac_includes_default
16827 find_stack_direction ()
16829 static char *addr = 0;
16834 return find_stack_direction ();
16837 return (&dummy > addr) ? 1 : -1;
16843 return find_stack_direction () < 0;
16846 rm -f conftest$ac_exeext
16847 if { (ac_try="$ac_link"
16848 case "(($ac_try" in
16849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850 *) ac_try_echo=$ac_try;;
16852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16853 $as_echo "$ac_try_echo") >&5
16854 (eval "$ac_link") 2>&5
16856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
16858 { (case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16863 $as_echo "$ac_try_echo") >&5
16864 (eval "$ac_try") 2>&5
16866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 ac_cv_c_stack_direction=1
16870 $as_echo "$as_me: program exited with status $ac_status" >&5
16871 $as_echo "$as_me: failed program was:" >&5
16872 sed 's
/^
/|
/' conftest.$ac_ext >&5
16874 ( exit $ac_status )
16875 ac_cv_c_stack_direction=-1
16877 rm -rf conftest.dSYM
16878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16883 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16884 $as_echo "$ac_cv_c_stack_direction" >&6; }
16886 cat >>confdefs.h <<_ACEOF
16887 #define STACK_DIRECTION $ac_cv_c_stack_direction
16894 if test x"$ac_cv_func_alloca_works" != xyes; then
16895 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16896 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16897 { (exit 1); exit 1; }; }
16900 # fmod, logb, and frexp are found in -lm on most systems.
16901 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16903 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16904 $as_echo_n "checking for sqrt in -lm... " >&6; }
16905 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16906 $as_echo_n "(cached) " >&6
16908 ac_check_lib_save_LIBS=$LIBS
16910 cat >conftest.$ac_ext <<_ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16917 /* Override any GCC internal prototype to avoid an error.
16918 Use char because int might match the return type of a GCC
16919 builtin and then its argument prototype would still apply. */
16932 rm -f conftest.$ac_objext conftest$ac_exeext
16933 if { (ac_try="$ac_link"
16934 case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16939 $as_echo "$ac_try_echo") >&5
16940 (eval "$ac_link") 2>conftest.er1
16942 grep -v '^
*+' conftest.er1 >conftest.err
16944 cat conftest.err >&5
16945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); } && {
16947 test -z "$ac_c_werror_flag" ||
16948 test ! -s conftest.err
16949 } && test -s conftest$ac_exeext && {
16950 test "$cross_compiling" = yes ||
16951 $as_test_x conftest$ac_exeext
16953 ac_cv_lib_m_sqrt=yes
16955 $as_echo "$as_me: failed program was:" >&5
16956 sed 's
/^
/|
/' conftest.$ac_ext >&5
16958 ac_cv_lib_m_sqrt=no
16961 rm -rf conftest.dSYM
16962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16963 conftest$ac_exeext conftest.$ac_ext
16964 LIBS=$ac_check_lib_save_LIBS
16966 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16967 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16968 if test $ac_cv_lib_m_sqrt = yes; then
16969 cat >>confdefs.h <<_ACEOF
16970 #define HAVE_LIBM 1
16978 # Check for mail-locking functions in a "mail" library. Probably this should
16979 # have the same check as for liblockfile below.
16980 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16981 $as_echo_n "checking for maillock in -lmail... " >&6; }
16982 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16983 $as_echo_n "(cached) " >&6
16985 ac_check_lib_save_LIBS=$LIBS
16986 LIBS="-lmail $LIBS"
16987 cat >conftest.$ac_ext <<_ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16994 /* Override any GCC internal prototype to avoid an error.
16995 Use char because int might match the return type of a GCC
16996 builtin and then its argument prototype would still apply. */
17004 return maillock ();
17009 rm -f conftest.$ac_objext conftest$ac_exeext
17010 if { (ac_try="$ac_link"
17011 case "(($ac_try" in
17012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013 *) ac_try_echo=$ac_try;;
17015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17016 $as_echo "$ac_try_echo") >&5
17017 (eval "$ac_link") 2>conftest.er1
17019 grep -v '^
*+' conftest.er1 >conftest.err
17021 cat conftest.err >&5
17022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } && {
17024 test -z "$ac_c_werror_flag" ||
17025 test ! -s conftest.err
17026 } && test -s conftest$ac_exeext && {
17027 test "$cross_compiling" = yes ||
17028 $as_test_x conftest$ac_exeext
17030 ac_cv_lib_mail_maillock=yes
17032 $as_echo "$as_me: failed program was:" >&5
17033 sed 's
/^
/|
/' conftest.$ac_ext >&5
17035 ac_cv_lib_mail_maillock=no
17038 rm -rf conftest.dSYM
17039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17040 conftest$ac_exeext conftest.$ac_ext
17041 LIBS=$ac_check_lib_save_LIBS
17043 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17044 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17045 if test $ac_cv_lib_mail_maillock = yes; then
17051 if test $have_mail = yes; then
17053 LIBS="$LIBS_MAIL $LIBS"
17055 cat >>confdefs.h <<\_ACEOF
17056 #define HAVE_LIBMAIL 1
17062 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17063 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17064 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17065 $as_echo_n "(cached) " >&6
17067 ac_check_lib_save_LIBS=$LIBS
17068 LIBS="-llockfile $LIBS"
17069 cat >conftest.$ac_ext <<_ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17076 /* Override any GCC internal prototype to avoid an error.
17077 Use char because int might match the return type of a GCC
17078 builtin and then its argument prototype would still apply. */
17086 return maillock ();
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (ac_try="$ac_link"
17093 case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17098 $as_echo "$ac_try_echo") >&5
17099 (eval "$ac_link") 2>conftest.er1
17101 grep -v '^
*+' conftest.er1 >conftest.err
17103 cat conftest.err >&5
17104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } && {
17106 test -z "$ac_c_werror_flag" ||
17107 test ! -s conftest.err
17108 } && test -s conftest$ac_exeext && {
17109 test "$cross_compiling" = yes ||
17110 $as_test_x conftest$ac_exeext
17112 ac_cv_lib_lockfile_maillock=yes
17114 $as_echo "$as_me: failed program was:" >&5
17115 sed 's
/^
/|
/' conftest.$ac_ext >&5
17117 ac_cv_lib_lockfile_maillock=no
17120 rm -rf conftest.dSYM
17121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17122 conftest$ac_exeext conftest.$ac_ext
17123 LIBS=$ac_check_lib_save_LIBS
17125 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17126 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17127 if test $ac_cv_lib_lockfile_maillock = yes; then
17133 if test $have_lockfile = yes; then
17134 LIBS_MAIL=-llockfile
17135 LIBS="$LIBS_MAIL $LIBS"
17137 cat >>confdefs.h <<\_ACEOF
17138 #define HAVE_LIBLOCKFILE 1
17142 # If we have the shared liblockfile, assume we must use it for mail
17143 # locking (e.g. Debian). If we couldn't link against liblockfile
17144 # (no liblockfile.a installed), ensure that we don't need to.
17145 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17146 set dummy liblockfile.so
; ac_word
=$2
17147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17148 $as_echo_n "checking for $ac_word... " >&6; }
17149 if test "${ac_cv_prog_liblockfile+set}" = set; then
17150 $as_echo_n "(cached) " >&6
17152 if test -n "$liblockfile"; then
17153 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
17155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17156 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17157 for as_dir
in $as_dummy
17160 test -z "$as_dir" && as_dir
=.
17161 for ac_exec_ext
in '' $ac_executable_extensions; do
17162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17163 ac_cv_prog_liblockfile
="yes"
17164 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17171 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
17174 liblockfile
=$ac_cv_prog_liblockfile
17175 if test -n "$liblockfile"; then
17176 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17177 $as_echo "$liblockfile" >&6; }
17179 { $as_echo "$as_me:$LINENO: result: no" >&5
17180 $as_echo "no" >&6; }
17184 if test $ac_cv_prog_liblockfile = yes; then
17185 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17186 This probably means that movemail could lose mail.
17187 There may be a \`development' package to install containing liblockfile." >&5
17188 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17189 This probably means that movemail could lose mail.
17190 There may be a \`development' package to install containing liblockfile." >&2;}
17191 { (exit 1); exit 1; }; }
17195 for ac_func
in touchlock
17197 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17198 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17199 $as_echo_n "checking for $ac_func... " >&6; }
17200 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17201 $as_echo_n "(cached) " >&6
17203 cat >conftest.
$ac_ext <<_ACEOF
17206 cat confdefs.h
>>conftest.
$ac_ext
17207 cat >>conftest.
$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17211 #define $ac_func innocuous_$ac_func
17213 /* System header to define __stub macros and hopefully few prototypes,
17214 which can conflict with char $ac_func (); below.
17215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17216 <limits.h> exists even on freestanding compilers. */
17219 # include <limits.h>
17221 # include <assert.h>
17226 /* Override any GCC internal prototype to avoid an error.
17227 Use char because int might match the return type of a GCC
17228 builtin and then its argument prototype would still apply. */
17233 /* The GNU C library defines this for functions which it implements
17234 to always fail with ENOSYS. Some functions are actually named
17235 something starting with __ and the normal name is an alias. */
17236 #if defined __stub_$ac_func || defined __stub___$ac_func
17243 return $ac_func ();
17248 rm -f conftest.
$ac_objext conftest
$ac_exeext
17249 if { (ac_try
="$ac_link"
17250 case "(($ac_try" in
17251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17255 $as_echo "$ac_try_echo") >&5
17256 (eval "$ac_link") 2>conftest.er1
17258 grep -v '^ *+' conftest.er1 >conftest.err
17260 cat conftest.err >&5
17261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } && {
17263 test -z "$ac_c_werror_flag" ||
17264 test ! -s conftest.err
17265 } && test -s conftest$ac_exeext && {
17266 test "$cross_compiling" = yes ||
17267 $as_test_x conftest$ac_exeext
17269 eval "$as_ac_var=yes"
17271 $as_echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17274 eval "$as_ac_var=no"
17277 rm -rf conftest.dSYM
17278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17279 conftest$ac_exeext conftest.$ac_ext
17281 ac_res=`eval 'as_val=${'$as_ac_var'}
17282 $as_echo "$as_val"'`
17283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17284 $as_echo "$ac_res" >&6; }
17285 if test `eval 'as_val=${'$as_ac_var'}
17286 $as_echo "$as_val"'` = yes; then
17287 cat >>confdefs.h <<_ACEOF
17288 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17295 for ac_header in maillock.h
17297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
17298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17299 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17300 $as_echo_n "checking for $ac_header... " >&6; }
17301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17302 $as_echo_n "(cached) " >&6
17304 ac_res=`eval 'as_val=${'$as_ac_Header'}
17305 $as_echo "$as_val"'`
17306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17307 $as_echo "$ac_res" >&6; }
17309 # Is the header compilable?
17310 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17311 $as_echo_n "checking $ac_header usability... " >&6; }
17312 cat >conftest.$ac_ext <<_ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h. */
17318 $ac_includes_default
17319 #include <$ac_header>
17321 rm -f conftest.$ac_objext
17322 if { (ac_try="$ac_compile"
17323 case "(($ac_try" in
17324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17325 *) ac_try_echo
=$ac_try;;
17327 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17328 $as_echo "$ac_try_echo") >&5
17329 (eval "$ac_compile") 2>conftest.er1
17331 grep -v '^ *+' conftest.er1
>conftest.err
17333 cat conftest.err
>&5
17334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } && {
17336 test -z "$ac_c_werror_flag" ||
17337 test ! -s conftest.err
17338 } && test -s conftest.
$ac_objext; then
17339 ac_header_compiler
=yes
17341 $as_echo "$as_me: failed program was:" >&5
17342 sed 's/^/| /' conftest.
$ac_ext >&5
17344 ac_header_compiler
=no
17347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17348 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17349 $as_echo "$ac_header_compiler" >&6; }
17351 # Is the header present?
17352 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17353 $as_echo_n "checking $ac_header presence... " >&6; }
17354 cat >conftest.
$ac_ext <<_ACEOF
17357 cat confdefs.h
>>conftest.
$ac_ext
17358 cat >>conftest.
$ac_ext <<_ACEOF
17359 /* end confdefs.h. */
17360 #include <$ac_header>
17362 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17363 case "(($ac_try" in
17364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17365 *) ac_try_echo=$ac_try;;
17367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17368 $as_echo "$ac_try_echo") >&5
17369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17371 grep -v '^ *+' conftest.er1 >conftest.err
17373 cat conftest.err >&5
17374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } >/dev/null && {
17376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17377 test ! -s conftest.err
17379 ac_header_preproc=yes
17381 $as_echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17384 ac_header_preproc=no
17387 rm -f conftest.err conftest.$ac_ext
17388 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17389 $as_echo "$ac_header_preproc" >&6; }
17391 # So? What about this header?
17392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17395 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17398 ac_header_preproc=yes
17401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17402 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17404 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17406 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17408 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17410 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17412 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17416 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17417 $as_echo_n "checking for $ac_header... " >&6; }
17418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17419 $as_echo_n "(cached) " >&6
17421 eval "$as_ac_Header=\$ac_header_preproc"
17423 ac_res=`eval 'as_val=${'$as_ac_Header'}
17424 $as_echo "$as_val"'`
17425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17426 $as_echo "$ac_res" >&6; }
17429 if test `eval 'as_val=${'$as_ac_Header'}
17430 $as_echo "$as_val"'` = yes; then
17431 cat >>confdefs.h <<_ACEOF
17432 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
17512 for ac_func in gethostname getdomainname dup2 \
17513 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17514 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17515 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17516 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17517 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17518 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17519 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17520 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17521 cfmakeraw cfsetspeed
17523 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17524 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17525 $as_echo_n "checking for $ac_func... " >&6; }
17526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17527 $as_echo_n "(cached) " >&6
17529 cat >conftest.$ac_ext <<_ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17537 #define $ac_func innocuous_$ac_func
17539 /* System header to define __stub macros and hopefully few prototypes,
17540 which can conflict with char $ac_func (); below.
17541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17542 <limits.h> exists even on freestanding compilers. */
17545 # include <limits.h>
17547 # include <assert.h>
17552 /* Override any GCC internal prototype to avoid an error.
17553 Use char because int might match the return type of a GCC
17554 builtin and then its argument prototype would still apply. */
17559 /* The GNU C library defines this for functions which it implements
17560 to always fail with ENOSYS. Some functions are actually named
17561 something starting with __ and the normal name is an alias. */
17562 #if defined __stub_$ac_func || defined __stub___$ac_func
17569 return $ac_func ();
17574 rm -f conftest.$ac_objext conftest$ac_exeext
17575 if { (ac_try="$ac_link"
17576 case "(($ac_try" in
17577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17578 *) ac_try_echo
=$ac_try;;
17580 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17581 $as_echo "$ac_try_echo") >&5
17582 (eval "$ac_link") 2>conftest.er1
17584 grep -v '^ *+' conftest.er1
>conftest.err
17586 cat conftest.err
>&5
17587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } && {
17589 test -z "$ac_c_werror_flag" ||
17590 test ! -s conftest.err
17591 } && test -s conftest
$ac_exeext && {
17592 test "$cross_compiling" = yes ||
17593 $as_test_x conftest
$ac_exeext
17595 eval "$as_ac_var=yes"
17597 $as_echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.
$ac_ext >&5
17600 eval "$as_ac_var=no"
17603 rm -rf conftest.dSYM
17604 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17605 conftest
$ac_exeext conftest.
$ac_ext
17607 ac_res
=`eval 'as_val=${'$as_ac_var'}
17608 $as_echo "$as_val"'`
17609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17610 $as_echo "$ac_res" >&6; }
17611 if test `eval 'as_val=${'$as_ac_var'}
17612 $as_echo "$as_val"'` = yes; then
17613 cat >>confdefs.h
<<_ACEOF
17614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17622 for ac_header
in sys
/un.h
17624 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17625 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17626 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17627 $as_echo_n "checking for $ac_header... " >&6; }
17628 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17629 $as_echo_n "(cached) " >&6
17631 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17632 $as_echo "$as_val"'`
17633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17634 $as_echo "$ac_res" >&6; }
17636 # Is the header compilable?
17637 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17638 $as_echo_n "checking $ac_header usability... " >&6; }
17639 cat >conftest.
$ac_ext <<_ACEOF
17642 cat confdefs.h
>>conftest.
$ac_ext
17643 cat >>conftest.
$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17645 $ac_includes_default
17646 #include <$ac_header>
17648 rm -f conftest.
$ac_objext
17649 if { (ac_try
="$ac_compile"
17650 case "(($ac_try" in
17651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17652 *) ac_try_echo=$ac_try;;
17654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17655 $as_echo "$ac_try_echo") >&5
17656 (eval "$ac_compile") 2>conftest.er1
17658 grep -v '^ *+' conftest.er1 >conftest.err
17660 cat conftest.err >&5
17661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); } && {
17663 test -z "$ac_c_werror_flag" ||
17664 test ! -s conftest.err
17665 } && test -s conftest.$ac_objext; then
17666 ac_header_compiler=yes
17668 $as_echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17671 ac_header_compiler=no
17674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17675 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17676 $as_echo "$ac_header_compiler" >&6; }
17678 # Is the header present?
17679 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17680 $as_echo_n "checking $ac_header presence... " >&6; }
17681 cat >conftest.$ac_ext <<_ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 #include <$ac_header>
17689 if { (ac_try="$ac_cpp conftest.$ac_ext"
17690 case "(($ac_try" in
17691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17692 *) ac_try_echo
=$ac_try;;
17694 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17695 $as_echo "$ac_try_echo") >&5
17696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17698 grep -v '^ *+' conftest.er1
>conftest.err
17700 cat conftest.err
>&5
17701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); } >/dev
/null
&& {
17703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17704 test ! -s conftest.err
17706 ac_header_preproc
=yes
17708 $as_echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.
$ac_ext >&5
17711 ac_header_preproc
=no
17714 rm -f conftest.err conftest.
$ac_ext
17715 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17716 $as_echo "$ac_header_preproc" >&6; }
17718 # So? What about this header?
17719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17722 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17724 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17725 ac_header_preproc
=yes
17728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17729 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17731 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17733 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17735 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17737 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17739 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17743 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17744 $as_echo_n "checking for $ac_header... " >&6; }
17745 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17746 $as_echo_n "(cached) " >&6
17748 eval "$as_ac_Header=\$ac_header_preproc"
17750 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17751 $as_echo "$as_val"'`
17752 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17753 $as_echo "$ac_res" >&6; }
17756 if test `eval 'as_val=${'$as_ac_Header'}
17757 $as_echo "$as_val"'` = yes; then
17758 cat >>confdefs.h
<<_ACEOF
17759 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17771 for ac_header
in $ac_header_list
17773 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17774 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17775 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17776 $as_echo_n "checking for $ac_header... " >&6; }
17777 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17778 $as_echo_n "(cached) " >&6
17780 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17781 $as_echo "$as_val"'`
17782 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17783 $as_echo "$ac_res" >&6; }
17785 # Is the header compilable?
17786 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17787 $as_echo_n "checking $ac_header usability... " >&6; }
17788 cat >conftest.
$ac_ext <<_ACEOF
17791 cat confdefs.h
>>conftest.
$ac_ext
17792 cat >>conftest.
$ac_ext <<_ACEOF
17793 /* end confdefs.h. */
17794 $ac_includes_default
17795 #include <$ac_header>
17797 rm -f conftest.
$ac_objext
17798 if { (ac_try
="$ac_compile"
17799 case "(($ac_try" in
17800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17804 $as_echo "$ac_try_echo") >&5
17805 (eval "$ac_compile") 2>conftest.er1
17807 grep -v '^ *+' conftest.er1 >conftest.err
17809 cat conftest.err >&5
17810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); } && {
17812 test -z "$ac_c_werror_flag" ||
17813 test ! -s conftest.err
17814 } && test -s conftest.$ac_objext; then
17815 ac_header_compiler=yes
17817 $as_echo "$as_me: failed program was:" >&5
17818 sed 's/^/| /' conftest.$ac_ext >&5
17820 ac_header_compiler=no
17823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17824 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17825 $as_echo "$ac_header_compiler" >&6; }
17827 # Is the header present?
17828 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17829 $as_echo_n "checking $ac_header presence... " >&6; }
17830 cat >conftest.$ac_ext <<_ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h. */
17836 #include <$ac_header>
17838 if { (ac_try="$ac_cpp conftest.$ac_ext"
17839 case "(($ac_try" in
17840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17841 *) ac_try_echo
=$ac_try;;
17843 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17844 $as_echo "$ac_try_echo") >&5
17845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17847 grep -v '^ *+' conftest.er1
>conftest.err
17849 cat conftest.err
>&5
17850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } >/dev
/null
&& {
17852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17853 test ! -s conftest.err
17855 ac_header_preproc
=yes
17857 $as_echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.
$ac_ext >&5
17860 ac_header_preproc
=no
17863 rm -f conftest.err conftest.
$ac_ext
17864 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17865 $as_echo "$ac_header_preproc" >&6; }
17867 # So? What about this header?
17868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17871 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17873 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17874 ac_header_preproc
=yes
17877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17878 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17880 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17882 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17884 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17886 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17888 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17892 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17893 $as_echo_n "checking for $ac_header... " >&6; }
17894 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17895 $as_echo_n "(cached) " >&6
17897 eval "$as_ac_Header=\$ac_header_preproc"
17899 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17900 $as_echo "$as_val"'`
17901 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17902 $as_echo "$ac_res" >&6; }
17905 if test `eval 'as_val=${'$as_ac_Header'}
17906 $as_echo "$as_val"'` = yes; then
17907 cat >>confdefs.h
<<_ACEOF
17908 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17923 for ac_func
in $ac_func_list
17925 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17926 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17927 $as_echo_n "checking for $ac_func... " >&6; }
17928 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17929 $as_echo_n "(cached) " >&6
17931 cat >conftest.
$ac_ext <<_ACEOF
17934 cat confdefs.h
>>conftest.
$ac_ext
17935 cat >>conftest.
$ac_ext <<_ACEOF
17936 /* end confdefs.h. */
17937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17939 #define $ac_func innocuous_$ac_func
17941 /* System header to define __stub macros and hopefully few prototypes,
17942 which can conflict with char $ac_func (); below.
17943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17944 <limits.h> exists even on freestanding compilers. */
17947 # include <limits.h>
17949 # include <assert.h>
17954 /* Override any GCC internal prototype to avoid an error.
17955 Use char because int might match the return type of a GCC
17956 builtin and then its argument prototype would still apply. */
17961 /* The GNU C library defines this for functions which it implements
17962 to always fail with ENOSYS. Some functions are actually named
17963 something starting with __ and the normal name is an alias. */
17964 #if defined __stub_$ac_func || defined __stub___$ac_func
17971 return $ac_func ();
17976 rm -f conftest.
$ac_objext conftest
$ac_exeext
17977 if { (ac_try
="$ac_link"
17978 case "(($ac_try" in
17979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17980 *) ac_try_echo=$ac_try;;
17982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17983 $as_echo "$ac_try_echo") >&5
17984 (eval "$ac_link") 2>conftest.er1
17986 grep -v '^ *+' conftest.er1 >conftest.err
17988 cat conftest.err >&5
17989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } && {
17991 test -z "$ac_c_werror_flag" ||
17992 test ! -s conftest.err
17993 } && test -s conftest$ac_exeext && {
17994 test "$cross_compiling" = yes ||
17995 $as_test_x conftest$ac_exeext
17997 eval "$as_ac_var=yes"
17999 $as_echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18002 eval "$as_ac_var=no"
18005 rm -rf conftest.dSYM
18006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18007 conftest$ac_exeext conftest.$ac_ext
18009 ac_res=`eval 'as_val=${'$as_ac_var'}
18010 $as_echo "$as_val"'`
18011 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18012 $as_echo "$ac_res" >&6; }
18013 if test `eval 'as_val=${'$as_ac_var'}
18014 $as_echo "$as_val"'` = yes; then
18015 cat >>confdefs.h <<_ACEOF
18016 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18038 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18039 $as_echo_n "checking for working mktime... " >&6; }
18040 if test "${ac_cv_func_working_mktime+set}" = set; then
18041 $as_echo_n "(cached) " >&6
18043 if test "$cross_compiling" = yes; then
18044 ac_cv_func_working_mktime=no
18046 cat >conftest.$ac_ext <<_ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052 /* Test program from Paul Eggert and Tony Leneis. */
18053 #ifdef TIME_WITH_SYS_TIME
18054 # include <sys/time.h>
18057 # ifdef HAVE_SYS_TIME_H
18058 # include <sys/time.h>
18064 #include <limits.h>
18065 #include <stdlib.h>
18067 #ifdef HAVE_UNISTD_H
18068 # include <unistd.h>
18072 # define alarm(X) /* empty */
18075 /* Work around redefinition to rpl_putenv by other config tests. */
18078 static time_t time_t_max;
18079 static time_t time_t_min;
18081 /* Values we'll use to set the TZ environment variable. */
18082 static char *tz_strings[] = {
18083 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18084 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18086 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18088 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18089 Based on a problem report from Andreas Jaeger. */
18091 spring_forward_gap ()
18093 /* glibc (up to about 1998-10-07) failed this test. */
18096 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18097 instead of "TZ=America/Vancouver" in order to detect the bug even
18098 on systems that don't support the Olson extension, or don't have the
18099 full zoneinfo tables installed. */
18100 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18109 return mktime (&tm) != (time_t) -1;
18117 return ! (lt = localtime (&now)) || mktime (lt) == now;
18124 return (mktime_test1 (now)
18125 && mktime_test1 ((time_t) (time_t_max - now))
18126 && mktime_test1 ((time_t) (time_t_min + now)));
18132 /* Based on code from Ariel Faigon. */
18142 return tm.tm_mon == 2 && tm.tm_mday == 31;
18151 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18152 now = mktime (&tm);
18153 if (now != (time_t) -1)
18155 struct tm *lt = localtime (&now);
18157 && lt->tm_year == tm.tm_year
18158 && lt->tm_mon == tm.tm_mon
18159 && lt->tm_mday == tm.tm_mday
18160 && lt->tm_hour == tm.tm_hour
18161 && lt->tm_min == tm.tm_min
18162 && lt->tm_sec == tm.tm_sec
18163 && lt->tm_yday == tm.tm_yday
18164 && lt->tm_wday == tm.tm_wday
18165 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18166 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18175 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18176 ignoring leap seconds. */
18177 unsigned long int answer = 2527315200UL;
18181 tm.tm_year = 2050 - 1900;
18184 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18187 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18188 instead of "TZ=America/Vancouver" in order to detect the bug even
18189 on systems that don't support the Olson extension, or don't have the
18190 full zoneinfo tables installed. */
18191 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18195 /* Check that the result is either a failure, or close enough
18196 to the correct answer that we can assume the discrepancy is
18197 due to leap seconds. */
18198 return (t == (time_t) -1
18199 || (0 < t && answer - 120 <= t && t <= answer + 120));
18208 /* This test makes some buggy mktime implementations loop.
18209 Give up after 60 seconds; a mktime slower than that
18210 isn't worth using anyway. */
18215 t = (time_t_max << 1) + 1;
18216 if (t <= time_t_max)
18220 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18222 delta = time_t_max / 997; /* a suitable prime number */
18223 for (i = 0; i < N_STRINGS; i++)
18226 putenv (tz_strings[i]);
18228 for (t = 0; t <= time_t_max - delta; t += delta)
18229 if (! mktime_test (t))
18231 if (! (mktime_test ((time_t) 1)
18232 && mktime_test ((time_t) (60 * 60))
18233 && mktime_test ((time_t) (60 * 60 * 24))))
18236 for (j = 1; ; j <<= 1)
18237 if (! bigtime_test (j))
18239 else if (INT_MAX / 2 < j)
18241 if (! bigtime_test (INT_MAX))
18244 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18247 rm -f conftest$ac_exeext
18248 if { (ac_try="$ac_link"
18249 case "(($ac_try" in
18250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18251 *) ac_try_echo
=$ac_try;;
18253 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18254 $as_echo "$ac_try_echo") >&5
18255 (eval "$ac_link") 2>&5
18257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18259 { (case "(($ac_try" in
18260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18264 $as_echo "$ac_try_echo") >&5
18265 (eval "$ac_try") 2>&5
18267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; }; then
18269 ac_cv_func_working_mktime=yes
18271 $as_echo "$as_me: program exited with status $ac_status" >&5
18272 $as_echo "$as_me: failed program was:" >&5
18273 sed 's/^/| /' conftest.$ac_ext >&5
18275 ( exit $ac_status )
18276 ac_cv_func_working_mktime=no
18278 rm -rf conftest.dSYM
18279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18284 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18285 $as_echo "$ac_cv_func_working_mktime" >&6; }
18286 if test $ac_cv_func_working_mktime = no; then
18287 case " $LIBOBJS " in
18288 *" mktime.$ac_objext "* ) ;;
18289 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18295 if test "$ac_cv_func_working_mktime" = no; then
18297 cat >>confdefs.h <<\_ACEOF
18298 #define BROKEN_MKTIME 1
18303 ac_have_func=no # yes means we've found a way to get the load average.
18305 # Make sure getloadavg.c is where it belongs, at configure-time.
18306 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18307 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18308 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18309 { (exit 1); exit 1; }; }
18313 # Check for getloadavg, but be sure not to touch the cache variable.
18314 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18315 $as_echo_n "checking for getloadavg... " >&6; }
18316 if test "${ac_cv_func_getloadavg+set}" = set; then
18317 $as_echo_n "(cached) " >&6
18319 cat >conftest.$ac_ext <<_ACEOF
18322 cat confdefs.h >>conftest.$ac_ext
18323 cat >>conftest.$ac_ext <<_ACEOF
18324 /* end confdefs.h. */
18325 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18327 #define getloadavg innocuous_getloadavg
18329 /* System header to define __stub macros and hopefully few prototypes,
18330 which can conflict with char getloadavg (); below.
18331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18332 <limits.h> exists even on freestanding compilers. */
18335 # include <limits.h>
18337 # include <assert.h>
18342 /* Override any GCC internal prototype to avoid an error.
18343 Use char because int might match the return type of a GCC
18344 builtin and then its argument prototype would still apply. */
18348 char getloadavg ();
18349 /* The GNU C library defines this for functions which it implements
18350 to always fail with ENOSYS. Some functions are actually named
18351 something starting with __ and the normal name is an alias. */
18352 #if defined __stub_getloadavg || defined __stub___getloadavg
18359 return getloadavg ();
18364 rm -f conftest.$ac_objext conftest$ac_exeext
18365 if { (ac_try="$ac_link"
18366 case "(($ac_try" in
18367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18368 *) ac_try_echo
=$ac_try;;
18370 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18371 $as_echo "$ac_try_echo") >&5
18372 (eval "$ac_link") 2>conftest.er1
18374 grep -v '^ *+' conftest.er1
>conftest.err
18376 cat conftest.err
>&5
18377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } && {
18379 test -z "$ac_c_werror_flag" ||
18380 test ! -s conftest.err
18381 } && test -s conftest
$ac_exeext && {
18382 test "$cross_compiling" = yes ||
18383 $as_test_x conftest
$ac_exeext
18385 ac_cv_func_getloadavg
=yes
18387 $as_echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.
$ac_ext >&5
18390 ac_cv_func_getloadavg
=no
18393 rm -rf conftest.dSYM
18394 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18395 conftest
$ac_exeext conftest.
$ac_ext
18397 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18398 $as_echo "$ac_cv_func_getloadavg" >&6; }
18399 if test $ac_cv_func_getloadavg = yes; then
18404 ) && ac_have_func
=yes
18406 # On HPUX9, an unprivileged user can get load averages through this function.
18408 for ac_func
in pstat_getdynamic
18410 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18411 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18412 $as_echo_n "checking for $ac_func... " >&6; }
18413 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18414 $as_echo_n "(cached) " >&6
18416 cat >conftest.
$ac_ext <<_ACEOF
18419 cat confdefs.h
>>conftest.
$ac_ext
18420 cat >>conftest.
$ac_ext <<_ACEOF
18421 /* end confdefs.h. */
18422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18424 #define $ac_func innocuous_$ac_func
18426 /* System header to define __stub macros and hopefully few prototypes,
18427 which can conflict with char $ac_func (); below.
18428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18429 <limits.h> exists even on freestanding compilers. */
18432 # include <limits.h>
18434 # include <assert.h>
18439 /* Override any GCC internal prototype to avoid an error.
18440 Use char because int might match the return type of a GCC
18441 builtin and then its argument prototype would still apply. */
18446 /* The GNU C library defines this for functions which it implements
18447 to always fail with ENOSYS. Some functions are actually named
18448 something starting with __ and the normal name is an alias. */
18449 #if defined __stub_$ac_func || defined __stub___$ac_func
18456 return $ac_func ();
18461 rm -f conftest.
$ac_objext conftest
$ac_exeext
18462 if { (ac_try
="$ac_link"
18463 case "(($ac_try" in
18464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18468 $as_echo "$ac_try_echo") >&5
18469 (eval "$ac_link") 2>conftest.er1
18471 grep -v '^ *+' conftest.er1 >conftest.err
18473 cat conftest.err >&5
18474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } && {
18476 test -z "$ac_c_werror_flag" ||
18477 test ! -s conftest.err
18478 } && test -s conftest$ac_exeext && {
18479 test "$cross_compiling" = yes ||
18480 $as_test_x conftest$ac_exeext
18482 eval "$as_ac_var=yes"
18484 $as_echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18487 eval "$as_ac_var=no"
18490 rm -rf conftest.dSYM
18491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18492 conftest$ac_exeext conftest.$ac_ext
18494 ac_res=`eval 'as_val=${'$as_ac_var'}
18495 $as_echo "$as_val"'`
18496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18497 $as_echo "$ac_res" >&6; }
18498 if test `eval 'as_val=${'$as_ac_var'}
18499 $as_echo "$as_val"'` = yes; then
18500 cat >>confdefs.h <<_ACEOF
18501 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18508 # Solaris has libkstat which does not require root.
18510 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18511 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18512 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18513 $as_echo_n "(cached) " >&6
18515 ac_check_lib_save_LIBS=$LIBS
18516 LIBS="-lkstat $LIBS"
18517 cat >conftest.$ac_ext <<_ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */
18524 /* Override any GCC internal prototype to avoid an error.
18525 Use char because int might match the return type of a GCC
18526 builtin and then its argument prototype would still apply. */
18530 char kstat_open ();
18534 return kstat_open ();
18539 rm -f conftest.$ac_objext conftest$ac_exeext
18540 if { (ac_try="$ac_link"
18541 case "(($ac_try" in
18542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18543 *) ac_try_echo
=$ac_try;;
18545 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18546 $as_echo "$ac_try_echo") >&5
18547 (eval "$ac_link") 2>conftest.er1
18549 grep -v '^ *+' conftest.er1
>conftest.err
18551 cat conftest.err
>&5
18552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } && {
18554 test -z "$ac_c_werror_flag" ||
18555 test ! -s conftest.err
18556 } && test -s conftest
$ac_exeext && {
18557 test "$cross_compiling" = yes ||
18558 $as_test_x conftest
$ac_exeext
18560 ac_cv_lib_kstat_kstat_open
=yes
18562 $as_echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.
$ac_ext >&5
18565 ac_cv_lib_kstat_kstat_open
=no
18568 rm -rf conftest.dSYM
18569 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18570 conftest
$ac_exeext conftest.
$ac_ext
18571 LIBS
=$ac_check_lib_save_LIBS
18573 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18574 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18575 if test $ac_cv_lib_kstat_kstat_open = yes; then
18576 cat >>confdefs.h
<<_ACEOF
18577 #define HAVE_LIBKSTAT 1
18580 LIBS
="-lkstat $LIBS"
18584 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
18586 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18587 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18588 # to get the right answer into the cache.
18589 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18590 if test $ac_have_func = no
; then
18591 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18592 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18593 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18594 $as_echo_n "(cached) " >&6
18596 ac_check_lib_save_LIBS
=$LIBS
18598 cat >conftest.
$ac_ext <<_ACEOF
18601 cat confdefs.h
>>conftest.
$ac_ext
18602 cat >>conftest.
$ac_ext <<_ACEOF
18603 /* end confdefs.h. */
18605 /* Override any GCC internal prototype to avoid an error.
18606 Use char because int might match the return type of a GCC
18607 builtin and then its argument prototype would still apply. */
18615 return elf_begin ();
18620 rm -f conftest.
$ac_objext conftest
$ac_exeext
18621 if { (ac_try
="$ac_link"
18622 case "(($ac_try" in
18623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18627 $as_echo "$ac_try_echo") >&5
18628 (eval "$ac_link") 2>conftest.er1
18630 grep -v '^ *+' conftest.er1 >conftest.err
18632 cat conftest.err >&5
18633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); } && {
18635 test -z "$ac_c_werror_flag" ||
18636 test ! -s conftest.err
18637 } && test -s conftest$ac_exeext && {
18638 test "$cross_compiling" = yes ||
18639 $as_test_x conftest$ac_exeext
18641 ac_cv_lib_elf_elf_begin=yes
18643 $as_echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18646 ac_cv_lib_elf_elf_begin=no
18649 rm -rf conftest.dSYM
18650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18651 conftest$ac_exeext conftest.$ac_ext
18652 LIBS=$ac_check_lib_save_LIBS
18654 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18655 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18656 if test $ac_cv_lib_elf_elf_begin = yes; then
18661 if test $ac_have_func = no; then
18662 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18663 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18664 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18665 $as_echo_n "(cached) " >&6
18667 ac_check_lib_save_LIBS=$LIBS
18669 cat >conftest.$ac_ext <<_ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18676 /* Override any GCC internal prototype to avoid an error.
18677 Use char because int might match the return type of a GCC
18678 builtin and then its argument prototype would still apply. */
18686 return kvm_open ();
18691 rm -f conftest.$ac_objext conftest$ac_exeext
18692 if { (ac_try="$ac_link"
18693 case "(($ac_try" in
18694 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18695 *) ac_try_echo
=$ac_try;;
18697 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18698 $as_echo "$ac_try_echo") >&5
18699 (eval "$ac_link") 2>conftest.er1
18701 grep -v '^ *+' conftest.er1
>conftest.err
18703 cat conftest.err
>&5
18704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } && {
18706 test -z "$ac_c_werror_flag" ||
18707 test ! -s conftest.err
18708 } && test -s conftest
$ac_exeext && {
18709 test "$cross_compiling" = yes ||
18710 $as_test_x conftest
$ac_exeext
18712 ac_cv_lib_kvm_kvm_open
=yes
18714 $as_echo "$as_me: failed program was:" >&5
18715 sed 's/^/| /' conftest.
$ac_ext >&5
18717 ac_cv_lib_kvm_kvm_open
=no
18720 rm -rf conftest.dSYM
18721 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
18722 conftest
$ac_exeext conftest.
$ac_ext
18723 LIBS
=$ac_check_lib_save_LIBS
18725 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18726 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18727 if test $ac_cv_lib_kvm_kvm_open = yes; then
18731 # Check for the 4.4BSD definition of getloadavg.
18732 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18733 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18734 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18735 $as_echo_n "(cached) " >&6
18737 ac_check_lib_save_LIBS
=$LIBS
18738 LIBS
="-lutil $LIBS"
18739 cat >conftest.
$ac_ext <<_ACEOF
18742 cat confdefs.h
>>conftest.
$ac_ext
18743 cat >>conftest.
$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18746 /* Override any GCC internal prototype to avoid an error.
18747 Use char because int might match the return type of a GCC
18748 builtin and then its argument prototype would still apply. */
18752 char getloadavg ();
18756 return getloadavg ();
18761 rm -f conftest.
$ac_objext conftest
$ac_exeext
18762 if { (ac_try
="$ac_link"
18763 case "(($ac_try" in
18764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18765 *) ac_try_echo=$ac_try;;
18767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18768 $as_echo "$ac_try_echo") >&5
18769 (eval "$ac_link") 2>conftest.er1
18771 grep -v '^ *+' conftest.er1 >conftest.err
18773 cat conftest.err >&5
18774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } && {
18776 test -z "$ac_c_werror_flag" ||
18777 test ! -s conftest.err
18778 } && test -s conftest$ac_exeext && {
18779 test "$cross_compiling" = yes ||
18780 $as_test_x conftest$ac_exeext
18782 ac_cv_lib_util_getloadavg=yes
18784 $as_echo "$as_me: failed program was:" >&5
18785 sed 's/^/| /' conftest.$ac_ext >&5
18787 ac_cv_lib_util_getloadavg=no
18790 rm -rf conftest.dSYM
18791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18792 conftest$ac_exeext conftest.$ac_ext
18793 LIBS=$ac_check_lib_save_LIBS
18795 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18796 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18797 if test $ac_cv_lib_util_getloadavg = yes; then
18798 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18803 if test $ac_have_func = no; then
18804 # There is a commonly available library for RS/6000 AIX.
18805 # Since it is not a standard part of AIX, it might be installed locally.
18806 ac_getloadavg_LIBS=$LIBS
18807 LIBS="-L/usr/local/lib $LIBS"
18808 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18809 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18810 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18811 $as_echo_n "(cached) " >&6
18813 ac_check_lib_save_LIBS=$LIBS
18814 LIBS="-lgetloadavg $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. */
18828 char getloadavg ();
18832 return getloadavg ();
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_getloadavg_getloadavg
=yes
18860 $as_echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.
$ac_ext >&5
18863 ac_cv_lib_getloadavg_getloadavg
=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_getloadavg_getloadavg" >&5
18872 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18873 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18874 LIBS
="-lgetloadavg $LIBS"
18876 LIBS
=$ac_getloadavg_LIBS
18881 # Make sure it is really in the library, if we think we found it,
18882 # otherwise set up the replacement function.
18884 for ac_func
in getloadavg
18886 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18887 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18888 $as_echo_n "checking for $ac_func... " >&6; }
18889 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18890 $as_echo_n "(cached) " >&6
18892 cat >conftest.
$ac_ext <<_ACEOF
18895 cat confdefs.h
>>conftest.
$ac_ext
18896 cat >>conftest.
$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18900 #define $ac_func innocuous_$ac_func
18902 /* System header to define __stub macros and hopefully few prototypes,
18903 which can conflict with char $ac_func (); below.
18904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18905 <limits.h> exists even on freestanding compilers. */
18908 # include <limits.h>
18910 # include <assert.h>
18915 /* Override any GCC internal prototype to avoid an error.
18916 Use char because int might match the return type of a GCC
18917 builtin and then its argument prototype would still apply. */
18922 /* The GNU C library defines this for functions which it implements
18923 to always fail with ENOSYS. Some functions are actually named
18924 something starting with __ and the normal name is an alias. */
18925 #if defined __stub_$ac_func || defined __stub___$ac_func
18932 return $ac_func ();
18937 rm -f conftest.
$ac_objext conftest
$ac_exeext
18938 if { (ac_try
="$ac_link"
18939 case "(($ac_try" in
18940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18944 $as_echo "$ac_try_echo") >&5
18945 (eval "$ac_link") 2>conftest.er1
18947 grep -v '^ *+' conftest.er1 >conftest.err
18949 cat conftest.err >&5
18950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } && {
18952 test -z "$ac_c_werror_flag" ||
18953 test ! -s conftest.err
18954 } && test -s conftest$ac_exeext && {
18955 test "$cross_compiling" = yes ||
18956 $as_test_x conftest$ac_exeext
18958 eval "$as_ac_var=yes"
18960 $as_echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18963 eval "$as_ac_var=no"
18966 rm -rf conftest.dSYM
18967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18968 conftest$ac_exeext conftest.$ac_ext
18970 ac_res=`eval 'as_val=${'$as_ac_var'}
18971 $as_echo "$as_val"'`
18972 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18973 $as_echo "$ac_res" >&6; }
18974 if test `eval 'as_val=${'$as_ac_var'}
18975 $as_echo "$as_val"'` = yes; then
18976 cat >>confdefs.h <<_ACEOF
18977 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18981 case " $LIBOBJS " in
18982 *" getloadavg.$ac_objext "* ) ;;
18983 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18988 cat >>confdefs.h <<\_ACEOF
18989 #define C_GETLOADAVG 1
18992 # Figure out what our getloadavg.c needs.
18994 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18995 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18996 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18997 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18998 $as_echo_n "(cached) " >&6
19000 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19001 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19003 # Is the header compilable?
19004 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19005 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19006 cat >conftest.$ac_ext <<_ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h. */
19012 $ac_includes_default
19013 #include <sys/dg_sys_info.h>
19015 rm -f conftest.$ac_objext
19016 if { (ac_try="$ac_compile"
19017 case "(($ac_try" in
19018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19019 *) ac_try_echo
=$ac_try;;
19021 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19022 $as_echo "$ac_try_echo") >&5
19023 (eval "$ac_compile") 2>conftest.er1
19025 grep -v '^ *+' conftest.er1
>conftest.err
19027 cat conftest.err
>&5
19028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } && {
19030 test -z "$ac_c_werror_flag" ||
19031 test ! -s conftest.err
19032 } && test -s conftest.
$ac_objext; then
19033 ac_header_compiler
=yes
19035 $as_echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.
$ac_ext >&5
19038 ac_header_compiler
=no
19041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19042 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19043 $as_echo "$ac_header_compiler" >&6; }
19045 # Is the header present?
19046 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19047 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19048 cat >conftest.
$ac_ext <<_ACEOF
19051 cat confdefs.h
>>conftest.
$ac_ext
19052 cat >>conftest.
$ac_ext <<_ACEOF
19053 /* end confdefs.h. */
19054 #include <sys/dg_sys_info.h>
19056 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19057 case "(($ac_try" in
19058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19062 $as_echo "$ac_try_echo") >&5
19063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19065 grep -v '^ *+' conftest.er1 >conftest.err
19067 cat conftest.err >&5
19068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); } >/dev/null && {
19070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19071 test ! -s conftest.err
19073 ac_header_preproc=yes
19075 $as_echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19078 ac_header_preproc=no
19081 rm -f conftest.err conftest.$ac_ext
19082 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19083 $as_echo "$ac_header_preproc" >&6; }
19085 # So? What about this header?
19086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19088 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19089 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19090 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19091 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19092 ac_header_preproc=yes
19095 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19096 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19097 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19098 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19099 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19100 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19101 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19102 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19103 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19104 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19105 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19106 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19110 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19111 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19112 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19113 $as_echo_n "(cached) " >&6
19115 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19117 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19118 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19121 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19124 cat >>confdefs.h <<\_ACEOF
19129 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19130 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19131 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19132 $as_echo_n "(cached) " >&6
19134 ac_check_lib_save_LIBS=$LIBS
19136 cat >conftest.$ac_ext <<_ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h. */
19143 /* Override any GCC internal prototype to avoid an error.
19144 Use char because int might match the return type of a GCC
19145 builtin and then its argument prototype would still apply. */
19149 char dg_sys_info ();
19153 return dg_sys_info ();
19158 rm -f conftest.$ac_objext conftest$ac_exeext
19159 if { (ac_try="$ac_link"
19160 case "(($ac_try" in
19161 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19162 *) ac_try_echo
=$ac_try;;
19164 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19165 $as_echo "$ac_try_echo") >&5
19166 (eval "$ac_link") 2>conftest.er1
19168 grep -v '^ *+' conftest.er1
>conftest.err
19170 cat conftest.err
>&5
19171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } && {
19173 test -z "$ac_c_werror_flag" ||
19174 test ! -s conftest.err
19175 } && test -s conftest
$ac_exeext && {
19176 test "$cross_compiling" = yes ||
19177 $as_test_x conftest
$ac_exeext
19179 ac_cv_lib_dgc_dg_sys_info
=yes
19181 $as_echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.
$ac_ext >&5
19184 ac_cv_lib_dgc_dg_sys_info
=no
19187 rm -rf conftest.dSYM
19188 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
19189 conftest
$ac_exeext conftest.
$ac_ext
19190 LIBS
=$ac_check_lib_save_LIBS
19192 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19193 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19194 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19195 cat >>confdefs.h
<<_ACEOF
19196 #define HAVE_LIBDGC 1
19207 if test "${ac_cv_header_locale_h+set}" = set; then
19208 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19209 $as_echo_n "checking for locale.h... " >&6; }
19210 if test "${ac_cv_header_locale_h+set}" = set; then
19211 $as_echo_n "(cached) " >&6
19213 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19214 $as_echo "$ac_cv_header_locale_h" >&6; }
19216 # Is the header compilable?
19217 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19218 $as_echo_n "checking locale.h usability... " >&6; }
19219 cat >conftest.
$ac_ext <<_ACEOF
19222 cat confdefs.h
>>conftest.
$ac_ext
19223 cat >>conftest.
$ac_ext <<_ACEOF
19224 /* end confdefs.h. */
19225 $ac_includes_default
19226 #include <locale.h>
19228 rm -f conftest.
$ac_objext
19229 if { (ac_try
="$ac_compile"
19230 case "(($ac_try" in
19231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19232 *) ac_try_echo=$ac_try;;
19234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19235 $as_echo "$ac_try_echo") >&5
19236 (eval "$ac_compile") 2>conftest.er1
19238 grep -v '^ *+' conftest.er1 >conftest.err
19240 cat conftest.err >&5
19241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } && {
19243 test -z "$ac_c_werror_flag" ||
19244 test ! -s conftest.err
19245 } && test -s conftest.$ac_objext; then
19246 ac_header_compiler=yes
19248 $as_echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19251 ac_header_compiler=no
19254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19255 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19256 $as_echo "$ac_header_compiler" >&6; }
19258 # Is the header present?
19259 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19260 $as_echo_n "checking locale.h presence... " >&6; }
19261 cat >conftest.$ac_ext <<_ACEOF
19264 cat confdefs.h >>conftest.$ac_ext
19265 cat >>conftest.$ac_ext <<_ACEOF
19266 /* end confdefs.h. */
19267 #include <locale.h>
19269 if { (ac_try="$ac_cpp conftest.$ac_ext"
19270 case "(($ac_try" in
19271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19272 *) ac_try_echo
=$ac_try;;
19274 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19275 $as_echo "$ac_try_echo") >&5
19276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19278 grep -v '^ *+' conftest.er1
>conftest.err
19280 cat conftest.err
>&5
19281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } >/dev
/null
&& {
19283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19284 test ! -s conftest.err
19286 ac_header_preproc
=yes
19288 $as_echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.
$ac_ext >&5
19291 ac_header_preproc
=no
19294 rm -f conftest.err conftest.
$ac_ext
19295 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19296 $as_echo "$ac_header_preproc" >&6; }
19298 # So? What about this header?
19299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19301 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19302 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19303 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19304 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19305 ac_header_preproc
=yes
19308 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19309 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19310 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19311 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19312 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19313 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19314 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19315 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19316 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19317 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19318 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19319 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19323 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19324 $as_echo_n "checking for locale.h... " >&6; }
19325 if test "${ac_cv_header_locale_h+set}" = set; then
19326 $as_echo_n "(cached) " >&6
19328 ac_cv_header_locale_h
=$ac_header_preproc
19330 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19331 $as_echo "$ac_cv_header_locale_h" >&6; }
19337 for ac_func
in setlocale
19339 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19340 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19341 $as_echo_n "checking for $ac_func... " >&6; }
19342 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19343 $as_echo_n "(cached) " >&6
19345 cat >conftest.
$ac_ext <<_ACEOF
19348 cat confdefs.h
>>conftest.
$ac_ext
19349 cat >>conftest.
$ac_ext <<_ACEOF
19350 /* end confdefs.h. */
19351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19353 #define $ac_func innocuous_$ac_func
19355 /* System header to define __stub macros and hopefully few prototypes,
19356 which can conflict with char $ac_func (); below.
19357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19358 <limits.h> exists even on freestanding compilers. */
19361 # include <limits.h>
19363 # include <assert.h>
19368 /* Override any GCC internal prototype to avoid an error.
19369 Use char because int might match the return type of a GCC
19370 builtin and then its argument prototype would still apply. */
19375 /* The GNU C library defines this for functions which it implements
19376 to always fail with ENOSYS. Some functions are actually named
19377 something starting with __ and the normal name is an alias. */
19378 #if defined __stub_$ac_func || defined __stub___$ac_func
19385 return $ac_func ();
19390 rm -f conftest.
$ac_objext conftest
$ac_exeext
19391 if { (ac_try
="$ac_link"
19392 case "(($ac_try" in
19393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19394 *) ac_try_echo=$ac_try;;
19396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19397 $as_echo "$ac_try_echo") >&5
19398 (eval "$ac_link") 2>conftest.er1
19400 grep -v '^ *+' conftest.er1 >conftest.err
19402 cat conftest.err >&5
19403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); } && {
19405 test -z "$ac_c_werror_flag" ||
19406 test ! -s conftest.err
19407 } && test -s conftest$ac_exeext && {
19408 test "$cross_compiling" = yes ||
19409 $as_test_x conftest$ac_exeext
19411 eval "$as_ac_var=yes"
19413 $as_echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19416 eval "$as_ac_var=no"
19419 rm -rf conftest.dSYM
19420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19421 conftest$ac_exeext conftest.$ac_ext
19423 ac_res=`eval 'as_val=${'$as_ac_var'}
19424 $as_echo "$as_val"'`
19425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19426 $as_echo "$ac_res" >&6; }
19427 if test `eval 'as_val=${'$as_ac_var'}
19428 $as_echo "$as_val"'` = yes; then
19429 cat >>confdefs.h <<_ACEOF
19430 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19437 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19438 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19439 # Irix 4.0.5F has the header but not the library.
19440 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19443 cat >>confdefs.h <<\_ACEOF
19449 if test $ac_have_func = no; then
19450 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19451 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19452 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19453 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19454 $as_echo_n "(cached) " >&6
19456 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19457 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19459 # Is the header compilable?
19460 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19461 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19462 cat >conftest.$ac_ext <<_ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h. */
19468 $ac_includes_default
19469 #include <inq_stats/cpustats.h>
19471 rm -f conftest.$ac_objext
19472 if { (ac_try="$ac_compile"
19473 case "(($ac_try" in
19474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19475 *) ac_try_echo
=$ac_try;;
19477 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19478 $as_echo "$ac_try_echo") >&5
19479 (eval "$ac_compile") 2>conftest.er1
19481 grep -v '^ *+' conftest.er1
>conftest.err
19483 cat conftest.err
>&5
19484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } && {
19486 test -z "$ac_c_werror_flag" ||
19487 test ! -s conftest.err
19488 } && test -s conftest.
$ac_objext; then
19489 ac_header_compiler
=yes
19491 $as_echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.
$ac_ext >&5
19494 ac_header_compiler
=no
19497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19498 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19499 $as_echo "$ac_header_compiler" >&6; }
19501 # Is the header present?
19502 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19503 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19504 cat >conftest.
$ac_ext <<_ACEOF
19507 cat confdefs.h
>>conftest.
$ac_ext
19508 cat >>conftest.
$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 #include <inq_stats/cpustats.h>
19512 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19513 case "(($ac_try" in
19514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19518 $as_echo "$ac_try_echo") >&5
19519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19521 grep -v '^ *+' conftest.er1 >conftest.err
19523 cat conftest.err >&5
19524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); } >/dev/null && {
19526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19527 test ! -s conftest.err
19529 ac_header_preproc=yes
19531 $as_echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19534 ac_header_preproc=no
19537 rm -f conftest.err conftest.$ac_ext
19538 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19539 $as_echo "$ac_header_preproc" >&6; }
19541 # So? What about this header?
19542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19544 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19545 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19546 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19547 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19548 ac_header_preproc=yes
19551 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19552 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19553 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19554 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19555 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19556 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19557 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19558 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19559 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19560 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19561 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19562 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19566 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19567 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19568 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19569 $as_echo_n "(cached) " >&6
19571 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19573 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19574 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19577 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19580 cat >>confdefs.h <<\_ACEOF
19585 cat >>confdefs.h <<\_ACEOF
19594 if test $ac_have_func = no; then
19595 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19596 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19597 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19598 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19599 $as_echo_n "(cached) " >&6
19601 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19602 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19604 # Is the header compilable?
19605 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19606 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19607 cat >conftest.$ac_ext <<_ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19613 $ac_includes_default
19614 #include <sys/cpustats.h>
19616 rm -f conftest.$ac_objext
19617 if { (ac_try="$ac_compile"
19618 case "(($ac_try" in
19619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19620 *) ac_try_echo
=$ac_try;;
19622 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19623 $as_echo "$ac_try_echo") >&5
19624 (eval "$ac_compile") 2>conftest.er1
19626 grep -v '^ *+' conftest.er1
>conftest.err
19628 cat conftest.err
>&5
19629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); } && {
19631 test -z "$ac_c_werror_flag" ||
19632 test ! -s conftest.err
19633 } && test -s conftest.
$ac_objext; then
19634 ac_header_compiler
=yes
19636 $as_echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.
$ac_ext >&5
19639 ac_header_compiler
=no
19642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19643 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19644 $as_echo "$ac_header_compiler" >&6; }
19646 # Is the header present?
19647 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19648 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19649 cat >conftest.
$ac_ext <<_ACEOF
19652 cat confdefs.h
>>conftest.
$ac_ext
19653 cat >>conftest.
$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 #include <sys/cpustats.h>
19657 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19658 case "(($ac_try" in
19659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19663 $as_echo "$ac_try_echo") >&5
19664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19666 grep -v '^ *+' conftest.er1 >conftest.err
19668 cat conftest.err >&5
19669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } >/dev/null && {
19671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19672 test ! -s conftest.err
19674 ac_header_preproc=yes
19676 $as_echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19679 ac_header_preproc=no
19682 rm -f conftest.err conftest.$ac_ext
19683 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19684 $as_echo "$ac_header_preproc" >&6; }
19686 # So? What about this header?
19687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19689 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19690 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19691 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19692 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19693 ac_header_preproc=yes
19696 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19697 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19698 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19699 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19700 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19701 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19702 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19703 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19704 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19705 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19706 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19707 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19711 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19712 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19713 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19714 $as_echo_n "(cached) " >&6
19716 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19718 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19719 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19722 if test $ac_cv_header_sys_cpustats_h = yes; then
19723 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19732 if test $ac_have_func = no; then
19734 for ac_header in mach/mach.h
19736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19738 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19739 $as_echo_n "checking for $ac_header... " >&6; }
19740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19741 $as_echo_n "(cached) " >&6
19743 ac_res=`eval 'as_val=${'$as_ac_Header'}
19744 $as_echo "$as_val"'`
19745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19746 $as_echo "$ac_res" >&6; }
19748 # Is the header compilable?
19749 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19750 $as_echo_n "checking $ac_header usability... " >&6; }
19751 cat >conftest.$ac_ext <<_ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19757 $ac_includes_default
19758 #include <$ac_header>
19760 rm -f conftest.$ac_objext
19761 if { (ac_try="$ac_compile"
19762 case "(($ac_try" in
19763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19764 *) ac_try_echo
=$ac_try;;
19766 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19767 $as_echo "$ac_try_echo") >&5
19768 (eval "$ac_compile") 2>conftest.er1
19770 grep -v '^ *+' conftest.er1
>conftest.err
19772 cat conftest.err
>&5
19773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } && {
19775 test -z "$ac_c_werror_flag" ||
19776 test ! -s conftest.err
19777 } && test -s conftest.
$ac_objext; then
19778 ac_header_compiler
=yes
19780 $as_echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.
$ac_ext >&5
19783 ac_header_compiler
=no
19786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19787 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19788 $as_echo "$ac_header_compiler" >&6; }
19790 # Is the header present?
19791 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19792 $as_echo_n "checking $ac_header presence... " >&6; }
19793 cat >conftest.
$ac_ext <<_ACEOF
19796 cat confdefs.h
>>conftest.
$ac_ext
19797 cat >>conftest.
$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19799 #include <$ac_header>
19801 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19802 case "(($ac_try" in
19803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19807 $as_echo "$ac_try_echo") >&5
19808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19810 grep -v '^ *+' conftest.er1 >conftest.err
19812 cat conftest.err >&5
19813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } >/dev/null && {
19815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19816 test ! -s conftest.err
19818 ac_header_preproc=yes
19820 $as_echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19823 ac_header_preproc=no
19826 rm -f conftest.err conftest.$ac_ext
19827 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19828 $as_echo "$ac_header_preproc" >&6; }
19830 # So? What about this header?
19831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19834 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19836 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19837 ac_header_preproc=yes
19840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19841 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19843 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19845 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19847 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19851 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19855 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19856 $as_echo_n "checking for $ac_header... " >&6; }
19857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19858 $as_echo_n "(cached) " >&6
19860 eval "$as_ac_Header=\$ac_header_preproc"
19862 ac_res=`eval 'as_val=${'$as_ac_Header'}
19863 $as_echo "$as_val"'`
19864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19865 $as_echo "$ac_res" >&6; }
19868 if test `eval 'as_val=${'$as_ac_Header'}
19869 $as_echo "$as_val"'` = yes; then
19870 cat >>confdefs.h <<_ACEOF
19871 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19881 for ac_header in nlist.h
19883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19885 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19886 $as_echo_n "checking for $ac_header... " >&6; }
19887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19888 $as_echo_n "(cached) " >&6
19890 ac_res=`eval 'as_val=${'$as_ac_Header'}
19891 $as_echo "$as_val"'`
19892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19893 $as_echo "$ac_res" >&6; }
19895 # Is the header compilable?
19896 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19897 $as_echo_n "checking $ac_header usability... " >&6; }
19898 cat >conftest.$ac_ext <<_ACEOF
19901 cat confdefs.h >>conftest.$ac_ext
19902 cat >>conftest.$ac_ext <<_ACEOF
19903 /* end confdefs.h. */
19904 $ac_includes_default
19905 #include <$ac_header>
19907 rm -f conftest.$ac_objext
19908 if { (ac_try="$ac_compile"
19909 case "(($ac_try" in
19910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19911 *) ac_try_echo
=$ac_try;;
19913 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
19914 $as_echo "$ac_try_echo") >&5
19915 (eval "$ac_compile") 2>conftest.er1
19917 grep -v '^ *+' conftest.er1
>conftest.err
19919 cat conftest.err
>&5
19920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } && {
19922 test -z "$ac_c_werror_flag" ||
19923 test ! -s conftest.err
19924 } && test -s conftest.
$ac_objext; then
19925 ac_header_compiler
=yes
19927 $as_echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.
$ac_ext >&5
19930 ac_header_compiler
=no
19933 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19934 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19935 $as_echo "$ac_header_compiler" >&6; }
19937 # Is the header present?
19938 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19939 $as_echo_n "checking $ac_header presence... " >&6; }
19940 cat >conftest.
$ac_ext <<_ACEOF
19943 cat confdefs.h
>>conftest.
$ac_ext
19944 cat >>conftest.
$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19946 #include <$ac_header>
19948 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19949 case "(($ac_try" in
19950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19951 *) ac_try_echo=$ac_try;;
19953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19954 $as_echo "$ac_try_echo") >&5
19955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19957 grep -v '^ *+' conftest.er1 >conftest.err
19959 cat conftest.err >&5
19960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); } >/dev/null && {
19962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19963 test ! -s conftest.err
19965 ac_header_preproc=yes
19967 $as_echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19970 ac_header_preproc=no
19973 rm -f conftest.err conftest.$ac_ext
19974 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19975 $as_echo "$ac_header_preproc" >&6; }
19977 # So? What about this header?
19978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19980 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19981 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19982 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19983 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19984 ac_header_preproc=yes
19987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19988 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19990 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19992 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19994 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19996 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19998 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20002 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20003 $as_echo_n "checking for $ac_header... " >&6; }
20004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20005 $as_echo_n "(cached) " >&6
20007 eval "$as_ac_Header=\$ac_header_preproc"
20009 ac_res=`eval 'as_val=${'$as_ac_Header'}
20010 $as_echo "$as_val"'`
20011 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20012 $as_echo "$ac_res" >&6; }
20015 if test `eval 'as_val=${'$as_ac_Header'}
20016 $as_echo "$as_val"'` = yes; then
20017 cat >>confdefs.h <<_ACEOF
20018 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
20020 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20021 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20022 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20023 $as_echo_n "(cached) " >&6
20025 cat >conftest.$ac_ext <<_ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20036 static struct nlist ac_aggr;
20037 if (ac_aggr.n_un.n_name)
20043 rm -f conftest.$ac_objext
20044 if { (ac_try="$ac_compile"
20045 case "(($ac_try" in
20046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20047 *) ac_try_echo
=$ac_try;;
20049 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20050 $as_echo "$ac_try_echo") >&5
20051 (eval "$ac_compile") 2>conftest.er1
20053 grep -v '^ *+' conftest.er1
>conftest.err
20055 cat conftest.err
>&5
20056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } && {
20058 test -z "$ac_c_werror_flag" ||
20059 test ! -s conftest.err
20060 } && test -s conftest.
$ac_objext; then
20061 ac_cv_member_struct_nlist_n_un_n_name
=yes
20063 $as_echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.
$ac_ext >&5
20066 cat >conftest.
$ac_ext <<_ACEOF
20069 cat confdefs.h
>>conftest.
$ac_ext
20070 cat >>conftest.
$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20077 static struct nlist ac_aggr;
20078 if (sizeof ac_aggr.n_un.n_name)
20084 rm -f conftest.
$ac_objext
20085 if { (ac_try
="$ac_compile"
20086 case "(($ac_try" in
20087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20088 *) ac_try_echo=$ac_try;;
20090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20091 $as_echo "$ac_try_echo") >&5
20092 (eval "$ac_compile") 2>conftest.er1
20094 grep -v '^ *+' conftest.er1 >conftest.err
20096 cat conftest.err >&5
20097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); } && {
20099 test -z "$ac_c_werror_flag" ||
20100 test ! -s conftest.err
20101 } && test -s conftest.$ac_objext; then
20102 ac_cv_member_struct_nlist_n_un_n_name=yes
20104 $as_echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20107 ac_cv_member_struct_nlist_n_un_n_name=no
20110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20115 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20116 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20117 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20119 cat >>confdefs.h <<_ACEOF
20120 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20124 cat >>confdefs.h <<\_ACEOF
20125 #define NLIST_NAME_UNION 1
20139 # Some definitions of getloadavg require that the program be installed setgid.
20140 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20141 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20142 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20143 $as_echo_n "(cached) " >&6
20145 cat >conftest.$ac_ext <<_ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20151 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20152 #ifdef LDAV_PRIVILEGED
20153 Yowza Am I SETGID yet
20156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20157 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20158 ac_cv_func_getloadavg_setgid=yes
20160 ac_cv_func_getloadavg_setgid=no
20165 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20166 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20167 if test $ac_cv_func_getloadavg_setgid = yes; then
20170 cat >>confdefs.h <<\_ACEOF
20171 #define GETLOADAVG_PRIVILEGED 1
20178 if test $ac_cv_func_getloadavg_setgid = yes; then
20179 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20180 $as_echo_n "checking group of /dev/kmem... " >&6; }
20181 if test "${ac_cv_group_kmem+set}" = set; then
20182 $as_echo_n "(cached) " >&6
20184 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20185 ac_ls_output=`ls -lgL /dev
/kmem
2>/dev
/null
`
20186 # If we got an error (system does not support symlinks), try without -L.
20187 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev
/kmem
`
20188 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20189 |
sed -ne 's/[ ][ ]*/ /g;
20190 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20194 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20195 $as_echo "$ac_cv_group_kmem" >&6; }
20196 KMEM_GROUP=$ac_cv_group_kmem
20198 if test "x$ac_save_LIBS" = x; then
20199 GETLOADAVG_LIBS=$LIBS
20201 GETLOADAVG_LIBS=`$as_echo "$LIBS" |
sed "s|$ac_save_LIBS||"`
20207 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20208 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20209 if test "${ac_cv_sys_largefile_source+set}" = set; then
20210 $as_echo_n "(cached) " >&6
20213 cat >conftest.$ac_ext <<_ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h. */
20219 #include <sys/types.h> /* for off_t */
20224 int (*fp) (FILE *, off_t, int) = fseeko;
20225 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20230 rm -f conftest.$ac_objext conftest$ac_exeext
20231 if { (ac_try="$ac_link"
20232 case "(($ac_try" in
20233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20234 *) ac_try_echo
=$ac_try;;
20236 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20237 $as_echo "$ac_try_echo") >&5
20238 (eval "$ac_link") 2>conftest.er1
20240 grep -v '^ *+' conftest.er1
>conftest.err
20242 cat conftest.err
>&5
20243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } && {
20245 test -z "$ac_c_werror_flag" ||
20246 test ! -s conftest.err
20247 } && test -s conftest
$ac_exeext && {
20248 test "$cross_compiling" = yes ||
20249 $as_test_x conftest
$ac_exeext
20251 ac_cv_sys_largefile_source
=no
; break
20253 $as_echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.
$ac_ext >&5
20259 rm -rf conftest.dSYM
20260 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20261 conftest
$ac_exeext conftest.
$ac_ext
20262 cat >conftest.
$ac_ext <<_ACEOF
20265 cat confdefs.h
>>conftest.
$ac_ext
20266 cat >>conftest.
$ac_ext <<_ACEOF
20267 /* end confdefs.h. */
20268 #define _LARGEFILE_SOURCE 1
20269 #include <sys/types.h> /* for off_t */
20274 int (*fp) (FILE *, off_t, int) = fseeko;
20275 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20280 rm -f conftest.
$ac_objext conftest
$ac_exeext
20281 if { (ac_try
="$ac_link"
20282 case "(($ac_try" in
20283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20287 $as_echo "$ac_try_echo") >&5
20288 (eval "$ac_link") 2>conftest.er1
20290 grep -v '^ *+' conftest.er1 >conftest.err
20292 cat conftest.err >&5
20293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } && {
20295 test -z "$ac_c_werror_flag" ||
20296 test ! -s conftest.err
20297 } && test -s conftest$ac_exeext && {
20298 test "$cross_compiling" = yes ||
20299 $as_test_x conftest$ac_exeext
20301 ac_cv_sys_largefile_source=1; break
20303 $as_echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20309 rm -rf conftest.dSYM
20310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20311 conftest$ac_exeext conftest.$ac_ext
20312 ac_cv_sys_largefile_source=unknown
20316 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20317 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20318 case $ac_cv_sys_largefile_source in #(
20321 cat >>confdefs.h <<_ACEOF
20322 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20328 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20329 # in glibc 2.1.3, but that breaks too many other things.
20330 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20331 if test $ac_cv_sys_largefile_source != unknown; then
20333 cat >>confdefs.h <<\_ACEOF
20334 #define HAVE_FSEEKO 1
20340 # Configure getopt.
20341 # getopt.m4 serial 10
20343 # The getopt module assume you want GNU getopt, with getopt_long etc,
20344 # rather than vanilla POSIX getopt. This means your your code should
20345 # always include <getopt.h> for the getopt prototypes.
20357 # Prerequisites of lib/getopt*.
20364 for ac_header in getopt.h
20366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
20367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20368 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20369 $as_echo_n "checking for $ac_header... " >&6; }
20370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20371 $as_echo_n "(cached) " >&6
20373 ac_res=`eval 'as_val=${'$as_ac_Header'}
20374 $as_echo "$as_val"'`
20375 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20376 $as_echo "$ac_res" >&6; }
20378 # Is the header compilable?
20379 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20380 $as_echo_n "checking $ac_header usability... " >&6; }
20381 cat >conftest.$ac_ext <<_ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20387 $ac_includes_default
20388 #include <$ac_header>
20390 rm -f conftest.$ac_objext
20391 if { (ac_try="$ac_compile"
20392 case "(($ac_try" in
20393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20394 *) ac_try_echo
=$ac_try;;
20396 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20397 $as_echo "$ac_try_echo") >&5
20398 (eval "$ac_compile") 2>conftest.er1
20400 grep -v '^ *+' conftest.er1
>conftest.err
20402 cat conftest.err
>&5
20403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } && {
20405 test -z "$ac_c_werror_flag" ||
20406 test ! -s conftest.err
20407 } && test -s conftest.
$ac_objext; then
20408 ac_header_compiler
=yes
20410 $as_echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.
$ac_ext >&5
20413 ac_header_compiler
=no
20416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20417 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20418 $as_echo "$ac_header_compiler" >&6; }
20420 # Is the header present?
20421 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20422 $as_echo_n "checking $ac_header presence... " >&6; }
20423 cat >conftest.
$ac_ext <<_ACEOF
20426 cat confdefs.h
>>conftest.
$ac_ext
20427 cat >>conftest.
$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429 #include <$ac_header>
20431 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20432 case "(($ac_try" in
20433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20437 $as_echo "$ac_try_echo") >&5
20438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20440 grep -v '^ *+' conftest.er1 >conftest.err
20442 cat conftest.err >&5
20443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } >/dev/null && {
20445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20446 test ! -s conftest.err
20448 ac_header_preproc=yes
20450 $as_echo "$as_me: failed program was:" >&5
20451 sed 's/^/| /' conftest.$ac_ext >&5
20453 ac_header_preproc=no
20456 rm -f conftest.err conftest.$ac_ext
20457 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20458 $as_echo "$ac_header_preproc" >&6; }
20460 # So? What about this header?
20461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20464 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20466 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20467 ac_header_preproc=yes
20470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20471 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20473 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20475 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20477 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20479 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20481 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20485 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20486 $as_echo_n "checking for $ac_header... " >&6; }
20487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20488 $as_echo_n "(cached) " >&6
20490 eval "$as_ac_Header=\$ac_header_preproc"
20492 ac_res=`eval 'as_val=${'$as_ac_Header'}
20493 $as_echo "$as_val"'`
20494 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20495 $as_echo "$ac_res" >&6; }
20498 if test `eval 'as_val=${'$as_ac_Header'}
20499 $as_echo "$as_val"'` = yes; then
20500 cat >>confdefs.h <<_ACEOF
20501 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
20510 if test -z "$GETOPT_H"; then
20512 for ac_func in getopt_long_only
20514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20515 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20516 $as_echo_n "checking for $ac_func... " >&6; }
20517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20518 $as_echo_n "(cached) " >&6
20520 cat >conftest.$ac_ext <<_ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20528 #define $ac_func innocuous_$ac_func
20530 /* System header to define __stub macros and hopefully few prototypes,
20531 which can conflict with char $ac_func (); below.
20532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20533 <limits.h> exists even on freestanding compilers. */
20536 # include <limits.h>
20538 # include <assert.h>
20543 /* Override any GCC internal prototype to avoid an error.
20544 Use char because int might match the return type of a GCC
20545 builtin and then its argument prototype would still apply. */
20550 /* The GNU C library defines this for functions which it implements
20551 to always fail with ENOSYS. Some functions are actually named
20552 something starting with __ and the normal name is an alias. */
20553 #if defined __stub_$ac_func || defined __stub___$ac_func
20560 return $ac_func ();
20565 rm -f conftest.$ac_objext conftest$ac_exeext
20566 if { (ac_try="$ac_link"
20567 case "(($ac_try" in
20568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20569 *) ac_try_echo
=$ac_try;;
20571 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20572 $as_echo "$ac_try_echo") >&5
20573 (eval "$ac_link") 2>conftest.er1
20575 grep -v '^ *+' conftest.er1
>conftest.err
20577 cat conftest.err
>&5
20578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } && {
20580 test -z "$ac_c_werror_flag" ||
20581 test ! -s conftest.err
20582 } && test -s conftest
$ac_exeext && {
20583 test "$cross_compiling" = yes ||
20584 $as_test_x conftest
$ac_exeext
20586 eval "$as_ac_var=yes"
20588 $as_echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.
$ac_ext >&5
20591 eval "$as_ac_var=no"
20594 rm -rf conftest.dSYM
20595 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20596 conftest
$ac_exeext conftest.
$ac_ext
20598 ac_res
=`eval 'as_val=${'$as_ac_var'}
20599 $as_echo "$as_val"'`
20600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20601 $as_echo "$ac_res" >&6; }
20602 if test `eval 'as_val=${'$as_ac_var'}
20603 $as_echo "$as_val"'` = yes; then
20604 cat >>confdefs.h
<<_ACEOF
20605 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20615 if test -z "$GETOPT_H"; then
20616 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20617 $as_echo_n "checking whether optreset is declared... " >&6; }
20618 if test "${ac_cv_have_decl_optreset+set}" = set; then
20619 $as_echo_n "(cached) " >&6
20621 cat >conftest.
$ac_ext <<_ACEOF
20624 cat confdefs.h
>>conftest.
$ac_ext
20625 cat >>conftest.
$ac_ext <<_ACEOF
20626 /* end confdefs.h. */
20627 #include <getopt.h>
20640 rm -f conftest.
$ac_objext
20641 if { (ac_try
="$ac_compile"
20642 case "(($ac_try" in
20643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20644 *) ac_try_echo=$ac_try;;
20646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20647 $as_echo "$ac_try_echo") >&5
20648 (eval "$ac_compile") 2>conftest.er1
20650 grep -v '^ *+' conftest.er1 >conftest.err
20652 cat conftest.err >&5
20653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } && {
20655 test -z "$ac_c_werror_flag" ||
20656 test ! -s conftest.err
20657 } && test -s conftest.$ac_objext; then
20658 ac_cv_have_decl_optreset=yes
20660 $as_echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 ac_cv_have_decl_optreset=no
20666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20668 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20669 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20670 if test $ac_cv_have_decl_optreset = yes; then
20676 if test -z "$GETOPT_H"; then
20677 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20678 $as_echo_n "checking for working GNU getopt function... " >&6; }
20679 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20680 $as_echo_n "(cached) " >&6
20682 if test "$cross_compiling" = yes; then
20683 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20684 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20685 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20686 $as_echo_n "(cached) " >&6
20688 cat >conftest.$ac_ext <<_ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20694 #include <getopt.h>
20699 #ifndef getopt_clip
20700 (void) getopt_clip;
20707 rm -f conftest.$ac_objext
20708 if { (ac_try="$ac_compile"
20709 case "(($ac_try" in
20710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20711 *) ac_try_echo
=$ac_try;;
20713 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20714 $as_echo "$ac_try_echo") >&5
20715 (eval "$ac_compile") 2>conftest.er1
20717 grep -v '^ *+' conftest.er1
>conftest.err
20719 cat conftest.err
>&5
20720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); } && {
20722 test -z "$ac_c_werror_flag" ||
20723 test ! -s conftest.err
20724 } && test -s conftest.
$ac_objext; then
20725 ac_cv_have_decl_getopt_clip
=yes
20727 $as_echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.
$ac_ext >&5
20730 ac_cv_have_decl_getopt_clip
=no
20733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20735 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20736 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20737 if test $ac_cv_have_decl_getopt_clip = yes; then
20738 gl_cv_func_gnu_getopt
=no
20740 gl_cv_func_gnu_getopt
=yes
20744 cat >conftest.
$ac_ext <<_ACEOF
20747 cat confdefs.h
>>conftest.
$ac_ext
20748 cat >>conftest.
$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20750 #include <getopt.h>
20756 myargv[0] = "conftest";
20759 return getopt (2, myargv, "+a") != '?';
20765 rm -f conftest
$ac_exeext
20766 if { (ac_try
="$ac_link"
20767 case "(($ac_try" in
20768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20772 $as_echo "$ac_try_echo") >&5
20773 (eval "$ac_link") 2>&5
20775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20777 { (case "(($ac_try" in
20778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20779 *) ac_try_echo
=$ac_try;;
20781 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20782 $as_echo "$ac_try_echo") >&5
20783 (eval "$ac_try") 2>&5
20785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); }; }; then
20787 gl_cv_func_gnu_getopt
=yes
20789 $as_echo "$as_me: program exited with status $ac_status" >&5
20790 $as_echo "$as_me: failed program was:" >&5
20791 sed 's/^/| /' conftest.
$ac_ext >&5
20793 ( exit $ac_status )
20794 gl_cv_func_gnu_getopt
=no
20796 rm -rf conftest.dSYM
20797 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20802 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20803 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20804 if test "$gl_cv_func_gnu_getopt" = "no"; then
20811 if test -n "$GETOPT_H"; then
20816 cat >>confdefs.h
<<\_ACEOF
20817 #define __GETOPT_PREFIX rpl_
20823 GETOPTOBJS
='getopt.o getopt1.o'
20830 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20831 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20832 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20833 $as_echo_n "(cached) " >&6
20835 # Use it with a single arg.
20836 cat >conftest.
$ac_ext <<_ACEOF
20839 cat confdefs.h
>>conftest.
$ac_ext
20840 cat >>conftest.
$ac_ext <<_ACEOF
20841 /* end confdefs.h. */
20842 $ac_includes_default
20851 rm -f conftest.
$ac_objext
20852 if { (ac_try
="$ac_compile"
20853 case "(($ac_try" in
20854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20855 *) ac_try_echo=$ac_try;;
20857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20858 $as_echo "$ac_try_echo") >&5
20859 (eval "$ac_compile") 2>conftest.er1
20861 grep -v '^ *+' conftest.er1 >conftest.err
20863 cat conftest.err >&5
20864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); } && {
20866 test -z "$ac_c_werror_flag" ||
20867 test ! -s conftest.err
20868 } && test -s conftest.$ac_objext; then
20869 ac_cv_func_getpgrp_void=no
20871 $as_echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20874 ac_cv_func_getpgrp_void=yes
20877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20880 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20881 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20882 if test $ac_cv_func_getpgrp_void = yes; then
20884 cat >>confdefs.h <<\_ACEOF
20885 #define GETPGRP_VOID 1
20892 for ac_func in strftime
20894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20895 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20896 $as_echo_n "checking for $ac_func... " >&6; }
20897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20898 $as_echo_n "(cached) " >&6
20900 cat >conftest.$ac_ext <<_ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20908 #define $ac_func innocuous_$ac_func
20910 /* System header to define __stub macros and hopefully few prototypes,
20911 which can conflict with char $ac_func (); below.
20912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20913 <limits.h> exists even on freestanding compilers. */
20916 # include <limits.h>
20918 # include <assert.h>
20923 /* Override any GCC internal prototype to avoid an error.
20924 Use char because int might match the return type of a GCC
20925 builtin and then its argument prototype would still apply. */
20930 /* The GNU C library defines this for functions which it implements
20931 to always fail with ENOSYS. Some functions are actually named
20932 something starting with __ and the normal name is an alias. */
20933 #if defined __stub_$ac_func || defined __stub___$ac_func
20940 return $ac_func ();
20945 rm -f conftest.$ac_objext conftest$ac_exeext
20946 if { (ac_try="$ac_link"
20947 case "(($ac_try" in
20948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20949 *) ac_try_echo
=$ac_try;;
20951 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
20952 $as_echo "$ac_try_echo") >&5
20953 (eval "$ac_link") 2>conftest.er1
20955 grep -v '^ *+' conftest.er1
>conftest.err
20957 cat conftest.err
>&5
20958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); } && {
20960 test -z "$ac_c_werror_flag" ||
20961 test ! -s conftest.err
20962 } && test -s conftest
$ac_exeext && {
20963 test "$cross_compiling" = yes ||
20964 $as_test_x conftest
$ac_exeext
20966 eval "$as_ac_var=yes"
20968 $as_echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.
$ac_ext >&5
20971 eval "$as_ac_var=no"
20974 rm -rf conftest.dSYM
20975 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20976 conftest
$ac_exeext conftest.
$ac_ext
20978 ac_res
=`eval 'as_val=${'$as_ac_var'}
20979 $as_echo "$as_val"'`
20980 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20981 $as_echo "$ac_res" >&6; }
20982 if test `eval 'as_val=${'$as_ac_var'}
20983 $as_echo "$as_val"'` = yes; then
20984 cat >>confdefs.h
<<_ACEOF
20985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20989 # strftime is in -lintl on SCO UNIX.
20990 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20991 $as_echo_n "checking for strftime in -lintl... " >&6; }
20992 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20993 $as_echo_n "(cached) " >&6
20995 ac_check_lib_save_LIBS
=$LIBS
20996 LIBS
="-lintl $LIBS"
20997 cat >conftest.
$ac_ext <<_ACEOF
21000 cat confdefs.h
>>conftest.
$ac_ext
21001 cat >>conftest.
$ac_ext <<_ACEOF
21002 /* end confdefs.h. */
21004 /* Override any GCC internal prototype to avoid an error.
21005 Use char because int might match the return type of a GCC
21006 builtin and then its argument prototype would still apply. */
21014 return strftime ();
21019 rm -f conftest.
$ac_objext conftest
$ac_exeext
21020 if { (ac_try
="$ac_link"
21021 case "(($ac_try" in
21022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21023 *) ac_try_echo=$ac_try;;
21025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21026 $as_echo "$ac_try_echo") >&5
21027 (eval "$ac_link") 2>conftest.er1
21029 grep -v '^ *+' conftest.er1 >conftest.err
21031 cat conftest.err >&5
21032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } && {
21034 test -z "$ac_c_werror_flag" ||
21035 test ! -s conftest.err
21036 } && test -s conftest$ac_exeext && {
21037 test "$cross_compiling" = yes ||
21038 $as_test_x conftest$ac_exeext
21040 ac_cv_lib_intl_strftime=yes
21042 $as_echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21045 ac_cv_lib_intl_strftime=no
21048 rm -rf conftest.dSYM
21049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21050 conftest$ac_exeext conftest.$ac_ext
21051 LIBS=$ac_check_lib_save_LIBS
21053 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21054 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21055 if test $ac_cv_lib_intl_strftime = yes; then
21056 cat >>confdefs.h <<\_ACEOF
21057 #define HAVE_STRFTIME 1
21060 LIBS="-lintl $LIBS"
21069 for ac_func in grantpt
21071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21072 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21073 $as_echo_n "checking for $ac_func... " >&6; }
21074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21075 $as_echo_n "(cached) " >&6
21077 cat >conftest.$ac_ext <<_ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21085 #define $ac_func innocuous_$ac_func
21087 /* System header to define __stub macros and hopefully few prototypes,
21088 which can conflict with char $ac_func (); below.
21089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21090 <limits.h> exists even on freestanding compilers. */
21093 # include <limits.h>
21095 # include <assert.h>
21100 /* Override any GCC internal prototype to avoid an error.
21101 Use char because int might match the return type of a GCC
21102 builtin and then its argument prototype would still apply. */
21107 /* The GNU C library defines this for functions which it implements
21108 to always fail with ENOSYS. Some functions are actually named
21109 something starting with __ and the normal name is an alias. */
21110 #if defined __stub_$ac_func || defined __stub___$ac_func
21117 return $ac_func ();
21122 rm -f conftest.$ac_objext conftest$ac_exeext
21123 if { (ac_try="$ac_link"
21124 case "(($ac_try" in
21125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21126 *) ac_try_echo
=$ac_try;;
21128 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21129 $as_echo "$ac_try_echo") >&5
21130 (eval "$ac_link") 2>conftest.er1
21132 grep -v '^ *+' conftest.er1
>conftest.err
21134 cat conftest.err
>&5
21135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } && {
21137 test -z "$ac_c_werror_flag" ||
21138 test ! -s conftest.err
21139 } && test -s conftest
$ac_exeext && {
21140 test "$cross_compiling" = yes ||
21141 $as_test_x conftest
$ac_exeext
21143 eval "$as_ac_var=yes"
21145 $as_echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.
$ac_ext >&5
21148 eval "$as_ac_var=no"
21151 rm -rf conftest.dSYM
21152 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21153 conftest
$ac_exeext conftest.
$ac_ext
21155 ac_res
=`eval 'as_val=${'$as_ac_var'}
21156 $as_echo "$as_val"'`
21157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21158 $as_echo "$ac_res" >&6; }
21159 if test `eval 'as_val=${'$as_ac_var'}
21160 $as_echo "$as_val"'` = yes; then
21161 cat >>confdefs.h
<<_ACEOF
21162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21169 # PTY-related GNU extensions.
21171 for ac_func
in getpt
21173 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21174 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21175 $as_echo_n "checking for $ac_func... " >&6; }
21176 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21177 $as_echo_n "(cached) " >&6
21179 cat >conftest.
$ac_ext <<_ACEOF
21182 cat confdefs.h
>>conftest.
$ac_ext
21183 cat >>conftest.
$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21187 #define $ac_func innocuous_$ac_func
21189 /* System header to define __stub macros and hopefully few prototypes,
21190 which can conflict with char $ac_func (); below.
21191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21192 <limits.h> exists even on freestanding compilers. */
21195 # include <limits.h>
21197 # include <assert.h>
21202 /* Override any GCC internal prototype to avoid an error.
21203 Use char because int might match the return type of a GCC
21204 builtin and then its argument prototype would still apply. */
21209 /* The GNU C library defines this for functions which it implements
21210 to always fail with ENOSYS. Some functions are actually named
21211 something starting with __ and the normal name is an alias. */
21212 #if defined __stub_$ac_func || defined __stub___$ac_func
21219 return $ac_func ();
21224 rm -f conftest.
$ac_objext conftest
$ac_exeext
21225 if { (ac_try
="$ac_link"
21226 case "(($ac_try" in
21227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21231 $as_echo "$ac_try_echo") >&5
21232 (eval "$ac_link") 2>conftest.er1
21234 grep -v '^ *+' conftest.er1 >conftest.err
21236 cat conftest.err >&5
21237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } && {
21239 test -z "$ac_c_werror_flag" ||
21240 test ! -s conftest.err
21241 } && test -s conftest$ac_exeext && {
21242 test "$cross_compiling" = yes ||
21243 $as_test_x conftest$ac_exeext
21245 eval "$as_ac_var=yes"
21247 $as_echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 eval "$as_ac_var=no"
21253 rm -rf conftest.dSYM
21254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21255 conftest$ac_exeext conftest.$ac_ext
21257 ac_res=`eval 'as_val=${'$as_ac_var'}
21258 $as_echo "$as_val"'`
21259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21260 $as_echo "$ac_res" >&6; }
21261 if test `eval 'as_val=${'$as_ac_var'}
21262 $as_echo "$as_val"'` = yes; then
21263 cat >>confdefs.h <<_ACEOF
21264 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
21271 # Check this now, so that we will NOT find the above functions in ncurses.
21272 # That is because we have not set up to link ncurses in lib-src.
21273 # It's better to believe a function is not available
21274 # than to expect to find it in ncurses.
21275 # Also we need tputs and frieds to be able to build at all.
21276 have_tputs_et_al=true
21277 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21278 $as_echo_n "checking for library containing tputs... " >&6; }
21279 if test "${ac_cv_search_tputs+set}" = set; then
21280 $as_echo_n "(cached) " >&6
21282 ac_func_search_save_LIBS=$LIBS
21283 cat >conftest.$ac_ext <<_ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21290 /* Override any GCC internal prototype to avoid an error.
21291 Use char because int might match the return type of a GCC
21292 builtin and then its argument prototype would still apply. */
21305 for ac_lib in '' ncurses terminfo termcap; do
21306 if test -z "$ac_lib"; then
21307 ac_res="none required"
21310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21312 rm -f conftest.$ac_objext conftest$ac_exeext
21313 if { (ac_try="$ac_link"
21314 case "(($ac_try" in
21315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21316 *) ac_try_echo
=$ac_try;;
21318 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21319 $as_echo "$ac_try_echo") >&5
21320 (eval "$ac_link") 2>conftest.er1
21322 grep -v '^ *+' conftest.er1
>conftest.err
21324 cat conftest.err
>&5
21325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } && {
21327 test -z "$ac_c_werror_flag" ||
21328 test ! -s conftest.err
21329 } && test -s conftest
$ac_exeext && {
21330 test "$cross_compiling" = yes ||
21331 $as_test_x conftest
$ac_exeext
21333 ac_cv_search_tputs
=$ac_res
21335 $as_echo "$as_me: failed program was:" >&5
21336 sed 's/^/| /' conftest.
$ac_ext >&5
21341 rm -rf conftest.dSYM
21342 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21344 if test "${ac_cv_search_tputs+set}" = set; then
21348 if test "${ac_cv_search_tputs+set}" = set; then
21351 ac_cv_search_tputs
=no
21353 rm conftest.
$ac_ext
21354 LIBS
=$ac_func_search_save_LIBS
21356 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21357 $as_echo "$ac_cv_search_tputs" >&6; }
21358 ac_res
=$ac_cv_search_tputs
21359 if test "$ac_res" != no
; then
21360 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21363 have_tputs_et_al
=false
21366 if test "$have_tputs_et_al" != true
; then
21367 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21368 Maybe some development libraries/packages are missing? Try installing
21369 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21370 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21371 Maybe some development libraries/packages are missing? Try installing
21372 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21373 { (exit 1); exit 1; }; }
21375 # Must define this when any termcap library is found.
21377 cat >>confdefs.h
<<\_ACEOF
21378 #define HAVE_LIBNCURSES 1
21382 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21385 cat >conftest.
$ac_ext <<_ACEOF
21388 cat confdefs.h
>>conftest.
$ac_ext
21389 cat >>conftest.
$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21391 #include <netinet/in.h>
21392 #include <arpa/nameser.h>
21393 #include <resolv.h>
21402 rm -f conftest.
$ac_objext conftest
$ac_exeext
21403 if { (ac_try
="$ac_link"
21404 case "(($ac_try" in
21405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21409 $as_echo "$ac_try_echo") >&5
21410 (eval "$ac_link") 2>conftest.er1
21412 grep -v '^ *+' conftest.er1 >conftest.err
21414 cat conftest.err >&5
21415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } && {
21417 test -z "$ac_c_werror_flag" ||
21418 test ! -s conftest.err
21419 } && test -s conftest$ac_exeext && {
21420 test "$cross_compiling" = yes ||
21421 $as_test_x conftest$ac_exeext
21425 $as_echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21431 rm -rf conftest.dSYM
21432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21433 conftest$ac_exeext conftest.$ac_ext
21434 if test "$have_res_init" = no; then
21436 LIBS="$LIBS -lresolv"
21437 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21438 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21439 cat >conftest.$ac_ext <<_ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445 #include <netinet/in.h>
21446 #include <arpa/nameser.h>
21447 #include <resolv.h>
21456 rm -f conftest.$ac_objext conftest$ac_exeext
21457 if { (ac_try="$ac_link"
21458 case "(($ac_try" in
21459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21460 *) ac_try_echo
=$ac_try;;
21462 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21463 $as_echo "$ac_try_echo") >&5
21464 (eval "$ac_link") 2>conftest.er1
21466 grep -v '^ *+' conftest.er1
>conftest.err
21468 cat conftest.err
>&5
21469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); } && {
21471 test -z "$ac_c_werror_flag" ||
21472 test ! -s conftest.err
21473 } && test -s conftest
$ac_exeext && {
21474 test "$cross_compiling" = yes ||
21475 $as_test_x conftest
$ac_exeext
21479 $as_echo "$as_me: failed program was:" >&5
21480 sed 's/^/| /' conftest.
$ac_ext >&5
21485 rm -rf conftest.dSYM
21486 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21487 conftest
$ac_exeext conftest.
$ac_ext
21488 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21489 $as_echo "$have_res_init" >&6; }
21490 if test "$have_res_init" = yes ; then
21496 if test "$have_res_init" = yes; then
21498 cat >>confdefs.h
<<\_ACEOF
21499 #define HAVE_RES_INIT 1
21504 # Do we need the Hesiod library to provide the support routines?
21506 if test "$with_hesiod" != no
; then
21507 # Don't set $LIBS here -- see comments above. FIXME which comments?
21508 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21509 $as_echo_n "checking for res_send... " >&6; }
21510 if test "${ac_cv_func_res_send+set}" = set; then
21511 $as_echo_n "(cached) " >&6
21513 cat >conftest.
$ac_ext <<_ACEOF
21516 cat confdefs.h
>>conftest.
$ac_ext
21517 cat >>conftest.
$ac_ext <<_ACEOF
21518 /* end confdefs.h. */
21519 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21521 #define res_send innocuous_res_send
21523 /* System header to define __stub macros and hopefully few prototypes,
21524 which can conflict with char res_send (); below.
21525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21526 <limits.h> exists even on freestanding compilers. */
21529 # include <limits.h>
21531 # include <assert.h>
21536 /* Override any GCC internal prototype to avoid an error.
21537 Use char because int might match the return type of a GCC
21538 builtin and then its argument prototype would still apply. */
21543 /* The GNU C library defines this for functions which it implements
21544 to always fail with ENOSYS. Some functions are actually named
21545 something starting with __ and the normal name is an alias. */
21546 #if defined __stub_res_send || defined __stub___res_send
21553 return res_send ();
21558 rm -f conftest.
$ac_objext conftest
$ac_exeext
21559 if { (ac_try
="$ac_link"
21560 case "(($ac_try" in
21561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21562 *) ac_try_echo=$ac_try;;
21564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21565 $as_echo "$ac_try_echo") >&5
21566 (eval "$ac_link") 2>conftest.er1
21568 grep -v '^ *+' conftest.er1 >conftest.err
21570 cat conftest.err >&5
21571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } && {
21573 test -z "$ac_c_werror_flag" ||
21574 test ! -s conftest.err
21575 } && test -s conftest$ac_exeext && {
21576 test "$cross_compiling" = yes ||
21577 $as_test_x conftest$ac_exeext
21579 ac_cv_func_res_send=yes
21581 $as_echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21584 ac_cv_func_res_send=no
21587 rm -rf conftest.dSYM
21588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21589 conftest$ac_exeext conftest.$ac_ext
21591 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21592 $as_echo "$ac_cv_func_res_send" >&6; }
21593 if test $ac_cv_func_res_send = yes; then
21596 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21597 $as_echo_n "checking for __res_send... " >&6; }
21598 if test "${ac_cv_func___res_send+set}" = set; then
21599 $as_echo_n "(cached) " >&6
21601 cat >conftest.$ac_ext <<_ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h. */
21607 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21609 #define __res_send innocuous___res_send
21611 /* System header to define __stub macros and hopefully few prototypes,
21612 which can conflict with char __res_send (); below.
21613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21614 <limits.h> exists even on freestanding compilers. */
21617 # include <limits.h>
21619 # include <assert.h>
21624 /* Override any GCC internal prototype to avoid an error.
21625 Use char because int might match the return type of a GCC
21626 builtin and then its argument prototype would still apply. */
21630 char __res_send ();
21631 /* The GNU C library defines this for functions which it implements
21632 to always fail with ENOSYS. Some functions are actually named
21633 something starting with __ and the normal name is an alias. */
21634 #if defined __stub___res_send || defined __stub_____res_send
21641 return __res_send ();
21646 rm -f conftest.$ac_objext conftest$ac_exeext
21647 if { (ac_try="$ac_link"
21648 case "(($ac_try" in
21649 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21650 *) ac_try_echo
=$ac_try;;
21652 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21653 $as_echo "$ac_try_echo") >&5
21654 (eval "$ac_link") 2>conftest.er1
21656 grep -v '^ *+' conftest.er1
>conftest.err
21658 cat conftest.err
>&5
21659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } && {
21661 test -z "$ac_c_werror_flag" ||
21662 test ! -s conftest.err
21663 } && test -s conftest
$ac_exeext && {
21664 test "$cross_compiling" = yes ||
21665 $as_test_x conftest
$ac_exeext
21667 ac_cv_func___res_send
=yes
21669 $as_echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.
$ac_ext >&5
21672 ac_cv_func___res_send
=no
21675 rm -rf conftest.dSYM
21676 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21677 conftest
$ac_exeext conftest.
$ac_ext
21679 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21680 $as_echo "$ac_cv_func___res_send" >&6; }
21681 if test $ac_cv_func___res_send = yes; then
21684 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21685 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21686 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21687 $as_echo_n "(cached) " >&6
21689 ac_check_lib_save_LIBS
=$LIBS
21690 LIBS
="-lresolv $LIBS"
21691 cat >conftest.
$ac_ext <<_ACEOF
21694 cat confdefs.h
>>conftest.
$ac_ext
21695 cat >>conftest.
$ac_ext <<_ACEOF
21696 /* end confdefs.h. */
21698 /* Override any GCC internal prototype to avoid an error.
21699 Use char because int might match the return type of a GCC
21700 builtin and then its argument prototype would still apply. */
21708 return res_send ();
21713 rm -f conftest.
$ac_objext conftest
$ac_exeext
21714 if { (ac_try
="$ac_link"
21715 case "(($ac_try" in
21716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21717 *) ac_try_echo=$ac_try;;
21719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21720 $as_echo "$ac_try_echo") >&5
21721 (eval "$ac_link") 2>conftest.er1
21723 grep -v '^ *+' conftest.er1 >conftest.err
21725 cat conftest.err >&5
21726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); } && {
21728 test -z "$ac_c_werror_flag" ||
21729 test ! -s conftest.err
21730 } && test -s conftest$ac_exeext && {
21731 test "$cross_compiling" = yes ||
21732 $as_test_x conftest$ac_exeext
21734 ac_cv_lib_resolv_res_send=yes
21736 $as_echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21739 ac_cv_lib_resolv_res_send=no
21742 rm -rf conftest.dSYM
21743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21744 conftest$ac_exeext conftest.$ac_ext
21745 LIBS=$ac_check_lib_save_LIBS
21747 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21748 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21749 if test $ac_cv_lib_resolv_res_send = yes; then
21752 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21753 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21754 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21755 $as_echo_n "(cached) " >&6
21757 ac_check_lib_save_LIBS=$LIBS
21758 LIBS="-lresolv $LIBS"
21759 cat >conftest.$ac_ext <<_ACEOF
21762 cat confdefs.h >>conftest.$ac_ext
21763 cat >>conftest.$ac_ext <<_ACEOF
21764 /* end confdefs.h. */
21766 /* Override any GCC internal prototype to avoid an error.
21767 Use char because int might match the return type of a GCC
21768 builtin and then its argument prototype would still apply. */
21772 char __res_send ();
21776 return __res_send ();
21781 rm -f conftest.$ac_objext conftest$ac_exeext
21782 if { (ac_try="$ac_link"
21783 case "(($ac_try" in
21784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21785 *) ac_try_echo
=$ac_try;;
21787 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21788 $as_echo "$ac_try_echo") >&5
21789 (eval "$ac_link") 2>conftest.er1
21791 grep -v '^ *+' conftest.er1
>conftest.err
21793 cat conftest.err
>&5
21794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); } && {
21796 test -z "$ac_c_werror_flag" ||
21797 test ! -s conftest.err
21798 } && test -s conftest
$ac_exeext && {
21799 test "$cross_compiling" = yes ||
21800 $as_test_x conftest
$ac_exeext
21802 ac_cv_lib_resolv___res_send
=yes
21804 $as_echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.
$ac_ext >&5
21807 ac_cv_lib_resolv___res_send
=no
21810 rm -rf conftest.dSYM
21811 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21812 conftest
$ac_exeext conftest.
$ac_ext
21813 LIBS
=$ac_check_lib_save_LIBS
21815 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21816 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21817 if test $ac_cv_lib_resolv___res_send = yes; then
21827 if test "$resolv" = yes ; then
21832 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21833 $as_echo_n "checking for hes_getmailhost... " >&6; }
21834 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21835 $as_echo_n "(cached) " >&6
21837 cat >conftest.
$ac_ext <<_ACEOF
21840 cat confdefs.h
>>conftest.
$ac_ext
21841 cat >>conftest.
$ac_ext <<_ACEOF
21842 /* end confdefs.h. */
21843 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21845 #define hes_getmailhost innocuous_hes_getmailhost
21847 /* System header to define __stub macros and hopefully few prototypes,
21848 which can conflict with char hes_getmailhost (); below.
21849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21850 <limits.h> exists even on freestanding compilers. */
21853 # include <limits.h>
21855 # include <assert.h>
21858 #undef hes_getmailhost
21860 /* Override any GCC internal prototype to avoid an error.
21861 Use char because int might match the return type of a GCC
21862 builtin and then its argument prototype would still apply. */
21866 char hes_getmailhost ();
21867 /* The GNU C library defines this for functions which it implements
21868 to always fail with ENOSYS. Some functions are actually named
21869 something starting with __ and the normal name is an alias. */
21870 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21877 return hes_getmailhost ();
21882 rm -f conftest.
$ac_objext conftest
$ac_exeext
21883 if { (ac_try
="$ac_link"
21884 case "(($ac_try" in
21885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21886 *) ac_try_echo=$ac_try;;
21888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21889 $as_echo "$ac_try_echo") >&5
21890 (eval "$ac_link") 2>conftest.er1
21892 grep -v '^ *+' conftest.er1 >conftest.err
21894 cat conftest.err >&5
21895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); } && {
21897 test -z "$ac_c_werror_flag" ||
21898 test ! -s conftest.err
21899 } && test -s conftest$ac_exeext && {
21900 test "$cross_compiling" = yes ||
21901 $as_test_x conftest$ac_exeext
21903 ac_cv_func_hes_getmailhost=yes
21905 $as_echo "$as_me: failed program was:" >&5
21906 sed 's/^/| /' conftest.$ac_ext >&5
21908 ac_cv_func_hes_getmailhost=no
21911 rm -rf conftest.dSYM
21912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21913 conftest$ac_exeext conftest.$ac_ext
21915 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21916 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21917 if test $ac_cv_func_hes_getmailhost = yes; then
21920 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21921 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21922 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21923 $as_echo_n "(cached) " >&6
21925 ac_check_lib_save_LIBS=$LIBS
21926 LIBS="-lhesiod $RESOLVLIB $LIBS"
21927 cat >conftest.$ac_ext <<_ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h. */
21934 /* Override any GCC internal prototype to avoid an error.
21935 Use char because int might match the return type of a GCC
21936 builtin and then its argument prototype would still apply. */
21940 char hes_getmailhost ();
21944 return hes_getmailhost ();
21949 rm -f conftest.$ac_objext conftest$ac_exeext
21950 if { (ac_try="$ac_link"
21951 case "(($ac_try" in
21952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21953 *) ac_try_echo
=$ac_try;;
21955 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
21956 $as_echo "$ac_try_echo") >&5
21957 (eval "$ac_link") 2>conftest.er1
21959 grep -v '^ *+' conftest.er1
>conftest.err
21961 cat conftest.err
>&5
21962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); } && {
21964 test -z "$ac_c_werror_flag" ||
21965 test ! -s conftest.err
21966 } && test -s conftest
$ac_exeext && {
21967 test "$cross_compiling" = yes ||
21968 $as_test_x conftest
$ac_exeext
21970 ac_cv_lib_hesiod_hes_getmailhost
=yes
21972 $as_echo "$as_me: failed program was:" >&5
21973 sed 's/^/| /' conftest.
$ac_ext >&5
21975 ac_cv_lib_hesiod_hes_getmailhost
=no
21978 rm -rf conftest.dSYM
21979 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21980 conftest
$ac_exeext conftest.
$ac_ext
21981 LIBS
=$ac_check_lib_save_LIBS
21983 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21984 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21985 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21994 if test x
"$hesiod" = xyes
; then
21996 cat >>confdefs.h
<<\_ACEOF
21997 #define HAVE_LIBHESIOD 1
22005 # Do we need libresolv (due to res_init or Hesiod)?
22006 if test "$resolv" = yes ; then
22008 cat >>confdefs.h
<<\_ACEOF
22009 #define HAVE_LIBRESOLV 1
22018 # These tell us which Kerberos-related libraries to use.
22025 if test "${with_kerberos}" != no
; then
22026 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22027 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22028 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22029 $as_echo_n "(cached) " >&6
22031 ac_check_lib_save_LIBS
=$LIBS
22032 LIBS
="-lcom_err $LIBS"
22033 cat >conftest.
$ac_ext <<_ACEOF
22036 cat confdefs.h
>>conftest.
$ac_ext
22037 cat >>conftest.
$ac_ext <<_ACEOF
22038 /* end confdefs.h. */
22040 /* Override any GCC internal prototype to avoid an error.
22041 Use char because int might match the return type of a GCC
22042 builtin and then its argument prototype would still apply. */
22055 rm -f conftest.
$ac_objext conftest
$ac_exeext
22056 if { (ac_try
="$ac_link"
22057 case "(($ac_try" in
22058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22059 *) ac_try_echo=$ac_try;;
22061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22062 $as_echo "$ac_try_echo") >&5
22063 (eval "$ac_link") 2>conftest.er1
22065 grep -v '^ *+' conftest.er1 >conftest.err
22067 cat conftest.err >&5
22068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } && {
22070 test -z "$ac_c_werror_flag" ||
22071 test ! -s conftest.err
22072 } && test -s conftest$ac_exeext && {
22073 test "$cross_compiling" = yes ||
22074 $as_test_x conftest$ac_exeext
22076 ac_cv_lib_com_err_com_err=yes
22078 $as_echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22081 ac_cv_lib_com_err_com_err=no
22084 rm -rf conftest.dSYM
22085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22086 conftest$ac_exeext conftest.$ac_ext
22087 LIBS=$ac_check_lib_save_LIBS
22089 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22090 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22091 if test $ac_cv_lib_com_err_com_err = yes; then
22097 if test $have_com_err = yes; then
22098 COM_ERRLIB=-lcom_err
22099 LIBS="$COM_ERRLIB $LIBS"
22101 cat >>confdefs.h <<\_ACEOF
22102 #define HAVE_LIBCOM_ERR 1
22106 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22107 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22108 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22109 $as_echo_n "(cached) " >&6
22111 ac_check_lib_save_LIBS=$LIBS
22112 LIBS="-lcrypto $LIBS"
22113 cat >conftest.$ac_ext <<_ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h. */
22120 /* Override any GCC internal prototype to avoid an error.
22121 Use char because int might match the return type of a GCC
22122 builtin and then its argument prototype would still apply. */
22126 char mit_des_cbc_encrypt ();
22130 return mit_des_cbc_encrypt ();
22135 rm -f conftest.$ac_objext conftest$ac_exeext
22136 if { (ac_try="$ac_link"
22137 case "(($ac_try" in
22138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22139 *) ac_try_echo
=$ac_try;;
22141 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22142 $as_echo "$ac_try_echo") >&5
22143 (eval "$ac_link") 2>conftest.er1
22145 grep -v '^ *+' conftest.er1
>conftest.err
22147 cat conftest.err
>&5
22148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } && {
22150 test -z "$ac_c_werror_flag" ||
22151 test ! -s conftest.err
22152 } && test -s conftest
$ac_exeext && {
22153 test "$cross_compiling" = yes ||
22154 $as_test_x conftest
$ac_exeext
22156 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
22158 $as_echo "$as_me: failed program was:" >&5
22159 sed 's/^/| /' conftest.
$ac_ext >&5
22161 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
22164 rm -rf conftest.dSYM
22165 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22166 conftest
$ac_exeext conftest.
$ac_ext
22167 LIBS
=$ac_check_lib_save_LIBS
22169 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22170 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22171 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22177 if test $have_crypto = yes; then
22179 LIBS
="$CRYPTOLIB $LIBS"
22181 cat >>confdefs.h
<<\_ACEOF
22182 #define HAVE_LIBCRYPTO 1
22186 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22187 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22188 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22189 $as_echo_n "(cached) " >&6
22191 ac_check_lib_save_LIBS
=$LIBS
22192 LIBS
="-lk5crypto $LIBS"
22193 cat >conftest.
$ac_ext <<_ACEOF
22196 cat confdefs.h
>>conftest.
$ac_ext
22197 cat >>conftest.
$ac_ext <<_ACEOF
22198 /* end confdefs.h. */
22200 /* Override any GCC internal prototype to avoid an error.
22201 Use char because int might match the return type of a GCC
22202 builtin and then its argument prototype would still apply. */
22206 char mit_des_cbc_encrypt ();
22210 return mit_des_cbc_encrypt ();
22215 rm -f conftest.
$ac_objext conftest
$ac_exeext
22216 if { (ac_try
="$ac_link"
22217 case "(($ac_try" in
22218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22219 *) ac_try_echo=$ac_try;;
22221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22222 $as_echo "$ac_try_echo") >&5
22223 (eval "$ac_link") 2>conftest.er1
22225 grep -v '^ *+' conftest.er1 >conftest.err
22227 cat conftest.err >&5
22228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); } && {
22230 test -z "$ac_c_werror_flag" ||
22231 test ! -s conftest.err
22232 } && test -s conftest$ac_exeext && {
22233 test "$cross_compiling" = yes ||
22234 $as_test_x conftest$ac_exeext
22236 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22238 $as_echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22241 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22244 rm -rf conftest.dSYM
22245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22246 conftest$ac_exeext conftest.$ac_ext
22247 LIBS=$ac_check_lib_save_LIBS
22249 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22250 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22251 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22257 if test $have_k5crypto = yes; then
22258 CRYPTOLIB=-lk5crypto
22259 LIBS="$CRYPTOLIB $LIBS"
22261 cat >>confdefs.h <<\_ACEOF
22262 #define HAVE_LIBK5CRYPTO 1
22266 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22267 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22268 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22269 $as_echo_n "(cached) " >&6
22271 ac_check_lib_save_LIBS=$LIBS
22272 LIBS="-lkrb5 $LIBS"
22273 cat >conftest.$ac_ext <<_ACEOF
22276 cat confdefs.h >>conftest.$ac_ext
22277 cat >>conftest.$ac_ext <<_ACEOF
22278 /* end confdefs.h. */
22280 /* Override any GCC internal prototype to avoid an error.
22281 Use char because int might match the return type of a GCC
22282 builtin and then its argument prototype would still apply. */
22286 char krb5_init_context ();
22290 return krb5_init_context ();
22295 rm -f conftest.$ac_objext conftest$ac_exeext
22296 if { (ac_try="$ac_link"
22297 case "(($ac_try" in
22298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22299 *) ac_try_echo
=$ac_try;;
22301 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22302 $as_echo "$ac_try_echo") >&5
22303 (eval "$ac_link") 2>conftest.er1
22305 grep -v '^ *+' conftest.er1
>conftest.err
22307 cat conftest.err
>&5
22308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); } && {
22310 test -z "$ac_c_werror_flag" ||
22311 test ! -s conftest.err
22312 } && test -s conftest
$ac_exeext && {
22313 test "$cross_compiling" = yes ||
22314 $as_test_x conftest
$ac_exeext
22316 ac_cv_lib_krb5_krb5_init_context
=yes
22318 $as_echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.
$ac_ext >&5
22321 ac_cv_lib_krb5_krb5_init_context
=no
22324 rm -rf conftest.dSYM
22325 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22326 conftest
$ac_exeext conftest.
$ac_ext
22327 LIBS
=$ac_check_lib_save_LIBS
22329 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22330 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22331 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22337 if test $have_krb5=yes; then
22339 LIBS
="$KRB5LIB $LIBS"
22341 cat >>confdefs.h
<<\_ACEOF
22342 #define HAVE_LIBKRB5 1
22346 if test "${with_kerberos5}" = no
; then
22347 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22348 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22349 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22350 $as_echo_n "(cached) " >&6
22352 ac_check_lib_save_LIBS
=$LIBS
22353 LIBS
="-ldes425 $LIBS"
22354 cat >conftest.
$ac_ext <<_ACEOF
22357 cat confdefs.h
>>conftest.
$ac_ext
22358 cat >>conftest.
$ac_ext <<_ACEOF
22359 /* end confdefs.h. */
22361 /* Override any GCC internal prototype to avoid an error.
22362 Use char because int might match the return type of a GCC
22363 builtin and then its argument prototype would still apply. */
22367 char des_cbc_encrypt ();
22371 return des_cbc_encrypt ();
22376 rm -f conftest.
$ac_objext conftest
$ac_exeext
22377 if { (ac_try
="$ac_link"
22378 case "(($ac_try" in
22379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22380 *) ac_try_echo=$ac_try;;
22382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22383 $as_echo "$ac_try_echo") >&5
22384 (eval "$ac_link") 2>conftest.er1
22386 grep -v '^ *+' conftest.er1 >conftest.err
22388 cat conftest.err >&5
22389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390 (exit $ac_status); } && {
22391 test -z "$ac_c_werror_flag" ||
22392 test ! -s conftest.err
22393 } && test -s conftest$ac_exeext && {
22394 test "$cross_compiling" = yes ||
22395 $as_test_x conftest$ac_exeext
22397 ac_cv_lib_des425_des_cbc_encrypt=yes
22399 $as_echo "$as_me: failed program was:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22402 ac_cv_lib_des425_des_cbc_encrypt=no
22405 rm -rf conftest.dSYM
22406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22407 conftest$ac_exeext conftest.$ac_ext
22408 LIBS=$ac_check_lib_save_LIBS
22410 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22411 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22412 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22418 if test $have_des425 = yes; then
22420 LIBS="$DESLIB $LIBS"
22422 cat >>confdefs.h <<\_ACEOF
22423 #define HAVE_LIBDES425 1
22427 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22428 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22429 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22430 $as_echo_n "(cached) " >&6
22432 ac_check_lib_save_LIBS=$LIBS
22434 cat >conftest.$ac_ext <<_ACEOF
22437 cat confdefs.h >>conftest.$ac_ext
22438 cat >>conftest.$ac_ext <<_ACEOF
22439 /* end confdefs.h. */
22441 /* Override any GCC internal prototype to avoid an error.
22442 Use char because int might match the return type of a GCC
22443 builtin and then its argument prototype would still apply. */
22447 char des_cbc_encrypt ();
22451 return des_cbc_encrypt ();
22456 rm -f conftest.$ac_objext conftest$ac_exeext
22457 if { (ac_try="$ac_link"
22458 case "(($ac_try" in
22459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22460 *) ac_try_echo
=$ac_try;;
22462 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22463 $as_echo "$ac_try_echo") >&5
22464 (eval "$ac_link") 2>conftest.er1
22466 grep -v '^ *+' conftest.er1
>conftest.err
22468 cat conftest.err
>&5
22469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); } && {
22471 test -z "$ac_c_werror_flag" ||
22472 test ! -s conftest.err
22473 } && test -s conftest
$ac_exeext && {
22474 test "$cross_compiling" = yes ||
22475 $as_test_x conftest
$ac_exeext
22477 ac_cv_lib_des_des_cbc_encrypt
=yes
22479 $as_echo "$as_me: failed program was:" >&5
22480 sed 's/^/| /' conftest.
$ac_ext >&5
22482 ac_cv_lib_des_des_cbc_encrypt
=no
22485 rm -rf conftest.dSYM
22486 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22487 conftest
$ac_exeext conftest.
$ac_ext
22488 LIBS
=$ac_check_lib_save_LIBS
22490 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22491 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22492 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22498 if test $have_des = yes; then
22500 LIBS
="$DESLIB $LIBS"
22502 cat >>confdefs.h
<<\_ACEOF
22503 #define HAVE_LIBDES 1
22508 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22509 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22510 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22511 $as_echo_n "(cached) " >&6
22513 ac_check_lib_save_LIBS
=$LIBS
22514 LIBS
="-lkrb4 $LIBS"
22515 cat >conftest.
$ac_ext <<_ACEOF
22518 cat confdefs.h
>>conftest.
$ac_ext
22519 cat >>conftest.
$ac_ext <<_ACEOF
22520 /* end confdefs.h. */
22522 /* Override any GCC internal prototype to avoid an error.
22523 Use char because int might match the return type of a GCC
22524 builtin and then its argument prototype would still apply. */
22528 char krb_get_cred ();
22532 return krb_get_cred ();
22537 rm -f conftest.
$ac_objext conftest
$ac_exeext
22538 if { (ac_try
="$ac_link"
22539 case "(($ac_try" in
22540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22541 *) ac_try_echo=$ac_try;;
22543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22544 $as_echo "$ac_try_echo") >&5
22545 (eval "$ac_link") 2>conftest.er1
22547 grep -v '^ *+' conftest.er1 >conftest.err
22549 cat conftest.err >&5
22550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); } && {
22552 test -z "$ac_c_werror_flag" ||
22553 test ! -s conftest.err
22554 } && test -s conftest$ac_exeext && {
22555 test "$cross_compiling" = yes ||
22556 $as_test_x conftest$ac_exeext
22558 ac_cv_lib_krb4_krb_get_cred=yes
22560 $as_echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22563 ac_cv_lib_krb4_krb_get_cred=no
22566 rm -rf conftest.dSYM
22567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22568 conftest$ac_exeext conftest.$ac_ext
22569 LIBS=$ac_check_lib_save_LIBS
22571 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22572 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22573 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22579 if test $have_krb4 = yes; then
22581 LIBS="$KRB4LIB $LIBS"
22583 cat >>confdefs.h <<\_ACEOF
22584 #define HAVE_LIBKRB4 1
22588 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22589 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22590 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22591 $as_echo_n "(cached) " >&6
22593 ac_check_lib_save_LIBS=$LIBS
22595 cat >conftest.$ac_ext <<_ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h. */
22602 /* Override any GCC internal prototype to avoid an error.
22603 Use char because int might match the return type of a GCC
22604 builtin and then its argument prototype would still apply. */
22608 char krb_get_cred ();
22612 return krb_get_cred ();
22617 rm -f conftest.$ac_objext conftest$ac_exeext
22618 if { (ac_try="$ac_link"
22619 case "(($ac_try" in
22620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22621 *) ac_try_echo
=$ac_try;;
22623 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22624 $as_echo "$ac_try_echo") >&5
22625 (eval "$ac_link") 2>conftest.er1
22627 grep -v '^ *+' conftest.er1
>conftest.err
22629 cat conftest.err
>&5
22630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); } && {
22632 test -z "$ac_c_werror_flag" ||
22633 test ! -s conftest.err
22634 } && test -s conftest
$ac_exeext && {
22635 test "$cross_compiling" = yes ||
22636 $as_test_x conftest
$ac_exeext
22638 ac_cv_lib_krb_krb_get_cred
=yes
22640 $as_echo "$as_me: failed program was:" >&5
22641 sed 's/^/| /' conftest.
$ac_ext >&5
22643 ac_cv_lib_krb_krb_get_cred
=no
22646 rm -rf conftest.dSYM
22647 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22648 conftest
$ac_exeext conftest.
$ac_ext
22649 LIBS
=$ac_check_lib_save_LIBS
22651 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22652 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22653 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22659 if test $have_krb = yes; then
22661 LIBS
="$KRB4LIB $LIBS"
22663 cat >>confdefs.h
<<\_ACEOF
22664 #define HAVE_LIBKRB 1
22671 if test "${with_kerberos5}" != no
; then
22673 for ac_header
in krb5.h
22675 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22676 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22677 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22678 $as_echo_n "checking for $ac_header... " >&6; }
22679 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22680 $as_echo_n "(cached) " >&6
22682 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22683 $as_echo "$as_val"'`
22684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22685 $as_echo "$ac_res" >&6; }
22687 # Is the header compilable?
22688 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22689 $as_echo_n "checking $ac_header usability... " >&6; }
22690 cat >conftest.
$ac_ext <<_ACEOF
22693 cat confdefs.h
>>conftest.
$ac_ext
22694 cat >>conftest.
$ac_ext <<_ACEOF
22695 /* end confdefs.h. */
22696 $ac_includes_default
22697 #include <$ac_header>
22699 rm -f conftest.
$ac_objext
22700 if { (ac_try
="$ac_compile"
22701 case "(($ac_try" in
22702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22703 *) ac_try_echo=$ac_try;;
22705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22706 $as_echo "$ac_try_echo") >&5
22707 (eval "$ac_compile") 2>conftest.er1
22709 grep -v '^ *+' conftest.er1 >conftest.err
22711 cat conftest.err >&5
22712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); } && {
22714 test -z "$ac_c_werror_flag" ||
22715 test ! -s conftest.err
22716 } && test -s conftest.$ac_objext; then
22717 ac_header_compiler=yes
22719 $as_echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22722 ac_header_compiler=no
22725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22727 $as_echo "$ac_header_compiler" >&6; }
22729 # Is the header present?
22730 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22731 $as_echo_n "checking $ac_header presence... " >&6; }
22732 cat >conftest.$ac_ext <<_ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h. */
22738 #include <$ac_header>
22740 if { (ac_try="$ac_cpp conftest.$ac_ext"
22741 case "(($ac_try" in
22742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22743 *) ac_try_echo
=$ac_try;;
22745 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22746 $as_echo "$ac_try_echo") >&5
22747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22749 grep -v '^ *+' conftest.er1
>conftest.err
22751 cat conftest.err
>&5
22752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); } >/dev
/null
&& {
22754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22755 test ! -s conftest.err
22757 ac_header_preproc
=yes
22759 $as_echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.
$ac_ext >&5
22762 ac_header_preproc
=no
22765 rm -f conftest.err conftest.
$ac_ext
22766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22767 $as_echo "$ac_header_preproc" >&6; }
22769 # So? What about this header?
22770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22773 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22775 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22776 ac_header_preproc
=yes
22779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22780 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22782 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22784 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22786 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22790 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22795 $as_echo_n "checking for $ac_header... " >&6; }
22796 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22797 $as_echo_n "(cached) " >&6
22799 eval "$as_ac_Header=\$ac_header_preproc"
22801 ac_res
=`eval 'as_val=${'$as_ac_Header'}
22802 $as_echo "$as_val"'`
22803 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22804 $as_echo "$ac_res" >&6; }
22807 if test `eval 'as_val=${'$as_ac_Header'}
22808 $as_echo "$as_val"'` = yes; then
22809 cat >>confdefs.h
<<_ACEOF
22810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22812 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22813 $as_echo_n "checking for krb5_error.text... " >&6; }
22814 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22815 $as_echo_n "(cached) " >&6
22817 cat >conftest.
$ac_ext <<_ACEOF
22820 cat confdefs.h
>>conftest.
$ac_ext
22821 cat >>conftest.
$ac_ext <<_ACEOF
22822 /* end confdefs.h. */
22828 static krb5_error ac_aggr;
22835 rm -f conftest.
$ac_objext
22836 if { (ac_try
="$ac_compile"
22837 case "(($ac_try" in
22838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22839 *) ac_try_echo=$ac_try;;
22841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22842 $as_echo "$ac_try_echo") >&5
22843 (eval "$ac_compile") 2>conftest.er1
22845 grep -v '^ *+' conftest.er1 >conftest.err
22847 cat conftest.err >&5
22848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); } && {
22850 test -z "$ac_c_werror_flag" ||
22851 test ! -s conftest.err
22852 } && test -s conftest.$ac_objext; then
22853 ac_cv_member_krb5_error_text=yes
22855 $as_echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22858 cat >conftest.$ac_ext <<_ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h. */
22869 static krb5_error ac_aggr;
22870 if (sizeof ac_aggr.text)
22876 rm -f conftest.$ac_objext
22877 if { (ac_try="$ac_compile"
22878 case "(($ac_try" in
22879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22880 *) ac_try_echo
=$ac_try;;
22882 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22883 $as_echo "$ac_try_echo") >&5
22884 (eval "$ac_compile") 2>conftest.er1
22886 grep -v '^ *+' conftest.er1
>conftest.err
22888 cat conftest.err
>&5
22889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890 (exit $ac_status); } && {
22891 test -z "$ac_c_werror_flag" ||
22892 test ! -s conftest.err
22893 } && test -s conftest.
$ac_objext; then
22894 ac_cv_member_krb5_error_text
=yes
22896 $as_echo "$as_me: failed program was:" >&5
22897 sed 's/^/| /' conftest.
$ac_ext >&5
22899 ac_cv_member_krb5_error_text
=no
22902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
22907 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22908 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22909 if test $ac_cv_member_krb5_error_text = yes; then
22911 cat >>confdefs.h
<<_ACEOF
22912 #define HAVE_KRB5_ERROR_TEXT 1
22917 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22918 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22919 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22920 $as_echo_n "(cached) " >&6
22922 cat >conftest.
$ac_ext <<_ACEOF
22925 cat confdefs.h
>>conftest.
$ac_ext
22926 cat >>conftest.
$ac_ext <<_ACEOF
22927 /* end confdefs.h. */
22933 static krb5_error ac_aggr;
22934 if (ac_aggr.e_text)
22940 rm -f conftest.
$ac_objext
22941 if { (ac_try
="$ac_compile"
22942 case "(($ac_try" in
22943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22944 *) ac_try_echo=$ac_try;;
22946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22947 $as_echo "$ac_try_echo") >&5
22948 (eval "$ac_compile") 2>conftest.er1
22950 grep -v '^ *+' conftest.er1 >conftest.err
22952 cat conftest.err >&5
22953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); } && {
22955 test -z "$ac_c_werror_flag" ||
22956 test ! -s conftest.err
22957 } && test -s conftest.$ac_objext; then
22958 ac_cv_member_krb5_error_e_text=yes
22960 $as_echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22963 cat >conftest.$ac_ext <<_ACEOF
22966 cat confdefs.h >>conftest.$ac_ext
22967 cat >>conftest.$ac_ext <<_ACEOF
22968 /* end confdefs.h. */
22974 static krb5_error ac_aggr;
22975 if (sizeof ac_aggr.e_text)
22981 rm -f conftest.$ac_objext
22982 if { (ac_try="$ac_compile"
22983 case "(($ac_try" in
22984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22985 *) ac_try_echo
=$ac_try;;
22987 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
22988 $as_echo "$ac_try_echo") >&5
22989 (eval "$ac_compile") 2>conftest.er1
22991 grep -v '^ *+' conftest.er1
>conftest.err
22993 cat conftest.err
>&5
22994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); } && {
22996 test -z "$ac_c_werror_flag" ||
22997 test ! -s conftest.err
22998 } && test -s conftest.
$ac_objext; then
22999 ac_cv_member_krb5_error_e_text
=yes
23001 $as_echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.
$ac_ext >&5
23004 ac_cv_member_krb5_error_e_text
=no
23007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23012 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23013 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23014 if test $ac_cv_member_krb5_error_e_text = yes; then
23016 cat >>confdefs.h
<<_ACEOF
23017 #define HAVE_KRB5_ERROR_E_TEXT 1
23029 for ac_header
in des.h
23031 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23032 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23033 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23034 $as_echo_n "checking for $ac_header... " >&6; }
23035 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23036 $as_echo_n "(cached) " >&6
23038 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23039 $as_echo "$as_val"'`
23040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23041 $as_echo "$ac_res" >&6; }
23043 # Is the header compilable?
23044 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23045 $as_echo_n "checking $ac_header usability... " >&6; }
23046 cat >conftest.
$ac_ext <<_ACEOF
23049 cat confdefs.h
>>conftest.
$ac_ext
23050 cat >>conftest.
$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23052 $ac_includes_default
23053 #include <$ac_header>
23055 rm -f conftest.
$ac_objext
23056 if { (ac_try
="$ac_compile"
23057 case "(($ac_try" in
23058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23062 $as_echo "$ac_try_echo") >&5
23063 (eval "$ac_compile") 2>conftest.er1
23065 grep -v '^ *+' conftest.er1 >conftest.err
23067 cat conftest.err >&5
23068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); } && {
23070 test -z "$ac_c_werror_flag" ||
23071 test ! -s conftest.err
23072 } && test -s conftest.$ac_objext; then
23073 ac_header_compiler=yes
23075 $as_echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23078 ac_header_compiler=no
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23083 $as_echo "$ac_header_compiler" >&6; }
23085 # Is the header present?
23086 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23087 $as_echo_n "checking $ac_header presence... " >&6; }
23088 cat >conftest.$ac_ext <<_ACEOF
23091 cat confdefs.h >>conftest.$ac_ext
23092 cat >>conftest.$ac_ext <<_ACEOF
23093 /* end confdefs.h. */
23094 #include <$ac_header>
23096 if { (ac_try="$ac_cpp conftest.$ac_ext"
23097 case "(($ac_try" in
23098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23099 *) ac_try_echo
=$ac_try;;
23101 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23102 $as_echo "$ac_try_echo") >&5
23103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23105 grep -v '^ *+' conftest.er1
>conftest.err
23107 cat conftest.err
>&5
23108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109 (exit $ac_status); } >/dev
/null
&& {
23110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23111 test ! -s conftest.err
23113 ac_header_preproc
=yes
23115 $as_echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.
$ac_ext >&5
23118 ac_header_preproc
=no
23121 rm -f conftest.err conftest.
$ac_ext
23122 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23123 $as_echo "$ac_header_preproc" >&6; }
23125 # So? What about this header?
23126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23129 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23131 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23132 ac_header_preproc
=yes
23135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23136 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23138 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23140 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23142 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23144 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23146 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23151 $as_echo_n "checking for $ac_header... " >&6; }
23152 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23153 $as_echo_n "(cached) " >&6
23155 eval "$as_ac_Header=\$ac_header_preproc"
23157 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23158 $as_echo "$as_val"'`
23159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23160 $as_echo "$ac_res" >&6; }
23163 if test `eval 'as_val=${'$as_ac_Header'}
23164 $as_echo "$as_val"'` = yes; then
23165 cat >>confdefs.h
<<_ACEOF
23166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23171 for ac_header
in kerberosIV
/des.h
23173 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23174 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23176 $as_echo_n "checking for $ac_header... " >&6; }
23177 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23178 $as_echo_n "(cached) " >&6
23180 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23181 $as_echo "$as_val"'`
23182 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23183 $as_echo "$ac_res" >&6; }
23185 # Is the header compilable?
23186 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23187 $as_echo_n "checking $ac_header usability... " >&6; }
23188 cat >conftest.
$ac_ext <<_ACEOF
23191 cat confdefs.h
>>conftest.
$ac_ext
23192 cat >>conftest.
$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23194 $ac_includes_default
23195 #include <$ac_header>
23197 rm -f conftest.
$ac_objext
23198 if { (ac_try
="$ac_compile"
23199 case "(($ac_try" in
23200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23201 *) ac_try_echo=$ac_try;;
23203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23204 $as_echo "$ac_try_echo") >&5
23205 (eval "$ac_compile") 2>conftest.er1
23207 grep -v '^ *+' conftest.er1 >conftest.err
23209 cat conftest.err >&5
23210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); } && {
23212 test -z "$ac_c_werror_flag" ||
23213 test ! -s conftest.err
23214 } && test -s conftest.$ac_objext; then
23215 ac_header_compiler=yes
23217 $as_echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23220 ac_header_compiler=no
23223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23224 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23225 $as_echo "$ac_header_compiler" >&6; }
23227 # Is the header present?
23228 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23229 $as_echo_n "checking $ac_header presence... " >&6; }
23230 cat >conftest.$ac_ext <<_ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h. */
23236 #include <$ac_header>
23238 if { (ac_try="$ac_cpp conftest.$ac_ext"
23239 case "(($ac_try" in
23240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23241 *) ac_try_echo
=$ac_try;;
23243 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23244 $as_echo "$ac_try_echo") >&5
23245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23247 grep -v '^ *+' conftest.er1
>conftest.err
23249 cat conftest.err
>&5
23250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); } >/dev
/null
&& {
23252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23253 test ! -s conftest.err
23255 ac_header_preproc
=yes
23257 $as_echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.
$ac_ext >&5
23260 ac_header_preproc
=no
23263 rm -f conftest.err conftest.
$ac_ext
23264 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23265 $as_echo "$ac_header_preproc" >&6; }
23267 # So? What about this header?
23268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23271 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23273 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23274 ac_header_preproc
=yes
23277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23278 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23280 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23282 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23284 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23286 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23288 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23292 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23293 $as_echo_n "checking for $ac_header... " >&6; }
23294 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23295 $as_echo_n "(cached) " >&6
23297 eval "$as_ac_Header=\$ac_header_preproc"
23299 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23300 $as_echo "$as_val"'`
23301 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23302 $as_echo "$ac_res" >&6; }
23305 if test `eval 'as_val=${'$as_ac_Header'}
23306 $as_echo "$as_val"'` = yes; then
23307 cat >>confdefs.h
<<_ACEOF
23308 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23313 for ac_header
in kerberos
/des.h
23315 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23316 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23317 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23318 $as_echo_n "checking for $ac_header... " >&6; }
23319 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23320 $as_echo_n "(cached) " >&6
23322 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23323 $as_echo "$as_val"'`
23324 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23325 $as_echo "$ac_res" >&6; }
23327 # Is the header compilable?
23328 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23329 $as_echo_n "checking $ac_header usability... " >&6; }
23330 cat >conftest.
$ac_ext <<_ACEOF
23333 cat confdefs.h
>>conftest.
$ac_ext
23334 cat >>conftest.
$ac_ext <<_ACEOF
23335 /* end confdefs.h. */
23336 $ac_includes_default
23337 #include <$ac_header>
23339 rm -f conftest.
$ac_objext
23340 if { (ac_try
="$ac_compile"
23341 case "(($ac_try" in
23342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23343 *) ac_try_echo=$ac_try;;
23345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23346 $as_echo "$ac_try_echo") >&5
23347 (eval "$ac_compile") 2>conftest.er1
23349 grep -v '^ *+' conftest.er1 >conftest.err
23351 cat conftest.err >&5
23352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); } && {
23354 test -z "$ac_c_werror_flag" ||
23355 test ! -s conftest.err
23356 } && test -s conftest.$ac_objext; then
23357 ac_header_compiler=yes
23359 $as_echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23362 ac_header_compiler=no
23365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23366 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23367 $as_echo "$ac_header_compiler" >&6; }
23369 # Is the header present?
23370 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23371 $as_echo_n "checking $ac_header presence... " >&6; }
23372 cat >conftest.$ac_ext <<_ACEOF
23375 cat confdefs.h >>conftest.$ac_ext
23376 cat >>conftest.$ac_ext <<_ACEOF
23377 /* end confdefs.h. */
23378 #include <$ac_header>
23380 if { (ac_try="$ac_cpp conftest.$ac_ext"
23381 case "(($ac_try" in
23382 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23383 *) ac_try_echo
=$ac_try;;
23385 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23386 $as_echo "$ac_try_echo") >&5
23387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23389 grep -v '^ *+' conftest.er1
>conftest.err
23391 cat conftest.err
>&5
23392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); } >/dev
/null
&& {
23394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23395 test ! -s conftest.err
23397 ac_header_preproc
=yes
23399 $as_echo "$as_me: failed program was:" >&5
23400 sed 's/^/| /' conftest.
$ac_ext >&5
23402 ac_header_preproc
=no
23405 rm -f conftest.err conftest.
$ac_ext
23406 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23407 $as_echo "$ac_header_preproc" >&6; }
23409 # So? What about this header?
23410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23413 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23415 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23416 ac_header_preproc
=yes
23419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23420 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23422 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23424 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23426 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23428 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23430 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23434 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23435 $as_echo_n "checking for $ac_header... " >&6; }
23436 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23437 $as_echo_n "(cached) " >&6
23439 eval "$as_ac_Header=\$ac_header_preproc"
23441 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23442 $as_echo "$as_val"'`
23443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23444 $as_echo "$ac_res" >&6; }
23447 if test `eval 'as_val=${'$as_ac_Header'}
23448 $as_echo "$as_val"'` = yes; then
23449 cat >>confdefs.h
<<_ACEOF
23450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23466 for ac_header
in krb.h
23468 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23469 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23470 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23471 $as_echo_n "checking for $ac_header... " >&6; }
23472 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23473 $as_echo_n "(cached) " >&6
23475 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23476 $as_echo "$as_val"'`
23477 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23478 $as_echo "$ac_res" >&6; }
23480 # Is the header compilable?
23481 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23482 $as_echo_n "checking $ac_header usability... " >&6; }
23483 cat >conftest.
$ac_ext <<_ACEOF
23486 cat confdefs.h
>>conftest.
$ac_ext
23487 cat >>conftest.
$ac_ext <<_ACEOF
23488 /* end confdefs.h. */
23489 $ac_includes_default
23490 #include <$ac_header>
23492 rm -f conftest.
$ac_objext
23493 if { (ac_try
="$ac_compile"
23494 case "(($ac_try" in
23495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23496 *) ac_try_echo=$ac_try;;
23498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23499 $as_echo "$ac_try_echo") >&5
23500 (eval "$ac_compile") 2>conftest.er1
23502 grep -v '^ *+' conftest.er1 >conftest.err
23504 cat conftest.err >&5
23505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); } && {
23507 test -z "$ac_c_werror_flag" ||
23508 test ! -s conftest.err
23509 } && test -s conftest.$ac_objext; then
23510 ac_header_compiler=yes
23512 $as_echo "$as_me: failed program was:" >&5
23513 sed 's/^/| /' conftest.$ac_ext >&5
23515 ac_header_compiler=no
23518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23519 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23520 $as_echo "$ac_header_compiler" >&6; }
23522 # Is the header present?
23523 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23524 $as_echo_n "checking $ac_header presence... " >&6; }
23525 cat >conftest.$ac_ext <<_ACEOF
23528 cat confdefs.h >>conftest.$ac_ext
23529 cat >>conftest.$ac_ext <<_ACEOF
23530 /* end confdefs.h. */
23531 #include <$ac_header>
23533 if { (ac_try="$ac_cpp conftest.$ac_ext"
23534 case "(($ac_try" in
23535 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23536 *) ac_try_echo
=$ac_try;;
23538 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23539 $as_echo "$ac_try_echo") >&5
23540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23542 grep -v '^ *+' conftest.er1
>conftest.err
23544 cat conftest.err
>&5
23545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); } >/dev
/null
&& {
23547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23548 test ! -s conftest.err
23550 ac_header_preproc
=yes
23552 $as_echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.
$ac_ext >&5
23555 ac_header_preproc
=no
23558 rm -f conftest.err conftest.
$ac_ext
23559 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23560 $as_echo "$ac_header_preproc" >&6; }
23562 # So? What about this header?
23563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23566 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23568 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23569 ac_header_preproc
=yes
23572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23573 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23575 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23577 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23579 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23581 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23583 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23587 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23588 $as_echo_n "checking for $ac_header... " >&6; }
23589 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23590 $as_echo_n "(cached) " >&6
23592 eval "$as_ac_Header=\$ac_header_preproc"
23594 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23595 $as_echo "$as_val"'`
23596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23597 $as_echo "$ac_res" >&6; }
23600 if test `eval 'as_val=${'$as_ac_Header'}
23601 $as_echo "$as_val"'` = yes; then
23602 cat >>confdefs.h
<<_ACEOF
23603 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23608 for ac_header
in kerberosIV
/krb.h
23610 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23611 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23612 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23613 $as_echo_n "checking for $ac_header... " >&6; }
23614 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23615 $as_echo_n "(cached) " >&6
23617 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23618 $as_echo "$as_val"'`
23619 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23620 $as_echo "$ac_res" >&6; }
23622 # Is the header compilable?
23623 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23624 $as_echo_n "checking $ac_header usability... " >&6; }
23625 cat >conftest.
$ac_ext <<_ACEOF
23628 cat confdefs.h
>>conftest.
$ac_ext
23629 cat >>conftest.
$ac_ext <<_ACEOF
23630 /* end confdefs.h. */
23631 $ac_includes_default
23632 #include <$ac_header>
23634 rm -f conftest.
$ac_objext
23635 if { (ac_try
="$ac_compile"
23636 case "(($ac_try" in
23637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23638 *) ac_try_echo=$ac_try;;
23640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23641 $as_echo "$ac_try_echo") >&5
23642 (eval "$ac_compile") 2>conftest.er1
23644 grep -v '^ *+' conftest.er1 >conftest.err
23646 cat conftest.err >&5
23647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); } && {
23649 test -z "$ac_c_werror_flag" ||
23650 test ! -s conftest.err
23651 } && test -s conftest.$ac_objext; then
23652 ac_header_compiler=yes
23654 $as_echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23657 ac_header_compiler=no
23660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23661 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23662 $as_echo "$ac_header_compiler" >&6; }
23664 # Is the header present?
23665 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23666 $as_echo_n "checking $ac_header presence... " >&6; }
23667 cat >conftest.$ac_ext <<_ACEOF
23670 cat confdefs.h >>conftest.$ac_ext
23671 cat >>conftest.$ac_ext <<_ACEOF
23672 /* end confdefs.h. */
23673 #include <$ac_header>
23675 if { (ac_try="$ac_cpp conftest.$ac_ext"
23676 case "(($ac_try" in
23677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23678 *) ac_try_echo
=$ac_try;;
23680 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23681 $as_echo "$ac_try_echo") >&5
23682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23684 grep -v '^ *+' conftest.er1
>conftest.err
23686 cat conftest.err
>&5
23687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); } >/dev
/null
&& {
23689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23690 test ! -s conftest.err
23692 ac_header_preproc
=yes
23694 $as_echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.
$ac_ext >&5
23697 ac_header_preproc
=no
23700 rm -f conftest.err conftest.
$ac_ext
23701 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23702 $as_echo "$ac_header_preproc" >&6; }
23704 # So? What about this header?
23705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23708 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23710 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23711 ac_header_preproc
=yes
23714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23715 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23717 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23719 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23721 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23723 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23725 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23729 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23730 $as_echo_n "checking for $ac_header... " >&6; }
23731 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23732 $as_echo_n "(cached) " >&6
23734 eval "$as_ac_Header=\$ac_header_preproc"
23736 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23737 $as_echo "$as_val"'`
23738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23739 $as_echo "$ac_res" >&6; }
23742 if test `eval 'as_val=${'$as_ac_Header'}
23743 $as_echo "$as_val"'` = yes; then
23744 cat >>confdefs.h
<<_ACEOF
23745 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23750 for ac_header
in kerberos
/krb.h
23752 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23753 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23754 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23755 $as_echo_n "checking for $ac_header... " >&6; }
23756 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23757 $as_echo_n "(cached) " >&6
23759 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23760 $as_echo "$as_val"'`
23761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23762 $as_echo "$ac_res" >&6; }
23764 # Is the header compilable?
23765 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23766 $as_echo_n "checking $ac_header usability... " >&6; }
23767 cat >conftest.
$ac_ext <<_ACEOF
23770 cat confdefs.h
>>conftest.
$ac_ext
23771 cat >>conftest.
$ac_ext <<_ACEOF
23772 /* end confdefs.h. */
23773 $ac_includes_default
23774 #include <$ac_header>
23776 rm -f conftest.
$ac_objext
23777 if { (ac_try
="$ac_compile"
23778 case "(($ac_try" in
23779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23780 *) ac_try_echo=$ac_try;;
23782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23783 $as_echo "$ac_try_echo") >&5
23784 (eval "$ac_compile") 2>conftest.er1
23786 grep -v '^ *+' conftest.er1 >conftest.err
23788 cat conftest.err >&5
23789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); } && {
23791 test -z "$ac_c_werror_flag" ||
23792 test ! -s conftest.err
23793 } && test -s conftest.$ac_objext; then
23794 ac_header_compiler=yes
23796 $as_echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23799 ac_header_compiler=no
23802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23803 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23804 $as_echo "$ac_header_compiler" >&6; }
23806 # Is the header present?
23807 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23808 $as_echo_n "checking $ac_header presence... " >&6; }
23809 cat >conftest.$ac_ext <<_ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h. */
23815 #include <$ac_header>
23817 if { (ac_try="$ac_cpp conftest.$ac_ext"
23818 case "(($ac_try" in
23819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23820 *) ac_try_echo
=$ac_try;;
23822 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23823 $as_echo "$ac_try_echo") >&5
23824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23826 grep -v '^ *+' conftest.er1
>conftest.err
23828 cat conftest.err
>&5
23829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); } >/dev
/null
&& {
23831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23832 test ! -s conftest.err
23834 ac_header_preproc
=yes
23836 $as_echo "$as_me: failed program was:" >&5
23837 sed 's/^/| /' conftest.
$ac_ext >&5
23839 ac_header_preproc
=no
23842 rm -f conftest.err conftest.
$ac_ext
23843 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23844 $as_echo "$ac_header_preproc" >&6; }
23846 # So? What about this header?
23847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23850 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23853 ac_header_preproc
=yes
23856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23857 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23859 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23861 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23863 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23867 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23871 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23872 $as_echo_n "checking for $ac_header... " >&6; }
23873 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23874 $as_echo_n "(cached) " >&6
23876 eval "$as_ac_Header=\$ac_header_preproc"
23878 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23879 $as_echo "$as_val"'`
23880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23881 $as_echo "$ac_res" >&6; }
23884 if test `eval 'as_val=${'$as_ac_Header'}
23885 $as_echo "$as_val"'` = yes; then
23886 cat >>confdefs.h
<<_ACEOF
23887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23904 for ac_header
in com_err.h
23906 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23907 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23909 $as_echo_n "checking for $ac_header... " >&6; }
23910 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23911 $as_echo_n "(cached) " >&6
23913 ac_res
=`eval 'as_val=${'$as_ac_Header'}
23914 $as_echo "$as_val"'`
23915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23916 $as_echo "$ac_res" >&6; }
23918 # Is the header compilable?
23919 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23920 $as_echo_n "checking $ac_header usability... " >&6; }
23921 cat >conftest.
$ac_ext <<_ACEOF
23924 cat confdefs.h
>>conftest.
$ac_ext
23925 cat >>conftest.
$ac_ext <<_ACEOF
23926 /* end confdefs.h. */
23927 $ac_includes_default
23928 #include <$ac_header>
23930 rm -f conftest.
$ac_objext
23931 if { (ac_try
="$ac_compile"
23932 case "(($ac_try" in
23933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23934 *) ac_try_echo=$ac_try;;
23936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23937 $as_echo "$ac_try_echo") >&5
23938 (eval "$ac_compile") 2>conftest.er1
23940 grep -v '^ *+' conftest.er1 >conftest.err
23942 cat conftest.err >&5
23943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); } && {
23945 test -z "$ac_c_werror_flag" ||
23946 test ! -s conftest.err
23947 } && test -s conftest.$ac_objext; then
23948 ac_header_compiler=yes
23950 $as_echo "$as_me: failed program was:" >&5
23951 sed 's/^/| /' conftest.$ac_ext >&5
23953 ac_header_compiler=no
23956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23957 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23958 $as_echo "$ac_header_compiler" >&6; }
23960 # Is the header present?
23961 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23962 $as_echo_n "checking $ac_header presence... " >&6; }
23963 cat >conftest.$ac_ext <<_ACEOF
23966 cat confdefs.h >>conftest.$ac_ext
23967 cat >>conftest.$ac_ext <<_ACEOF
23968 /* end confdefs.h. */
23969 #include <$ac_header>
23971 if { (ac_try="$ac_cpp conftest.$ac_ext"
23972 case "(($ac_try" in
23973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23974 *) ac_try_echo
=$ac_try;;
23976 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
23977 $as_echo "$ac_try_echo") >&5
23978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23980 grep -v '^ *+' conftest.er1
>conftest.err
23982 cat conftest.err
>&5
23983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); } >/dev
/null
&& {
23985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23986 test ! -s conftest.err
23988 ac_header_preproc
=yes
23990 $as_echo "$as_me: failed program was:" >&5
23991 sed 's/^/| /' conftest.
$ac_ext >&5
23993 ac_header_preproc
=no
23996 rm -f conftest.err conftest.
$ac_ext
23997 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23998 $as_echo "$ac_header_preproc" >&6; }
24000 # So? What about this header?
24001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24004 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24006 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24007 ac_header_preproc
=yes
24010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24011 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24013 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24015 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24017 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24019 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24021 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24025 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24026 $as_echo_n "checking for $ac_header... " >&6; }
24027 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24028 $as_echo_n "(cached) " >&6
24030 eval "$as_ac_Header=\$ac_header_preproc"
24032 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24033 $as_echo "$as_val"'`
24034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24035 $as_echo "$ac_res" >&6; }
24038 if test `eval 'as_val=${'$as_ac_Header'}
24039 $as_echo "$as_val"'` = yes; then
24040 cat >>confdefs.h
<<_ACEOF
24041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24056 # Solaris requires -lintl if you want strerror (which calls dgettext)
24057 # to return localized messages.
24059 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24060 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24061 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24062 $as_echo_n "(cached) " >&6
24064 ac_check_lib_save_LIBS
=$LIBS
24065 LIBS
="-lintl $LIBS"
24066 cat >conftest.
$ac_ext <<_ACEOF
24069 cat confdefs.h
>>conftest.
$ac_ext
24070 cat >>conftest.
$ac_ext <<_ACEOF
24071 /* end confdefs.h. */
24073 /* Override any GCC internal prototype to avoid an error.
24074 Use char because int might match the return type of a GCC
24075 builtin and then its argument prototype would still apply. */
24083 return dgettext ();
24088 rm -f conftest.
$ac_objext conftest
$ac_exeext
24089 if { (ac_try
="$ac_link"
24090 case "(($ac_try" in
24091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24092 *) ac_try_echo=$ac_try;;
24094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24095 $as_echo "$ac_try_echo") >&5
24096 (eval "$ac_link") 2>conftest.er1
24098 grep -v '^ *+' conftest.er1 >conftest.err
24100 cat conftest.err >&5
24101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } && {
24103 test -z "$ac_c_werror_flag" ||
24104 test ! -s conftest.err
24105 } && test -s conftest$ac_exeext && {
24106 test "$cross_compiling" = yes ||
24107 $as_test_x conftest$ac_exeext
24109 ac_cv_lib_intl_dgettext=yes
24111 $as_echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24114 ac_cv_lib_intl_dgettext=no
24117 rm -rf conftest.dSYM
24118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24119 conftest$ac_exeext conftest.$ac_ext
24120 LIBS=$ac_check_lib_save_LIBS
24122 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24123 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24124 if test $ac_cv_lib_intl_dgettext = yes; then
24125 cat >>confdefs.h <<_ACEOF
24126 #define HAVE_LIBINTL 1
24129 LIBS="-lintl $LIBS"
24134 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24135 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24136 if test "${emacs_cv_localtime_cache+set}" = set; then
24137 $as_echo_n "(cached) " >&6
24139 if test x$ac_cv_func_tzset = xyes; then
24140 if test "$cross_compiling" = yes; then
24141 # If we have tzset, assume the worst when cross-compiling.
24142 emacs_cv_localtime_cache=yes
24144 cat >conftest.$ac_ext <<_ACEOF
24147 cat confdefs.h >>conftest.$ac_ext
24148 cat >>conftest.$ac_ext <<_ACEOF
24149 /* end confdefs.h. */
24151 extern char **environ;
24155 for (to = from = environ; (*to = *from); from++)
24156 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24159 char TZ_GMT0[] = "TZ=GMT0";
24160 char TZ_PST8[] = "TZ=PST8";
24163 time_t now = time ((time_t *) 0);
24164 int hour_GMT0, hour_unset;
24165 if (putenv (TZ_GMT0) != 0)
24167 hour_GMT0 = localtime (&now)->tm_hour;
24169 hour_unset = localtime (&now)->tm_hour;
24170 if (putenv (TZ_PST8) != 0)
24172 if (localtime (&now)->tm_hour == hour_GMT0)
24175 if (localtime (&now)->tm_hour != hour_unset)
24180 rm -f conftest$ac_exeext
24181 if { (ac_try="$ac_link"
24182 case "(($ac_try" in
24183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24184 *) ac_try_echo
=$ac_try;;
24186 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24187 $as_echo "$ac_try_echo") >&5
24188 (eval "$ac_link") 2>&5
24190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24192 { (case "(($ac_try" in
24193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24194 *) ac_try_echo=$ac_try;;
24196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24197 $as_echo "$ac_try_echo") >&5
24198 (eval "$ac_try") 2>&5
24200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); }; }; then
24202 emacs_cv_localtime_cache=no
24204 $as_echo "$as_me: program exited with status $ac_status" >&5
24205 $as_echo "$as_me: failed program was:" >&5
24206 sed 's/^/| /' conftest.$ac_ext >&5
24208 ( exit $ac_status )
24209 emacs_cv_localtime_cache=yes
24211 rm -rf conftest.dSYM
24212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24217 # If we lack tzset, report that localtime does not cache TZ,
24218 # since we can't invalidate the cache if we don't have tzset.
24219 emacs_cv_localtime_cache=no
24222 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24223 $as_echo "$emacs_cv_localtime_cache" >&6; }
24224 if test $emacs_cv_localtime_cache = yes; then
24226 cat >>confdefs.h <<\_ACEOF
24227 #define LOCALTIME_CACHE 1
24232 if test "x$HAVE_TIMEVAL" = xyes; then
24234 for ac_func in gettimeofday
24236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
24237 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24238 $as_echo_n "checking for $ac_func... " >&6; }
24239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24240 $as_echo_n "(cached) " >&6
24242 cat >conftest.$ac_ext <<_ACEOF
24245 cat confdefs.h >>conftest.$ac_ext
24246 cat >>conftest.$ac_ext <<_ACEOF
24247 /* end confdefs.h. */
24248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24250 #define $ac_func innocuous_$ac_func
24252 /* System header to define __stub macros and hopefully few prototypes,
24253 which can conflict with char $ac_func (); below.
24254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24255 <limits.h> exists even on freestanding compilers. */
24258 # include <limits.h>
24260 # include <assert.h>
24265 /* Override any GCC internal prototype to avoid an error.
24266 Use char because int might match the return type of a GCC
24267 builtin and then its argument prototype would still apply. */
24272 /* The GNU C library defines this for functions which it implements
24273 to always fail with ENOSYS. Some functions are actually named
24274 something starting with __ and the normal name is an alias. */
24275 #if defined __stub_$ac_func || defined __stub___$ac_func
24282 return $ac_func ();
24287 rm -f conftest.$ac_objext conftest$ac_exeext
24288 if { (ac_try="$ac_link"
24289 case "(($ac_try" in
24290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24291 *) ac_try_echo
=$ac_try;;
24293 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24294 $as_echo "$ac_try_echo") >&5
24295 (eval "$ac_link") 2>conftest.er1
24297 grep -v '^ *+' conftest.er1
>conftest.err
24299 cat conftest.err
>&5
24300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301 (exit $ac_status); } && {
24302 test -z "$ac_c_werror_flag" ||
24303 test ! -s conftest.err
24304 } && test -s conftest
$ac_exeext && {
24305 test "$cross_compiling" = yes ||
24306 $as_test_x conftest
$ac_exeext
24308 eval "$as_ac_var=yes"
24310 $as_echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.
$ac_ext >&5
24313 eval "$as_ac_var=no"
24316 rm -rf conftest.dSYM
24317 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24318 conftest
$ac_exeext conftest.
$ac_ext
24320 ac_res
=`eval 'as_val=${'$as_ac_var'}
24321 $as_echo "$as_val"'`
24322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24323 $as_echo "$ac_res" >&6; }
24324 if test `eval 'as_val=${'$as_ac_var'}
24325 $as_echo "$as_val"'` = yes; then
24326 cat >>confdefs.h
<<_ACEOF
24327 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24333 if test $ac_cv_func_gettimeofday = yes; then
24334 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24335 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24336 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24337 $as_echo_n "(cached) " >&6
24339 cat >conftest.
$ac_ext <<_ACEOF
24342 cat confdefs.h
>>conftest.
$ac_ext
24343 cat >>conftest.
$ac_ext <<_ACEOF
24344 /* end confdefs.h. */
24346 #ifdef TIME_WITH_SYS_TIME
24347 #include <sys/time.h>
24350 #ifdef HAVE_SYS_TIME_H
24351 #include <sys/time.h>
24359 struct timeval time;
24360 gettimeofday (&time, 0);
24365 rm -f conftest.
$ac_objext
24366 if { (ac_try
="$ac_compile"
24367 case "(($ac_try" in
24368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24369 *) ac_try_echo=$ac_try;;
24371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24372 $as_echo "$ac_try_echo") >&5
24373 (eval "$ac_compile") 2>conftest.er1
24375 grep -v '^ *+' conftest.er1 >conftest.err
24377 cat conftest.err >&5
24378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379 (exit $ac_status); } && {
24380 test -z "$ac_c_werror_flag" ||
24381 test ! -s conftest.err
24382 } && test -s conftest.$ac_objext; then
24383 emacs_cv_gettimeofday_two_arguments=yes
24385 $as_echo "$as_me: failed program was:" >&5
24386 sed 's/^/| /' conftest.$ac_ext >&5
24388 emacs_cv_gettimeofday_two_arguments=no
24391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24393 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24394 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24395 if test $emacs_cv_gettimeofday_two_arguments = no; then
24397 cat >>confdefs.h <<\_ACEOF
24398 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24406 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24407 $as_echo_n "checking for socket... " >&6; }
24408 if test "${ac_cv_func_socket+set}" = set; then
24409 $as_echo_n "(cached) " >&6
24411 cat >conftest.$ac_ext <<_ACEOF
24414 cat confdefs.h >>conftest.$ac_ext
24415 cat >>conftest.$ac_ext <<_ACEOF
24416 /* end confdefs.h. */
24417 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24419 #define socket innocuous_socket
24421 /* System header to define __stub macros and hopefully few prototypes,
24422 which can conflict with char socket (); below.
24423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24424 <limits.h> exists even on freestanding compilers. */
24427 # include <limits.h>
24429 # include <assert.h>
24434 /* Override any GCC internal prototype to avoid an error.
24435 Use char because int might match the return type of a GCC
24436 builtin and then its argument prototype would still apply. */
24441 /* The GNU C library defines this for functions which it implements
24442 to always fail with ENOSYS. Some functions are actually named
24443 something starting with __ and the normal name is an alias. */
24444 #if defined __stub_socket || defined __stub___socket
24456 rm -f conftest.$ac_objext conftest$ac_exeext
24457 if { (ac_try="$ac_link"
24458 case "(($ac_try" in
24459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24460 *) ac_try_echo
=$ac_try;;
24462 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24463 $as_echo "$ac_try_echo") >&5
24464 (eval "$ac_link") 2>conftest.er1
24466 grep -v '^ *+' conftest.er1
>conftest.err
24468 cat conftest.err
>&5
24469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } && {
24471 test -z "$ac_c_werror_flag" ||
24472 test ! -s conftest.err
24473 } && test -s conftest
$ac_exeext && {
24474 test "$cross_compiling" = yes ||
24475 $as_test_x conftest
$ac_exeext
24477 ac_cv_func_socket
=yes
24479 $as_echo "$as_me: failed program was:" >&5
24480 sed 's/^/| /' conftest.
$ac_ext >&5
24482 ac_cv_func_socket
=no
24485 rm -rf conftest.dSYM
24486 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24487 conftest
$ac_exeext conftest.
$ac_ext
24489 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24490 $as_echo "$ac_cv_func_socket" >&6; }
24491 if test $ac_cv_func_socket = yes; then
24497 if test $ok_so_far = yes; then
24498 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24499 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24500 $as_echo_n "checking for netinet/in.h... " >&6; }
24501 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24502 $as_echo_n "(cached) " >&6
24504 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24505 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24507 # Is the header compilable?
24508 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24509 $as_echo_n "checking netinet/in.h usability... " >&6; }
24510 cat >conftest.
$ac_ext <<_ACEOF
24513 cat confdefs.h
>>conftest.
$ac_ext
24514 cat >>conftest.
$ac_ext <<_ACEOF
24515 /* end confdefs.h. */
24516 $ac_includes_default
24517 #include <netinet/in.h>
24519 rm -f conftest.
$ac_objext
24520 if { (ac_try
="$ac_compile"
24521 case "(($ac_try" in
24522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24523 *) ac_try_echo=$ac_try;;
24525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24526 $as_echo "$ac_try_echo") >&5
24527 (eval "$ac_compile") 2>conftest.er1
24529 grep -v '^ *+' conftest.er1 >conftest.err
24531 cat conftest.err >&5
24532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); } && {
24534 test -z "$ac_c_werror_flag" ||
24535 test ! -s conftest.err
24536 } && test -s conftest.$ac_objext; then
24537 ac_header_compiler=yes
24539 $as_echo "$as_me: failed program was:" >&5
24540 sed 's/^/| /' conftest.$ac_ext >&5
24542 ac_header_compiler=no
24545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24546 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24547 $as_echo "$ac_header_compiler" >&6; }
24549 # Is the header present?
24550 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24551 $as_echo_n "checking netinet/in.h presence... " >&6; }
24552 cat >conftest.$ac_ext <<_ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h. */
24558 #include <netinet/in.h>
24560 if { (ac_try="$ac_cpp conftest.$ac_ext"
24561 case "(($ac_try" in
24562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24563 *) ac_try_echo
=$ac_try;;
24565 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24566 $as_echo "$ac_try_echo") >&5
24567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24569 grep -v '^ *+' conftest.er1
>conftest.err
24571 cat conftest.err
>&5
24572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); } >/dev
/null
&& {
24574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24575 test ! -s conftest.err
24577 ac_header_preproc
=yes
24579 $as_echo "$as_me: failed program was:" >&5
24580 sed 's/^/| /' conftest.
$ac_ext >&5
24582 ac_header_preproc
=no
24585 rm -f conftest.err conftest.
$ac_ext
24586 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24587 $as_echo "$ac_header_preproc" >&6; }
24589 # So? What about this header?
24590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24592 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24593 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24594 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24595 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24596 ac_header_preproc
=yes
24599 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24600 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24601 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24602 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24603 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24604 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24605 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24606 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24607 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24608 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24609 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24610 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24614 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24615 $as_echo_n "checking for netinet/in.h... " >&6; }
24616 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24617 $as_echo_n "(cached) " >&6
24619 ac_cv_header_netinet_in_h
=$ac_header_preproc
24621 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24622 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24625 if test $ac_cv_header_netinet_in_h = yes; then
24633 if test $ok_so_far = yes; then
24634 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24635 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24636 $as_echo_n "checking for arpa/inet.h... " >&6; }
24637 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24638 $as_echo_n "(cached) " >&6
24640 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24641 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24643 # Is the header compilable?
24644 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24645 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24646 cat >conftest.
$ac_ext <<_ACEOF
24649 cat confdefs.h
>>conftest.
$ac_ext
24650 cat >>conftest.
$ac_ext <<_ACEOF
24651 /* end confdefs.h. */
24652 $ac_includes_default
24653 #include <arpa/inet.h>
24655 rm -f conftest.
$ac_objext
24656 if { (ac_try
="$ac_compile"
24657 case "(($ac_try" in
24658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24659 *) ac_try_echo=$ac_try;;
24661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24662 $as_echo "$ac_try_echo") >&5
24663 (eval "$ac_compile") 2>conftest.er1
24665 grep -v '^ *+' conftest.er1 >conftest.err
24667 cat conftest.err >&5
24668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); } && {
24670 test -z "$ac_c_werror_flag" ||
24671 test ! -s conftest.err
24672 } && test -s conftest.$ac_objext; then
24673 ac_header_compiler=yes
24675 $as_echo "$as_me: failed program was:" >&5
24676 sed 's/^/| /' conftest.$ac_ext >&5
24678 ac_header_compiler=no
24681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24682 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24683 $as_echo "$ac_header_compiler" >&6; }
24685 # Is the header present?
24686 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24687 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24688 cat >conftest.$ac_ext <<_ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h. */
24694 #include <arpa/inet.h>
24696 if { (ac_try="$ac_cpp conftest.$ac_ext"
24697 case "(($ac_try" in
24698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24699 *) ac_try_echo
=$ac_try;;
24701 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24702 $as_echo "$ac_try_echo") >&5
24703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24705 grep -v '^ *+' conftest.er1
>conftest.err
24707 cat conftest.err
>&5
24708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709 (exit $ac_status); } >/dev
/null
&& {
24710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24711 test ! -s conftest.err
24713 ac_header_preproc
=yes
24715 $as_echo "$as_me: failed program was:" >&5
24716 sed 's/^/| /' conftest.
$ac_ext >&5
24718 ac_header_preproc
=no
24721 rm -f conftest.err conftest.
$ac_ext
24722 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24723 $as_echo "$ac_header_preproc" >&6; }
24725 # So? What about this header?
24726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24728 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24729 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24730 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24731 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24732 ac_header_preproc
=yes
24735 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24736 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24737 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24738 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24739 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24740 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24741 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24742 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24743 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24744 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24745 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24746 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24750 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24751 $as_echo_n "checking for arpa/inet.h... " >&6; }
24752 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24753 $as_echo_n "(cached) " >&6
24755 ac_cv_header_arpa_inet_h
=$ac_header_preproc
24757 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24758 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24761 if test $ac_cv_header_arpa_inet_h = yes; then
24769 if test $ok_so_far = yes; then
24771 cat >>confdefs.h
<<\_ACEOF
24772 #define HAVE_INET_SOCKETS 1
24778 for ac_header
in sys
/ioctl.h
24780 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24781 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24782 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24783 $as_echo_n "checking for $ac_header... " >&6; }
24784 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24785 $as_echo_n "(cached) " >&6
24787 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24788 $as_echo "$as_val"'`
24789 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24790 $as_echo "$ac_res" >&6; }
24792 # Is the header compilable?
24793 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24794 $as_echo_n "checking $ac_header usability... " >&6; }
24795 cat >conftest.
$ac_ext <<_ACEOF
24798 cat confdefs.h
>>conftest.
$ac_ext
24799 cat >>conftest.
$ac_ext <<_ACEOF
24800 /* end confdefs.h. */
24801 $ac_includes_default
24802 #include <$ac_header>
24804 rm -f conftest.
$ac_objext
24805 if { (ac_try
="$ac_compile"
24806 case "(($ac_try" in
24807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24808 *) ac_try_echo=$ac_try;;
24810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24811 $as_echo "$ac_try_echo") >&5
24812 (eval "$ac_compile") 2>conftest.er1
24814 grep -v '^ *+' conftest.er1 >conftest.err
24816 cat conftest.err >&5
24817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818 (exit $ac_status); } && {
24819 test -z "$ac_c_werror_flag" ||
24820 test ! -s conftest.err
24821 } && test -s conftest.$ac_objext; then
24822 ac_header_compiler=yes
24824 $as_echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24827 ac_header_compiler=no
24830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24831 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24832 $as_echo "$ac_header_compiler" >&6; }
24834 # Is the header present?
24835 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24836 $as_echo_n "checking $ac_header presence... " >&6; }
24837 cat >conftest.$ac_ext <<_ACEOF
24840 cat confdefs.h >>conftest.$ac_ext
24841 cat >>conftest.$ac_ext <<_ACEOF
24842 /* end confdefs.h. */
24843 #include <$ac_header>
24845 if { (ac_try="$ac_cpp conftest.$ac_ext"
24846 case "(($ac_try" in
24847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24848 *) ac_try_echo
=$ac_try;;
24850 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24851 $as_echo "$ac_try_echo") >&5
24852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24854 grep -v '^ *+' conftest.er1
>conftest.err
24856 cat conftest.err
>&5
24857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); } >/dev
/null
&& {
24859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24860 test ! -s conftest.err
24862 ac_header_preproc
=yes
24864 $as_echo "$as_me: failed program was:" >&5
24865 sed 's/^/| /' conftest.
$ac_ext >&5
24867 ac_header_preproc
=no
24870 rm -f conftest.err conftest.
$ac_ext
24871 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24872 $as_echo "$ac_header_preproc" >&6; }
24874 # So? What about this header?
24875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24878 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24880 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24881 ac_header_preproc
=yes
24884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24885 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24887 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24889 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24891 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24893 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24895 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24899 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24900 $as_echo_n "checking for $ac_header... " >&6; }
24901 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24902 $as_echo_n "(cached) " >&6
24904 eval "$as_ac_Header=\$ac_header_preproc"
24906 ac_res
=`eval 'as_val=${'$as_ac_Header'}
24907 $as_echo "$as_val"'`
24908 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24909 $as_echo "$ac_res" >&6; }
24912 if test `eval 'as_val=${'$as_ac_Header'}
24913 $as_echo "$as_val"'` = yes; then
24914 cat >>confdefs.h
<<_ACEOF
24915 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24923 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
24925 cat >>confdefs.h
<<\_ACEOF
24926 #define HAVE_AIX_SMT_EXP 1
24931 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24932 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24933 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
24934 { $as_echo "$as_me:$LINENO: result: yes" >&5
24935 $as_echo "yes" >&6; }
24937 cat >>confdefs.h
<<\_ACEOF
24938 #define HAVE_DEV_PTMX 1
24942 { $as_echo "$as_me:$LINENO: result: no" >&5
24943 $as_echo "no" >&6; }
24946 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24947 $as_echo_n "checking for pid_t... " >&6; }
24948 if test "${ac_cv_type_pid_t+set}" = set; then
24949 $as_echo_n "(cached) " >&6
24951 ac_cv_type_pid_t
=no
24952 cat >conftest.
$ac_ext <<_ACEOF
24955 cat confdefs.h
>>conftest.
$ac_ext
24956 cat >>conftest.
$ac_ext <<_ACEOF
24957 /* end confdefs.h. */
24958 $ac_includes_default
24962 if (sizeof (pid_t))
24968 rm -f conftest.
$ac_objext
24969 if { (ac_try
="$ac_compile"
24970 case "(($ac_try" in
24971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24972 *) ac_try_echo=$ac_try;;
24974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24975 $as_echo "$ac_try_echo") >&5
24976 (eval "$ac_compile") 2>conftest.er1
24978 grep -v '^ *+' conftest.er1 >conftest.err
24980 cat conftest.err >&5
24981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); } && {
24983 test -z "$ac_c_werror_flag" ||
24984 test ! -s conftest.err
24985 } && test -s conftest.$ac_objext; then
24986 cat >conftest.$ac_ext <<_ACEOF
24989 cat confdefs.h >>conftest.$ac_ext
24990 cat >>conftest.$ac_ext <<_ACEOF
24991 /* end confdefs.h. */
24992 $ac_includes_default
24996 if (sizeof ((pid_t)))
25002 rm -f conftest.$ac_objext
25003 if { (ac_try="$ac_compile"
25004 case "(($ac_try" in
25005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25006 *) ac_try_echo
=$ac_try;;
25008 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25009 $as_echo "$ac_try_echo") >&5
25010 (eval "$ac_compile") 2>conftest.er1
25012 grep -v '^ *+' conftest.er1
>conftest.err
25014 cat conftest.err
>&5
25015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); } && {
25017 test -z "$ac_c_werror_flag" ||
25018 test ! -s conftest.err
25019 } && test -s conftest.
$ac_objext; then
25022 $as_echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.
$ac_ext >&5
25025 ac_cv_type_pid_t
=yes
25028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25030 $as_echo "$as_me: failed program was:" >&5
25031 sed 's/^/| /' conftest.
$ac_ext >&5
25036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25038 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25039 $as_echo "$ac_cv_type_pid_t" >&6; }
25040 if test $ac_cv_type_pid_t = yes; then
25044 cat >>confdefs.h
<<_ACEOF
25051 for ac_header
in vfork.h
25053 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25054 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25055 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25056 $as_echo_n "checking for $ac_header... " >&6; }
25057 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25058 $as_echo_n "(cached) " >&6
25060 ac_res
=`eval 'as_val=${'$as_ac_Header'}
25061 $as_echo "$as_val"'`
25062 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25063 $as_echo "$ac_res" >&6; }
25065 # Is the header compilable?
25066 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25067 $as_echo_n "checking $ac_header usability... " >&6; }
25068 cat >conftest.
$ac_ext <<_ACEOF
25071 cat confdefs.h
>>conftest.
$ac_ext
25072 cat >>conftest.
$ac_ext <<_ACEOF
25073 /* end confdefs.h. */
25074 $ac_includes_default
25075 #include <$ac_header>
25077 rm -f conftest.
$ac_objext
25078 if { (ac_try
="$ac_compile"
25079 case "(($ac_try" in
25080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25081 *) ac_try_echo=$ac_try;;
25083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25084 $as_echo "$ac_try_echo") >&5
25085 (eval "$ac_compile") 2>conftest.er1
25087 grep -v '^ *+' conftest.er1 >conftest.err
25089 cat conftest.err >&5
25090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091 (exit $ac_status); } && {
25092 test -z "$ac_c_werror_flag" ||
25093 test ! -s conftest.err
25094 } && test -s conftest.$ac_objext; then
25095 ac_header_compiler=yes
25097 $as_echo "$as_me: failed program was:" >&5
25098 sed 's/^/| /' conftest.$ac_ext >&5
25100 ac_header_compiler=no
25103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25104 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25105 $as_echo "$ac_header_compiler" >&6; }
25107 # Is the header present?
25108 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25109 $as_echo_n "checking $ac_header presence... " >&6; }
25110 cat >conftest.$ac_ext <<_ACEOF
25113 cat confdefs.h >>conftest.$ac_ext
25114 cat >>conftest.$ac_ext <<_ACEOF
25115 /* end confdefs.h. */
25116 #include <$ac_header>
25118 if { (ac_try="$ac_cpp conftest.$ac_ext"
25119 case "(($ac_try" in
25120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25121 *) ac_try_echo
=$ac_try;;
25123 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25124 $as_echo "$ac_try_echo") >&5
25125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25127 grep -v '^ *+' conftest.er1
>conftest.err
25129 cat conftest.err
>&5
25130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } >/dev
/null
&& {
25132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25133 test ! -s conftest.err
25135 ac_header_preproc
=yes
25137 $as_echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.
$ac_ext >&5
25140 ac_header_preproc
=no
25143 rm -f conftest.err conftest.
$ac_ext
25144 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25145 $as_echo "$ac_header_preproc" >&6; }
25147 # So? What about this header?
25148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25151 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25154 ac_header_preproc
=yes
25157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25158 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25160 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25162 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25164 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25166 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25168 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25172 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25173 $as_echo_n "checking for $ac_header... " >&6; }
25174 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25175 $as_echo_n "(cached) " >&6
25177 eval "$as_ac_Header=\$ac_header_preproc"
25179 ac_res
=`eval 'as_val=${'$as_ac_Header'}
25180 $as_echo "$as_val"'`
25181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25182 $as_echo "$ac_res" >&6; }
25185 if test `eval 'as_val=${'$as_ac_Header'}
25186 $as_echo "$as_val"'` = yes; then
25187 cat >>confdefs.h
<<_ACEOF
25188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25197 for ac_func
in fork vfork
25199 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25200 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25201 $as_echo_n "checking for $ac_func... " >&6; }
25202 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25203 $as_echo_n "(cached) " >&6
25205 cat >conftest.
$ac_ext <<_ACEOF
25208 cat confdefs.h
>>conftest.
$ac_ext
25209 cat >>conftest.
$ac_ext <<_ACEOF
25210 /* end confdefs.h. */
25211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25213 #define $ac_func innocuous_$ac_func
25215 /* System header to define __stub macros and hopefully few prototypes,
25216 which can conflict with char $ac_func (); below.
25217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25218 <limits.h> exists even on freestanding compilers. */
25221 # include <limits.h>
25223 # include <assert.h>
25228 /* Override any GCC internal prototype to avoid an error.
25229 Use char because int might match the return type of a GCC
25230 builtin and then its argument prototype would still apply. */
25235 /* The GNU C library defines this for functions which it implements
25236 to always fail with ENOSYS. Some functions are actually named
25237 something starting with __ and the normal name is an alias. */
25238 #if defined __stub_$ac_func || defined __stub___$ac_func
25245 return $ac_func ();
25250 rm -f conftest.
$ac_objext conftest
$ac_exeext
25251 if { (ac_try
="$ac_link"
25252 case "(($ac_try" in
25253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25254 *) ac_try_echo=$ac_try;;
25256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25257 $as_echo "$ac_try_echo") >&5
25258 (eval "$ac_link") 2>conftest.er1
25260 grep -v '^ *+' conftest.er1 >conftest.err
25262 cat conftest.err >&5
25263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); } && {
25265 test -z "$ac_c_werror_flag" ||
25266 test ! -s conftest.err
25267 } && test -s conftest$ac_exeext && {
25268 test "$cross_compiling" = yes ||
25269 $as_test_x conftest$ac_exeext
25271 eval "$as_ac_var=yes"
25273 $as_echo "$as_me: failed program was:" >&5
25274 sed 's/^/| /' conftest.$ac_ext >&5
25276 eval "$as_ac_var=no"
25279 rm -rf conftest.dSYM
25280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25281 conftest$ac_exeext conftest.$ac_ext
25283 ac_res=`eval 'as_val=${'$as_ac_var'}
25284 $as_echo "$as_val"'`
25285 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25286 $as_echo "$ac_res" >&6; }
25287 if test `eval 'as_val=${'$as_ac_var'}
25288 $as_echo "$as_val"'` = yes; then
25289 cat >>confdefs.h <<_ACEOF
25290 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
25296 if test "x$ac_cv_func_fork" = xyes; then
25297 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25298 $as_echo_n "checking for working fork... " >&6; }
25299 if test "${ac_cv_func_fork_works+set}" = set; then
25300 $as_echo_n "(cached) " >&6
25302 if test "$cross_compiling" = yes; then
25303 ac_cv_func_fork_works=cross
25305 cat >conftest.$ac_ext <<_ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h. */
25311 $ac_includes_default
25316 /* By Ruediger Kuhlmann. */
25317 return fork () < 0;
25323 rm -f conftest$ac_exeext
25324 if { (ac_try="$ac_link"
25325 case "(($ac_try" in
25326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25327 *) ac_try_echo
=$ac_try;;
25329 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25330 $as_echo "$ac_try_echo") >&5
25331 (eval "$ac_link") 2>&5
25333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25335 { (case "(($ac_try" in
25336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25337 *) ac_try_echo=$ac_try;;
25339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25340 $as_echo "$ac_try_echo") >&5
25341 (eval "$ac_try") 2>&5
25343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); }; }; then
25345 ac_cv_func_fork_works=yes
25347 $as_echo "$as_me: program exited with status $ac_status" >&5
25348 $as_echo "$as_me: failed program was:" >&5
25349 sed 's/^/| /' conftest.$ac_ext >&5
25351 ( exit $ac_status )
25352 ac_cv_func_fork_works=no
25354 rm -rf conftest.dSYM
25355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25360 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25361 $as_echo "$ac_cv_func_fork_works" >&6; }
25364 ac_cv_func_fork_works=$ac_cv_func_fork
25366 if test "x$ac_cv_func_fork_works" = xcross; then
25368 *-*-amigaos* | *-*-msdosdjgpp*)
25369 # Override, as these systems have only a dummy fork() stub
25370 ac_cv_func_fork_works=no
25373 ac_cv_func_fork_works=yes
25376 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25377 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25379 ac_cv_func_vfork_works=$ac_cv_func_vfork
25380 if test "x$ac_cv_func_vfork" = xyes; then
25381 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25382 $as_echo_n "checking for working vfork... " >&6; }
25383 if test "${ac_cv_func_vfork_works+set}" = set; then
25384 $as_echo_n "(cached) " >&6
25386 if test "$cross_compiling" = yes; then
25387 ac_cv_func_vfork_works=cross
25389 cat >conftest.$ac_ext <<_ACEOF
25392 cat confdefs.h >>conftest.$ac_ext
25393 cat >>conftest.$ac_ext <<_ACEOF
25394 /* end confdefs.h. */
25395 /* Thanks to Paul Eggert for this test. */
25396 $ac_includes_default
25397 #include <sys/wait.h>
25398 #ifdef HAVE_VFORK_H
25399 # include <vfork.h>
25401 /* On some sparc systems, changes by the child to local and incoming
25402 argument registers are propagated back to the parent. The compiler
25403 is told about this with #include <vfork.h>, but some compilers
25404 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25405 static variable whose address is put into a register that is
25406 clobbered by the vfork. */
25409 sparc_address_test (int arg)
25411 sparc_address_test (arg) int arg;
25414 static pid_t child;
25432 pid_t parent = getpid ();
25435 sparc_address_test (0);
25440 /* Here is another test for sparc vfork register problems. This
25441 test uses lots of local variables, at least as many local
25442 variables as main has allocated so far including compiler
25443 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25444 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25445 reuse the register of parent for one of the local variables,
25446 since it will think that parent can't possibly be used any more
25447 in this routine. Assigning to the local variable will thus
25448 munge parent in the parent process. */
25450 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25451 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25452 /* Convince the compiler that p..p7 are live; otherwise, it might
25453 use the same hardware register for all 8 local variables. */
25454 if (p != p1 || p != p2 || p != p3 || p != p4
25455 || p != p5 || p != p6 || p != p7)
25458 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25459 from child file descriptors. If the child closes a descriptor
25460 before it execs or exits, this munges the parent's descriptor
25461 as well. Test for this by closing stdout in the child. */
25462 _exit(close(fileno(stdout)) != 0);
25467 while (wait(&status) != child)
25470 /* Was there some problem with vforking? */
25473 /* Did the child fail? (This shouldn't happen.) */
25476 /* Did the vfork/compiler bug occur? */
25477 || parent != getpid()
25479 /* Did the file descriptor bug occur? */
25480 || fstat(fileno(stdout), &st) != 0
25485 rm -f conftest$ac_exeext
25486 if { (ac_try="$ac_link"
25487 case "(($ac_try" in
25488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25489 *) ac_try_echo
=$ac_try;;
25491 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25492 $as_echo "$ac_try_echo") >&5
25493 (eval "$ac_link") 2>&5
25495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
25497 { (case "(($ac_try" in
25498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25499 *) ac_try_echo=$ac_try;;
25501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25502 $as_echo "$ac_try_echo") >&5
25503 (eval "$ac_try") 2>&5
25505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506 (exit $ac_status); }; }; then
25507 ac_cv_func_vfork_works=yes
25509 $as_echo "$as_me: program exited with status $ac_status" >&5
25510 $as_echo "$as_me: failed program was:" >&5
25511 sed 's/^/| /' conftest.$ac_ext >&5
25513 ( exit $ac_status )
25514 ac_cv_func_vfork_works=no
25516 rm -rf conftest.dSYM
25517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25522 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25523 $as_echo "$ac_cv_func_vfork_works" >&6; }
25526 if test "x$ac_cv_func_fork_works" = xcross; then
25527 ac_cv_func_vfork_works=$ac_cv_func_vfork
25528 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25529 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25532 if test "x$ac_cv_func_vfork_works" = xyes; then
25534 cat >>confdefs.h <<\_ACEOF
25535 #define HAVE_WORKING_VFORK 1
25540 cat >>confdefs.h <<\_ACEOF
25545 if test "x$ac_cv_func_fork_works" = xyes; then
25547 cat >>confdefs.h <<\_ACEOF
25548 #define HAVE_WORKING_FORK 1
25554 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25555 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25556 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25557 $as_echo_n "(cached) " >&6
25559 cat >conftest.$ac_ext <<_ACEOF
25562 cat confdefs.h >>conftest.$ac_ext
25563 cat >>conftest.$ac_ext <<_ACEOF
25564 /* end confdefs.h. */
25565 #include <langinfo.h>
25569 char* cs = nl_langinfo(CODESET);
25574 rm -f conftest.$ac_objext conftest$ac_exeext
25575 if { (ac_try="$ac_link"
25576 case "(($ac_try" in
25577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25578 *) ac_try_echo
=$ac_try;;
25580 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25581 $as_echo "$ac_try_echo") >&5
25582 (eval "$ac_link") 2>conftest.er1
25584 grep -v '^ *+' conftest.er1
>conftest.err
25586 cat conftest.err
>&5
25587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); } && {
25589 test -z "$ac_c_werror_flag" ||
25590 test ! -s conftest.err
25591 } && test -s conftest
$ac_exeext && {
25592 test "$cross_compiling" = yes ||
25593 $as_test_x conftest
$ac_exeext
25595 emacs_cv_langinfo_codeset
=yes
25597 $as_echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.
$ac_ext >&5
25600 emacs_cv_langinfo_codeset
=no
25603 rm -rf conftest.dSYM
25604 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25605 conftest
$ac_exeext conftest.
$ac_ext
25608 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25609 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25610 if test $emacs_cv_langinfo_codeset = yes; then
25612 cat >>confdefs.h
<<\_ACEOF
25613 #define HAVE_LANGINFO_CODESET 1
25618 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25619 $as_echo_n "checking for size_t... " >&6; }
25620 if test "${ac_cv_type_size_t+set}" = set; then
25621 $as_echo_n "(cached) " >&6
25623 ac_cv_type_size_t
=no
25624 cat >conftest.
$ac_ext <<_ACEOF
25627 cat confdefs.h
>>conftest.
$ac_ext
25628 cat >>conftest.
$ac_ext <<_ACEOF
25629 /* end confdefs.h. */
25630 $ac_includes_default
25634 if (sizeof (size_t))
25640 rm -f conftest.
$ac_objext
25641 if { (ac_try
="$ac_compile"
25642 case "(($ac_try" in
25643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25644 *) ac_try_echo=$ac_try;;
25646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25647 $as_echo "$ac_try_echo") >&5
25648 (eval "$ac_compile") 2>conftest.er1
25650 grep -v '^ *+' conftest.er1 >conftest.err
25652 cat conftest.err >&5
25653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654 (exit $ac_status); } && {
25655 test -z "$ac_c_werror_flag" ||
25656 test ! -s conftest.err
25657 } && test -s conftest.$ac_objext; then
25658 cat >conftest.$ac_ext <<_ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h. */
25664 $ac_includes_default
25668 if (sizeof ((size_t)))
25674 rm -f conftest.$ac_objext
25675 if { (ac_try="$ac_compile"
25676 case "(($ac_try" in
25677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25678 *) ac_try_echo
=$ac_try;;
25680 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25681 $as_echo "$ac_try_echo") >&5
25682 (eval "$ac_compile") 2>conftest.er1
25684 grep -v '^ *+' conftest.er1
>conftest.err
25686 cat conftest.err
>&5
25687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } && {
25689 test -z "$ac_c_werror_flag" ||
25690 test ! -s conftest.err
25691 } && test -s conftest.
$ac_objext; then
25694 $as_echo "$as_me: failed program was:" >&5
25695 sed 's/^/| /' conftest.
$ac_ext >&5
25697 ac_cv_type_size_t
=yes
25700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25702 $as_echo "$as_me: failed program was:" >&5
25703 sed 's/^/| /' conftest.
$ac_ext >&5
25708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25710 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25711 $as_echo "$ac_cv_type_size_t" >&6; }
25712 if test $ac_cv_type_size_t = yes; then
25714 cat >>confdefs.h
<<_ACEOF
25715 #define HAVE_SIZE_T 1
25722 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25723 $as_echo_n "checking for mbstate_t... " >&6; }
25724 if test "${ac_cv_type_mbstate_t+set}" = set; then
25725 $as_echo_n "(cached) " >&6
25727 cat >conftest.
$ac_ext <<_ACEOF
25730 cat confdefs.h
>>conftest.
$ac_ext
25731 cat >>conftest.
$ac_ext <<_ACEOF
25732 /* end confdefs.h. */
25733 $ac_includes_default
25734 # include <wchar.h>
25738 mbstate_t x; return sizeof x;
25743 rm -f conftest.
$ac_objext
25744 if { (ac_try
="$ac_compile"
25745 case "(($ac_try" in
25746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25747 *) ac_try_echo=$ac_try;;
25749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25750 $as_echo "$ac_try_echo") >&5
25751 (eval "$ac_compile") 2>conftest.er1
25753 grep -v '^ *+' conftest.er1 >conftest.err
25755 cat conftest.err >&5
25756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); } && {
25758 test -z "$ac_c_werror_flag" ||
25759 test ! -s conftest.err
25760 } && test -s conftest.$ac_objext; then
25761 ac_cv_type_mbstate_t=yes
25763 $as_echo "$as_me: failed program was:" >&5
25764 sed 's/^/| /' conftest.$ac_ext >&5
25766 ac_cv_type_mbstate_t=no
25769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25771 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25772 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25773 if test $ac_cv_type_mbstate_t = yes; then
25775 cat >>confdefs.h <<\_ACEOF
25776 #define HAVE_MBSTATE_T 1
25781 cat >>confdefs.h <<\_ACEOF
25782 #define mbstate_t int
25787 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25788 $as_echo_n "checking for C restrict keyword... " >&6; }
25789 if test "${emacs_cv_c_restrict+set}" = set; then
25790 $as_echo_n "(cached) " >&6
25792 cat >conftest.$ac_ext <<_ACEOF
25795 cat confdefs.h >>conftest.$ac_ext
25796 cat >>conftest.$ac_ext <<_ACEOF
25797 /* end confdefs.h. */
25798 void fred (int *restrict x);
25807 rm -f conftest.$ac_objext
25808 if { (ac_try="$ac_compile"
25809 case "(($ac_try" in
25810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25811 *) ac_try_echo
=$ac_try;;
25813 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25814 $as_echo "$ac_try_echo") >&5
25815 (eval "$ac_compile") 2>conftest.er1
25817 grep -v '^ *+' conftest.er1
>conftest.err
25819 cat conftest.err
>&5
25820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821 (exit $ac_status); } && {
25822 test -z "$ac_c_werror_flag" ||
25823 test ! -s conftest.err
25824 } && test -s conftest.
$ac_objext; then
25825 emacs_cv_c_restrict
=yes
25827 $as_echo "$as_me: failed program was:" >&5
25828 sed 's/^/| /' conftest.
$ac_ext >&5
25830 cat >conftest.
$ac_ext <<_ACEOF
25833 cat confdefs.h
>>conftest.
$ac_ext
25834 cat >>conftest.
$ac_ext <<_ACEOF
25835 /* end confdefs.h. */
25836 void fred (int *__restrict x);
25845 rm -f conftest.
$ac_objext
25846 if { (ac_try
="$ac_compile"
25847 case "(($ac_try" in
25848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25849 *) ac_try_echo=$ac_try;;
25851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25852 $as_echo "$ac_try_echo") >&5
25853 (eval "$ac_compile") 2>conftest.er1
25855 grep -v '^ *+' conftest.er1 >conftest.err
25857 cat conftest.err >&5
25858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859 (exit $ac_status); } && {
25860 test -z "$ac_c_werror_flag" ||
25861 test ! -s conftest.err
25862 } && test -s conftest.$ac_objext; then
25863 emacs_cv_c_restrict=__restrict
25865 $as_echo "$as_me: failed program was:" >&5
25866 sed 's/^/| /' conftest.$ac_ext >&5
25868 emacs_cv_c_restrict=no
25871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25876 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25877 $as_echo "$emacs_cv_c_restrict" >&6; }
25878 case "$emacs_cv_c_restrict" in
25879 yes) emacs_restrict=restrict;;
25880 no) emacs_restrict="";;
25881 *) emacs_restrict="$emacs_cv_c_restrict";;
25883 if test "$emacs_restrict" != __restrict; then
25885 cat >>confdefs.h <<_ACEOF
25886 #define __restrict $emacs_restrict
25891 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25892 $as_echo_n "checking for C restricted array declarations... " >&6; }
25893 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25894 $as_echo_n "(cached) " >&6
25896 cat >conftest.$ac_ext <<_ACEOF
25899 cat confdefs.h >>conftest.$ac_ext
25900 cat >>conftest.$ac_ext <<_ACEOF
25901 /* end confdefs.h. */
25902 void fred (int x[__restrict]);
25911 rm -f conftest.$ac_objext
25912 if { (ac_try="$ac_compile"
25913 case "(($ac_try" in
25914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25915 *) ac_try_echo
=$ac_try;;
25917 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25918 $as_echo "$ac_try_echo") >&5
25919 (eval "$ac_compile") 2>conftest.er1
25921 grep -v '^ *+' conftest.er1
>conftest.err
25923 cat conftest.err
>&5
25924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25925 (exit $ac_status); } && {
25926 test -z "$ac_c_werror_flag" ||
25927 test ! -s conftest.err
25928 } && test -s conftest.
$ac_objext; then
25929 emacs_cv_c_restrict_arr
=yes
25931 $as_echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.
$ac_ext >&5
25934 emacs_cv_c_restrict_arr
=no
25937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25939 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25940 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25941 if test "$emacs_cv_c_restrict_arr" = yes; then
25943 cat >>confdefs.h
<<\_ACEOF
25944 #define __restrict_arr __restrict
25951 # Set up the CFLAGS for real compilation, so we can substitute it.
25952 CFLAGS
="$REAL_CFLAGS"
25953 CPPFLAGS
="$REAL_CPPFLAGS"
25955 #### Find out which version of Emacs this is.
25956 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25957 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25958 if test x
"${version}" = x
; then
25959 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25960 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25961 { (exit 1); exit 1; }; }
25963 if test x
"${version}" != x
"$PACKAGE_VERSION"; then
25964 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25965 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25968 ### Specify what sort of things we'll be editing into Makefile and config.h.
25969 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26000 ## Used in lwlib/Makefile.in.
26017 cat >>confdefs.h <<_ACEOF
26018 #define EMACS_CONFIGURATION "${canonical}"
26022 cat >>confdefs.h <<_ACEOF
26023 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26027 cat >>confdefs.h <<_ACEOF
26028 #define config_machfile "${machfile}"
26032 cat >>confdefs.h <<_ACEOF
26033 #define config_opsysfile "${opsysfile}"
26037 cat >>confdefs.h <<_ACEOF
26038 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
26042 cat >>confdefs.h <<_ACEOF
26043 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
26047 cat >>confdefs.h <<_ACEOF
26048 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
26054 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26056 cat >>confdefs.h <<\_ACEOF
26057 #define HAVE_X_WINDOWS 1
26061 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o
"
26068 if test "${USE_X_TOOLKIT}" != "none
" ; then
26069 WIDGET_OBJ=widget.o
26071 cat >>confdefs.h <<\_ACEOF
26072 #define USE_X_TOOLKIT 1
26075 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
26077 cat >>confdefs.h <<\_ACEOF
26078 #define USE_LUCID 1
26081 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
26083 cat >>confdefs.h <<\_ACEOF
26084 #define USE_MOTIF 1
26090 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26091 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26095 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26096 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26097 MOTIF_LIBW="MOTIF_LIBW
-lXimp"
26101 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26102 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26105 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26111 case "$USE_X_TOOLKIT" in
26112 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26113 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26114 none) test "x
$HAVE_GTK" = "xyes
" && TOOLKIT_LIBW="$GTK_LIBS" ;;
26118 ## The X Menu stuff is present in the X10 distribution, but missing
26119 ## from X11. If we have X10, just use the installed library;
26120 ## otherwise, use our own copy.
26121 if test "${HAVE_X11}" = "yes" ; then
26123 cat >>confdefs.h <<\_ACEOF
26128 if test "$USE_X_TOOLKIT" = "none
"; then
26129 OLDXMENU="\
${oldXMenudir}libXMenu11.a
"
26131 OLDXMENU="\
${lwlibdir}liblw.a
"
26133 LIBXMENU="\$
(OLDXMENU
)"
26139 if test "$HAVE_GTK" = "yes"; then
26147 if test "${HAVE_MENUS}" = "yes" ; then
26149 cat >>confdefs.h <<\_ACEOF
26150 #define HAVE_MENUS 1
26154 if test "${GNU_MALLOC}" = "yes" ; then
26156 cat >>confdefs.h <<\_ACEOF
26157 #define GNU_MALLOC 1
26161 if test "${REL_ALLOC}" = "yes" ; then
26163 cat >>confdefs.h <<\_ACEOF
26164 #define REL_ALLOC 1
26170 if test "$opsys" = "cygwin
"; then
26171 CYGWIN_OBJ="sheap.o
"
26172 ## Cygwin differs because of its unexec().
26174 POST_ALLOC_OBJ="lastfile.o vm-limit.o
"
26177 PRE_ALLOC_OBJ=lastfile.o
26178 POST_ALLOC_OBJ="\$
(vmlimitobj
)"
26188 #### Report on what we decided to do.
26189 #### Report GTK as a toolkit, even if it doesn't use Xt.
26190 #### It makes printing result more understandable as using GTK sets
26191 #### toolkit_scroll_bars to yes by default.
26192 if test "${HAVE_GTK}" = "yes"; then
26197 Configured
for \
`${canonical}'.
26199 Where should the build process find the source code? ${srcdir}
26200 What operating system and machine description files should Emacs use?
26201 \`${opsysfile}' and \`${machfile}'
26202 What compiler should emacs be built with?
${CC} ${CFLAGS}
26203 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
26204 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
26205 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
26206 What window system should Emacs use?
${window_system}
26207 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
26209 if test -n "${x_includes}"; then
26210 echo " Where
do we
find X Windows header files?
${x_includes}"
26212 echo " Where
do we
find X Windows header files? Standard
dirs"
26214 if test -n "${x_libraries}"; then
26215 echo " Where
do we
find X Windows libraries?
${x_libraries}"
26217 echo " Where
do we
find X Windows libraries? Standard
dirs"
26220 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
26221 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
26222 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
26223 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
26224 echo " Does Emacs use a gif library?
${HAVE_GIF} $LIBGIF"
26225 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
26226 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
26227 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
26228 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
26229 echo " Does Emacs use
-lgconf?
${HAVE_GCONF}"
26230 echo " Does Emacs use
-lselinux?
${HAVE_LIBSELINUX}"
26232 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
26233 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
26234 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
26235 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
26237 echo " Does Emacs use toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
26240 if test $USE_XASSERTS = yes; then
26241 echo " Compiling with asserts turned on.
"
26242 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26247 if test "$HAVE_NS" = "yes"; then
26249 echo "You must run
\"make install\" in order to
test the built application.
26250 The installed application will go to nextstep
/Emacs.app and can be
26251 run or moved from there.
"
26252 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26253 echo "The application will be fully self-contained.
"
26255 echo "The lisp resources
for the application will be installed under
${prefix}.
26256 You may need to run
\"make install\" with sudo. The application will fail
26257 to run
if these resources are not installed.
"
26262 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
26263 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
26268 # Remove any trailing slashes in these variables.
26269 test "${prefix}" != NONE &&
26270 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26271 test "${exec_prefix}" != NONE &&
26272 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26274 # Now get this: Some word that is part of the ${srcdir} directory name
26275 # or the ${configuration} value might, just might, happen to be an
26276 # identifier like `sun4' or `i386' or something, and be predefined by
26277 # the C preprocessor to some helpful value like 1, or maybe the empty
26278 # string. Needless to say consequent macro substitutions are less
26279 # than conducive to the makefile finding the correct directory.
26280 cpp_undefs="`echo $srcdir $configuration $canonical unix |
26281 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26282 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26284 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26285 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26286 ## from Makefile.c can correctly provide the arg `-traditional' to the
26289 cat >conftest.$ac_ext <<_ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h. */
26297 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
26298 $EGREP "yes..
yes" >/dev/null 2>&1; then
26299 CPP_NEED_TRADITIONAL=no
26301 CPP_NEED_TRADITIONAL=yes
26306 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile
doc
/emacs
/Makefile
doc
/misc
/Makefile
doc
/lispintro
/Makefile
doc
/lispref
/Makefile src
/Makefile.c
:src
/Makefile.
in lwlib
/Makefile lisp
/Makefile leim
/Makefile
"
26308 ac_config_commands="$ac_config_commands default
"
26310 cat >confcache <<\_ACEOF
26311 # This file is a shell script that caches the results of configure
26312 # tests run on this system so they can be shared between configure
26313 # scripts and configure runs, see configure's option --config-cache.
26314 # It is not useful on other systems. If it contains results you don't
26315 # want to keep, you may remove or edit it.
26317 # config.status only pays attention to the cache file if you give it
26318 # the --recheck option to rerun configure.
26320 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26321 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26322 # following values.
26326 # The following way of writing the cache mishandles newlines in values,
26327 # but we know of no workaround that is simple, portable, and efficient.
26328 # So, we kill variables containing newlines.
26329 # Ultrix sh set writes to stderr and can't be redirected directly,
26330 # and sets the high bit in the cache file unless we assign to the vars.
26332 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26333 eval ac_val=\$$ac_var
26337 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
26338 $as_echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
26341 _ | IFS | as_nl) ;; #(
26342 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26343 *) $as_unset $ac_var ;;
26349 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26350 *${as_nl}ac_space=\ *)
26351 # `set' does not quote correctly, so add quotes (double-quote
26352 # substitution turns \\\\ into \\, and sed turns \\ into \).
26355 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
26358 # `set' quotes correctly as required by POSIX, so do not add quotes.
26359 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
26368 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26370 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26372 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26373 if test -w "$cache_file"; then
26374 test "x
$cache_file" != "x
/dev
/null
" &&
26375 { $as_echo "$as_me:$LINENO: updating cache
$cache_file" >&5
26376 $as_echo "$as_me: updating cache
$cache_file" >&6;}
26377 cat confcache >$cache_file
26379 { $as_echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
26380 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
26385 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
26386 # Let make expand exec_prefix.
26387 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
26389 DEFS=-DHAVE_CONFIG_H
26393 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
26394 # 1. Remove the extension, and $U if already installed.
26395 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26396 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26397 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26398 # will be set to the directory where LIBOBJS objects are built.
26399 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
26400 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
26402 LIBOBJS=$ac_libobjs
26404 LTLIBOBJS=$ac_ltlibobjs
26408 : ${CONFIG_STATUS=./config.status}
26410 ac_clean_files_save=$ac_clean_files
26411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26412 { $as_echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
26413 $as_echo "$as_me: creating
$CONFIG_STATUS" >&6;}
26414 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26416 # Generated by $as_me.
26417 # Run this file to recreate the current configuration.
26418 # Compiler output produced by configure, useful for debugging
26419 # configure, is in config.log if it exists.
26422 ac_cs_recheck=false
26424 SHELL=\${CONFIG_SHELL-$SHELL}
26427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26428 ## --------------------- ##
26429 ## M4sh Initialization. ##
26430 ## --------------------- ##
26432 # Be more Bourne compatible
26433 DUALCASE=1; export DUALCASE # for MKS sh
26434 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26437 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26438 # is contrary to our usage. Disable this feature.
26439 alias -g '${1+"$@"}'='"$@
"'
26440 setopt NO_GLOB_SUBST
26442 case `(set -o) 2>/dev/null` in
26443 *posix*) set -o posix ;;
26452 # Avoid depending upon Character Ranges.
26453 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26454 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26455 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26456 as_cr_digits='0123456789'
26457 as_cr_alnum=$as_cr_Letters$as_cr_digits
26462 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26463 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26464 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26465 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26466 if (test "X
`printf %s $as_echo`" = "X
$as_echo") 2>/dev/null; then
26467 as_echo='printf %s\n'
26468 as_echo_n='printf %s'
26470 if test "X
`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n
$as_echo"; then
26471 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26472 as_echo_n='/usr/ucb/echo -n'
26474 as_echo_body='eval expr "X
$1" : "X
\\(.
*\\)"'
26475 as_echo_n_body='eval
26479 expr "X
$arg" : "X
\\(.
*\\)$as_nl";
26480 arg=`expr "X
$arg" : ".
*$as_nl\\(.
*\\)"`;;
26482 expr "X
$arg" : "X
\\(.
*\\)" | tr -d "$as_nl"
26484 export as_echo_n_body
26485 as_echo_n='sh -c $as_echo_n_body as_echo'
26487 export as_echo_body
26488 as_echo='sh -c $as_echo_body as_echo'
26491 # The user is always right.
26492 if test "${PATH_SEPARATOR+set}" != set; then
26494 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26495 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26500 # Support unset when possible.
26501 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26509 # We need space, tab and new line, in precisely that order. Quoting is
26510 # there to prevent editors from complaining about space-tab.
26511 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26512 # splitting by setting IFS to empty value.)
26515 # Find who we are. Look in the path if we contain no directory separator.
26517 *[\\/]* ) as_myself=$0 ;;
26518 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26519 for as_dir in $PATH
26522 test -z "$as_dir" && as_dir=.
26523 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26529 # We did not find ourselves, most probably we were run as `sh COMMAND'
26530 # in which case we are not to be found in the path.
26531 if test "x
$as_myself" = x; then
26534 if test ! -f "$as_myself"; then
26535 $as_echo "$as_myself: error
: cannot
find myself
; rerun with an absolute
file name
" >&2
26536 { (exit 1); exit 1; }
26539 # Work around bugs in pre-3.0 UWIN ksh.
26540 for as_var in ENV MAIL MAILPATH
26541 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26553 # Required to use basename.
26554 if expr a : '\(a\)' >/dev/null 2>&1 &&
26555 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
26561 if (basename -- /) >/dev/null 2>&1 && test "X
`basename -- / 2>&1`" = "X
/"; then
26562 as_basename=basename
26568 # Name of the executable.
26569 as_me=`$as_basename -- "$0" ||
26570 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26571 X"$0" : 'X\(//\)$' \| \
26572 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26574 sed '/^.*\/\([^/][^/]*\)\/*$/{
26593 as_lineno_1=$LINENO
26594 as_lineno_2=$LINENO
26595 test "x
$as_lineno_1" != "x
$as_lineno_2" &&
26596 test "x
`expr $as_lineno_1 + 1`" = "x
$as_lineno_2" || {
26598 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26599 # uniformly replaced by the line number. The first 'sed' inserts a
26600 # line-number line after each line using $LINENO; the second 'sed'
26601 # does the real work. The second script uses 'N' to pair each
26602 # line-number line with the line containing $LINENO, and appends
26603 # trailing '-' during substitution so that $LINENO is not a special
26604 # case at line end.
26605 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26606 # scripts with optimization help from Paolo Bonzini. Blame Lee
26607 # E. McMahon (1931-1989) for sed's syntax. :-)
26619 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26622 ' >$as_me.lineno &&
26623 chmod +x "$as_me.lineno
" ||
26624 { $as_echo "$as_me: error
: cannot create
$as_me.lineno
; rerun with a POSIX shell
" >&2
26625 { (exit 1); exit 1; }; }
26627 # Don't try to exec as it changes $[0], causing all sort of problems
26628 # (the dirname of $[0] is not the place where we might find the
26629 # original and so on. Autoconf is especially sensitive to this).
26630 . ".
/$as_me.lineno
"
26631 # Exit status is that of the last command.
26636 if (as_dir=`dirname -- /` && test "X
$as_dir" = X/) >/dev/null 2>&1; then
26642 ECHO_C= ECHO_N= ECHO_T=
26643 case `echo -n x` in
26645 case `echo 'x\c'` in
26646 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26652 if expr a : '\(a\)' >/dev/null 2>&1 &&
26653 test "X
`expr 00001 : '.*\(...\)'`" = X001; then
26659 rm -f conf$$ conf$$.exe conf$$.file
26660 if test -d conf$$.dir; then
26661 rm -f conf$$.dir/conf$$.file
26664 mkdir conf$$.dir 2>/dev/null
26666 if (echo >conf$$.file) 2>/dev/null; then
26667 if ln -s conf$$.file conf$$ 2>/dev/null; then
26669 # ... but there are two gotchas:
26670 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26671 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26672 # In both cases, we have to default to `cp -p'.
26673 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26675 elif ln conf$$.file conf$$ 2>/dev/null; then
26683 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26684 rmdir conf$$.dir 2>/dev/null
26686 if mkdir -p . 2>/dev/null; then
26689 test -d ./-p && rmdir ./-p
26693 if test -x / >/dev/null 2>&1; then
26694 as_test_x='test -x'
26696 if ls -dL / >/dev/null 2>&1; then
26703 if test -d "$1"; then
26709 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26710 ???[sx]*):;;*)false;;esac;fi
26714 as_executable_p=$as_test_x
26716 # Sed expression to map a string onto a valid CPP name.
26717 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26719 # Sed expression to map a string onto a valid variable name.
26720 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26725 # Save the log message, to keep $[0] and so on meaningful, and to
26726 # report actual input values of CONFIG_FILES etc. instead of their
26727 # values after options handling.
26729 This
file was extended by emacs
$as_me 24.0.50, which was
26730 generated by GNU Autoconf
2.62. Invocation
command line was
26732 CONFIG_FILES
= $CONFIG_FILES
26733 CONFIG_HEADERS
= $CONFIG_HEADERS
26734 CONFIG_LINKS
= $CONFIG_LINKS
26735 CONFIG_COMMANDS
= $CONFIG_COMMANDS
26738 on
`(hostname || uname -n) 2>/dev/null | sed 1q`
26743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26744 # Files that config.status was made for.
26745 config_files="$ac_config_files"
26746 config_headers="$ac_config_headers"
26747 config_commands="$ac_config_commands"
26751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26753 \
`$as_me' instantiates files from templates according to the
26754 current configuration.
26756 Usage: $0 [OPTIONS] [FILE]...
26758 -h, --help print this help, then exit
26759 -V, --version print version number and configuration settings, then exit
26760 -q, --quiet do not print progress messages
26761 -d, --debug don't remove temporary files
26762 --recheck update $as_me by reconfiguring in the same conditions
26763 --file=FILE[:TEMPLATE]
26764 instantiate the configuration file FILE
26765 --header=FILE[:TEMPLATE]
26766 instantiate the configuration header FILE
26768 Configuration files:
26771 Configuration headers:
26774 Configuration commands:
26777 Report bugs to <bug-autoconf@gnu.org>."
26780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26782 emacs config.status 24.0.50
26783 configured by $0, generated by GNU Autoconf 2.62,
26784 with options \\"`$as_echo "$ac_configure_args" |
sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26786 Copyright (C) 2008 Free Software Foundation, Inc.
26787 This config.status script is free software; the Free Software Foundation
26788 gives unlimited permission to copy, distribute and modify it."
26793 test -n "\$AWK" || AWK=awk
26796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26797 # The default lists apply if the user does not specify any file.
26803 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26804 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26815 # Handling of the options.
26816 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26818 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26819 $as_echo "$ac_cs_version"; exit ;;
26820 --debug | --debu | --deb | --de | --d | -d )
26822 --file | --fil | --fi | --f )
26825 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
26827 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26828 ac_need_defaults=false;;
26829 --header | --heade | --head | --hea )
26832 *\'*) ac_optarg=`$as_echo "$ac_optarg" |
sed "s/'/'\\\\\\\\''/g"` ;;
26834 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26835 ac_need_defaults=false;;
26837 # Conflict between --help and --header
26838 { $as_echo "$as_me: error: ambiguous option: $1
26839 Try \`$0 --help' for more information." >&2
26840 { (exit 1); exit 1; }; };;
26841 --help | --hel | -h )
26842 $as_echo "$ac_cs_usage"; exit ;;
26843 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26844 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26847 # This is an error.
26848 -*) { $as_echo "$as_me: error: unrecognized option: $1
26849 Try \`$0 --help' for more information.
" >&2
26850 { (exit 1); exit 1; }; } ;;
26852 *) ac_config_targets="$ac_config_targets $1"
26853 ac_need_defaults=false ;;
26859 ac_configure_extra_args=
26861 if $ac_cs_silent; then
26863 ac_configure_extra_args="$ac_configure_extra_args --silent"
26867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26868 if \$ac_cs_recheck; then
26869 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26871 \$as_echo "running CONFIG_SHELL
=$SHELL \$
*" >&6
26872 CONFIG_SHELL='$SHELL'
26873 export CONFIG_SHELL
26878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26882 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26883 ## Running $as_me. ##
26889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26893 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26899 # Handling of arguments.
26900 for ac_config_target in $ac_config_targets
26902 case $ac_config_target in
26903 "src
/config.h
") CONFIG_HEADERS="$CONFIG_HEADERS src
/config.h
:src
/config.
in" ;;
26904 "Makefile
") CONFIG_FILES="$CONFIG_FILES Makefile
" ;;
26905 "lib-src
/Makefile.c
") CONFIG_FILES="$CONFIG_FILES lib-src
/Makefile.c
:lib-src
/Makefile.
in" ;;
26906 "oldXMenu
/Makefile
") CONFIG_FILES="$CONFIG_FILES oldXMenu
/Makefile
" ;;
26907 "doc
/emacs
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/emacs
/Makefile
" ;;
26908 "doc
/misc
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/misc
/Makefile
" ;;
26909 "doc
/lispintro
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/lispintro
/Makefile
" ;;
26910 "doc
/lispref
/Makefile
") CONFIG_FILES="$CONFIG_FILES doc
/lispref
/Makefile
" ;;
26911 "src
/Makefile.c
") CONFIG_FILES="$CONFIG_FILES src
/Makefile.c
:src
/Makefile.
in" ;;
26912 "lwlib
/Makefile
") CONFIG_FILES="$CONFIG_FILES lwlib
/Makefile
" ;;
26913 "lisp
/Makefile
") CONFIG_FILES="$CONFIG_FILES lisp
/Makefile
" ;;
26914 "leim
/Makefile
") CONFIG_FILES="$CONFIG_FILES leim
/Makefile
" ;;
26915 "default
") CONFIG_COMMANDS="$CONFIG_COMMANDS default
" ;;
26917 *) { { $as_echo "$as_me:$LINENO: error
: invalid argument
: $ac_config_target" >&5
26918 $as_echo "$as_me: error
: invalid argument
: $ac_config_target" >&2;}
26919 { (exit 1); exit 1; }; };;
26924 # If the user did not use the arguments to specify the items to instantiate,
26925 # then the envvar interface is used. Set only those that are not.
26926 # We use the long form for the default assignment because of an extremely
26927 # bizarre bug on SunOS 4.1.3.
26928 if $ac_need_defaults; then
26929 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26930 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26931 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26934 # Have a temporary directory for convenience. Make it in the build tree
26935 # simply because there is no reason against having it here, and in addition,
26936 # creating and moving files from /tmp can sometimes cause problems.
26937 # Hook for its removal unless debugging.
26938 # Note that there is a small window in which the directory will not be cleaned:
26939 # after its creation but before its name has been assigned to `$tmp'.
26943 trap 'exit_status=$?
26944 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26946 trap '{ (exit 1); exit 1; }' 1 2 13 15
26948 # Create a (secure) tmp directory for tmp files.
26951 tmp=`(umask 077 && mktemp -d ".
/confXXXXXX
") 2>/dev/null` &&
26952 test -n "$tmp" && test -d "$tmp"
26955 tmp=./conf$$-$RANDOM
26956 (umask 077 && mkdir "$tmp")
26959 $as_echo "$as_me: cannot create a temporary directory
in .
" >&2
26960 { (exit 1); exit 1; }
26963 # Set up the scripts for CONFIG_FILES section.
26964 # No need to generate them if there are no CONFIG_FILES.
26965 # This happens for instance with `./config.status config.h'.
26966 if test -n "$CONFIG_FILES"; then
26970 ac_cs_awk_cr=`$AWK 'BEGIN { print "a
\rb
" }' </dev/null 2>/dev/null`
26971 if test "$ac_cs_awk_cr" = "a
${ac_cr}b
"; then
26974 ac_cs_awk_cr=$ac_cr
26977 echo 'BEGIN {' >"$tmp/subs1.
awk" &&
26982 echo "cat >conf$
$subs.
awk <<_ACEOF" &&
26983 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26985 } >conf$$subs.sh ||
26986 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26987 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26988 { (exit 1); exit 1; }; }
26989 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26991 for ac_last_try in false false false false false :; do
26992 . ./conf$$subs.sh ||
26993 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
26994 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
26995 { (exit 1); exit 1; }; }
26997 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26999 elif $ac_last_try; then
27000 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27001 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27002 { (exit 1); exit 1; }; }
27004 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27007 rm -f conf$$subs.sh
27009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27010 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27014 s/^/S["/; s
/!.
*/"]=/
27024 s/\(.\{148\}\).*/\1/
27026 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27031 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27038 s/\(.\{148\}\).*/\1/
27040 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27044 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27049 ' <conf$$subs.awk | sed '
27054 ' >>$CONFIG_STATUS || ac_write_fail=1
27055 rm -f conf$$subs.awk
27056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27058 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27059 for (key in S) S_is_set[key] = 1
27065 nfields = split(line, field, "@
")
27067 len = length(field[1])
27068 for (i = 2; i < nfields; i++) {
27070 keylen = length(key)
27071 if (S_is_set[key]) {
27073 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27074 len += length(value) + length(field[++i])
27085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27086 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27087 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27090 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27091 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
27092 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
27093 { (exit 1); exit 1; }; }
27096 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27097 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27098 # trailing colons and then remove the whole line if VPATH becomes empty
27099 # (actually we leave an empty line to preserve line numbers).
27100 if test "x
$srcdir" = x.; then
27101 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27102 s/:*\$(srcdir):*/:/
27103 s/:*\${srcdir}:*/:/
27105 s/^\([^=]*=[ ]*\):*/\1/
27111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27112 fi # test -n "$CONFIG_FILES"
27114 # Set up the scripts for CONFIG_HEADERS section.
27115 # No need to generate them if there are no CONFIG_HEADERS.
27116 # This happens for instance with `./config.status Makefile'.
27117 if test -n "$CONFIG_HEADERS"; then
27118 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27122 # Transform confdefs.h into an awk script `defines.awk', embedded as
27123 # here-document in config.status, that substitutes the proper values into
27124 # config.h.in to produce config.h.
27126 # Create a delimiter string that does not exist in confdefs.h, to ease
27127 # handling of long lines.
27129 for ac_last_try in false false :; do
27130 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27131 if test -z "$ac_t"; then
27133 elif $ac_last_try; then
27134 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
27135 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
27136 { (exit 1); exit 1; }; }
27138 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27142 # For the awk script, D is an array of macro values keyed by name,
27143 # likewise P contains macro parameters if any. Preserve backslash
27144 # newline sequences.
27146 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27148 s/.\{148\}/&'"$ac_delim"'/g
27151 s/^[ ]*#[ ]*define[ ][ ]*/ /
27158 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27160 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27164 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27165 D["\
1"]=" \
3\\\\\\n
"\\/p
27167 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27172 s/.\{148\}/&'"$ac_delim"'/g
27177 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27180 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27182 ' <confdefs.h | sed '
27183 s/'"$ac_delim"'/"\\\
27184 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27187 for (key in D) D_is_set[key] = 1
27190 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27192 split(line, arg, " ")
27193 if (arg[1] == "#") {
27197 defundef
= substr
(arg
[1], 2)
27200 split(mac1
, mac2
, "(") #)
27202 if (D_is_set
[macro
]) {
27203 # Preserve the white space surrounding the "#".
27204 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27205 print prefix
"define", macro P
[macro
] D
[macro
]
27208 # Replace #undef with comments. This is necessary, for example,
27209 # in the case of _POSIX_SOURCE, which is predefined and required
27210 # on some systems where configure will not decide to define it.
27211 if (defundef
== "undef") {
27212 print
"/*", line
, "*/"
27220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27221 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27222 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27223 { (exit 1); exit 1; }; }
27224 fi # test -n "$CONFIG_HEADERS"
27227 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27232 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27234 case $ac_mode$ac_tag in
27236 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27237 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27238 { (exit 1); exit 1; }; };;
27239 :[FH
]-) ac_tag
=-:-;;
27240 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27257 -) ac_f
="$tmp/stdin";;
27258 *) # Look for the file first in the build tree, then in the source tree
27259 # (if the path is not absolute). The absolute path cannot be DOS-style,
27260 # because $ac_f cannot contain `:'.
27264 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27266 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27267 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27268 { (exit 1); exit 1; }; };;
27270 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27271 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27274 # Let's still pretend it is `configure' which instantiates (i.e., don't
27275 # use $as_me), people would be surprised to read:
27276 # /* config.h. Generated by config.status. */
27277 configure_input
='Generated from '`
27278 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27280 if test x
"$ac_file" != x-
; then
27281 configure_input
="$ac_file. $configure_input"
27282 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27283 $as_echo "$as_me: creating $ac_file" >&6;}
27285 # Neutralize special characters interpreted by sed in replacement strings.
27286 case $configure_input in #(
27287 *\
&* |
*\|
* |
*\\* )
27288 ac_sed_conf_input
=`$as_echo "$configure_input" |
27289 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27290 *) ac_sed_conf_input
=$configure_input;;
27294 *:-:* |
*:-) cat >"$tmp/stdin" \
27295 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27296 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27297 { (exit 1); exit 1; }; } ;;
27302 ac_dir
=`$as_dirname -- "$ac_file" ||
27303 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27304 X"$ac_file" : 'X\(//\)[^/]' \| \
27305 X"$ac_file" : 'X\(//\)$' \| \
27306 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27307 $as_echo X"$ac_file" |
27308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27312 /^X\(\/\/\)[^/].*/{
27327 -*) as_dir
=.
/$as_dir;;
27329 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27334 *) as_qdir
=$as_dir;;
27336 as_dirs
="'$as_qdir' $as_dirs"
27337 as_dir
=`$as_dirname -- "$as_dir" ||
27338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27339 X"$as_dir" : 'X\(//\)[^/]' \| \
27340 X"$as_dir" : 'X\(//\)$' \| \
27341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27342 $as_echo X"$as_dir" |
27343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27347 /^X\(\/\/\)[^/].*/{
27360 test -d "$as_dir" && break
27362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27363 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27364 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27365 { (exit 1); exit 1; }; }; }
27369 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27371 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27372 # A ".." for each directory in $ac_dir_suffix.
27373 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27374 case $ac_top_builddir_sub in
27375 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27376 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27379 ac_abs_top_builddir
=$ac_pwd
27380 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27381 # for backward compatibility:
27382 ac_top_builddir
=$ac_top_build_prefix
27385 .
) # We are building in place.
27387 ac_top_srcdir
=$ac_top_builddir_sub
27388 ac_abs_top_srcdir
=$ac_pwd ;;
27389 [\\/]* | ?
:[\\/]* ) # Absolute name.
27390 ac_srcdir
=$srcdir$ac_dir_suffix;
27391 ac_top_srcdir
=$srcdir
27392 ac_abs_top_srcdir
=$srcdir ;;
27393 *) # Relative name.
27394 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27395 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27396 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27398 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27408 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27409 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27414 # If the template does not know about datarootdir, expand it.
27415 # FIXME: This hack should be removed a few years after 2.60.
27416 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27429 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27430 *datarootdir
*) ac_datarootdir_seen
=yes;;
27431 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27432 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27433 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27436 ac_datarootdir_hack='
27437 s&@datadir@&$datadir&g
27438 s&@docdir@&$docdir&g
27439 s&@infodir@&$infodir&g
27440 s&@localedir@&$localedir&g
27441 s&@mandir@&$mandir&g
27442 s&\\\${datarootdir}&$datarootdir&g' ;;
27446 # Neutralize VPATH when `$srcdir' = `.'.
27447 # Shell code in configure.ac might set extrasub.
27448 # FIXME: do we really want to maintain this feature?
27449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27450 ac_sed_extra="$ac_vpsub
27453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27455 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27456 s|@configure_input@|
$ac_sed_conf_input|
;t t
27457 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27458 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27459 s
&@srcdir@
&$ac_srcdir&;t t
27460 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27461 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27462 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27463 s
&@builddir@
&$ac_builddir&;t t
27464 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27465 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27466 s
&@INSTALL@
&$ac_INSTALL&;t t
27467 $ac_datarootdir_hack
27469 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27470 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27471 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27472 { (exit 1); exit 1; }; }
27474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27475 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27476 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27477 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27478 which seems to be undefined. Please make sure it is defined." >&5
27479 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27480 which seems to be undefined. Please make sure it is defined." >&2;}
27484 -) cat "$tmp/out" && rm -f "$tmp/out";;
27485 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27487 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27488 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27489 { (exit 1); exit 1; }; }
27495 if test x"$ac_file" != x-; then
27497 $as_echo "/* $configure_input */" \
27498 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27499 } >"$tmp/config.h" \
27500 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27501 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27502 { (exit 1); exit 1; }; }
27503 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27504 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27505 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27508 mv "$tmp/config.h" "$ac_file" \
27509 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27510 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27511 { (exit 1); exit 1; }; }
27514 $as_echo "/* $configure_input */" \
27515 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27516 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27517 $as_echo "$as_me: error: could not create -" >&2;}
27518 { (exit 1); exit 1; }; }
27522 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27523 $as_echo "$as_me: executing $ac_file commands" >&6;}
27528 case $ac_file$ac_mode in
27531 ### Make the necessary directories, if they don't exist.
27532 for dir
in etc lisp
; do
27533 test -d ${dir} || mkdir
${dir}
27536 # Build src/Makefile from ${srcdir}/src/Makefile.c
27537 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27538 # This must be done after src/config.h is built, since we rely on that file.
27540 echo creating src
/epaths.h
27541 ${MAKE-make} epaths-force
27543 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27544 # `..' to `. .' unless invoked with -traditional
27546 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27547 CPPFLAGS
="$CPPFLAGS -traditional"
27550 echo creating lib-src
/Makefile
27552 rm -f junk.c junk1.c junk2.c
27553 sed -e '/start of cpp stuff/q' \
27554 < Makefile.c
> junk1.c
27555 sed -e '1,/start of cpp stuff/d'\
27556 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27557 < Makefile.c
> junk.c
27558 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27559 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27560 cat junk1.c junk2.c
> Makefile.new
27561 rm -f junk.c junk1.c junk2.c
27562 chmod 444 Makefile.new
27563 mv -f Makefile.new Makefile
27566 echo creating src
/Makefile
27568 rm -f junk.c junk1.c junk2.c
27569 sed -e '/start of cpp stuff/q' \
27570 < Makefile.c
> junk1.c
27571 sed -e '1,/start of cpp stuff/d'\
27572 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27573 < Makefile.c
> junk.c
27574 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27575 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27576 cat junk1.c junk2.c
> Makefile.new
27577 rm -f junk.c junk1.c junk2.c
27578 chmod 444 Makefile.new
27579 mv -f Makefile.new Makefile
27582 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27583 echo creating src
/.gdbinit
27584 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27593 { (exit 0); exit 0; }
27595 chmod +x
$CONFIG_STATUS
27596 ac_clean_files
=$ac_clean_files_save
27598 test $ac_write_fail = 0 ||
27599 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27600 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27601 { (exit 1); exit 1; }; }
27604 # configure is writing to config.log, and then calls config.status.
27605 # config.status does its own redirection, appending to config.log.
27606 # Unfortunately, on DOS this fails, as config.log is still kept open
27607 # by configure, so config.status won't be able to write to it; its
27608 # output is simply discarded. So we exec the FD to /dev/null,
27609 # effectively closing config.log, so it can be properly (re)opened and
27610 # appended to by config.status. When coming back to configure, we
27611 # need to make the FD available again.
27612 if test "$no_create" != yes; then
27614 ac_config_status_args
=
27615 test "$silent" = yes &&
27616 ac_config_status_args
="$ac_config_status_args --quiet"
27618 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27620 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27621 # would make configure fail if this is the last instruction.
27622 $ac_cs_success ||
{ (exit 1); exit 1; }
27624 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27625 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27626 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}