2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
596 PACKAGE_TARNAME
='emacs'
597 PACKAGE_VERSION
='24.0.50'
598 PACKAGE_STRING
='emacs 24.0.50'
601 ac_unique_file
="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_config_libobj_dir
=src
650 program_transform_name
719 LD_SWITCH_X_SITE_AUX_RPATH
782 x_default_search_path
800 GNUSTEP_SYSTEM_HEADERS
801 GNUSTEP_SYSTEM_LIBRARIES
803 LIB_SRC_EXTRA_INSTALLABLES
816 LD_SWITCH_SYSTEM_TEMACS
817 LD_SWITCH_SYSTEM_EXTRA
821 enable_option_checking
841 with_toolkit_scroll_bars
855 enable_ns_self_contained
857 enable_maintainer_mode
865 ac_precious_vars
='build_alias
877 # Initialize some variables set by options.
879 ac_init_version
=false
880 ac_unrecognized_opts
=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
891 program_transform_name
=s
,x
,x
,
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir
='${exec_prefix}/bin'
906 sbindir
='${exec_prefix}/sbin'
907 libexecdir
='${exec_prefix}/libexec'
908 datarootdir
='${prefix}/share'
909 datadir
='${datarootdir}'
910 sysconfdir
='${prefix}/etc'
911 sharedstatedir
='${prefix}/com'
912 localstatedir
='${prefix}/var'
913 includedir
='${prefix}/include'
914 oldincludedir
='/usr/include'
915 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
916 infodir
='${datarootdir}/info'
921 libdir
='${exec_prefix}/lib'
922 localedir
='${datarootdir}/locale'
923 mandir
='${datarootdir}/man'
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
931 eval $ac_prev=\
$ac_option
937 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 # Accept the important Cygnus configure options, so we can diagnose typos.
943 case $ac_dashdash$ac_option in
947 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
949 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
952 -build |
--build |
--buil |
--bui |
--bu)
953 ac_prev
=build_alias
;;
954 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
955 build_alias
=$ac_optarg ;;
957 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
958 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
959 ac_prev
=cache_file
;;
960 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
961 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
962 cache_file
=$ac_optarg ;;
965 cache_file
=config.cache
;;
967 -datadir |
--datadir |
--datadi |
--datad)
969 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
970 datadir
=$ac_optarg ;;
972 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
973 |
--dataroo |
--dataro |
--datar)
974 ac_prev
=datarootdir
;;
975 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
976 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
977 datarootdir
=$ac_optarg ;;
979 -disable-* |
--disable-*)
980 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
983 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
984 { (exit 1); exit 1; }; }
985 ac_useropt_orig
=$ac_useropt
986 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
991 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep
=', ';;
994 eval enable_
$ac_useropt=no
;;
996 -docdir |
--docdir |
--docdi |
--doc |
--do)
998 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1001 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1003 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1004 dvidir
=$ac_optarg ;;
1006 -enable-* |
--enable-*)
1007 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1010 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1011 { (exit 1); exit 1; }; }
1012 ac_useropt_orig
=$ac_useropt
1013 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1016 "enable_
$ac_useropt"
1018 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019 ac_unrecognized_sep
=', ';;
1021 eval enable_
$ac_useropt=\
$ac_optarg ;;
1023 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1024 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1025 |
--exec |
--exe |
--ex)
1026 ac_prev
=exec_prefix
;;
1027 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1028 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1029 |
--exec=* |
--exe=* |
--ex=*)
1030 exec_prefix
=$ac_optarg ;;
1032 -gas |
--gas |
--ga |
--g)
1033 # Obsolete; use --with-gas.
1036 -help |
--help |
--hel |
--he |
-h)
1037 ac_init_help
=long
;;
1038 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1039 ac_init_help
=recursive
;;
1040 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1041 ac_init_help
=short
;;
1043 -host |
--host |
--hos |
--ho)
1044 ac_prev
=host_alias
;;
1045 -host=* |
--host=* |
--hos=* |
--ho=*)
1046 host_alias
=$ac_optarg ;;
1048 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1050 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1052 htmldir
=$ac_optarg ;;
1054 -includedir |
--includedir |
--includedi |
--included |
--include \
1055 |
--includ |
--inclu |
--incl |
--inc)
1056 ac_prev
=includedir
;;
1057 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1058 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1059 includedir
=$ac_optarg ;;
1061 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1063 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1064 infodir
=$ac_optarg ;;
1066 -libdir |
--libdir |
--libdi |
--libd)
1068 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1069 libdir
=$ac_optarg ;;
1071 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1072 |
--libexe |
--libex |
--libe)
1073 ac_prev
=libexecdir
;;
1074 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1075 |
--libexe=* |
--libex=* |
--libe=*)
1076 libexecdir
=$ac_optarg ;;
1078 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1079 ac_prev
=localedir
;;
1080 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1081 localedir
=$ac_optarg ;;
1083 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1084 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1085 ac_prev
=localstatedir
;;
1086 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1087 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1088 localstatedir
=$ac_optarg ;;
1090 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1092 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1093 mandir
=$ac_optarg ;;
1095 -nfp |
--nfp |
--nf)
1096 # Obsolete; use --without-fp.
1099 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1100 |
--no-cr |
--no-c |
-n)
1103 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1104 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1107 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1108 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1109 |
--oldin |
--oldi |
--old |
--ol |
--o)
1110 ac_prev
=oldincludedir
;;
1111 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1112 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1113 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1114 oldincludedir
=$ac_optarg ;;
1116 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1118 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1119 prefix
=$ac_optarg ;;
1121 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1122 |
--program-pre |
--program-pr |
--program-p)
1123 ac_prev
=program_prefix
;;
1124 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1125 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1126 program_prefix
=$ac_optarg ;;
1128 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1129 |
--program-suf |
--program-su |
--program-s)
1130 ac_prev
=program_suffix
;;
1131 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1132 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1133 program_suffix
=$ac_optarg ;;
1135 -program-transform-name |
--program-transform-name \
1136 |
--program-transform-nam |
--program-transform-na \
1137 |
--program-transform-n |
--program-transform- \
1138 |
--program-transform |
--program-transfor \
1139 |
--program-transfo |
--program-transf \
1140 |
--program-trans |
--program-tran \
1141 |
--progr-tra |
--program-tr |
--program-t)
1142 ac_prev
=program_transform_name
;;
1143 -program-transform-name=* |
--program-transform-name=* \
1144 |
--program-transform-nam=* |
--program-transform-na=* \
1145 |
--program-transform-n=* |
--program-transform-=* \
1146 |
--program-transform=* |
--program-transfor=* \
1147 |
--program-transfo=* |
--program-transf=* \
1148 |
--program-trans=* |
--program-tran=* \
1149 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1150 program_transform_name
=$ac_optarg ;;
1152 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1154 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1155 pdfdir
=$ac_optarg ;;
1157 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1159 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1162 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1163 |
-silent |
--silent |
--silen |
--sile |
--sil)
1166 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1168 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1170 sbindir
=$ac_optarg ;;
1172 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1173 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1174 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1176 ac_prev
=sharedstatedir
;;
1177 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1178 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1179 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1181 sharedstatedir
=$ac_optarg ;;
1183 -site |
--site |
--sit)
1185 -site=* |
--site=* |
--sit=*)
1188 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1190 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1191 srcdir
=$ac_optarg ;;
1193 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1194 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1195 ac_prev
=sysconfdir
;;
1196 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1197 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1198 sysconfdir
=$ac_optarg ;;
1200 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1201 ac_prev
=target_alias
;;
1202 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1203 target_alias
=$ac_optarg ;;
1205 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1208 -version |
--version |
--versio |
--versi |
--vers |
-V)
1209 ac_init_version
=: ;;
1212 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1215 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1216 { (exit 1); exit 1; }; }
1217 ac_useropt_orig
=$ac_useropt
1218 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1223 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep
=', ';;
1226 eval with_
$ac_useropt=\
$ac_optarg ;;
1228 -without-* |
--without-*)
1229 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1232 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1233 { (exit 1); exit 1; }; }
1234 ac_useropt_orig
=$ac_useropt
1235 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1240 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep
=', ';;
1243 eval with_
$ac_useropt=no
;;
1246 # Obsolete; use --with-x.
1249 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1250 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1251 ac_prev
=x_includes
;;
1252 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1253 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1254 x_includes
=$ac_optarg ;;
1256 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1257 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1258 ac_prev
=x_libraries
;;
1259 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1260 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1261 x_libraries
=$ac_optarg ;;
1263 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1264 Try \`$0 --help' for more information." >&2
1265 { (exit 1); exit 1; }; }
1269 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1272 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1273 { (exit 1); exit 1; }; }
1274 eval $ac_envvar=\
$ac_optarg
1275 export $ac_envvar ;;
1278 # FIXME: should be removed in autoconf 3.0.
1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288 if test -n "$ac_prev"; then
1289 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1290 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1291 { (exit 1); exit 1; }; }
1294 if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1297 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1298 { (exit 1); exit 1; }; } ;;
1299 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303 # Check all directory arguments for consistency.
1304 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305 datadir sysconfdir sharedstatedir localstatedir includedir \
1306 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307 libdir localedir mandir
1309 eval ac_val
=\$
$ac_var
1310 # Remove trailing slashes.
1313 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314 eval $ac_var=\
$ac_val;;
1316 # Be sure to have absolute directory names.
1318 [\\/$
]* | ?
:[\\/]* ) continue;;
1319 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1321 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1322 { (exit 1); exit 1; }; }
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1330 target
=$target_alias
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x
; then
1334 if test "x$build_alias" = x
; then
1335 cross_compiling
=maybe
1336 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1337 If a cross compiler is detected then cross compile mode will be used." >&2
1338 elif test "x$build_alias" != "x$host_alias"; then
1344 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1346 test "$silent" = yes && exec 6>/dev
/null
1349 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1350 ac_ls_di
=`ls -di .` &&
1351 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1352 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1353 { (exit 1); exit 1; }; }
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1356 { (exit 1); exit 1; }; }
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361 ac_srcdir_defaulted
=yes
1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir
=`$as_dirname -- "$as_myself" ||
1364 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368 $as_echo X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1391 ac_srcdir_defaulted
=no
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1395 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1396 { (exit 1); exit 1; }; }
1398 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1401 { (exit 1); exit 1; }; }
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1411 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 for ac_var
in $ac_precious_vars; do
1414 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1416 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1421 # Report the --help message.
1423 if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1427 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE. See below for descriptions of some of the useful variables.
1434 Defaults for the options are specified in brackets.
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
1441 -q, --quiet, --silent do not print \`checking...' messages
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1447 Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1458 For better control, use the options below.
1460 Fine tuning of the installation directories:
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
1485 --program-prefix=PREFIX prepend PREFIX to installed program names
1486 --program-suffix=SUFFIX append SUFFIX to installed program names
1487 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1490 --x-includes=DIR X include files are
in DIR
1491 --x-libraries=DIR X library files are
in DIR
1494 --build=BUILD configure
for building on BUILD
[guessed
]
1495 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1499 if test -n "$ac_init_help"; then
1500 case $ac_init_help in
1501 short | recursive
) echo "Configuration of emacs 24.0.50:";;
1506 --disable-option-checking ignore unrecognized
--enable/--with options
1507 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1508 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1509 --disable-ns-self-contained
1510 disable self contained build under NeXTstep
1511 --enable-asserts compile code with asserts enabled
1512 --enable-maintainer-mode
1513 enable make rules and dependencies not useful
(and
1514 sometimes confusing
) to the casual installer
1515 --enable-locallisppath=PATH
1516 directories Emacs should search
for lisp files
1517 specific to this site
1518 --enable-checking[=LIST
]
1519 enable expensive run-time checks. With LIST
, enable
1520 only specific categories of checks. Categories are
:
1521 all
,yes,no. Flags are
: stringbytes
, stringoverrun
,
1522 stringfreelist
, xmallocoverrun
, conslist
1523 --enable-profiling build emacs with profiling support. This might not
1524 work on all platforms
1525 --enable-autodepend automatically generate dependencies to .h-files.
1526 Requires GNU Make and Gcc. Enabled
if GNU Make and
1528 --disable-largefile omit support
for large files
1531 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1532 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1533 --without-pop don
't support POP mail retrieval with movemail
1534 --with-kerberos support Kerberos-authenticated POP
1535 --with-kerberos5 support Kerberos version 5 authenticated POP
1536 --with-hesiod support Hesiod to get the POP server host
1537 --with-mmdf support MMDF mailboxes
1538 --with-mail-unlink unlink, rather than empty, mail spool after reading
1539 --with-mailhost=HOSTNAME
1540 string giving default POP mail host
1541 --without-sound don't compile with sound support
1542 --without-sync-input process async input synchronously
1543 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes or gtk
, lucid or
1545 --without-xpm don
't compile with XPM image support
1546 --without-jpeg don't compile with JPEG image support
1547 --without-tiff don
't compile with TIFF image support
1548 --without-gif don't compile with GIF image support
1549 --without-png don
't compile with PNG image support
1550 --without-rsvg don't compile with SVG image support
1551 --without-xft don
't use XFT for anti aliased fonts
1552 --without-libotf don't use libotf
for OpenType font support
1553 --without-m17n-flt don
't use m17n-flt for text shaping
1554 --without-toolkit-scroll-bars
1555 don't use Motif or Xaw3d scroll bars
1556 --without-xaw3d don
't use Xaw3d
1557 --without-xim don't use X11 XIM
1558 --with-ns use nextstep
(Cocoa or GNUstep
) windowing system
1559 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1561 --without-dbus don't compile with D-Bus support
1562 --without-gconf don
't compile with GConf support
1563 --without-selinux don't compile with SELinux support
1564 --without-makeinfo don
't require makeinfo for building manuals
1566 --with-pkg-config-prog=PATH
1567 path to pkg-config for finding GTK and librsvg
1568 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1569 /usr/lib, or /usr/lib64 on some platforms.
1570 --with-gnustep-conf=PATH
1571 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1572 or /etc/GNUstep/GNUstep.conf
1573 --with-x use the X Window System
1575 Some influential environment variables:
1576 CC C compiler command
1577 CFLAGS C compiler flags
1578 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1579 nonstandard directory <lib dir>
1580 LIBS libraries to pass to the linker, e.g. -l<library>
1581 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1582 you have headers in a nonstandard directory <include dir>
1584 XMKMF Path to xmkmf, Makefile generator for X Window System
1586 Use these variables to override the choices made by `configure' or to
help
1587 it to
find libraries and programs with nonstandard names
/locations.
1593 if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
1595 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1596 test -d "$ac_dir" ||
1597 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1602 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1604 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1609 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1612 ac_abs_top_builddir
=$ac_pwd
1613 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1614 # for backward compatibility:
1615 ac_top_builddir
=$ac_top_build_prefix
1618 .
) # We are building in place.
1620 ac_top_srcdir
=$ac_top_builddir_sub
1621 ac_abs_top_srcdir
=$ac_pwd ;;
1622 [\\/]* | ?
:[\\/]* ) # Absolute name.
1623 ac_srcdir
=$srcdir$ac_dir_suffix;
1624 ac_top_srcdir
=$srcdir
1625 ac_abs_top_srcdir
=$srcdir ;;
1627 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1631 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1633 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1640 $SHELL "$ac_srcdir/configure" --help=recursive
1642 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1644 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1648 test -n "$ac_init_help" && exit $ac_status
1649 if $ac_init_version; then
1651 emacs configure
24.0.50
1652 generated by GNU Autoconf
2.62
1654 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1655 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1656 This configure
script is free software
; the Free Software Foundation
1657 gives unlimited permission to copy
, distribute and modify it.
1661 cat >config.log
<<_ACEOF
1662 This file contains any messages produced by compilers while
1663 running configure, to aid debugging if configure makes a mistake.
1665 It was created by emacs $as_me 24.0.50, which was
1666 generated by GNU Autoconf 2.62. Invocation command line was
1678 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1679 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1680 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1681 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1682 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1684 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1685 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1687 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1688 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1689 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1690 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1691 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1692 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1693 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1701 test -z "$as_dir" && as_dir
=.
1702 $as_echo "PATH: $as_dir"
1718 # Keep a trace of the command line.
1719 # Strip out --no-create and --no-recursion so they do not pile up.
1720 # Strip out --silent because we don't want to record it for future runs.
1721 # Also quote any args containing shell meta-characters.
1722 # Make two passes to allow for proper duplicate-argument suppression.
1726 ac_must_keep_next
=false
1732 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1733 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1734 |
-silent |
--silent |
--silen |
--sile |
--sil)
1737 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1740 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1742 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1743 if test $ac_must_keep_next = true
; then
1744 ac_must_keep_next
=false
# Got value, back to normal.
1747 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1748 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1749 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1750 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1751 case "$ac_configure_args0 " in
1752 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1755 -* ) ac_must_keep_next
=true
;;
1758 ac_configure_args
="$ac_configure_args '$ac_arg'"
1763 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1764 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1766 # When interrupted or exit'd, cleanup temporary files, and complete
1767 # config.log. We remove comments because anyway the quotes in there
1768 # would cause problems or look ugly.
1769 # WARNING: Use '\'' to represent an apostrophe within the trap.
1770 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1771 trap 'exit_status=$?
1772 # Save into config.log some information that might help in debugging.
1777 ## ---------------- ##
1778 ## Cache variables. ##
1779 ## ---------------- ##
1782 # The following way of writing the cache mishandles newlines in values,
1784 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1785 eval ac_val=\$$ac_var
1789 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1790 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1793 _ | IFS | as_nl) ;; #(
1794 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1795 *) $as_unset $ac_var ;;
1800 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1801 *${as_nl}ac_space=\ *)
1803 "s/'\''/'\''\\\\'\'''\''/g;
1804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1807 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1815 ## ----------------- ##
1816 ## Output variables. ##
1817 ## ----------------- ##
1820 for ac_var in $ac_subst_vars
1822 eval ac_val=\$$ac_var
1824 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826 $as_echo "$ac_var='\''$ac_val'\''"
1830 if test -n "$ac_subst_files"; then
1832 ## ------------------- ##
1833 ## File substitutions. ##
1834 ## ------------------- ##
1837 for ac_var
in $ac_subst_files
1839 eval ac_val
=\$
$ac_var
1841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 $as_echo "$ac_var='\''$ac_val'\''"
1848 if test -s confdefs.h; then
1858 test "$ac_signal" != 0 &&
1859 $as_echo "$as_me: caught signal $ac_signal"
1860 $as_echo "$as_me: exit $exit_status"
1862 rm -f core *.core core.conftest.* &&
1863 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1866 for ac_signal
in 1 2 13 15; do
1867 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1871 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1872 rm -f -r conftest
* confdefs.h
1874 # Predefined preprocessor variables.
1876 cat >>confdefs.h
<<_ACEOF
1877 #define PACKAGE_NAME "$PACKAGE_NAME"
1881 cat >>confdefs.h
<<_ACEOF
1882 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1886 cat >>confdefs.h
<<_ACEOF
1887 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1891 cat >>confdefs.h
<<_ACEOF
1892 #define PACKAGE_STRING "$PACKAGE_STRING"
1896 cat >>confdefs.h
<<_ACEOF
1897 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1901 # Let the site file select an alternate cache file if it wants to.
1902 # Prefer an explicitly selected file to automatically selected ones.
1905 if test -n "$CONFIG_SITE"; then
1906 ac_site_file1
=$CONFIG_SITE
1907 elif test "x$prefix" != xNONE
; then
1908 ac_site_file1
=$prefix/share
/config.site
1909 ac_site_file2
=$prefix/etc
/config.site
1911 ac_site_file1
=$ac_default_prefix/share
/config.site
1912 ac_site_file2
=$ac_default_prefix/etc
/config.site
1914 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1916 test "x$ac_site_file" = xNONE
&& continue
1917 if test -r "$ac_site_file"; then
1918 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1919 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1920 sed 's/^/| /' "$ac_site_file" >&5
1925 if test -r "$cache_file"; then
1926 # Some versions of bash will fail to source /dev/null (special
1927 # files actually), so we avoid doing that.
1928 if test -f "$cache_file"; then
1929 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1930 $as_echo "$as_me: loading cache $cache_file" >&6;}
1932 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1933 *) .
"./$cache_file";;
1937 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1938 $as_echo "$as_me: creating cache $cache_file" >&6;}
1942 ac_header_list
="$ac_header_list sys/time.h"
1943 ac_header_list
="$ac_header_list unistd.h"
1944 ac_func_list
="$ac_func_list alarm"
1945 # Check that the precious variables saved in the cache have kept the same
1947 ac_cache_corrupted
=false
1948 for ac_var
in $ac_precious_vars; do
1949 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1950 eval ac_new_set
=\
$ac_env_${ac_var}_set
1951 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1952 eval ac_new_val
=\
$ac_env_${ac_var}_value
1953 case $ac_old_set,$ac_new_set in
1955 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1956 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1957 ac_cache_corrupted
=: ;;
1959 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1960 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1961 ac_cache_corrupted
=: ;;
1964 if test "x$ac_old_val" != "x$ac_new_val"; then
1965 # differences in whitespace do not lead to failure.
1966 ac_old_val_w
=`echo x $ac_old_val`
1967 ac_new_val_w
=`echo x $ac_new_val`
1968 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1969 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1970 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1971 ac_cache_corrupted
=:
1973 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1974 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1975 eval $ac_var=\
$ac_old_val
1977 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1978 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1979 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1980 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1983 # Pass precious variables to config.status.
1984 if test "$ac_new_set" = set; then
1986 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1987 *) ac_arg
=$ac_var=$ac_new_val ;;
1989 case " $ac_configure_args " in
1990 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1991 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1995 if $ac_cache_corrupted; then
1996 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1997 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1998 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1999 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2000 { (exit 1); exit 1; }; }
2028 ac_cpp
='$CPP $CPPFLAGS'
2029 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2034 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
2038 test "$program_prefix" != NONE
&&
2039 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2040 # Use a double $ so make ignores it.
2041 test "$program_suffix" != NONE
&&
2042 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2043 # Double any \ or $.
2044 # By default was `s,x,x', remove it if useless.
2045 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2046 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2049 lispdir
='${datadir}/emacs/${version}/lisp'
2050 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
2051 '${datadir}/emacs/site-lisp'
2052 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2053 etcdir
='${datadir}/emacs/${version}/etc'
2054 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
2055 docdir
='${datadir}/emacs/${version}/etc'
2056 gamedir
='${localstatedir}/games/emacs'
2063 # Check whether --with-pop was given.
2064 if test "${with_pop+set}" = set; then
2070 if test "$with_pop" = yes; then
2071 cat >>confdefs.h
<<\_ACEOF
2072 #define MAIL_USE_POP 1
2079 # Check whether --with-kerberos was given.
2080 if test "${with_kerberos+set}" = set; then
2081 withval
=$with_kerberos;
2086 if test "$with_kerberos" != no
; then
2087 cat >>confdefs.h
<<\_ACEOF
2095 # Check whether --with-kerberos5 was given.
2096 if test "${with_kerberos5+set}" = set; then
2097 withval
=$with_kerberos5;
2102 if test "${with_kerberos5}" != no
; then
2103 if test "${with_kerberos}" = no
; then
2105 cat >>confdefs.h
<<\_ACEOF
2111 cat >>confdefs.h
<<\_ACEOF
2118 # Check whether --with-hesiod was given.
2119 if test "${with_hesiod+set}" = set; then
2120 withval
=$with_hesiod;
2125 if test "$with_hesiod" != no
; then
2127 cat >>confdefs.h
<<\_ACEOF
2134 # Check whether --with-mmdf was given.
2135 if test "${with_mmdf+set}" = set; then
2141 if test "$with_mmdf" != no
; then
2143 cat >>confdefs.h
<<\_ACEOF
2144 #define MAIL_USE_MMDF 1
2150 # Check whether --with-mail-unlink was given.
2151 if test "${with_mail_unlink+set}" = set; then
2152 withval
=$with_mail_unlink;
2157 if test "$with_mail_unlink" != no
; then
2159 cat >>confdefs.h
<<\_ACEOF
2160 #define MAIL_UNLINK_SPOOL 1
2166 # Check whether --with-mailhost was given.
2167 if test "${with_mailhost+set}" = set; then
2168 withval
=$with_mailhost;
2169 cat >>confdefs.h
<<_ACEOF
2170 #define MAILHOST "$withval"
2177 # Check whether --with-sound was given.
2178 if test "${with_sound+set}" = set; then
2179 withval
=$with_sound;
2186 # Check whether --with-sync-input was given.
2187 if test "${with_sync_input+set}" = set; then
2188 withval
=$with_sync_input;
2193 if test "$with_sync_input" = yes; then
2195 cat >>confdefs.h
<<\_ACEOF
2196 #define SYNC_INPUT 1
2202 # Check whether --with-x-toolkit was given.
2203 if test "${with_x_toolkit+set}" = set; then
2204 withval
=$with_x_toolkit; case "${withval}" in
2205 y | ye |
yes ) val
=gtk
;;
2207 l | lu | luc | luci | lucid
) val
=lucid
;;
2208 a |
at | ath | athe | athen | athena
) val
=athena
;;
2209 m | mo | mot | moti | motif
) val
=motif
;;
2210 g | gt | gtk
) val
=gtk
;;
2212 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2213 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2214 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2215 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2216 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2217 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2218 { (exit 1); exit 1; }; }
2227 # Check whether --with-xpm was given.
2228 if test "${with_xpm+set}" = set; then
2235 # Check whether --with-jpeg was given.
2236 if test "${with_jpeg+set}" = set; then
2243 # Check whether --with-tiff was given.
2244 if test "${with_tiff+set}" = set; then
2251 # Check whether --with-gif was given.
2252 if test "${with_gif+set}" = set; then
2259 # Check whether --with-png was given.
2260 if test "${with_png+set}" = set; then
2267 # Check whether --with-rsvg was given.
2268 if test "${with_rsvg+set}" = set; then
2276 # Check whether --with-xft was given.
2277 if test "${with_xft+set}" = set; then
2284 # Check whether --with-libotf was given.
2285 if test "${with_libotf+set}" = set; then
2286 withval
=$with_libotf;
2292 # Check whether --with-m17n-flt was given.
2293 if test "${with_m17n_flt+set}" = set; then
2294 withval
=$with_m17n_flt;
2301 # Check whether --with-toolkit-scroll-bars was given.
2302 if test "${with_toolkit_scroll_bars+set}" = set; then
2303 withval
=$with_toolkit_scroll_bars;
2305 with_toolkit_scroll_bars
=yes
2309 # Check whether --with-xaw3d was given.
2310 if test "${with_xaw3d+set}" = set; then
2311 withval
=$with_xaw3d;
2317 # Check whether --with-xim was given.
2318 if test "${with_xim+set}" = set; then
2325 # Check whether --with-ns was given.
2326 if test "${with_ns+set}" = set; then
2334 # Check whether --with-gpm was given.
2335 if test "${with_gpm+set}" = set; then
2342 # Check whether --with-dbus was given.
2343 if test "${with_dbus+set}" = set; then
2350 # Check whether --with-gconf was given.
2351 if test "${with_gconf+set}" = set; then
2352 withval
=$with_gconf;
2358 # Check whether --with-selinux was given.
2359 if test "${with_selinux+set}" = set; then
2360 withval
=$with_selinux;
2366 ## For the times when you want to build Emacs but don't have
2367 ## a suitable makeinfo, and can live without the manuals.
2369 # Check whether --with-makeinfo was given.
2370 if test "${with_makeinfo+set}" = set; then
2371 withval
=$with_makeinfo;
2378 # Check whether --with-gtk was given.
2379 if test "${with_gtk+set}" = set; then
2380 withval
=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2381 specify a toolkit." >&5
2382 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2383 specify a toolkit." >&2;}
2384 { (exit 1); exit 1; }; }
2389 # Check whether --with-gcc was given.
2390 if test "${with_gcc+set}" = set; then
2391 withval
=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2392 variable to specify a compiler." >&5
2393 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2394 variable to specify a compiler." >&2;}
2395 { (exit 1); exit 1; }; }
2400 # Check whether --with-pkg-config-prog was given.
2401 if test "${with_pkg_config_prog+set}" = set; then
2402 withval
=$with_pkg_config_prog;
2405 if test "X${with_pkg_config_prog}" != X
; then
2406 if test "${with_pkg_config_prog}" != yes; then
2407 PKG_CONFIG
="${with_pkg_config_prog}"
2413 # Check whether --with-crt-dir was given.
2414 if test "${with_crt_dir+set}" = set; then
2415 withval
=$with_crt_dir;
2418 CRT_DIR
="${with_crt_dir}"
2421 # Check whether --with-gnustep-conf was given.
2422 if test "${with_gnustep_conf+set}" = set; then
2423 withval
=$with_gnustep_conf;
2426 test "X${with_gnustep_conf}" != X
&& test "${with_gnustep_conf}" != yes && \
2427 GNUSTEP_CONFIG_FILE
="${with_gnustep_conf}"
2428 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2429 GNUSTEP_CONFIG_FILE
=/etc
/GNUstep
/GNUstep.conf
2431 # Check whether --enable-ns-self-contained was given.
2432 if test "${enable_ns_self_contained+set}" = set; then
2433 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2435 EN_NS_SELF_CONTAINED
=yes
2439 # Check whether --enable-asserts was given.
2440 if test "${enable_asserts+set}" = set; then
2441 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2447 # Check whether --enable-maintainer-mode was given.
2448 if test "${enable_maintainer_mode+set}" = set; then
2449 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2451 USE_MAINTAINER_MODE
=no
2454 if test $USE_MAINTAINER_MODE = yes; then
2461 # Check whether --enable-locallisppath was given.
2462 if test "${enable_locallisppath+set}" = set; then
2463 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2465 elif test "${enableval}" != "yes"; then
2466 locallisppath
=${enableval}
2471 # Check whether --enable-checking was given.
2472 if test "${enable_checking+set}" = set; then
2473 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
2476 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
2477 for check
in $ac_checking_flags
2480 # these set all the flags to specific states
2481 yes) ac_enable_checking
=1 ;;
2482 no
) ac_enable_checking
= ;
2483 ac_gc_check_stringbytes
= ;
2484 ac_gc_check_string_overrun
= ;
2485 ac_gc_check_string_free_list
= ;
2486 ac_xmalloc_overrun
= ;
2487 ac_gc_check_cons_list
= ;;
2488 all
) ac_enable_checking
=1 ;
2489 ac_gc_check_stringbytes
=1 ;
2490 ac_gc_check_string_overrun
=1 ;
2491 ac_gc_check_string_free_list
=1 ;
2492 ac_xmalloc_overrun
=1 ;
2493 ac_gc_check_cons_list
=1 ;;
2494 # these enable particular checks
2495 stringbytes
) ac_gc_check_stringbytes
=1 ;;
2496 stringoverrun
) ac_gc_check_string_overrun
=1 ;;
2497 stringfreelist
) ac_gc_check_string_free_list
=1 ;;
2498 xmallocoverrun
) ac_xmalloc_overrun
=1 ;;
2499 conslist
) ac_gc_check_cons_list
=1 ;;
2500 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2501 $as_echo "$as_me: error: unknown check category $check" >&2;}
2502 { (exit 1); exit 1; }; } ;;
2507 if test x
$ac_enable_checking != x
; then
2509 cat >>confdefs.h
<<\_ACEOF
2510 #define ENABLE_CHECKING 1
2514 if test x
$ac_gc_check_stringbytes != x
; then
2516 cat >>confdefs.h
<<\_ACEOF
2517 #define GC_CHECK_STRING_BYTES 1
2521 if test x
$ac_gc_check_stringoverrun != x
; then
2523 cat >>confdefs.h
<<\_ACEOF
2524 #define GC_CHECK_STRING_OVERRUN 1
2528 if test x
$ac_gc_check_string_free_list != x
; then
2530 cat >>confdefs.h
<<\_ACEOF
2531 #define GC_CHECK_STRING_FREE_LIST 1
2535 if test x
$ac_xmalloc_overrun != x
; then
2537 cat >>confdefs.h
<<\_ACEOF
2538 #define XMALLOC_OVERRUN_CHECK 1
2542 if test x
$ac_gc_check_cons_list != x
; then
2544 cat >>confdefs.h
<<\_ACEOF
2545 #define GC_CHECK_CONS_LIST 1
2550 # Check whether --enable-profiling was given.
2551 if test "${enable_profiling+set}" = set; then
2552 enableval
=$enable_profiling; ac_enable_profiling
="${enableval}"
2555 if test x
$ac_enable_profiling != x
; then
2556 PROFILING_CFLAGS
="-DPROFILING=1 -pg"
2557 PROFILING_LDFLAGS
="-pg"
2563 # Check whether --enable-autodepend was given.
2564 if test "${enable_autodepend+set}" = set; then
2565 enableval
=$enable_autodepend; ac_enable_autodepend
="${enableval}"
2567 ac_enable_autodepend
=yes
2571 #### Make srcdir absolute, if it isn't already. It's important to
2572 #### avoid running the path through pwd unnecessarily, since pwd can
2573 #### give you automounter prefixes, which can go away. We do all this
2574 #### so Emacs can find its files when run uninstalled.
2575 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2580 ## We may be able to use the $PWD environment variable to make this
2581 ## absolute. But sometimes PWD is inaccurate.
2582 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2583 ## but that tested only for a well-formed and valid PWD,
2584 ## it did not object when PWD was well-formed and valid but just wrong.
2585 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2589 srcdir
="`(cd ${srcdir}; pwd)`"
2592 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2595 #### Check if the source directory already has a configured system in it.
2596 if test `pwd` != `(cd ${srcdir} && pwd)` \
2597 && test -f "${srcdir}/src/config.h" ; then
2598 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2599 as a build directory right now; it has been configured in its own
2600 right. To configure in another directory as well, you MUST
2601 use GNU make. If you do not have GNU make, then you must
2602 now do \`make distclean' in ${srcdir},
2603 and then run $0 again." >&5
2604 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2605 as a build directory right now; it has been configured in its own
2606 right. To configure in another directory as well, you MUST
2607 use GNU make. If you do not have GNU make, then you must
2608 now do \`make distclean' in ${srcdir},
2609 and then run $0 again." >&2;}
2612 #### Given the configuration name, set machfile and opsysfile to the
2613 #### names of the m/*.h and s/*.h files we should use.
2615 ### Canonicalize the configuration name.
2618 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2619 if test -f "$ac_dir/install-sh"; then
2621 ac_install_sh
="$ac_aux_dir/install-sh -c"
2623 elif test -f "$ac_dir/install.sh"; then
2625 ac_install_sh
="$ac_aux_dir/install.sh -c"
2627 elif test -f "$ac_dir/shtool"; then
2629 ac_install_sh
="$ac_aux_dir/shtool install -c"
2633 if test -z "$ac_aux_dir"; then
2634 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2635 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2636 { (exit 1); exit 1; }; }
2639 # These three variables are undocumented and unsupported,
2640 # and are intended to be withdrawn in a future Autoconf release.
2641 # They can cause serious problems if a builder's source tree is in a directory
2642 # whose full name contains unusual characters.
2643 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2644 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2645 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2648 # Make sure we can run config.sub.
2649 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2650 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2651 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2652 { (exit 1); exit 1; }; }
2654 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2655 $as_echo_n "checking build system type... " >&6; }
2656 if test "${ac_cv_build+set}" = set; then
2657 $as_echo_n "(cached) " >&6
2659 ac_build_alias
=$build_alias
2660 test "x$ac_build_alias" = x
&&
2661 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2662 test "x$ac_build_alias" = x
&&
2663 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2664 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2665 { (exit 1); exit 1; }; }
2666 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2667 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2668 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2669 { (exit 1); exit 1; }; }
2672 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2673 $as_echo "$ac_cv_build" >&6; }
2674 case $ac_cv_build in
2676 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2677 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2678 { (exit 1); exit 1; }; };;
2681 ac_save_IFS
=$IFS; IFS
='-'
2687 # Remember, the first character of IFS is used to create $*,
2688 # except with old shells:
2691 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2694 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2695 $as_echo_n "checking host system type... " >&6; }
2696 if test "${ac_cv_host+set}" = set; then
2697 $as_echo_n "(cached) " >&6
2699 if test "x$host_alias" = x
; then
2700 ac_cv_host
=$ac_cv_build
2702 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2703 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2704 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2705 { (exit 1); exit 1; }; }
2709 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2710 $as_echo "$ac_cv_host" >&6; }
2713 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2714 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2715 { (exit 1); exit 1; }; };;
2718 ac_save_IFS
=$IFS; IFS
='-'
2724 # Remember, the first character of IFS is used to create $*,
2725 # except with old shells:
2728 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2732 configuration
=${host_alias-${build_alias-$host}}
2736 ### If you add support for a new configuration, add code to this
2737 ### switch statement to recognize your configuration name and select
2738 ### the appropriate operating system and machine description files.
2740 ### You would hope that you could choose an m/*.h file pretty much
2741 ### based on the machine portion of the configuration name, and an s-
2742 ### file based on the operating system portion. However, it turns out
2743 ### that each m/*.h file is pretty manufacturer-specific - for
2744 ### example mips.h is MIPS
2745 ### So we basically have to have a special case for each
2746 ### configuration name.
2748 ### As far as handling version numbers on operating systems is
2749 ### concerned, make sure things will fail in a fixable way. If
2750 ### /etc/MACHINES doesn't say anything about version numbers, be
2751 ### prepared to handle anything reasonably. If version numbers
2752 ### matter, be sure /etc/MACHINES says something about it.
2754 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2755 ### "System V Release 4"; he writes, "The old convention encouraged
2756 ### confusion between `system' and `release' levels'."
2758 machine
='' opsys
='' unported
=no
2759 case "${canonical}" in
2764 case "${canonical}" in
2765 alpha
*-*-freebsd*) machine
=alpha
;;
2766 arm
*-*-freebsd*) machine
=arm
;;
2767 ia64-
*-freebsd*) machine
=ia64
;;
2768 sparc-
*-freebsd*) machine
=sparc
;;
2769 sparc64-
*-freebsd*) machine
=sparc
;;
2770 powerpc-
*-freebsd*) machine
=macppc
;;
2771 i
[3456]86-*-freebsd*) machine
=intel386
;;
2772 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2776 ## FreeBSD kernel + glibc based userland
2779 case "${canonical}" in
2780 alpha
*-*-kfreebsd*) machine
=alpha
;;
2781 ia64-
*-kfreebsd*) machine
=ia64
;;
2782 sparc-
*-kfreebsd*) machine
=sparc
;;
2783 sparc64-
*-kfreebsd*) machine
=sparc
;;
2784 powerpc-
*-kfreebsd*) machine
=macppc
;;
2785 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2786 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2793 case "${canonical}" in
2794 alpha
*-*-netbsd*) machine
=alpha
;;
2795 i
[3456]86-*-netbsd*) machine
=intel386
;;
2796 mips-
*-netbsd*) machine
=mips
;;
2797 mipsel-
*-netbsd*) machine
=mips
;;
2798 mipseb-
*-netbsd*) machine
=mips
;;
2799 powerpc-
*-netbsd*) machine
=macppc
;;
2800 sparc
*-*-netbsd*) machine
=sparc
;;
2801 vax-
*-netbsd*) machine
=vax
;;
2802 arm-
*-netbsd*) machine
=arm
;;
2803 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2804 hppa-
*-netbsd*) machine
=hp800
;;
2805 m68k-
*-netbsd*) machine
=m68k
;;
2812 case "${canonical}" in
2813 alpha
*-*-openbsd*) machine
=alpha
;;
2814 arm-
*-openbsd*) machine
=arm
;;
2815 i386-
*-openbsd*) machine
=intel386
;;
2816 powerpc-
*-openbsd*) machine
=macppc
;;
2817 sparc
*-*-openbsd*) machine
=sparc
;;
2818 vax-
*-openbsd*) machine
=vax
;;
2819 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2820 hppa-
*-openbsd*) machine
=hp800
;;
2824 alpha
*-*-linux-gnu* )
2825 machine
=alpha opsys
=gnu-linux
2829 machine
=arm opsys
=gnu-linux
2832 ## Apple Darwin / Mac OS X
2834 case "${canonical}" in
2835 i
[3456]86-* ) machine
=intel386
;;
2836 powerpc-
* ) machine
=macppc
;;
2837 x86_64-
* ) machine
=amdx86-64
;;
2841 # Define CPP as follows to make autoconf work correctly.
2842 CPP
="${CC-cc} -E -no-cpp-precomp"
2843 # Use fink packages if available.
2844 if test -d /sw
/include
&& test -d /sw
/lib
; then
2845 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2846 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2847 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2851 ## HP 9000 series 700 and 800, running HP/UX
2852 hppa
*-hp-hpux10.2
* )
2853 machine
=hp800 opsys
=hpux10-20
2855 hppa
*-hp-hpux1[1-9]* )
2856 machine
=hp800 opsys
=hpux11
2857 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2860 hppa
*-*-linux-gnu* )
2861 machine
=hp800 opsys
=gnu-linux
2866 machine
=ibms390 opsys
=gnu-linux
2868 s390x-
*-linux-gnu* )
2869 machine
=ibms390x opsys
=gnu-linux
2871 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2872 machine
=ibmrs6000 opsys
=aix4-2
2874 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2875 machine
=ibmrs6000 opsys
=aix4-2
2877 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2878 machine
=ibmrs6000 opsys
=aix4-2
2880 rs6000-ibm-aix6
* | powerpc-ibm-aix6
* )
2881 machine
=ibmrs6000 opsys
=aix4-2
2884 ## Macintosh PowerPC
2885 powerpc
*-*-linux-gnu* )
2886 machine
=macppc opsys
=gnu-linux
2889 ## Silicon Graphics machines
2892 machine
=iris4d opsys
=irix6-5
2893 # Without defining _LANGUAGE_C, things get masked out in the headers
2894 # so that, for instance, grepping for `free' in stdlib.h fails and
2895 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2896 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2897 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2901 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2902 machine
=sparc opsys
=gnu-linux
2906 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* \
2907 | x86_64-
*-solaris2* | x86_64-
*-sunos5*)
2908 case "${canonical}" in
2909 i
[3456]86-*-* ) machine
=intel386
;;
2910 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2911 sparc
* ) machine
=sparc
;;
2914 case "${canonical}" in
2915 *-sunos5.6
* |
*-solaris2.6
* )
2917 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2920 *-sunos5.
[7-9]* |
*-solaris2.
[7-9]* )
2922 emacs_check_sunpro_c
=yes
2923 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2925 *-sunos5* |
*-solaris* )
2927 emacs_check_sunpro_c
=yes
2928 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2931 ## Watch out for a compiler that we know will not work.
2932 case "${canonical}" in
2933 *-solaris* |
*-sunos5* )
2934 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2935 ## /usr/ucb/cc doesn't work;
2936 ## we should find some other compiler that does work.
2946 machine
=ia64 opsys
=gnu-linux
2949 ## Intel 386 machines where we don't care about the manufacturer
2952 case "${canonical}" in
2953 *-cygwin ) opsys
=cygwin
;;
2954 *-darwin* ) opsys
=darwin
2955 CPP
="${CC-cc} -E -no-cpp-precomp"
2957 *-linux-gnu* ) opsys
=gnu-linux
;;
2958 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2959 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2960 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2961 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2965 ## m68k Linux-based GNU system
2967 machine
=m68k opsys
=gnu-linux
2970 ## Mips Linux-based GNU system
2971 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* \
2972 | mips64-
*-linux-gnu* | mips64el-
*-linux-gnu* )
2973 machine
=mips opsys
=gnu-linux
2976 ## AMD x86-64 Linux-based GNU system
2977 x86_64-
*-linux-gnu* )
2978 machine
=amdx86-64 opsys
=gnu-linux
2981 ## Tensilica Xtensa Linux-based GNU system
2982 xtensa
*-*-linux-gnu* )
2983 machine
=xtensa opsys
=gnu-linux
2986 ## SuperH Linux-based GNU system
2987 sh
[34]*-*-linux-gnu* )
2988 machine
=sh3 opsys
=gnu-linux
2996 ### If the code above didn't choose an operating system, just choose
2997 ### an operating system based on the configuration name. You really
2998 ### only want to use this when you have no idea what the right
2999 ### operating system is; if you know what operating systems a machine
3000 ### runs, it's cleaner to make it explicit in the case statement
3002 if test x
"${opsys}" = x
; then
3003 case "${canonical}" in
3004 *-gnu* ) opsys
=gnu
;;
3013 if test $unported = yes; then
3014 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3015 Check \`etc/MACHINES' for recognized configuration names." >&5
3016 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3017 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3018 { (exit 1); exit 1; }; }
3021 machfile
="m/${machine}.h"
3022 opsysfile
="s/${opsys}.h"
3025 #### Choose a compiler.
3026 test -n "$CC" && cc_specified
=yes
3028 # Save the value of CFLAGS that the user specified.
3029 SPECIFIED_CFLAGS
="$CFLAGS"
3032 ac_cpp
='$CPP $CPPFLAGS'
3033 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3036 if test -n "$ac_tool_prefix"; then
3037 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3038 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3039 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then
3042 $as_echo_n "(cached) " >&6
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC
="$CC" # Let the user override the test.
3047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3051 test -z "$as_dir" && as_dir
=.
3052 for ac_exec_ext
in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 if test -n "$CC"; then
3066 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3069 { $as_echo "$as_me:$LINENO: result: no" >&5
3070 $as_echo "no" >&6; }
3075 if test -z "$ac_cv_prog_CC"; then
3077 # Extract the first word of "gcc", so it can be a program name with args.
3078 set dummy gcc
; ac_word
=$2
3079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3082 $as_echo_n "(cached) " >&6
3084 if test -n "$ac_ct_CC"; then
3085 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3091 test -z "$as_dir" && as_dir
=.
3092 for ac_exec_ext
in '' $ac_executable_extensions; do
3093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094 ac_cv_prog_ac_ct_CC
="gcc"
3095 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3105 if test -n "$ac_ct_CC"; then
3106 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3107 $as_echo "$ac_ct_CC" >&6; }
3109 { $as_echo "$as_me:$LINENO: result: no" >&5
3110 $as_echo "no" >&6; }
3113 if test "x$ac_ct_CC" = x
; then
3116 case $cross_compiling:$ac_tool_warned in
3118 { $as_echo "$as_me:$LINENO: 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." >&5
3121 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3122 whose name does not start with the host triplet. If you think this
3123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3124 ac_tool_warned
=yes ;;
3132 if test -z "$CC"; then
3133 if test -n "$ac_tool_prefix"; then
3134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3135 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if test "${ac_cv_prog_CC+set}" = set; then
3139 $as_echo_n "(cached) " >&6
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC
="$CC" # Let the user override the test.
3144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3148 test -z "$as_dir" && as_dir
=.
3149 for ac_exec_ext
in '' $ac_executable_extensions; do
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 if test -n "$CC"; then
3163 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3164 $as_echo "$CC" >&6; }
3166 { $as_echo "$as_me:$LINENO: result: no" >&5
3167 $as_echo "no" >&6; }
3173 if test -z "$CC"; then
3174 # Extract the first word of "cc", so it can be a program name with args.
3175 set dummy cc
; ac_word
=$2
3176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_CC+set}" = set; then
3179 $as_echo_n "(cached) " >&6
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC
="$CC" # Let the user override the test.
3185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3189 test -z "$as_dir" && as_dir
=.
3190 for ac_exec_ext
in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3193 ac_prog_rejected
=yes
3197 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 if test $ac_prog_rejected = yes; then
3205 # We found a bogon in the path, so make sure we never use it.
3206 set dummy
$ac_cv_prog_CC
3208 if test $# != 0; then
3209 # We chose a different compiler from the bogus one.
3210 # However, it has the same basename, so the bogon will be chosen
3211 # first if we set CC to just the basename; use the full file name.
3213 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3219 if test -n "$CC"; then
3220 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3221 $as_echo "$CC" >&6; }
3223 { $as_echo "$as_me:$LINENO: result: no" >&5
3224 $as_echo "no" >&6; }
3229 if test -z "$CC"; then
3230 if test -n "$ac_tool_prefix"; then
3231 for ac_prog
in cl.exe
3233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3234 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if test "${ac_cv_prog_CC+set}" = set; then
3238 $as_echo_n "(cached) " >&6
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC
="$CC" # Let the user override the test.
3243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3247 test -z "$as_dir" && as_dir
=.
3248 for ac_exec_ext
in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 if test -n "$CC"; then
3262 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3265 { $as_echo "$as_me:$LINENO: result: no" >&5
3266 $as_echo "no" >&6; }
3270 test -n "$CC" && break
3273 if test -z "$CC"; then
3275 for ac_prog
in cl.exe
3277 # Extract the first word of "$ac_prog", so it can be a program name with args.
3278 set dummy
$ac_prog; ac_word
=$2
3279 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3282 $as_echo_n "(cached) " >&6
3284 if test -n "$ac_ct_CC"; then
3285 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir
=.
3292 for ac_exec_ext
in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_ac_ct_CC
="$ac_prog"
3295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3305 if test -n "$ac_ct_CC"; then
3306 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3307 $as_echo "$ac_ct_CC" >&6; }
3309 { $as_echo "$as_me:$LINENO: result: no" >&5
3310 $as_echo "no" >&6; }
3314 test -n "$ac_ct_CC" && break
3317 if test "x$ac_ct_CC" = x
; then
3320 case $cross_compiling:$ac_tool_warned in
3322 { $as_echo "$as_me:$LINENO: 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." >&5
3325 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3326 whose name does not start with the host triplet. If you think this
3327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3328 ac_tool_warned
=yes ;;
3337 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3338 See \`config.log' for more details." >&5
3339 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3340 See \`config.log' for more details." >&2;}
3341 { (exit 1); exit 1; }; }
3343 # Provide some information about the compiler.
3344 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3347 { (ac_try
="$ac_compiler --version >&5"
3349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3353 $as_echo "$ac_try_echo") >&5
3354 (eval "$ac_compiler --version >&5") 2>&5
3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }
3358 { (ac_try="$ac_compiler -v >&5"
3360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3361 *) ac_try_echo
=$ac_try;;
3363 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3364 $as_echo "$ac_try_echo") >&5
3365 (eval "$ac_compiler -v >&5") 2>&5
3367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); }
3369 { (ac_try
="$ac_compiler -V >&5"
3371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3375 $as_echo "$ac_try_echo") >&5
3376 (eval "$ac_compiler -V >&5") 2>&5
3378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3396 ac_clean_files_save=$ac_clean_files
3397 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3398 # Try to create an executable without -o first, disregard a.out.
3399 # It will help us diagnose broken compilers, and finding out an intuition
3401 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3402 $as_echo_n "checking for C compiler default output file name... " >&6; }
3403 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3405 # The possible output files:
3406 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3409 for ac_file in $ac_files
3412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3413 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3418 if { (ac_try="$ac_link_default"
3420 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3421 *) ac_try_echo
=$ac_try;;
3423 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3424 $as_echo "$ac_try_echo") >&5
3425 (eval "$ac_link_default") 2>&5
3427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; then
3429 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3430 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3431 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3432 # so that the user can short-circuit this test for compilers unknown to
3434 for ac_file
in $ac_files ''
3436 test -f "$ac_file" ||
continue
3438 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3441 # We found the default executable, but exeext='' is most
3445 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3447 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3449 # We set ac_cv_exeext here because the later test for it is not
3450 # safe: cross compilers may not add the suffix if given an `-o'
3451 # argument, so we may need to know it at that point already.
3452 # Even if this section looks crufty: it has the advantage of
3459 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3465 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3466 $as_echo "$ac_file" >&6; }
3467 if test -z "$ac_file"; then
3468 $as_echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.
$ac_ext >&5
3471 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3472 See \`config.log' for more details." >&5
3473 $as_echo "$as_me: error: C compiler cannot create executables
3474 See \`config.log' for more details." >&2;}
3475 { (exit 77); exit 77; }; }
3478 ac_exeext
=$ac_cv_exeext
3480 # Check that the compiler produces executables we can run. If not, either
3481 # the compiler is broken, or we cross compile.
3482 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3483 $as_echo_n "checking whether the C compiler works... " >&6; }
3484 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3485 # If not cross compiling, check that we can run a simple program.
3486 if test "$cross_compiling" != yes; then
3487 if { ac_try
='./$ac_file'
3488 { (case "(($ac_try" in
3489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3493 $as_echo "$ac_try_echo") >&5
3494 (eval "$ac_try") 2>&5
3496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
3500 if test "$cross_compiling" = maybe; then
3503 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3504 If you meant to cross compile, use \`--host'.
3505 See \`config.log' for more details.
" >&5
3506 $as_echo "$as_me: error
: cannot run C compiled programs.
3507 If you meant to cross compile
, use \
`--host'.
3508 See \`config.log
' for more details." >&2;}
3509 { (exit 1); exit 1; }; }
3513 { $as_echo "$as_me:$LINENO: result: yes" >&5
3514 $as_echo "yes" >&6; }
3516 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3517 ac_clean_files=$ac_clean_files_save
3518 # Check that the compiler produces executables we can run. If not, either
3519 # the compiler is broken, or we cross compile.
3520 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3521 $as_echo_n "checking whether we are cross compiling... " >&6; }
3522 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3523 $as_echo "$cross_compiling" >&6; }
3525 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3526 $as_echo_n "checking for suffix of executables... " >&6; }
3527 if { (ac_try="$ac_link"
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3533 $as_echo "$ac_try_echo") >&5
3534 (eval "$ac_link") 2>&5
3536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; then
3538 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3539 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3540 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3542 for ac_file
in conftest.exe conftest conftest.
*; do
3543 test -f "$ac_file" ||
continue
3545 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3546 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3552 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3553 See \`config.log' for more details." >&5
3554 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3555 See \`config.log' for more details." >&2;}
3556 { (exit 1); exit 1; }; }
3559 rm -f conftest
$ac_cv_exeext
3560 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3561 $as_echo "$ac_cv_exeext" >&6; }
3563 rm -f conftest.
$ac_ext
3564 EXEEXT
=$ac_cv_exeext
3566 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3567 $as_echo_n "checking for suffix of object files... " >&6; }
3568 if test "${ac_cv_objext+set}" = set; then
3569 $as_echo_n "(cached) " >&6
3571 cat >conftest.
$ac_ext <<_ACEOF
3574 cat confdefs.h
>>conftest.
$ac_ext
3575 cat >>conftest.
$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3586 rm -f conftest.o conftest.obj
3587 if { (ac_try
="$ac_compile"
3589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3593 $as_echo "$ac_try_echo") >&5
3594 (eval "$ac_compile") 2>&5
3596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; then
3598 for ac_file in conftest.o conftest.obj conftest.*; do
3599 test -f "$ac_file" || continue;
3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3602 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3607 $as_echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3610 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3611 See \`config.log
' for more details." >&5
3612 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3613 See \`config.log' for more details.
" >&2;}
3614 { (exit 1); exit 1; }; }
3617 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3619 { $as_echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3620 $as_echo "$ac_cv_objext" >&6; }
3621 OBJEXT=$ac_cv_objext
3623 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3624 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
3625 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3626 $as_echo_n "(cached
) " >&6
3628 cat >conftest.$ac_ext <<_ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3646 rm -f conftest.$ac_objext
3647 if { (ac_try="$ac_compile"
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3652 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3653 $as_echo "$ac_try_echo") >&5
3654 (eval "$ac_compile") 2>conftest.er1
3656 grep -v '^ *+' conftest.er1 >conftest.err
3658 cat conftest.err >&5
3659 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3660 (exit $ac_status); } && {
3661 test -z "$ac_c_werror_flag" ||
3662 test ! -s conftest.err
3663 } && test -s conftest.$ac_objext; then
3666 $as_echo "$as_me: failed program was
:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3676 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3677 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3678 if test $ac_compiler_gnu = yes; then
3683 ac_test_CFLAGS=${CFLAGS+set}
3684 ac_save_CFLAGS=$CFLAGS
3685 { $as_echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3686 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
3687 if test "${ac_cv_prog_cc_g+set}" = set; then
3688 $as_echo_n "(cached
) " >&6
3690 ac_save_c_werror_flag=$ac_c_werror_flag
3691 ac_c_werror_flag=yes
3694 cat >conftest.$ac_ext <<_ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3709 rm -f conftest.$ac_objext
3710 if { (ac_try="$ac_compile"
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3715 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3716 $as_echo "$ac_try_echo") >&5
3717 (eval "$ac_compile") 2>conftest.er1
3719 grep -v '^ *+' conftest.er1 >conftest.err
3721 cat conftest.err >&5
3722 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3723 (exit $ac_status); } && {
3724 test -z "$ac_c_werror_flag" ||
3725 test ! -s conftest.err
3726 } && test -s conftest.$ac_objext; then
3729 $as_echo "$as_me: failed program was
:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3733 cat >conftest.$ac_ext <<_ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3748 rm -f conftest.$ac_objext
3749 if { (ac_try="$ac_compile"
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3754 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3755 $as_echo "$ac_try_echo") >&5
3756 (eval "$ac_compile") 2>conftest.er1
3758 grep -v '^ *+' conftest.er1 >conftest.err
3760 cat conftest.err >&5
3761 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3762 (exit $ac_status); } && {
3763 test -z "$ac_c_werror_flag" ||
3764 test ! -s conftest.err
3765 } && test -s conftest.$ac_objext; then
3768 $as_echo "$as_me: failed program was
:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3771 ac_c_werror_flag=$ac_save_c_werror_flag
3773 cat >conftest.$ac_ext <<_ACEOF
3776 cat confdefs.h >>conftest.$ac_ext
3777 cat >>conftest.$ac_ext <<_ACEOF
3778 /* end confdefs.h. */
3788 rm -f conftest.$ac_objext
3789 if { (ac_try="$ac_compile"
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3794 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3795 $as_echo "$ac_try_echo") >&5
3796 (eval "$ac_compile") 2>conftest.er1
3798 grep -v '^ *+' conftest.er1 >conftest.err
3800 cat conftest.err >&5
3801 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3802 (exit $ac_status); } && {
3803 test -z "$ac_c_werror_flag" ||
3804 test ! -s conftest.err
3805 } && test -s conftest.$ac_objext; then
3808 $as_echo "$as_me: failed program was
:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 ac_c_werror_flag=$ac_save_c_werror_flag
3823 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3824 $as_echo "$ac_cv_prog_cc_g" >&6; }
3825 if test "$ac_test_CFLAGS" = set; then
3826 CFLAGS=$ac_save_CFLAGS
3827 elif test $ac_cv_prog_cc_g = yes; then
3828 if test "$GCC" = yes; then
3834 if test "$GCC" = yes; then
3840 { $as_echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3841 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
3842 if test "${ac_cv_prog_cc_c89+set}" = set; then
3843 $as_echo_n "(cached
) " >&6
3845 ac_cv_prog_cc_c89=no
3847 cat >conftest.$ac_ext <<_ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3855 #include <sys/types.h>
3856 #include <sys/stat.h>
3857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3858 struct buf { int x; };
3859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3860 static char *e (p, i)
3866 static char *f (char * (*g) (char **, int), char **p, ...)
3871 s = g (p, va_arg (v,int));
3876 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3877 function prototypes and stuff, but not '\xHH' hex character constants.
3878 These don't provoke an error unfortunately, instead are silently treated
3879 as 'x'. The following induces an error, until -std is added to get
3880 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3881 array size at least. It's necessary to write '\x00'==0 to get something
3882 that's true only with -std. */
3883 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3885 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3886 inside strings and character constants. */
3888 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3890 int test (int i, double x);
3891 struct s1 {int (*f) (int a);};
3892 struct s2 {int (*f) (double a);};
3893 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3899 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3904 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3905 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3907 CC="$ac_save_CC $ac_arg"
3908 rm -f conftest.$ac_objext
3909 if { (ac_try="$ac_compile"
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3915 $as_echo "$ac_try_echo") >&5
3916 (eval "$ac_compile") 2>conftest.er1
3918 grep -v '^ *+' conftest.er1 >conftest.err
3920 cat conftest.err >&5
3921 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3922 (exit $ac_status); } && {
3923 test -z "$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 } && test -s conftest.$ac_objext; then
3926 ac_cv_prog_cc_c89=$ac_arg
3928 $as_echo "$as_me: failed program was
:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3934 rm -f core conftest.err conftest.$ac_objext
3935 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3937 rm -f conftest.$ac_ext
3942 case "x
$ac_cv_prog_cc_c89" in
3944 { $as_echo "$as_me:$LINENO: result
: none needed
" >&5
3945 $as_echo "none needed
" >&6; } ;;
3947 { $as_echo "$as_me:$LINENO: result
: unsupported
" >&5
3948 $as_echo "unsupported
" >&6; } ;;
3950 CC="$CC $ac_cv_prog_cc_c89"
3951 { $as_echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3952 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3957 ac_cpp='$CPP $CPPFLAGS'
3958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963 # On Suns, sometimes $CPP names a directory.
3964 if test -n "$CPP" && test -d "$CPP"; then
3968 ## If not using gcc, and on Solaris, and no CPP specified, see if
3969 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3970 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3971 test x"$CPP" = x; then
3972 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3973 $as_echo_n "checking whether we are using a Sun C compiler...
" >&6; }
3975 if test "${emacs_cv_sunpro_c+set}" = set; then
3976 $as_echo_n "(cached
) " >&6
3978 cat >conftest.$ac_ext <<_ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3996 rm -f conftest.$ac_objext conftest$ac_exeext
3997 if { (ac_try="$ac_link"
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4002 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4003 $as_echo "$ac_try_echo") >&5
4004 (eval "$ac_link") 2>conftest.er1
4006 grep -v '^ *+' conftest.er1 >conftest.err
4008 cat conftest.err >&5
4009 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4010 (exit $ac_status); } && {
4011 test -z "$ac_c_werror_flag" ||
4012 test ! -s conftest.err
4013 } && test -s conftest$ac_exeext && {
4014 test "$cross_compiling" = yes ||
4015 $as_test_x conftest$ac_exeext
4017 emacs_cv_sunpro_c=yes
4019 $as_echo "$as_me: failed program was
:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4022 emacs_cv_sunpro_c=no
4025 rm -rf conftest.dSYM
4026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4027 conftest$ac_exeext conftest.$ac_ext
4030 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4031 $as_echo "$emacs_cv_sunpro_c" >&6; }
4033 if test x"$emacs_cv_sunpro_c" = xyes; then
4034 NON_GNU_CPP="$CC -E -Xs"
4038 #### Some systems specify a CPP to use unless we are using GCC.
4039 #### Now that we know whether we are using GCC, we can decide whether
4040 #### to use that one.
4041 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4046 #### Some systems specify a CC to use unless we are using GCC.
4047 #### Now that we know whether we are using GCC, we can decide whether
4048 #### to use that one.
4049 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4050 test x$cc_specified != xyes
4055 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4057 CC="$CC $GCC_TEST_OPTIONS"
4060 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4062 CC="$CC $NON_GCC_TEST_OPTIONS"
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4071 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
4072 # On Suns, sometimes $CPP names a directory.
4073 if test -n "$CPP" && test -d "$CPP"; then
4076 if test -z "$CPP"; then
4077 if test "${ac_cv_prog_CPP+set}" = set; then
4078 $as_echo_n "(cached
) " >&6
4080 # Double quotes because CPP needs to be expanded
4081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4084 for ac_c_preproc_warn_flag in '' yes
4086 # Use a header file that comes with gcc, so configuring glibc
4087 # with a fresh cross-compiler works.
4088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4089 # <limits.h> exists even on freestanding compilers.
4090 # On the NeXT, cc -E runs the code through the compiler's parser,
4091 # not just through cpp. "Syntax error
" is here to catch this case.
4092 cat >conftest.$ac_ext <<_ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4099 # include <limits.h>
4101 # include <assert.h>
4105 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4110 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4111 $as_echo "$ac_try_echo") >&5
4112 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4114 grep -v '^ *+' conftest.er1 >conftest.err
4116 cat conftest.err >&5
4117 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4118 (exit $ac_status); } >/dev/null && {
4119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4120 test ! -s conftest.err
4124 $as_echo "$as_me: failed program was
:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4127 # Broken: fails on valid input.
4131 rm -f conftest.err conftest.$ac_ext
4133 # OK, works on sane cases. Now check whether nonexistent headers
4134 # can be detected and how.
4135 cat >conftest.$ac_ext <<_ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 #include <ac_nonexistent.h>
4143 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146 *) ac_try_echo=$ac_try;;
4148 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4149 $as_echo "$ac_try_echo") >&5
4150 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4152 grep -v '^ *+' conftest.er1 >conftest.err
4154 cat conftest.err >&5
4155 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4156 (exit $ac_status); } >/dev/null && {
4157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4158 test ! -s conftest.err
4160 # Broken: success on invalid input.
4163 $as_echo "$as_me: failed program was
:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4166 # Passes both tests.
4171 rm -f conftest.err conftest.$ac_ext
4174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4175 rm -f conftest.err conftest.$ac_ext
4176 if $ac_preproc_ok; then
4188 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
4189 $as_echo "$CPP" >&6; }
4191 for ac_c_preproc_warn_flag in '' yes
4193 # Use a header file that comes with gcc, so configuring glibc
4194 # with a fresh cross-compiler works.
4195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4196 # <limits.h> exists even on freestanding compilers.
4197 # On the NeXT, cc -E runs the code through the compiler's parser,
4198 # not just through cpp. "Syntax error
" is here to catch this case.
4199 cat >conftest.$ac_ext <<_ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4206 # include <limits.h>
4208 # include <assert.h>
4212 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4217 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4218 $as_echo "$ac_try_echo") >&5
4219 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4221 grep -v '^ *+' conftest.er1 >conftest.err
4223 cat conftest.err >&5
4224 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4225 (exit $ac_status); } >/dev/null && {
4226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4231 $as_echo "$as_me: failed program was
:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4234 # Broken: fails on valid input.
4238 rm -f conftest.err conftest.$ac_ext
4240 # OK, works on sane cases. Now check whether nonexistent headers
4241 # can be detected and how.
4242 cat >conftest.$ac_ext <<_ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4248 #include <ac_nonexistent.h>
4250 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4255 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
4256 $as_echo "$ac_try_echo") >&5
4257 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4259 grep -v '^ *+' conftest.er1 >conftest.err
4261 cat conftest.err >&5
4262 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4263 (exit $ac_status); } >/dev/null && {
4264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4265 test ! -s conftest.err
4267 # Broken: success on invalid input.
4270 $as_echo "$as_me: failed program was
:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4273 # Passes both tests.
4278 rm -f conftest.err conftest.$ac_ext
4281 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4282 rm -f conftest.err conftest.$ac_ext
4283 if $ac_preproc_ok; then
4286 { { $as_echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4287 See \
`config.log' for more details." >&5
4288 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4289 See \`config.log
' for more details." >&2;}
4290 { (exit 1); exit 1; }; }
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4296 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4301 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4302 if test "${ac_cv_path_GREP+set}" = set; then
4303 $as_echo_n "(cached) " >&6
4305 if test -z "$GREP"; then
4306 ac_path_GREP_found=false
4307 # Loop through the user's path and
test for each of PROGNAME-LIST
4308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4309 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4312 test -z "$as_dir" && as_dir
=.
4313 for ac_prog
in grep ggrep
; do
4314 for ac_exec_ext
in '' $ac_executable_extensions; do
4315 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4316 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4317 # Check for GNU ac_path_GREP and select it if it is found.
4318 # Check for GNU $ac_path_GREP
4319 case `"$ac_path_GREP" --version 2>&1` in
4321 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4324 $as_echo_n 0123456789 >"conftest.in"
4327 cat "conftest.in" "conftest.in" >"conftest.tmp"
4328 mv "conftest.tmp" "conftest.in"
4329 cp "conftest.in" "conftest.nl"
4330 $as_echo 'GREP' >> "conftest.nl"
4331 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4332 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4333 ac_count
=`expr $ac_count + 1`
4334 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4335 # Best one so far, save it but keep looking for a better one
4336 ac_cv_path_GREP
="$ac_path_GREP"
4337 ac_path_GREP_max
=$ac_count
4339 # 10*(2^10) chars as input seems more than enough
4340 test $ac_count -gt 10 && break
4342 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4345 $ac_path_GREP_found && break 3
4350 if test -z "$ac_cv_path_GREP"; then
4351 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4352 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4353 { (exit 1); exit 1; }; }
4356 ac_cv_path_GREP
=$GREP
4360 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4361 $as_echo "$ac_cv_path_GREP" >&6; }
4362 GREP
="$ac_cv_path_GREP"
4365 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4366 $as_echo_n "checking for egrep... " >&6; }
4367 if test "${ac_cv_path_EGREP+set}" = set; then
4368 $as_echo_n "(cached) " >&6
4370 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4371 then ac_cv_path_EGREP
="$GREP -E"
4373 if test -z "$EGREP"; then
4374 ac_path_EGREP_found
=false
4375 # Loop through the user's path and test for each of PROGNAME-LIST
4376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4377 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4380 test -z "$as_dir" && as_dir
=.
4381 for ac_prog
in egrep; do
4382 for ac_exec_ext
in '' $ac_executable_extensions; do
4383 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4384 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4385 # Check for GNU ac_path_EGREP and select it if it is found.
4386 # Check for GNU $ac_path_EGREP
4387 case `"$ac_path_EGREP" --version 2>&1` in
4389 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4392 $as_echo_n 0123456789 >"conftest.in"
4395 cat "conftest.in" "conftest.in" >"conftest.tmp"
4396 mv "conftest.tmp" "conftest.in"
4397 cp "conftest.in" "conftest.nl"
4398 $as_echo 'EGREP' >> "conftest.nl"
4399 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4400 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4401 ac_count
=`expr $ac_count + 1`
4402 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4403 # Best one so far, save it but keep looking for a better one
4404 ac_cv_path_EGREP
="$ac_path_EGREP"
4405 ac_path_EGREP_max
=$ac_count
4407 # 10*(2^10) chars as input seems more than enough
4408 test $ac_count -gt 10 && break
4410 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4413 $ac_path_EGREP_found && break 3
4418 if test -z "$ac_cv_path_EGREP"; then
4419 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4420 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4421 { (exit 1); exit 1; }; }
4424 ac_cv_path_EGREP
=$EGREP
4429 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4430 $as_echo "$ac_cv_path_EGREP" >&6; }
4431 EGREP
="$ac_cv_path_EGREP"
4434 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4435 $as_echo_n "checking for ANSI C header files... " >&6; }
4436 if test "${ac_cv_header_stdc+set}" = set; then
4437 $as_echo_n "(cached) " >&6
4439 cat >conftest.
$ac_ext <<_ACEOF
4442 cat confdefs.h
>>conftest.
$ac_ext
4443 cat >>conftest.
$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4458 rm -f conftest.
$ac_objext
4459 if { (ac_try
="$ac_compile"
4461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4465 $as_echo "$ac_try_echo") >&5
4466 (eval "$ac_compile") 2>conftest.er1
4468 grep -v '^ *+' conftest.er1 >conftest.err
4470 cat conftest.err >&5
4471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } && {
4473 test -z "$ac_c_werror_flag" ||
4474 test ! -s conftest.err
4475 } && test -s conftest.$ac_objext; then
4476 ac_cv_header_stdc=yes
4478 $as_echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4481 ac_cv_header_stdc=no
4484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486 if test $ac_cv_header_stdc = yes; then
4487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4488 cat >conftest.$ac_ext <<_ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4498 $EGREP "memchr" >/dev/null 2>&1; then
4501 ac_cv_header_stdc=no
4507 if test $ac_cv_header_stdc = yes; then
4508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4509 cat >conftest.$ac_ext <<_ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4519 $EGREP "free" >/dev/null 2>&1; then
4522 ac_cv_header_stdc=no
4528 if test $ac_cv_header_stdc = yes; then
4529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4530 if test "$cross_compiling" = yes; then
4533 cat >conftest.$ac_ext <<_ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4541 #if ((' ' & 0x0FF) == 0x020)
4542 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4543 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4545 # define ISLOWER(c) \
4546 (('a' <= (c) && (c) <= 'i') \
4547 || ('j' <= (c) && (c) <= 'r') \
4548 || ('s' <= (c) && (c) <= 'z'))
4549 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4552 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4557 for (i = 0; i < 256; i++)
4558 if (XOR (islower (i), ISLOWER (i))
4559 || toupper (i) != TOUPPER (i))
4564 rm -f conftest$ac_exeext
4565 if { (ac_try="$ac_link"
4567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4568 *) ac_try_echo
=$ac_try;;
4570 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4571 $as_echo "$ac_try_echo") >&5
4572 (eval "$ac_link") 2>&5
4574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4576 { (case "(($ac_try" in
4577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4581 $as_echo "$ac_try_echo") >&5
4582 (eval "$ac_try") 2>&5
4584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; }; then
4588 $as_echo "$as_me: program exited with status $ac_status" >&5
4589 $as_echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4593 ac_cv_header_stdc=no
4595 rm -rf conftest.dSYM
4596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4602 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4603 $as_echo "$ac_cv_header_stdc" >&6; }
4604 if test $ac_cv_header_stdc = yes; then
4606 cat >>confdefs.h <<\_ACEOF
4607 #define STDC_HEADERS 1
4612 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4623 inttypes.h stdint.h unistd.h
4625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4626 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4627 $as_echo_n "checking for $ac_header... " >&6; }
4628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4629 $as_echo_n "(cached) " >&6
4631 cat >conftest.$ac_ext <<_ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637 $ac_includes_default
4639 #include <$ac_header>
4641 rm -f conftest.$ac_objext
4642 if { (ac_try="$ac_compile"
4644 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4645 *) ac_try_echo
=$ac_try;;
4647 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4648 $as_echo "$ac_try_echo") >&5
4649 (eval "$ac_compile") 2>conftest.er1
4651 grep -v '^ *+' conftest.er1
>conftest.err
4653 cat conftest.err
>&5
4654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } && {
4656 test -z "$ac_c_werror_flag" ||
4657 test ! -s conftest.err
4658 } && test -s conftest.
$ac_objext; then
4659 eval "$as_ac_Header=yes"
4661 $as_echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.
$ac_ext >&5
4664 eval "$as_ac_Header=no"
4667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4669 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4670 $as_echo "$as_val"'`
4671 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4672 $as_echo "$ac_res" >&6; }
4673 if test `eval 'as_val=${'$as_ac_Header'}
4674 $as_echo "$as_val"'` = yes; then
4675 cat >>confdefs.h
<<_ACEOF
4676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4685 if test "${ac_cv_header_minix_config_h+set}" = set; then
4686 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4687 $as_echo_n "checking for minix/config.h... " >&6; }
4688 if test "${ac_cv_header_minix_config_h+set}" = set; then
4689 $as_echo_n "(cached) " >&6
4691 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4692 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4694 # Is the header compilable?
4695 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4696 $as_echo_n "checking minix/config.h usability... " >&6; }
4697 cat >conftest.
$ac_ext <<_ACEOF
4700 cat confdefs.h
>>conftest.
$ac_ext
4701 cat >>conftest.
$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4703 $ac_includes_default
4704 #include <minix/config.h>
4706 rm -f conftest.
$ac_objext
4707 if { (ac_try
="$ac_compile"
4709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713 $as_echo "$ac_try_echo") >&5
4714 (eval "$ac_compile") 2>conftest.er1
4716 grep -v '^ *+' conftest.er1 >conftest.err
4718 cat conftest.err >&5
4719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } && {
4721 test -z "$ac_c_werror_flag" ||
4722 test ! -s conftest.err
4723 } && test -s conftest.$ac_objext; then
4724 ac_header_compiler=yes
4726 $as_echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4729 ac_header_compiler=no
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4734 $as_echo "$ac_header_compiler" >&6; }
4736 # Is the header present?
4737 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4738 $as_echo_n "checking minix/config.h presence... " >&6; }
4739 cat >conftest.$ac_ext <<_ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h. */
4745 #include <minix/config.h>
4747 if { (ac_try="$ac_cpp conftest.$ac_ext"
4749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4750 *) ac_try_echo
=$ac_try;;
4752 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4753 $as_echo "$ac_try_echo") >&5
4754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4756 grep -v '^ *+' conftest.er1
>conftest.err
4758 cat conftest.err
>&5
4759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } >/dev
/null
&& {
4761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4762 test ! -s conftest.err
4764 ac_header_preproc
=yes
4766 $as_echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.
$ac_ext >&5
4769 ac_header_preproc
=no
4772 rm -f conftest.err conftest.
$ac_ext
4773 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4774 $as_echo "$ac_header_preproc" >&6; }
4776 # So? What about this header?
4777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4780 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4782 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4783 ac_header_preproc
=yes
4786 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4787 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4788 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4789 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4790 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4791 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4792 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4793 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4794 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4795 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4796 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4797 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4801 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4802 $as_echo_n "checking for minix/config.h... " >&6; }
4803 if test "${ac_cv_header_minix_config_h+set}" = set; then
4804 $as_echo_n "(cached) " >&6
4806 ac_cv_header_minix_config_h
=$ac_header_preproc
4808 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4809 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4812 if test $ac_cv_header_minix_config_h = yes; then
4819 if test "$MINIX" = yes; then
4821 cat >>confdefs.h
<<\_ACEOF
4822 #define _POSIX_SOURCE 1
4826 cat >>confdefs.h
<<\_ACEOF
4827 #define _POSIX_1_SOURCE 2
4831 cat >>confdefs.h
<<\_ACEOF
4839 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4840 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4841 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4842 $as_echo_n "(cached) " >&6
4844 cat >conftest.
$ac_ext <<_ACEOF
4847 cat confdefs.h
>>conftest.
$ac_ext
4848 cat >>conftest.
$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4851 # define __EXTENSIONS__ 1
4852 $ac_includes_default
4861 rm -f conftest.
$ac_objext
4862 if { (ac_try
="$ac_compile"
4864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4868 $as_echo "$ac_try_echo") >&5
4869 (eval "$ac_compile") 2>conftest.er1
4871 grep -v '^ *+' conftest.er1 >conftest.err
4873 cat conftest.err >&5
4874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } && {
4876 test -z "$ac_c_werror_flag" ||
4877 test ! -s conftest.err
4878 } && test -s conftest.$ac_objext; then
4879 ac_cv_safe_to_define___extensions__=yes
4881 $as_echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4884 ac_cv_safe_to_define___extensions__=no
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4890 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4891 test $ac_cv_safe_to_define___extensions__ = yes &&
4892 cat >>confdefs.h <<\_ACEOF
4893 #define __EXTENSIONS__ 1
4896 cat >>confdefs.h <<\_ACEOF
4897 #define _ALL_SOURCE 1
4900 cat >>confdefs.h <<\_ACEOF
4901 #define _GNU_SOURCE 1
4904 cat >>confdefs.h <<\_ACEOF
4905 #define _POSIX_PTHREAD_SEMANTICS 1
4908 cat >>confdefs.h <<\_ACEOF
4909 #define _TANDEM_SOURCE 1
4914 ### Use -Wno-pointer-sign if the compiler supports it
4915 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4916 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4917 SAVE_CFLAGS="$CFLAGS"
4918 CFLAGS="$CFLAGS -Wno-pointer-sign"
4919 cat >conftest.$ac_ext <<_ACEOF
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4934 rm -f conftest.$ac_objext
4935 if { (ac_try="$ac_compile"
4937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4938 *) ac_try_echo
=$ac_try;;
4940 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4941 $as_echo "$ac_try_echo") >&5
4942 (eval "$ac_compile") 2>conftest.er1
4944 grep -v '^ *+' conftest.er1
>conftest.err
4946 cat conftest.err
>&5
4947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } && {
4949 test -z "$ac_c_werror_flag" ||
4950 test ! -s conftest.err
4951 } && test -s conftest.
$ac_objext; then
4954 $as_echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.
$ac_ext >&5
4960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4961 if test $has_option = yes; then
4962 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4964 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4965 $as_echo "$has_option" >&6; }
4966 CFLAGS
="$SAVE_CFLAGS"
4970 ### Use -Wdeclaration-after-statement if the compiler supports it
4971 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4972 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4973 SAVE_CFLAGS
="$CFLAGS"
4974 CFLAGS
="$CFLAGS -Wdeclaration-after-statement"
4975 cat >conftest.
$ac_ext <<_ACEOF
4978 cat confdefs.h
>>conftest.
$ac_ext
4979 cat >>conftest.
$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4990 rm -f conftest.
$ac_objext
4991 if { (ac_try
="$ac_compile"
4993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4997 $as_echo "$ac_try_echo") >&5
4998 (eval "$ac_compile") 2>conftest.er1
5000 grep -v '^ *+' conftest.er1 >conftest.err
5002 cat conftest.err >&5
5003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } && {
5005 test -z "$ac_c_werror_flag" ||
5006 test ! -s conftest.err
5007 } && test -s conftest.$ac_objext; then
5010 $as_echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 if test $has_option = yes; then
5018 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5020 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5021 $as_echo "$has_option" >&6; }
5022 CFLAGS="$SAVE_CFLAGS"
5026 #### Some other nice autoconf tests.
5029 ac_cpp='$CPP $CPPFLAGS'
5030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5033 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5034 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5035 # On Suns, sometimes $CPP names a directory.
5036 if test -n "$CPP" && test -d "$CPP"; then
5039 if test -z "$CPP"; then
5040 if test "${ac_cv_prog_CPP+set}" = set; then
5041 $as_echo_n "(cached) " >&6
5043 # Double quotes because CPP needs to be expanded
5044 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5047 for ac_c_preproc_warn_flag in '' yes
5049 # Use a header file that comes with gcc, so configuring glibc
5050 # with a fresh cross-compiler works.
5051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5052 # <limits.h> exists even on freestanding compilers.
5053 # On the NeXT, cc -E runs the code through the compiler's parser,
5054 # not just through cpp. "Syntax error" is here to catch this case.
5055 cat >conftest.$ac_ext <<_ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5062 # include <limits.h>
5064 # include <assert.h>
5068 if { (ac_try="$ac_cpp conftest.$ac_ext"
5070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5071 *) ac_try_echo
=$ac_try;;
5073 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5074 $as_echo "$ac_try_echo") >&5
5075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5077 grep -v '^ *+' conftest.er1
>conftest.err
5079 cat conftest.err
>&5
5080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } >/dev
/null
&& {
5082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5083 test ! -s conftest.err
5087 $as_echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.
$ac_ext >&5
5090 # Broken: fails on valid input.
5094 rm -f conftest.err conftest.
$ac_ext
5096 # OK, works on sane cases. Now check whether nonexistent headers
5097 # can be detected and how.
5098 cat >conftest.
$ac_ext <<_ACEOF
5101 cat confdefs.h
>>conftest.
$ac_ext
5102 cat >>conftest.
$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5104 #include <ac_nonexistent.h>
5106 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5112 $as_echo "$ac_try_echo") >&5
5113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5115 grep -v '^ *+' conftest.er1 >conftest.err
5117 cat conftest.err >&5
5118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } >/dev/null && {
5120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5121 test ! -s conftest.err
5123 # Broken: success on invalid input.
5126 $as_echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129 # Passes both tests.
5134 rm -f conftest.err conftest.$ac_ext
5137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5138 rm -f conftest.err conftest.
$ac_ext
5139 if $ac_preproc_ok; then
5151 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5152 $as_echo "$CPP" >&6; }
5154 for ac_c_preproc_warn_flag
in '' yes
5156 # Use a header file that comes with gcc, so configuring glibc
5157 # with a fresh cross-compiler works.
5158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5159 # <limits.h> exists even on freestanding compilers.
5160 # On the NeXT, cc -E runs the code through the compiler's parser,
5161 # not just through cpp. "Syntax error" is here to catch this case.
5162 cat >conftest.
$ac_ext <<_ACEOF
5165 cat confdefs.h
>>conftest.
$ac_ext
5166 cat >>conftest.
$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5169 # include <limits.h>
5171 # include <assert.h>
5175 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5178 *) ac_try_echo=$ac_try;;
5180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5181 $as_echo "$ac_try_echo") >&5
5182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5184 grep -v '^ *+' conftest.er1 >conftest.err
5186 cat conftest.err >&5
5187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } >/dev/null && {
5189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5190 test ! -s conftest.err
5194 $as_echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5197 # Broken: fails on valid input.
5201 rm -f conftest.err conftest.$ac_ext
5203 # OK, works on sane cases. Now check whether nonexistent headers
5204 # can be detected and how.
5205 cat >conftest.$ac_ext <<_ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5211 #include <ac_nonexistent.h>
5213 if { (ac_try="$ac_cpp conftest.$ac_ext"
5215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5216 *) ac_try_echo
=$ac_try;;
5218 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5219 $as_echo "$ac_try_echo") >&5
5220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5222 grep -v '^ *+' conftest.er1
>conftest.err
5224 cat conftest.err
>&5
5225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); } >/dev
/null
&& {
5227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5228 test ! -s conftest.err
5230 # Broken: success on invalid input.
5233 $as_echo "$as_me: failed program was:" >&5
5234 sed 's/^/| /' conftest.
$ac_ext >&5
5236 # Passes both tests.
5241 rm -f conftest.err conftest.
$ac_ext
5244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5245 rm -f conftest.err conftest.
$ac_ext
5246 if $ac_preproc_ok; then
5249 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5250 See \`config.log' for more details." >&5
5251 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5252 See \`config.log' for more details." >&2;}
5253 { (exit 1); exit 1; }; }
5257 ac_cpp
='$CPP $CPPFLAGS'
5258 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5262 # Find a good install program. We prefer a C program (faster),
5263 # so one script is as good as another. But avoid the broken or
5264 # incompatible versions:
5265 # SysV /etc/install, /usr/sbin/install
5266 # SunOS /usr/etc/install
5267 # IRIX /sbin/install
5269 # AmigaOS /C/install, which installs bootblocks on floppy discs
5270 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5271 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5272 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5273 # OS/2's system install, which has a completely different semantic
5274 # ./install, which can be erroneously created by make from ./install.sh.
5275 # Reject install programs that cannot install multiple files.
5276 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5277 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5278 if test -z "$INSTALL"; then
5279 if test "${ac_cv_path_install+set}" = set; then
5280 $as_echo_n "(cached) " >&6
5282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5286 test -z "$as_dir" && as_dir
=.
5287 # Account for people who put trailing slashes in PATH elements.
5289 .
/ | .
// |
/cC
/* | \
5290 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5291 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5294 # OSF1 and SCO ODT 3.0 have their own names for install.
5295 # Don't use installbsd from OSF since it installs stuff as root
5297 for ac_prog
in ginstall scoinst
install; do
5298 for ac_exec_ext
in '' $ac_executable_extensions; do
5299 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5300 if test $ac_prog = install &&
5301 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5302 # AIX install. It has an incompatible calling convention.
5304 elif test $ac_prog = install &&
5305 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5306 # program-specific install script used by HP pwplus--don't use.
5309 rm -rf conftest.one conftest.two conftest.dir
5310 echo one
> conftest.one
5311 echo two
> conftest.two
5313 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5314 test -s conftest.one
&& test -s conftest.two
&&
5315 test -s conftest.dir
/conftest.one
&&
5316 test -s conftest.dir
/conftest.two
5318 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5331 rm -rf conftest.one conftest.two conftest.dir
5334 if test "${ac_cv_path_install+set}" = set; then
5335 INSTALL
=$ac_cv_path_install
5337 # As a last resort, use the slow shell script. Don't cache a
5338 # value for INSTALL within a source directory, because that will
5339 # break other packages using the cache if that directory is
5340 # removed, or if the value is a relative name.
5341 INSTALL
=$ac_install_sh
5344 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5345 $as_echo "$INSTALL" >&6; }
5347 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5348 # It thinks the first close brace ends the variable substitution.
5349 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5351 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5353 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5355 if test "x$RANLIB" = x
; then
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5358 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if test "${ac_cv_prog_RANLIB+set}" = set; then
5362 $as_echo_n "(cached) " >&6
5364 if test -n "$RANLIB"; then
5365 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5371 test -z "$as_dir" && as_dir
=.
5372 for ac_exec_ext
in '' $ac_executable_extensions; do
5373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5374 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 RANLIB
=$ac_cv_prog_RANLIB
5385 if test -n "$RANLIB"; then
5386 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5387 $as_echo "$RANLIB" >&6; }
5389 { $as_echo "$as_me:$LINENO: result: no" >&5
5390 $as_echo "no" >&6; }
5395 if test -z "$ac_cv_prog_RANLIB"; then
5396 ac_ct_RANLIB
=$RANLIB
5397 # Extract the first word of "ranlib", so it can be a program name with args.
5398 set dummy ranlib
; ac_word
=$2
5399 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5402 $as_echo_n "(cached) " >&6
5404 if test -n "$ac_ct_RANLIB"; then
5405 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5411 test -z "$as_dir" && as_dir
=.
5412 for ac_exec_ext
in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5415 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5425 if test -n "$ac_ct_RANLIB"; then
5426 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5427 $as_echo "$ac_ct_RANLIB" >&6; }
5429 { $as_echo "$as_me:$LINENO: result: no" >&5
5430 $as_echo "no" >&6; }
5433 if test "x$ac_ct_RANLIB" = x
; then
5436 case $cross_compiling:$ac_tool_warned in
5438 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5439 whose name does not start with the host triplet. If you think this
5440 configuration is useful to you, please write to autoconf@gnu.org." >&5
5441 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5442 whose name does not start with the host triplet. If you think this
5443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5444 ac_tool_warned
=yes ;;
5446 RANLIB
=$ac_ct_RANLIB
5449 RANLIB
="$ac_cv_prog_RANLIB"
5454 ## Although we're running on an amd64 kernel, we're actually compiling for
5455 ## the x86 architecture. The user should probably have provided an
5456 ## explicit --build to `configure', but if everything else than the kernel
5457 ## is running in i386 mode, we can help them out.
5458 if test "$machine" = "amdx86-64"; then
5459 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5460 $as_echo_n "checking whether i386 is declared... " >&6; }
5461 if test "${ac_cv_have_decl_i386+set}" = set; then
5462 $as_echo_n "(cached) " >&6
5464 cat >conftest.
$ac_ext <<_ACEOF
5467 cat confdefs.h
>>conftest.
$ac_ext
5468 cat >>conftest.
$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5470 $ac_includes_default
5482 rm -f conftest.
$ac_objext
5483 if { (ac_try
="$ac_compile"
5485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5489 $as_echo "$ac_try_echo") >&5
5490 (eval "$ac_compile") 2>conftest.er1
5492 grep -v '^ *+' conftest.er1 >conftest.err
5494 cat conftest.err >&5
5495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } && {
5497 test -z "$ac_c_werror_flag" ||
5498 test ! -s conftest.err
5499 } && test -s conftest.$ac_objext; then
5500 ac_cv_have_decl_i386=yes
5502 $as_echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5505 ac_cv_have_decl_i386=no
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5511 $as_echo "$ac_cv_have_decl_i386" >&6; }
5513 if test "$ac_cv_have_decl_i386" = "yes"; then
5514 canonical=`echo "$canonical" |
sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5516 machfile="m/${machine}.h"
5520 # Extract the first word of "install-info", so it can be a program name with args.
5521 set dummy install-info; ac_word=$2
5522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5525 $as_echo_n "(cached) " >&6
5527 case $INSTALL_INFO in
5529 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5539 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5540 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5551 if test -n "$INSTALL_INFO"; then
5552 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5553 $as_echo "$INSTALL_INFO" >&6; }
5555 { $as_echo "$as_me:$LINENO: result: no" >&5
5556 $as_echo "no" >&6; }
5560 # Extract the first word of "install-info", so it can be a program name with args.
5561 set dummy install-info; ac_word=$2
5562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5565 $as_echo_n "(cached) " >&6
5567 case $INSTALL_INFO in
5569 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in /usr/sbin
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5591 if test -n "$INSTALL_INFO"; then
5592 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5593 $as_echo "$INSTALL_INFO" >&6; }
5595 { $as_echo "$as_me:$LINENO: result: no" >&5
5596 $as_echo "no" >&6; }
5600 # Extract the first word of "install-info", so it can be a program name with args.
5601 set dummy install-info; ac_word=$2
5602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5605 $as_echo_n "(cached) " >&6
5607 case $INSTALL_INFO in
5609 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5631 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5632 if test -n "$INSTALL_INFO"; then
5633 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5634 $as_echo "$INSTALL_INFO" >&6; }
5636 { $as_echo "$as_me:$LINENO: result: no" >&5
5637 $as_echo "no" >&6; }
5641 # Extract the first word of "gzip", so it can be a program name with args.
5642 set dummy gzip; ac_word=$2
5643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5646 $as_echo_n "(cached) " >&6
5650 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5660 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 GZIP_PROG=$ac_cv_path_GZIP_PROG
5672 if test -n "$GZIP_PROG"; then
5673 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5674 $as_echo "$GZIP_PROG" >&6; }
5676 { $as_echo "$as_me:$LINENO: result: no" >&5
5677 $as_echo "no" >&6; }
5683 ## Need makeinfo >= 4.6 (?) to build the manuals.
5684 # Extract the first word of "makeinfo", so it can be a program name with args.
5685 set dummy makeinfo; ac_word=$2
5686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5689 $as_echo_n "(cached) " >&6
5693 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5703 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5704 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5711 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5715 MAKEINFO=$ac_cv_path_MAKEINFO
5716 if test -n "$MAKEINFO"; then
5717 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5718 $as_echo "$MAKEINFO" >&6; }
5720 { $as_echo "$as_me:$LINENO: result: no" >&5
5721 $as_echo "no" >&6; }
5725 if test "$MAKEINFO" != "no" && \
5726 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
5730 ## Makeinfo is unusual. For a released Emacs, the manuals are
5731 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5732 ## therefore in the category of "special tools" not normally required, which
5733 ## configure does not have to check for (eg autoconf itself).
5734 ## In a Bazaar checkout on the other hand, the manuals are not included.
5735 ## So makeinfo is a requirement to build from Bazaar, and configure
5736 ## should test for it as it does for any other build requirement.
5737 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5738 ## with pre-built manuals, from a Bazaar checkout.
5739 if test "$MAKEINFO" = "no"; then
5740 if test "x${with_makeinfo}" = "xno"; then
5742 elif test ! -e $srcdir/info/emacs; then
5743 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5744 source tree does not seem to have pre-built manuals in the \`info
' directory.
5745 Either install a suitable version of makeinfo, or re-run configure
5746 with the \`--without-makeinfo' option to build without the manuals.
" >&5
5747 $as_echo "$as_me: error
: You
do not seem to have makeinfo
>= 4.6, and your
5748 source tree does not seem to have pre-built manuals
in the \
`info' directory.
5749 Either install a suitable version of makeinfo, or re-run configure
5750 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5751 { (exit 1); exit 1; }; }
5756 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5758 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5761 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5763 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5767 late_LDFLAGS=$LDFLAGS
5768 if test "$GCC" = yes; then
5769 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5771 LDFLAGS="$LDFLAGS -znocombreloc"
5774 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5775 $as_echo_n "checking for -znocombreloc... " >&6; }
5776 cat >conftest.$ac_ext <<_ACEOF
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (ac_try="$ac_link"
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5786 $as_echo "$ac_try_echo") >&5
5787 (eval "$ac_link") 2>conftest.er1
5789 grep -v '^
*+' conftest.er1 >conftest.err
5791 cat conftest.err >&5
5792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } && {
5794 test -z "$ac_c_werror_flag" ||
5795 test ! -s conftest.err
5796 } && test -s conftest$ac_exeext && {
5797 test "$cross_compiling" = yes ||
5798 $as_test_x conftest$ac_exeext
5800 { $as_echo "$as_me:$LINENO: result: yes" >&5
5801 $as_echo "yes" >&6; }
5803 $as_echo "$as_me: failed program was:" >&5
5804 sed 's
/^
/|
/' conftest.$ac_ext >&5
5806 LDFLAGS=$late_LDFLAGS
5807 { $as_echo "$as_me:$LINENO: result: no" >&5
5808 $as_echo "no" >&6; }
5811 rm -rf conftest.dSYM
5812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5813 conftest$ac_exeext conftest.$ac_ext
5815 #### Extract some information from the operating system and machine files.
5817 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5818 - which libraries the lib-src programs will want, and
5819 - whether the GNU malloc routines are usable..." >&5
5820 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5821 - which libraries the lib-src programs will want, and
5822 - whether the GNU malloc routines are usable..." >&6;}
5824 ### First figure out CFLAGS (which we use for running the compiler here)
5825 ### and REAL_CFLAGS (which we use for real compilation).
5826 ### The two are the same except on a few systems, where they are made
5827 ### different to work around various lossages. For example,
5828 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5829 ### as implying static linking.
5831 ### If the CFLAGS env var is specified, we use that value
5832 ### instead of the default.
5834 ### It's not important that this name contain the PID
; you can
't run
5835 ### two configures in the same directory and have anything work
5837 tempcname="conftest.c"
5840 #include "'${srcdir}'/src/'${opsysfile}'"
5841 #include "'${srcdir}'/src/'${machfile}'"
5843 configure___ LIBX
=-lX11
5845 configure___ unexec
=UNEXEC
5847 #ifdef SYSTEM_MALLOC
5848 configure___ system_malloc
=yes
5850 configure___ system_malloc
=no
5853 #ifdef USE_MMAP_FOR_BUFFERS
5854 configure___ use_mmap_for_buffers
=yes
5856 configure___ use_mmap_for_buffers
=no
5859 #ifndef C_OPTIMIZE_SWITCH
5861 #define C_OPTIMIZE_SWITCH -O2
5863 #define C_OPTIMIZE_SWITCH -O
5867 #ifndef C_WARNINGS_SWITCH
5868 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5871 #ifdef THIS_IS_CONFIGURE
5873 /* Get the CFLAGS
for tests
in configure.
*/
5875 configure___ CFLAGS
=-g C_OPTIMIZE_SWITCH
'${SPECIFIED_CFLAGS}'
5877 configure___ CFLAGS
='${SPECIFIED_CFLAGS}'
5880 #else /* not THIS_IS_CONFIGURE */
5882 /* Get the CFLAGS
for real compilation.
*/
5884 configure___ REAL_CFLAGS
=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH
${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5886 configure___ REAL_CFLAGS
='${SPECIFIED_CFLAGS}'
5889 #endif /* not THIS_IS_CONFIGURE */
5892 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5894 # The value of CPP is a quoted variable reference, so we need to do this
5895 # to get its actual value...
5896 CPP=`eval "echo $CPP"`
5897 eval `${CPP} -Isrc ${tempcname} \
5898 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5899 if test "x$SPECIFIED_CFLAGS" = x; then
5900 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5901 | sed -n -e 's
/^configure___ \
([^
=]*=\
)\
(.
*\
)$
/\
1"\2"/p
'`
5903 REAL_CFLAGS="$CFLAGS"
5911 ## Let `ld' find image libs and similar things
in /usr
/local
/lib.
5912 ## The system compiler, GCC, has apparently been modified to not
5913 ## look there, contrary to what a stock GCC would do.
5914 LD_SWITCH_SYSTEM
=-L/usr
/local
/lib
5918 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5919 test "$machine" = "mips" && LD_SWITCH_SYSTEM
="-G 0"
5923 LD_SWITCH_SYSTEM
="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5927 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5928 ## otherwise Emacs dumps core on elf systems.
5929 LD_SWITCH_SYSTEM
="-Z"
5934 ac_link
="$ac_link $LD_SWITCH_SYSTEM"
5936 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5937 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5938 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5939 ## values in configure and the Makefiles. How helpful.
5940 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5943 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5944 LD_SWITCH_SYSTEM
="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5947 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5948 LD_SWITCH_SYSTEM
="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5953 if test "$machine" = "alpha"; then
5954 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5955 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5956 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5957 $as_echo_n "(cached) " >&6
5959 cat >conftest.
$ac_ext <<_ACEOF
5962 cat confdefs.h
>>conftest.
$ac_ext
5963 cat >>conftest.
$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5965 $ac_includes_default
5977 rm -f conftest.
$ac_objext
5978 if { (ac_try
="$ac_compile"
5980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5984 $as_echo "$ac_try_echo") >&5
5985 (eval "$ac_compile") 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } && {
5992 test -z "$ac_c_werror_flag" ||
5993 test ! -s conftest.err
5994 } && test -s conftest.$ac_objext; then
5995 ac_cv_have_decl___ELF__=yes
5997 $as_echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6000 ac_cv_have_decl___ELF__=no
6003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6005 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6006 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6008 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6009 ## With ELF, make sure that all common symbols get allocated to in the
6010 ## data section. Otherwise, the dump of temacs may miss variables in
6011 ## the shared library that have been initialized. For example, with
6012 ## GNU libc, __malloc_initialized would normally be resolved to the
6013 ## shared library's .bss section, which is fatal.
6014 if test "x$GCC" = "xyes"; then
6015 C_SWITCH_MACHINE="-fno-common"
6017 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6018 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6019 { (exit 1); exit 1; }; }
6027 ## Some programs in src produce warnings saying certain subprograms
6028 ## are too complex and need a MAXMEM value greater than 2000 for
6029 ## additional optimization. --nils@exp-math.uni-essen.de
6030 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6031 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6032 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6033 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6039 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6040 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6042 freebsd) LIBS_SYSTEM="-lutil" ;;
6044 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6046 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6048 ## Motif needs -lgen.
6049 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6054 ### Make sure subsequent tests use flags consistent with the build flags.
6056 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6057 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6059 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6064 # Check whether --enable-largefile was given.
6065 if test "${enable_largefile+set}" = set; then
6066 enableval=$enable_largefile;
6069 if test "$enable_largefile" != no; then
6071 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6072 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6073 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6074 $as_echo_n "(cached) " >&6
6076 ac_cv_sys_largefile_CC=no
6077 if test "$GCC" != yes; then
6080 # IRIX 6.2 and later do not support large files by default,
6081 # so use the C compiler's -n32 option if that helps.
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
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
6133 rm -f conftest.
$ac_objext
6134 if { (ac_try
="$ac_compile"
6136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6140 $as_echo "$ac_try_echo") >&5
6141 (eval "$ac_compile") 2>conftest.er1
6143 grep -v '^ *+' conftest.er1 >conftest.err
6145 cat conftest.err >&5
6146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } && {
6148 test -z "$ac_c_werror_flag" ||
6149 test ! -s conftest.err
6150 } && test -s conftest.$ac_objext; then
6151 ac_cv_sys_largefile_CC=' -n32'; break
6153 $as_echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6159 rm -f core conftest.err conftest.$ac_objext
6163 rm -f conftest.$ac_ext
6166 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6167 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6168 if test "$ac_cv_sys_largefile_CC" != no; then
6169 CC=$CC$ac_cv_sys_largefile_CC
6172 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6173 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6174 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6175 $as_echo_n "(cached) " >&6
6178 cat >conftest.$ac_ext <<_ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 #include <sys/types.h>
6185 /* Check that off_t can represent 2**63 - 1 correctly.
6186 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6187 since some C++ compilers masquerading as C compilers
6188 incorrectly reject 9223372036854775807. */
6189 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6190 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6191 && LARGE_OFF_T % 2147483647 == 1)
6201 rm -f conftest.$ac_objext
6202 if { (ac_try="$ac_compile"
6204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6205 *) ac_try_echo
=$ac_try;;
6207 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6208 $as_echo "$ac_try_echo") >&5
6209 (eval "$ac_compile") 2>conftest.er1
6211 grep -v '^ *+' conftest.er1
>conftest.err
6213 cat conftest.err
>&5
6214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest.
$ac_objext; then
6219 ac_cv_sys_file_offset_bits
=no
; break
6221 $as_echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.
$ac_ext >&5
6227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6228 cat >conftest.
$ac_ext <<_ACEOF
6231 cat confdefs.h
>>conftest.
$ac_ext
6232 cat >>conftest.
$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 #define _FILE_OFFSET_BITS 64
6235 #include <sys/types.h>
6236 /* Check that off_t can represent 2**63 - 1 correctly.
6237 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6238 since some C++ compilers masquerading as C compilers
6239 incorrectly reject 9223372036854775807. */
6240 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6241 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6242 && LARGE_OFF_T % 2147483647 == 1)
6252 rm -f conftest.
$ac_objext
6253 if { (ac_try
="$ac_compile"
6255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6259 $as_echo "$ac_try_echo") >&5
6260 (eval "$ac_compile") 2>conftest.er1
6262 grep -v '^ *+' conftest.er1 >conftest.err
6264 cat conftest.err >&5
6265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } && {
6267 test -z "$ac_c_werror_flag" ||
6268 test ! -s conftest.err
6269 } && test -s conftest.$ac_objext; then
6270 ac_cv_sys_file_offset_bits=64; break
6272 $as_echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279 ac_cv_sys_file_offset_bits=unknown
6283 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6284 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6285 case $ac_cv_sys_file_offset_bits in #(
6288 cat >>confdefs.h <<_ACEOF
6289 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6294 if test $ac_cv_sys_file_offset_bits = unknown; then
6295 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6296 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6297 if test "${ac_cv_sys_large_files+set}" = set; then
6298 $as_echo_n "(cached) " >&6
6301 cat >conftest.$ac_ext <<_ACEOF
6304 cat confdefs.h >>conftest.$ac_ext
6305 cat >>conftest.$ac_ext <<_ACEOF
6306 /* end confdefs.h. */
6307 #include <sys/types.h>
6308 /* Check that off_t can represent 2**63 - 1 correctly.
6309 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6310 since some C++ compilers masquerading as C compilers
6311 incorrectly reject 9223372036854775807. */
6312 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6313 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6314 && LARGE_OFF_T % 2147483647 == 1)
6324 rm -f conftest.$ac_objext
6325 if { (ac_try="$ac_compile"
6327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6328 *) ac_try_echo
=$ac_try;;
6330 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6331 $as_echo "$ac_try_echo") >&5
6332 (eval "$ac_compile") 2>conftest.er1
6334 grep -v '^ *+' conftest.er1
>conftest.err
6336 cat conftest.err
>&5
6337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } && {
6339 test -z "$ac_c_werror_flag" ||
6340 test ! -s conftest.err
6341 } && test -s conftest.
$ac_objext; then
6342 ac_cv_sys_large_files
=no
; break
6344 $as_echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.
$ac_ext >&5
6350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6351 cat >conftest.
$ac_ext <<_ACEOF
6354 cat confdefs.h
>>conftest.
$ac_ext
6355 cat >>conftest.
$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 #define _LARGE_FILES 1
6358 #include <sys/types.h>
6359 /* Check that off_t can represent 2**63 - 1 correctly.
6360 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6361 since some C++ compilers masquerading as C compilers
6362 incorrectly reject 9223372036854775807. */
6363 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6364 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6365 && LARGE_OFF_T % 2147483647 == 1)
6375 rm -f conftest.
$ac_objext
6376 if { (ac_try
="$ac_compile"
6378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6382 $as_echo "$ac_try_echo") >&5
6383 (eval "$ac_compile") 2>conftest.er1
6385 grep -v '^ *+' conftest.er1 >conftest.err
6387 cat conftest.err >&5
6388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } && {
6390 test -z "$ac_c_werror_flag" ||
6391 test ! -s conftest.err
6392 } && test -s conftest.$ac_objext; then
6393 ac_cv_sys_large_files=1; break
6395 $as_echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6402 ac_cv_sys_large_files=unknown
6406 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6407 $as_echo "$ac_cv_sys_large_files" >&6; }
6408 case $ac_cv_sys_large_files in #(
6411 cat >>confdefs.h <<_ACEOF
6412 #define _LARGE_FILES $ac_cv_sys_large_files
6422 ## If user specified a crt-dir, use that unconditionally.
6423 if test "X$CRT_DIR" = "X"; then
6425 case "$canonical" in
6426 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6427 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6428 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6429 ## For anything else (eg /usr/lib32), it is up the user to specify
6430 ## the location (bug#5655).
6431 ## Test for crtn.o, not just the directory, because sometimes the
6432 ## directory exists but does not have the relevant files (bug#1287).
6433 ## FIXME better to test for binary compatibility somehow.
6434 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6437 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6441 hpux10-20) CRT_DIR=/lib ;;
6444 ## Default is /usr/lib.
6445 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6449 ## Some platforms don't use any of these files, so it is not
6450 ## appropriate to put this test outside the if block.
6451 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6452 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6453 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6454 { (exit 1); exit 1; }; }
6467 START_FILES='ecrt0.o'
6470 ## Adding -lm confuses the dynamic linker, so omit it.
6472 START_FILES='pre-crt0.o'
6475 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6476 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6478 gnu-linux | gnu-kfreebsd )
6479 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6480 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6482 hpux10-20 | hpux11 )
6484 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6487 if test -f $(CRT_DIR)/crti.o; then
6488 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6489 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6491 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6492 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6503 if test "${with_sound}" != "no"; then
6504 # Sound support for GNU/Linux and the free BSDs.
6508 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6512 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6513 $as_echo_n "checking for $ac_header... " >&6; }
6514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6515 $as_echo_n "(cached) " >&6
6517 ac_res=`eval 'as_val=${'$as_ac_Header'}
6518 $as_echo "$as_val"'`
6519 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6520 $as_echo "$ac_res" >&6; }
6522 # Is the header compilable?
6523 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6524 $as_echo_n "checking $ac_header usability... " >&6; }
6525 cat >conftest.$ac_ext <<_ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 $ac_includes_default
6532 #include <$ac_header>
6534 rm -f conftest.$ac_objext
6535 if { (ac_try="$ac_compile"
6537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6538 *) ac_try_echo
=$ac_try;;
6540 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6541 $as_echo "$ac_try_echo") >&5
6542 (eval "$ac_compile") 2>conftest.er1
6544 grep -v '^ *+' conftest.er1
>conftest.err
6546 cat conftest.err
>&5
6547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } && {
6549 test -z "$ac_c_werror_flag" ||
6550 test ! -s conftest.err
6551 } && test -s conftest.
$ac_objext; then
6552 ac_header_compiler
=yes
6554 $as_echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.
$ac_ext >&5
6557 ac_header_compiler
=no
6560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6561 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6562 $as_echo "$ac_header_compiler" >&6; }
6564 # Is the header present?
6565 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6566 $as_echo_n "checking $ac_header presence... " >&6; }
6567 cat >conftest.
$ac_ext <<_ACEOF
6570 cat confdefs.h
>>conftest.
$ac_ext
6571 cat >>conftest.
$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 #include <$ac_header>
6575 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6581 $as_echo "$ac_try_echo") >&5
6582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6584 grep -v '^ *+' conftest.er1 >conftest.err
6586 cat conftest.err >&5
6587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } >/dev/null && {
6589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6592 ac_header_preproc=yes
6594 $as_echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6597 ac_header_preproc=no
6600 rm -f conftest.err conftest.$ac_ext
6601 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6602 $as_echo "$ac_header_preproc" >&6; }
6604 # So? What about this header?
6605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6608 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6610 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6611 ac_header_preproc=yes
6614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6615 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6617 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6619 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6621 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6625 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6629 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6630 $as_echo_n "checking for $ac_header... " >&6; }
6631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6632 $as_echo_n "(cached) " >&6
6634 eval "$as_ac_Header=\$ac_header_preproc"
6636 ac_res=`eval 'as_val=${'$as_ac_Header'}
6637 $as_echo "$as_val"'`
6638 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6639 $as_echo "$ac_res" >&6; }
6642 if test `eval 'as_val=${'$as_ac_Header'}
6643 $as_echo "$as_val"'` = yes; then
6644 cat >>confdefs.h <<_ACEOF
6645 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6652 # Emulation library used on NetBSD.
6653 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6654 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6655 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6656 $as_echo_n "(cached) " >&6
6658 ac_check_lib_save_LIBS=$LIBS
6659 LIBS="-lossaudio $LIBS"
6660 cat >conftest.$ac_ext <<_ACEOF
6663 cat confdefs.h >>conftest.$ac_ext
6664 cat >>conftest.$ac_ext <<_ACEOF
6665 /* end confdefs.h. */
6667 /* Override any GCC internal prototype to avoid an error.
6668 Use char because int might match the return type of a GCC
6669 builtin and then its argument prototype would still apply. */
6677 return _oss_ioctl ();
6682 rm -f conftest.$ac_objext conftest$ac_exeext
6683 if { (ac_try="$ac_link"
6685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6686 *) ac_try_echo
=$ac_try;;
6688 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6689 $as_echo "$ac_try_echo") >&5
6690 (eval "$ac_link") 2>conftest.er1
6692 grep -v '^ *+' conftest.er1
>conftest.err
6694 cat conftest.err
>&5
6695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } && {
6697 test -z "$ac_c_werror_flag" ||
6698 test ! -s conftest.err
6699 } && test -s conftest
$ac_exeext && {
6700 test "$cross_compiling" = yes ||
6701 $as_test_x conftest
$ac_exeext
6703 ac_cv_lib_ossaudio__oss_ioctl
=yes
6705 $as_echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.
$ac_ext >&5
6708 ac_cv_lib_ossaudio__oss_ioctl
=no
6711 rm -rf conftest.dSYM
6712 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6713 conftest
$ac_exeext conftest.
$ac_ext
6714 LIBS
=$ac_check_lib_save_LIBS
6716 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6717 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6718 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6727 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6731 # Extract the first word of "pkg-config", so it can be a program name with args.
6732 set dummy pkg-config
; ac_word
=$2
6733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6736 $as_echo_n "(cached) " >&6
6740 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir
=.
6748 for ac_exec_ext
in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6762 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6763 if test -n "$PKG_CONFIG"; then
6764 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6765 $as_echo "$PKG_CONFIG" >&6; }
6767 { $as_echo "$as_me:$LINENO: result: no" >&5
6768 $as_echo "no" >&6; }
6773 if test "$PKG_CONFIG" = "no" ; then
6776 PKG_CONFIG_MIN_VERSION
=0.9.0
6777 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6778 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6779 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6781 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6782 { $as_echo "$as_me:$LINENO: result: yes" >&5
6783 $as_echo "yes" >&6; }
6786 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6787 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6788 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6789 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6790 $as_echo "$ALSA_CFLAGS" >&6; }
6792 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6793 $as_echo_n "checking ALSA_LIBS... " >&6; }
6794 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6795 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6796 $as_echo "$ALSA_LIBS" >&6; }
6798 { $as_echo "$as_me:$LINENO: result: no" >&5
6799 $as_echo "no" >&6; }
6802 ## If we have a custom action on failure, don't print errors, but
6803 ## do set a variable so people can do so.
6804 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6811 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6812 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6816 if test $succeeded = yes; then
6822 if test $HAVE_ALSA = yes; then
6823 SAVE_CFLAGS
="$CFLAGS"
6824 SAVE_LDFLAGS
="$LDFLAGS"
6825 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6826 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6827 cat >conftest.
$ac_ext <<_ACEOF
6830 cat confdefs.h
>>conftest.
$ac_ext
6831 cat >>conftest.
$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6833 #include <asoundlib.h>
6837 snd_lib_error_set_handler (0);
6842 rm -f conftest.
$ac_objext
6843 if { (ac_try
="$ac_compile"
6845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6846 *) ac_try_echo=$ac_try;;
6848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6849 $as_echo "$ac_try_echo") >&5
6850 (eval "$ac_compile") 2>conftest.er1
6852 grep -v '^ *+' conftest.er1 >conftest.err
6854 cat conftest.err >&5
6855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && {
6857 test -z "$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 } && test -s conftest.$ac_objext; then
6860 emacs_alsa_normal=yes
6862 $as_echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6865 emacs_alsa_normal=no
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 if test "$emacs_alsa_normal" != yes; then
6870 cat >conftest.$ac_ext <<_ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6876 #include <alsa/asoundlib.h>
6880 snd_lib_error_set_handler (0);
6885 rm -f conftest.$ac_objext
6886 if { (ac_try="$ac_compile"
6888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6889 *) ac_try_echo
=$ac_try;;
6891 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6892 $as_echo "$ac_try_echo") >&5
6893 (eval "$ac_compile") 2>conftest.er1
6895 grep -v '^ *+' conftest.er1
>conftest.err
6897 cat conftest.err
>&5
6898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); } && {
6900 test -z "$ac_c_werror_flag" ||
6901 test ! -s conftest.err
6902 } && test -s conftest.
$ac_objext; then
6903 emacs_alsa_subdir
=yes
6905 $as_echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.
$ac_ext >&5
6908 emacs_alsa_subdir
=no
6911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6912 if test "$emacs_alsa_subdir" != yes; then
6913 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6914 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6915 { (exit 1); exit 1; }; }
6917 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6920 CFLAGS
="$SAVE_CFLAGS"
6921 LDFLAGS
="$SAVE_LDFLAGS"
6922 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6923 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6925 cat >>confdefs.h
<<\_ACEOF
6958 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6959 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6960 stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6961 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6962 sys
/utsname.h
pwd.h utmp.h
6964 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6965 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6966 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6967 $as_echo_n "checking for $ac_header... " >&6; }
6968 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6969 $as_echo_n "(cached) " >&6
6971 ac_res
=`eval 'as_val=${'$as_ac_Header'}
6972 $as_echo "$as_val"'`
6973 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6974 $as_echo "$ac_res" >&6; }
6976 # Is the header compilable?
6977 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6978 $as_echo_n "checking $ac_header usability... " >&6; }
6979 cat >conftest.
$ac_ext <<_ACEOF
6982 cat confdefs.h
>>conftest.
$ac_ext
6983 cat >>conftest.
$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6985 $ac_includes_default
6986 #include <$ac_header>
6988 rm -f conftest.
$ac_objext
6989 if { (ac_try
="$ac_compile"
6991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6992 *) ac_try_echo=$ac_try;;
6994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6995 $as_echo "$ac_try_echo") >&5
6996 (eval "$ac_compile") 2>conftest.er1
6998 grep -v '^ *+' conftest.er1 >conftest.err
7000 cat conftest.err >&5
7001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } && {
7003 test -z "$ac_c_werror_flag" ||
7004 test ! -s conftest.err
7005 } && test -s conftest.$ac_objext; then
7006 ac_header_compiler=yes
7008 $as_echo "$as_me: failed program was:" >&5
7009 sed 's/^/| /' conftest.$ac_ext >&5
7011 ac_header_compiler=no
7014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7016 $as_echo "$ac_header_compiler" >&6; }
7018 # Is the header present?
7019 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7020 $as_echo_n "checking $ac_header presence... " >&6; }
7021 cat >conftest.$ac_ext <<_ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7027 #include <$ac_header>
7029 if { (ac_try="$ac_cpp conftest.$ac_ext"
7031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7032 *) ac_try_echo
=$ac_try;;
7034 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7035 $as_echo "$ac_try_echo") >&5
7036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7038 grep -v '^ *+' conftest.er1
>conftest.err
7040 cat conftest.err
>&5
7041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } >/dev
/null
&& {
7043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7044 test ! -s conftest.err
7046 ac_header_preproc
=yes
7048 $as_echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.
$ac_ext >&5
7051 ac_header_preproc
=no
7054 rm -f conftest.err conftest.
$ac_ext
7055 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7056 $as_echo "$ac_header_preproc" >&6; }
7058 # So? What about this header?
7059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7062 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7064 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7065 ac_header_preproc
=yes
7068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7069 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7071 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7073 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7075 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7077 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7079 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7083 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7084 $as_echo_n "checking for $ac_header... " >&6; }
7085 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7086 $as_echo_n "(cached) " >&6
7088 eval "$as_ac_Header=\$ac_header_preproc"
7090 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7091 $as_echo "$as_val"'`
7092 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7093 $as_echo "$ac_res" >&6; }
7096 if test `eval 'as_val=${'$as_ac_Header'}
7097 $as_echo "$as_val"'` = yes; then
7098 cat >>confdefs.h
<<_ACEOF
7099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7107 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7108 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7109 cat >conftest.
$ac_ext <<_ACEOF
7112 cat confdefs.h
>>conftest.
$ac_ext
7113 cat >>conftest.
$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 #include <sys/personality.h>
7119 personality (PER_LINUX32)
7124 rm -f conftest.
$ac_objext
7125 if { (ac_try
="$ac_compile"
7127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7128 *) ac_try_echo=$ac_try;;
7130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7131 $as_echo "$ac_try_echo") >&5
7132 (eval "$ac_compile") 2>conftest.er1
7134 grep -v '^ *+' conftest.er1 >conftest.err
7136 cat conftest.err >&5
7137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } && {
7139 test -z "$ac_c_werror_flag" ||
7140 test ! -s conftest.err
7141 } && test -s conftest.$ac_objext; then
7142 emacs_cv_personality_linux32=yes
7144 $as_echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.$ac_ext >&5
7147 emacs_cv_personality_linux32=no
7150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7152 $as_echo "$emacs_cv_personality_linux32" >&6; }
7154 if test $emacs_cv_personality_linux32 = yes; then
7156 cat >>confdefs.h <<\_ACEOF
7157 #define HAVE_PERSONALITY_LINUX32 1
7163 for ac_header in term.h
7165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7166 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7167 $as_echo_n "checking for $ac_header... " >&6; }
7168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7169 $as_echo_n "(cached) " >&6
7171 cat >conftest.$ac_ext <<_ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #include <$ac_header>
7179 if { (ac_try="$ac_cpp conftest.$ac_ext"
7181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7182 *) ac_try_echo
=$ac_try;;
7184 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7185 $as_echo "$ac_try_echo") >&5
7186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7188 grep -v '^ *+' conftest.er1
>conftest.err
7190 cat conftest.err
>&5
7191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } >/dev
/null
&& {
7193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7194 test ! -s conftest.err
7196 eval "$as_ac_Header=yes"
7198 $as_echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.
$ac_ext >&5
7201 eval "$as_ac_Header=no"
7204 rm -f conftest.err conftest.
$ac_ext
7206 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7207 $as_echo "$as_val"'`
7208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7209 $as_echo "$ac_res" >&6; }
7210 if test `eval 'as_val=${'$as_ac_Header'}
7211 $as_echo "$as_val"'` = yes; then
7212 cat >>confdefs.h
<<_ACEOF
7213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7220 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7221 $as_echo_n "checking for ANSI C header files... " >&6; }
7222 if test "${ac_cv_header_stdc+set}" = set; then
7223 $as_echo_n "(cached) " >&6
7225 cat >conftest.
$ac_ext <<_ACEOF
7228 cat confdefs.h
>>conftest.
$ac_ext
7229 cat >>conftest.
$ac_ext <<_ACEOF
7230 /* end confdefs.h. */
7244 rm -f conftest.
$ac_objext
7245 if { (ac_try
="$ac_compile"
7247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7248 *) ac_try_echo=$ac_try;;
7250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7251 $as_echo "$ac_try_echo") >&5
7252 (eval "$ac_compile") 2>conftest.er1
7254 grep -v '^ *+' conftest.er1 >conftest.err
7256 cat conftest.err >&5
7257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } && {
7259 test -z "$ac_c_werror_flag" ||
7260 test ! -s conftest.err
7261 } && test -s conftest.$ac_objext; then
7262 ac_cv_header_stdc=yes
7264 $as_echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7267 ac_cv_header_stdc=no
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7272 if test $ac_cv_header_stdc = yes; then
7273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7274 cat >conftest.$ac_ext <<_ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7284 $EGREP "memchr" >/dev/null 2>&1; then
7287 ac_cv_header_stdc=no
7293 if test $ac_cv_header_stdc = yes; then
7294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7295 cat >conftest.$ac_ext <<_ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7305 $EGREP "free" >/dev/null 2>&1; then
7308 ac_cv_header_stdc=no
7314 if test $ac_cv_header_stdc = yes; then
7315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7316 if test "$cross_compiling" = yes; then
7319 cat >conftest.$ac_ext <<_ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7327 #if ((' ' & 0x0FF) == 0x020)
7328 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7329 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7331 # define ISLOWER(c) \
7332 (('a' <= (c) && (c) <= 'i') \
7333 || ('j' <= (c) && (c) <= 'r') \
7334 || ('s' <= (c) && (c) <= 'z'))
7335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7343 for (i = 0; i < 256; i++)
7344 if (XOR (islower (i), ISLOWER (i))
7345 || toupper (i) != TOUPPER (i))
7350 rm -f conftest$ac_exeext
7351 if { (ac_try="$ac_link"
7353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7354 *) ac_try_echo
=$ac_try;;
7356 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7357 $as_echo "$ac_try_echo") >&5
7358 (eval "$ac_link") 2>&5
7360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7362 { (case "(($ac_try" in
7363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7367 $as_echo "$ac_try_echo") >&5
7368 (eval "$ac_try") 2>&5
7370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; }; then
7374 $as_echo "$as_me: program exited with status $ac_status" >&5
7375 $as_echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7379 ac_cv_header_stdc=no
7381 rm -rf conftest.dSYM
7382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7388 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7389 $as_echo "$ac_cv_header_stdc" >&6; }
7390 if test $ac_cv_header_stdc = yes; then
7392 cat >>confdefs.h <<\_ACEOF
7393 #define STDC_HEADERS 1
7398 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7399 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7400 if test "${ac_cv_header_time+set}" = set; then
7401 $as_echo_n "(cached) " >&6
7403 cat >conftest.$ac_ext <<_ACEOF
7406 cat confdefs.h >>conftest.$ac_ext
7407 cat >>conftest.$ac_ext <<_ACEOF
7408 /* end confdefs.h. */
7409 #include <sys/types.h>
7410 #include <sys/time.h>
7416 if ((struct tm *) 0)
7422 rm -f conftest.$ac_objext
7423 if { (ac_try="$ac_compile"
7425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7426 *) ac_try_echo
=$ac_try;;
7428 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7429 $as_echo "$ac_try_echo") >&5
7430 (eval "$ac_compile") 2>conftest.er1
7432 grep -v '^ *+' conftest.er1
>conftest.err
7434 cat conftest.err
>&5
7435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } && {
7437 test -z "$ac_c_werror_flag" ||
7438 test ! -s conftest.err
7439 } && test -s conftest.
$ac_objext; then
7440 ac_cv_header_time
=yes
7442 $as_echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.
$ac_ext >&5
7445 ac_cv_header_time
=no
7448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7450 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7451 $as_echo "$ac_cv_header_time" >&6; }
7452 if test $ac_cv_header_time = yes; then
7454 cat >>confdefs.h
<<\_ACEOF
7455 #define TIME_WITH_SYS_TIME 1
7460 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7461 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7462 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7463 $as_echo_n "(cached) " >&6
7465 cat >conftest.
$ac_ext <<_ACEOF
7468 cat confdefs.h
>>conftest.
$ac_ext
7469 cat >>conftest.
$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 $ac_includes_default
7483 rm -f conftest.
$ac_objext
7484 if { (ac_try
="$ac_compile"
7486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7487 *) ac_try_echo=$ac_try;;
7489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7490 $as_echo "$ac_try_echo") >&5
7491 (eval "$ac_compile") 2>conftest.er1
7493 grep -v '^ *+' conftest.er1 >conftest.err
7495 cat conftest.err >&5
7496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } && {
7498 test -z "$ac_c_werror_flag" ||
7499 test ! -s conftest.err
7500 } && test -s conftest.$ac_objext; then
7501 ac_cv_have_decl_sys_siglist=yes
7503 $as_echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7506 ac_cv_have_decl_sys_siglist=no
7509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7512 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7513 if test $ac_cv_have_decl_sys_siglist = yes; then
7515 cat >>confdefs.h <<_ACEOF
7516 #define HAVE_DECL_SYS_SIGLIST 1
7521 cat >>confdefs.h <<_ACEOF
7522 #define HAVE_DECL_SYS_SIGLIST 0
7529 if test $ac_cv_have_decl_sys_siglist != yes; then
7530 # For Tru64, at least:
7531 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7532 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7533 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7534 $as_echo_n "(cached) " >&6
7536 cat >conftest.$ac_ext <<_ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542 $ac_includes_default
7546 #ifndef __sys_siglist
7547 (void) __sys_siglist;
7554 rm -f conftest.$ac_objext
7555 if { (ac_try="$ac_compile"
7557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7558 *) ac_try_echo
=$ac_try;;
7560 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7561 $as_echo "$ac_try_echo") >&5
7562 (eval "$ac_compile") 2>conftest.er1
7564 grep -v '^ *+' conftest.er1
>conftest.err
7566 cat conftest.err
>&5
7567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } && {
7569 test -z "$ac_c_werror_flag" ||
7570 test ! -s conftest.err
7571 } && test -s conftest.
$ac_objext; then
7572 ac_cv_have_decl___sys_siglist
=yes
7574 $as_echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.
$ac_ext >&5
7577 ac_cv_have_decl___sys_siglist
=no
7580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7582 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7583 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7584 if test $ac_cv_have_decl___sys_siglist = yes; then
7586 cat >>confdefs.h
<<_ACEOF
7587 #define HAVE_DECL___SYS_SIGLIST 1
7592 cat >>confdefs.h
<<_ACEOF
7593 #define HAVE_DECL___SYS_SIGLIST 0
7600 if test $ac_cv_have_decl___sys_siglist = yes; then
7602 cat >>confdefs.h
<<\_ACEOF
7603 #define sys_siglist __sys_siglist
7608 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7609 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7610 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7611 $as_echo_n "(cached) " >&6
7613 cat >conftest.
$ac_ext <<_ACEOF
7616 cat confdefs.h
>>conftest.
$ac_ext
7617 cat >>conftest.
$ac_ext <<_ACEOF
7618 /* end confdefs.h. */
7619 #include <sys/types.h>
7620 #include <sys/wait.h>
7622 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7625 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7633 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7638 rm -f conftest.
$ac_objext
7639 if { (ac_try
="$ac_compile"
7641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7642 *) ac_try_echo=$ac_try;;
7644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7645 $as_echo "$ac_try_echo") >&5
7646 (eval "$ac_compile") 2>conftest.er1
7648 grep -v '^ *+' conftest.er1 >conftest.err
7650 cat conftest.err >&5
7651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } && {
7653 test -z "$ac_c_werror_flag" ||
7654 test ! -s conftest.err
7655 } && test -s conftest.$ac_objext; then
7656 ac_cv_header_sys_wait_h=yes
7658 $as_echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7661 ac_cv_header_sys_wait_h=no
7664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7667 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7668 if test $ac_cv_header_sys_wait_h = yes; then
7670 cat >>confdefs.h <<\_ACEOF
7671 #define HAVE_SYS_WAIT_H 1
7677 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7678 $as_echo_n "checking for struct utimbuf... " >&6; }
7679 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7680 $as_echo_n "(cached) " >&6
7682 cat >conftest.$ac_ext <<_ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 #ifdef TIME_WITH_SYS_TIME
7689 #include <sys/time.h>
7692 #ifdef HAVE_SYS_TIME_H
7693 #include <sys/time.h>
7704 static struct utimbuf x; x.actime = x.modtime;
7709 rm -f conftest.$ac_objext
7710 if { (ac_try="$ac_compile"
7712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7713 *) ac_try_echo
=$ac_try;;
7715 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7716 $as_echo "$ac_try_echo") >&5
7717 (eval "$ac_compile") 2>conftest.er1
7719 grep -v '^ *+' conftest.er1
>conftest.err
7721 cat conftest.err
>&5
7722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.
$ac_objext; then
7727 emacs_cv_struct_utimbuf
=yes
7729 $as_echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.
$ac_ext >&5
7732 emacs_cv_struct_utimbuf
=no
7735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7737 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7738 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7739 if test $emacs_cv_struct_utimbuf = yes; then
7741 cat >>confdefs.h
<<\_ACEOF
7742 #define HAVE_STRUCT_UTIMBUF 1
7747 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7748 $as_echo_n "checking return type of signal handlers... " >&6; }
7749 if test "${ac_cv_type_signal+set}" = set; then
7750 $as_echo_n "(cached) " >&6
7752 cat >conftest.
$ac_ext <<_ACEOF
7755 cat confdefs.h
>>conftest.
$ac_ext
7756 cat >>conftest.
$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7758 #include <sys/types.h>
7764 return *(signal (0, 0)) (0) == 1;
7769 rm -f conftest.
$ac_objext
7770 if { (ac_try
="$ac_compile"
7772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7773 *) ac_try_echo=$ac_try;;
7775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7776 $as_echo "$ac_try_echo") >&5
7777 (eval "$ac_compile") 2>conftest.er1
7779 grep -v '^ *+' conftest.er1 >conftest.err
7781 cat conftest.err >&5
7782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } && {
7784 test -z "$ac_c_werror_flag" ||
7785 test ! -s conftest.err
7786 } && test -s conftest.$ac_objext; then
7787 ac_cv_type_signal=int
7789 $as_echo "$as_me: failed program was:" >&5
7790 sed 's/^/| /' conftest.$ac_ext >&5
7792 ac_cv_type_signal=void
7795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7797 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7798 $as_echo "$ac_cv_type_signal" >&6; }
7800 cat >>confdefs.h <<_ACEOF
7801 #define RETSIGTYPE $ac_cv_type_signal
7806 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7807 $as_echo_n "checking for speed_t... " >&6; }
7808 if test "${emacs_cv_speed_t+set}" = set; then
7809 $as_echo_n "(cached) " >&6
7811 cat >conftest.$ac_ext <<_ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 #include <termios.h>
7826 rm -f conftest.$ac_objext
7827 if { (ac_try="$ac_compile"
7829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7830 *) ac_try_echo
=$ac_try;;
7832 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7833 $as_echo "$ac_try_echo") >&5
7834 (eval "$ac_compile") 2>conftest.er1
7836 grep -v '^ *+' conftest.er1
>conftest.err
7838 cat conftest.err
>&5
7839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); } && {
7841 test -z "$ac_c_werror_flag" ||
7842 test ! -s conftest.err
7843 } && test -s conftest.
$ac_objext; then
7844 emacs_cv_speed_t
=yes
7846 $as_echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.
$ac_ext >&5
7852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7854 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7855 $as_echo "$emacs_cv_speed_t" >&6; }
7856 if test $emacs_cv_speed_t = yes; then
7858 cat >>confdefs.h
<<\_ACEOF
7859 #define HAVE_SPEED_T 1
7864 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7865 $as_echo_n "checking for struct timeval... " >&6; }
7866 if test "${emacs_cv_struct_timeval+set}" = set; then
7867 $as_echo_n "(cached) " >&6
7869 cat >conftest.
$ac_ext <<_ACEOF
7872 cat confdefs.h
>>conftest.
$ac_ext
7873 cat >>conftest.
$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7875 #ifdef TIME_WITH_SYS_TIME
7876 #include <sys/time.h>
7879 #ifdef HAVE_SYS_TIME_H
7880 #include <sys/time.h>
7888 static struct timeval x; x.tv_sec = x.tv_usec;
7893 rm -f conftest.
$ac_objext
7894 if { (ac_try
="$ac_compile"
7896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7897 *) ac_try_echo=$ac_try;;
7899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7900 $as_echo "$ac_try_echo") >&5
7901 (eval "$ac_compile") 2>conftest.er1
7903 grep -v '^ *+' conftest.er1 >conftest.err
7905 cat conftest.err >&5
7906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } && {
7908 test -z "$ac_c_werror_flag" ||
7909 test ! -s conftest.err
7910 } && test -s conftest.$ac_objext; then
7911 emacs_cv_struct_timeval=yes
7913 $as_echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7916 emacs_cv_struct_timeval=no
7919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7921 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7922 $as_echo "$emacs_cv_struct_timeval" >&6; }
7923 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7924 if test $emacs_cv_struct_timeval = yes; then
7926 cat >>confdefs.h <<\_ACEOF
7927 #define HAVE_TIMEVAL 1
7932 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7933 $as_echo_n "checking for struct exception... " >&6; }
7934 if test "${emacs_cv_struct_exception+set}" = set; then
7935 $as_echo_n "(cached) " >&6
7937 cat >conftest.$ac_ext <<_ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7947 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7952 rm -f conftest.$ac_objext
7953 if { (ac_try="$ac_compile"
7955 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7956 *) ac_try_echo
=$ac_try;;
7958 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7959 $as_echo "$ac_try_echo") >&5
7960 (eval "$ac_compile") 2>conftest.er1
7962 grep -v '^ *+' conftest.er1
>conftest.err
7964 cat conftest.err
>&5
7965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } && {
7967 test -z "$ac_c_werror_flag" ||
7968 test ! -s conftest.err
7969 } && test -s conftest.
$ac_objext; then
7970 emacs_cv_struct_exception
=yes
7972 $as_echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.
$ac_ext >&5
7975 emacs_cv_struct_exception
=no
7978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7980 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7981 $as_echo "$emacs_cv_struct_exception" >&6; }
7982 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7983 if test $emacs_cv_struct_exception != yes; then
7985 cat >>confdefs.h
<<\_ACEOF
7986 #define NO_MATHERR 1
7992 for ac_header
in sys
/socket.h
7994 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7995 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7996 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7997 $as_echo_n "checking for $ac_header... " >&6; }
7998 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7999 $as_echo_n "(cached) " >&6
8001 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8002 $as_echo "$as_val"'`
8003 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8004 $as_echo "$ac_res" >&6; }
8006 # Is the header compilable?
8007 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8008 $as_echo_n "checking $ac_header usability... " >&6; }
8009 cat >conftest.
$ac_ext <<_ACEOF
8012 cat confdefs.h
>>conftest.
$ac_ext
8013 cat >>conftest.
$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8015 $ac_includes_default
8016 #include <$ac_header>
8018 rm -f conftest.
$ac_objext
8019 if { (ac_try
="$ac_compile"
8021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8022 *) ac_try_echo=$ac_try;;
8024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8025 $as_echo "$ac_try_echo") >&5
8026 (eval "$ac_compile") 2>conftest.er1
8028 grep -v '^ *+' conftest.er1 >conftest.err
8030 cat conftest.err >&5
8031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } && {
8033 test -z "$ac_c_werror_flag" ||
8034 test ! -s conftest.err
8035 } && test -s conftest.$ac_objext; then
8036 ac_header_compiler=yes
8038 $as_echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8041 ac_header_compiler=no
8044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8045 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8046 $as_echo "$ac_header_compiler" >&6; }
8048 # Is the header present?
8049 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8050 $as_echo_n "checking $ac_header presence... " >&6; }
8051 cat >conftest.$ac_ext <<_ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 #include <$ac_header>
8059 if { (ac_try="$ac_cpp conftest.$ac_ext"
8061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8062 *) ac_try_echo
=$ac_try;;
8064 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8065 $as_echo "$ac_try_echo") >&5
8066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8068 grep -v '^ *+' conftest.er1
>conftest.err
8070 cat conftest.err
>&5
8071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } >/dev
/null
&& {
8073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8074 test ! -s conftest.err
8076 ac_header_preproc
=yes
8078 $as_echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.
$ac_ext >&5
8081 ac_header_preproc
=no
8084 rm -f conftest.err conftest.
$ac_ext
8085 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8086 $as_echo "$ac_header_preproc" >&6; }
8088 # So? What about this header?
8089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8092 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8094 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8095 ac_header_preproc
=yes
8098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8099 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8101 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8103 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8105 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8107 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8109 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8113 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8114 $as_echo_n "checking for $ac_header... " >&6; }
8115 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8116 $as_echo_n "(cached) " >&6
8118 eval "$as_ac_Header=\$ac_header_preproc"
8120 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8121 $as_echo "$as_val"'`
8122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8123 $as_echo "$ac_res" >&6; }
8126 if test `eval 'as_val=${'$as_ac_Header'}
8127 $as_echo "$as_val"'` = yes; then
8128 cat >>confdefs.h
<<_ACEOF
8129 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8137 for ac_header
in net
/if.h
8139 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8140 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8141 $as_echo_n "checking for $ac_header... " >&6; }
8142 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8143 $as_echo_n "(cached) " >&6
8145 cat >conftest.
$ac_ext <<_ACEOF
8148 cat confdefs.h
>>conftest.
$ac_ext
8149 cat >>conftest.
$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151 $ac_includes_default
8152 #if HAVE_SYS_SOCKET_H
8153 #include <sys/socket.h>
8156 #include <$ac_header>
8158 rm -f conftest.
$ac_objext
8159 if { (ac_try
="$ac_compile"
8161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8165 $as_echo "$ac_try_echo") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8168 grep -v '^ *+' conftest.er1 >conftest.err
8170 cat conftest.err >&5
8171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.$ac_objext; then
8176 eval "$as_ac_Header=yes"
8178 $as_echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 eval "$as_ac_Header=no"
8184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186 ac_res=`eval 'as_val=${'$as_ac_Header'}
8187 $as_echo "$as_val"'`
8188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8189 $as_echo "$ac_res" >&6; }
8190 if test `eval 'as_val=${'$as_ac_Header'}
8191 $as_echo "$as_val"'` = yes; then
8192 cat >>confdefs.h <<_ACEOF
8193 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
8201 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8202 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8203 if test "${ac_cv_struct_tm+set}" = set; then
8204 $as_echo_n "(cached) " >&6
8206 cat >conftest.$ac_ext <<_ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212 #include <sys/types.h>
8219 int *p = &tm.tm_sec;
8225 rm -f conftest.$ac_objext
8226 if { (ac_try="$ac_compile"
8228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8229 *) ac_try_echo
=$ac_try;;
8231 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8232 $as_echo "$ac_try_echo") >&5
8233 (eval "$ac_compile") 2>conftest.er1
8235 grep -v '^ *+' conftest.er1
>conftest.err
8237 cat conftest.err
>&5
8238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } && {
8240 test -z "$ac_c_werror_flag" ||
8241 test ! -s conftest.err
8242 } && test -s conftest.
$ac_objext; then
8243 ac_cv_struct_tm
=time.h
8245 $as_echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.
$ac_ext >&5
8248 ac_cv_struct_tm
=sys
/time.h
8251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8253 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8254 $as_echo "$ac_cv_struct_tm" >&6; }
8255 if test $ac_cv_struct_tm = sys
/time.h
; then
8257 cat >>confdefs.h
<<\_ACEOF
8258 #define TM_IN_SYS_TIME 1
8263 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8264 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8265 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8266 $as_echo_n "(cached) " >&6
8268 cat >conftest.
$ac_ext <<_ACEOF
8271 cat confdefs.h
>>conftest.
$ac_ext
8272 cat >>conftest.
$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8274 #include <sys/types.h>
8275 #include <$ac_cv_struct_tm>
8281 static struct tm ac_aggr;
8282 if (ac_aggr.tm_zone)
8288 rm -f conftest.
$ac_objext
8289 if { (ac_try
="$ac_compile"
8291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8295 $as_echo "$ac_try_echo") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8298 grep -v '^ *+' conftest.er1 >conftest.err
8300 cat conftest.err >&5
8301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && {
8303 test -z "$ac_c_werror_flag" ||
8304 test ! -s conftest.err
8305 } && test -s conftest.$ac_objext; then
8306 ac_cv_member_struct_tm_tm_zone=yes
8308 $as_echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8311 cat >conftest.$ac_ext <<_ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8317 #include <sys/types.h>
8318 #include <$ac_cv_struct_tm>
8324 static struct tm ac_aggr;
8325 if (sizeof ac_aggr.tm_zone)
8331 rm -f conftest.$ac_objext
8332 if { (ac_try="$ac_compile"
8334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8335 *) ac_try_echo
=$ac_try;;
8337 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8338 $as_echo "$ac_try_echo") >&5
8339 (eval "$ac_compile") 2>conftest.er1
8341 grep -v '^ *+' conftest.er1
>conftest.err
8343 cat conftest.err
>&5
8344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } && {
8346 test -z "$ac_c_werror_flag" ||
8347 test ! -s conftest.err
8348 } && test -s conftest.
$ac_objext; then
8349 ac_cv_member_struct_tm_tm_zone
=yes
8351 $as_echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.
$ac_ext >&5
8354 ac_cv_member_struct_tm_tm_zone
=no
8357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8362 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8363 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8364 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8366 cat >>confdefs.h
<<_ACEOF
8367 #define HAVE_STRUCT_TM_TM_ZONE 1
8373 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8375 cat >>confdefs.h
<<\_ACEOF
8376 #define HAVE_TM_ZONE 1
8380 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8381 $as_echo_n "checking whether tzname is declared... " >&6; }
8382 if test "${ac_cv_have_decl_tzname+set}" = set; then
8383 $as_echo_n "(cached) " >&6
8385 cat >conftest.
$ac_ext <<_ACEOF
8388 cat confdefs.h
>>conftest.
$ac_ext
8389 cat >>conftest.
$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8404 rm -f conftest.
$ac_objext
8405 if { (ac_try
="$ac_compile"
8407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8411 $as_echo "$ac_try_echo") >&5
8412 (eval "$ac_compile") 2>conftest.er1
8414 grep -v '^ *+' conftest.er1 >conftest.err
8416 cat conftest.err >&5
8417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } && {
8419 test -z "$ac_c_werror_flag" ||
8420 test ! -s conftest.err
8421 } && test -s conftest.$ac_objext; then
8422 ac_cv_have_decl_tzname=yes
8424 $as_echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.$ac_ext >&5
8427 ac_cv_have_decl_tzname=no
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8433 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8434 if test $ac_cv_have_decl_tzname = yes; then
8436 cat >>confdefs.h <<_ACEOF
8437 #define HAVE_DECL_TZNAME 1
8442 cat >>confdefs.h <<_ACEOF
8443 #define HAVE_DECL_TZNAME 0
8450 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8451 $as_echo_n "checking for tzname... " >&6; }
8452 if test "${ac_cv_var_tzname+set}" = set; then
8453 $as_echo_n "(cached) " >&6
8455 cat >conftest.$ac_ext <<_ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8462 #if !HAVE_DECL_TZNAME
8463 extern char *tzname[];
8469 return tzname[0][0];
8474 rm -f conftest.$ac_objext conftest$ac_exeext
8475 if { (ac_try="$ac_link"
8477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8478 *) ac_try_echo
=$ac_try;;
8480 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8481 $as_echo "$ac_try_echo") >&5
8482 (eval "$ac_link") 2>conftest.er1
8484 grep -v '^ *+' conftest.er1
>conftest.err
8486 cat conftest.err
>&5
8487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } && {
8489 test -z "$ac_c_werror_flag" ||
8490 test ! -s conftest.err
8491 } && test -s conftest
$ac_exeext && {
8492 test "$cross_compiling" = yes ||
8493 $as_test_x conftest
$ac_exeext
8495 ac_cv_var_tzname
=yes
8497 $as_echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.
$ac_ext >&5
8503 rm -rf conftest.dSYM
8504 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8505 conftest
$ac_exeext conftest.
$ac_ext
8507 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8508 $as_echo "$ac_cv_var_tzname" >&6; }
8509 if test $ac_cv_var_tzname = yes; then
8511 cat >>confdefs.h
<<\_ACEOF
8512 #define HAVE_TZNAME 1
8518 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8519 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8520 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8521 $as_echo_n "(cached) " >&6
8523 cat >conftest.
$ac_ext <<_ACEOF
8526 cat confdefs.h
>>conftest.
$ac_ext
8527 cat >>conftest.
$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8534 static struct tm ac_aggr;
8535 if (ac_aggr.tm_gmtoff)
8541 rm -f conftest.
$ac_objext
8542 if { (ac_try
="$ac_compile"
8544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8548 $as_echo "$ac_try_echo") >&5
8549 (eval "$ac_compile") 2>conftest.er1
8551 grep -v '^ *+' conftest.er1 >conftest.err
8553 cat conftest.err >&5
8554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } && {
8556 test -z "$ac_c_werror_flag" ||
8557 test ! -s conftest.err
8558 } && test -s conftest.$ac_objext; then
8559 ac_cv_member_struct_tm_tm_gmtoff=yes
8561 $as_echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8564 cat >conftest.$ac_ext <<_ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8575 static struct tm ac_aggr;
8576 if (sizeof ac_aggr.tm_gmtoff)
8582 rm -f conftest.$ac_objext
8583 if { (ac_try="$ac_compile"
8585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8586 *) ac_try_echo
=$ac_try;;
8588 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8589 $as_echo "$ac_try_echo") >&5
8590 (eval "$ac_compile") 2>conftest.er1
8592 grep -v '^ *+' conftest.er1
>conftest.err
8594 cat conftest.err
>&5
8595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } && {
8597 test -z "$ac_c_werror_flag" ||
8598 test ! -s conftest.err
8599 } && test -s conftest.
$ac_objext; then
8600 ac_cv_member_struct_tm_tm_gmtoff
=yes
8602 $as_echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.
$ac_ext >&5
8605 ac_cv_member_struct_tm_tm_gmtoff
=no
8608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8613 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8614 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8615 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8617 cat >>confdefs.h
<<\_ACEOF
8618 #define HAVE_TM_GMTOFF 1
8623 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8624 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8625 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8626 $as_echo_n "(cached) " >&6
8628 cat >conftest.
$ac_ext <<_ACEOF
8631 cat confdefs.h
>>conftest.
$ac_ext
8632 cat >>conftest.
$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8634 $ac_includes_default
8635 #if HAVE_SYS_SOCKET_H
8636 #include <sys/socket.h>
8645 static struct ifreq ac_aggr;
8646 if (ac_aggr.ifr_flags)
8652 rm -f conftest.
$ac_objext
8653 if { (ac_try
="$ac_compile"
8655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8659 $as_echo "$ac_try_echo") >&5
8660 (eval "$ac_compile") 2>conftest.er1
8662 grep -v '^ *+' conftest.er1 >conftest.err
8664 cat conftest.err >&5
8665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); } && {
8667 test -z "$ac_c_werror_flag" ||
8668 test ! -s conftest.err
8669 } && test -s conftest.$ac_objext; then
8670 ac_cv_member_struct_ifreq_ifr_flags=yes
8672 $as_echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8675 cat >conftest.$ac_ext <<_ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h. */
8681 $ac_includes_default
8682 #if HAVE_SYS_SOCKET_H
8683 #include <sys/socket.h>
8692 static struct ifreq ac_aggr;
8693 if (sizeof ac_aggr.ifr_flags)
8699 rm -f conftest.$ac_objext
8700 if { (ac_try="$ac_compile"
8702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8703 *) ac_try_echo
=$ac_try;;
8705 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8706 $as_echo "$ac_try_echo") >&5
8707 (eval "$ac_compile") 2>conftest.er1
8709 grep -v '^ *+' conftest.er1
>conftest.err
8711 cat conftest.err
>&5
8712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } && {
8714 test -z "$ac_c_werror_flag" ||
8715 test ! -s conftest.err
8716 } && test -s conftest.
$ac_objext; then
8717 ac_cv_member_struct_ifreq_ifr_flags
=yes
8719 $as_echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.
$ac_ext >&5
8722 ac_cv_member_struct_ifreq_ifr_flags
=no
8725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8730 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8731 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8732 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8734 cat >>confdefs.h
<<_ACEOF
8735 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8740 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8741 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8742 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8743 $as_echo_n "(cached) " >&6
8745 cat >conftest.
$ac_ext <<_ACEOF
8748 cat confdefs.h
>>conftest.
$ac_ext
8749 cat >>conftest.
$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 $ac_includes_default
8752 #if HAVE_SYS_SOCKET_H
8753 #include <sys/socket.h>
8762 static struct ifreq ac_aggr;
8763 if (ac_aggr.ifr_hwaddr)
8769 rm -f conftest.
$ac_objext
8770 if { (ac_try
="$ac_compile"
8772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8773 *) ac_try_echo=$ac_try;;
8775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8776 $as_echo "$ac_try_echo") >&5
8777 (eval "$ac_compile") 2>conftest.er1
8779 grep -v '^ *+' conftest.er1 >conftest.err
8781 cat conftest.err >&5
8782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } && {
8784 test -z "$ac_c_werror_flag" ||
8785 test ! -s conftest.err
8786 } && test -s conftest.$ac_objext; then
8787 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8789 $as_echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8792 cat >conftest.$ac_ext <<_ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8798 $ac_includes_default
8799 #if HAVE_SYS_SOCKET_H
8800 #include <sys/socket.h>
8809 static struct ifreq ac_aggr;
8810 if (sizeof ac_aggr.ifr_hwaddr)
8816 rm -f conftest.$ac_objext
8817 if { (ac_try="$ac_compile"
8819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8820 *) ac_try_echo
=$ac_try;;
8822 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8823 $as_echo "$ac_try_echo") >&5
8824 (eval "$ac_compile") 2>conftest.er1
8826 grep -v '^ *+' conftest.er1
>conftest.err
8828 cat conftest.err
>&5
8829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } && {
8831 test -z "$ac_c_werror_flag" ||
8832 test ! -s conftest.err
8833 } && test -s conftest.
$ac_objext; then
8834 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8836 $as_echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.
$ac_ext >&5
8839 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8847 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8848 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8849 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8851 cat >>confdefs.h
<<_ACEOF
8852 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8857 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8858 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8859 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8860 $as_echo_n "(cached) " >&6
8862 cat >conftest.
$ac_ext <<_ACEOF
8865 cat confdefs.h
>>conftest.
$ac_ext
8866 cat >>conftest.
$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8868 $ac_includes_default
8869 #if HAVE_SYS_SOCKET_H
8870 #include <sys/socket.h>
8879 static struct ifreq ac_aggr;
8880 if (ac_aggr.ifr_netmask)
8886 rm -f conftest.
$ac_objext
8887 if { (ac_try
="$ac_compile"
8889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8893 $as_echo "$ac_try_echo") >&5
8894 (eval "$ac_compile") 2>conftest.er1
8896 grep -v '^ *+' conftest.er1 >conftest.err
8898 cat conftest.err >&5
8899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } && {
8901 test -z "$ac_c_werror_flag" ||
8902 test ! -s conftest.err
8903 } && test -s conftest.$ac_objext; then
8904 ac_cv_member_struct_ifreq_ifr_netmask=yes
8906 $as_echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 cat >conftest.$ac_ext <<_ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8915 $ac_includes_default
8916 #if HAVE_SYS_SOCKET_H
8917 #include <sys/socket.h>
8926 static struct ifreq ac_aggr;
8927 if (sizeof ac_aggr.ifr_netmask)
8933 rm -f conftest.$ac_objext
8934 if { (ac_try="$ac_compile"
8936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8937 *) ac_try_echo
=$ac_try;;
8939 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8940 $as_echo "$ac_try_echo") >&5
8941 (eval "$ac_compile") 2>conftest.er1
8943 grep -v '^ *+' conftest.er1
>conftest.err
8945 cat conftest.err
>&5
8946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } && {
8948 test -z "$ac_c_werror_flag" ||
8949 test ! -s conftest.err
8950 } && test -s conftest.
$ac_objext; then
8951 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8953 $as_echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.
$ac_ext >&5
8956 ac_cv_member_struct_ifreq_ifr_netmask
=no
8959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8964 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8965 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8966 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8968 cat >>confdefs.h
<<_ACEOF
8969 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8974 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8975 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8976 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8977 $as_echo_n "(cached) " >&6
8979 cat >conftest.
$ac_ext <<_ACEOF
8982 cat confdefs.h
>>conftest.
$ac_ext
8983 cat >>conftest.
$ac_ext <<_ACEOF
8984 /* end confdefs.h. */
8985 $ac_includes_default
8986 #if HAVE_SYS_SOCKET_H
8987 #include <sys/socket.h>
8996 static struct ifreq ac_aggr;
8997 if (ac_aggr.ifr_broadaddr)
9003 rm -f conftest.
$ac_objext
9004 if { (ac_try
="$ac_compile"
9006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9007 *) ac_try_echo=$ac_try;;
9009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9010 $as_echo "$ac_try_echo") >&5
9011 (eval "$ac_compile") 2>conftest.er1
9013 grep -v '^ *+' conftest.er1 >conftest.err
9015 cat conftest.err >&5
9016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } && {
9018 test -z "$ac_c_werror_flag" ||
9019 test ! -s conftest.err
9020 } && test -s conftest.$ac_objext; then
9021 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9023 $as_echo "$as_me: failed program was:" >&5
9024 sed 's/^/| /' conftest.$ac_ext >&5
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9032 $ac_includes_default
9033 #if HAVE_SYS_SOCKET_H
9034 #include <sys/socket.h>
9043 static struct ifreq ac_aggr;
9044 if (sizeof ac_aggr.ifr_broadaddr)
9050 rm -f conftest.$ac_objext
9051 if { (ac_try="$ac_compile"
9053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9054 *) ac_try_echo
=$ac_try;;
9056 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9057 $as_echo "$ac_try_echo") >&5
9058 (eval "$ac_compile") 2>conftest.er1
9060 grep -v '^ *+' conftest.er1
>conftest.err
9062 cat conftest.err
>&5
9063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } && {
9065 test -z "$ac_c_werror_flag" ||
9066 test ! -s conftest.err
9067 } && test -s conftest.
$ac_objext; then
9068 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
9070 $as_echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.
$ac_ext >&5
9073 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
9076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9081 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9082 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9083 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9085 cat >>confdefs.h
<<_ACEOF
9086 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9091 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9092 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9093 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9094 $as_echo_n "(cached) " >&6
9096 cat >conftest.
$ac_ext <<_ACEOF
9099 cat confdefs.h
>>conftest.
$ac_ext
9100 cat >>conftest.
$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 $ac_includes_default
9103 #if HAVE_SYS_SOCKET_H
9104 #include <sys/socket.h>
9113 static struct ifreq ac_aggr;
9114 if (ac_aggr.ifr_addr)
9120 rm -f conftest.
$ac_objext
9121 if { (ac_try
="$ac_compile"
9123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9127 $as_echo "$ac_try_echo") >&5
9128 (eval "$ac_compile") 2>conftest.er1
9130 grep -v '^ *+' conftest.er1 >conftest.err
9132 cat conftest.err >&5
9133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } && {
9135 test -z "$ac_c_werror_flag" ||
9136 test ! -s conftest.err
9137 } && test -s conftest.$ac_objext; then
9138 ac_cv_member_struct_ifreq_ifr_addr=yes
9140 $as_echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9143 cat >conftest.$ac_ext <<_ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9149 $ac_includes_default
9150 #if HAVE_SYS_SOCKET_H
9151 #include <sys/socket.h>
9160 static struct ifreq ac_aggr;
9161 if (sizeof ac_aggr.ifr_addr)
9167 rm -f conftest.$ac_objext
9168 if { (ac_try="$ac_compile"
9170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9171 *) ac_try_echo
=$ac_try;;
9173 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9174 $as_echo "$ac_try_echo") >&5
9175 (eval "$ac_compile") 2>conftest.er1
9177 grep -v '^ *+' conftest.er1
>conftest.err
9179 cat conftest.err
>&5
9180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } && {
9182 test -z "$ac_c_werror_flag" ||
9183 test ! -s conftest.err
9184 } && test -s conftest.
$ac_objext; then
9185 ac_cv_member_struct_ifreq_ifr_addr
=yes
9187 $as_echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.
$ac_ext >&5
9190 ac_cv_member_struct_ifreq_ifr_addr
=no
9193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9198 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9199 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9200 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9202 cat >>confdefs.h
<<_ACEOF
9203 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9211 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9212 $as_echo_n "checking for function prototypes... " >&6; }
9213 if test "$ac_cv_prog_cc_c89" != no
; then
9214 { $as_echo "$as_me:$LINENO: result: yes" >&5
9215 $as_echo "yes" >&6; }
9217 cat >>confdefs.h
<<\_ACEOF
9218 #define PROTOTYPES 1
9222 cat >>confdefs.h
<<\_ACEOF
9223 #define __PROTOTYPES 1
9227 { $as_echo "$as_me:$LINENO: result: no" >&5
9228 $as_echo "no" >&6; }
9231 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9232 $as_echo_n "checking for working volatile... " >&6; }
9233 if test "${ac_cv_c_volatile+set}" = set; then
9234 $as_echo_n "(cached) " >&6
9236 cat >conftest.
$ac_ext <<_ACEOF
9239 cat confdefs.h
>>conftest.
$ac_ext
9240 cat >>conftest.
$ac_ext <<_ACEOF
9241 /* end confdefs.h. */
9248 int * volatile y = (int *) 0;
9254 rm -f conftest.
$ac_objext
9255 if { (ac_try
="$ac_compile"
9257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9261 $as_echo "$ac_try_echo") >&5
9262 (eval "$ac_compile") 2>conftest.er1
9264 grep -v '^ *+' conftest.er1 >conftest.err
9266 cat conftest.err >&5
9267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } && {
9269 test -z "$ac_c_werror_flag" ||
9270 test ! -s conftest.err
9271 } && test -s conftest.$ac_objext; then
9272 ac_cv_c_volatile=yes
9274 $as_echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9282 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9283 $as_echo "$ac_cv_c_volatile" >&6; }
9284 if test $ac_cv_c_volatile = no; then
9286 cat >>confdefs.h <<\_ACEOF
9287 #define volatile /**/
9292 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9293 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9294 if test "${ac_cv_c_const+set}" = set; then
9295 $as_echo_n "(cached) " >&6
9297 cat >conftest.$ac_ext <<_ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9307 /* FIXME: Include the comments suggested by Paul. */
9309 /* Ultrix mips cc rejects this. */
9310 typedef int charset[2];
9312 /* SunOS 4.1.1 cc rejects this. */
9313 char const *const *pcpcc;
9315 /* NEC SVR4.0.2 mips cc rejects this. */
9316 struct point {int x, y;};
9317 static struct point const zero = {0,0};
9318 /* AIX XL C 1.02.0.0 rejects this.
9319 It does not let you subtract one const X* pointer from another in
9320 an arm of an if-expression whose if-part is not a constant
9322 const char *g = "string";
9323 pcpcc = &g + (g ? g-g : 0);
9324 /* HPUX 7.0 cc rejects these. */
9326 ppc = (char**) pcpcc;
9327 pcpcc = (char const *const *) ppc;
9328 { /* SCO 3.2v4 cc rejects this. */
9330 char const *s = 0 ? (char *) 0 : (char const *) 0;
9335 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9337 const int *foo = &x[0];
9340 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9341 typedef const int *iptr;
9345 { /* AIX XL C 1.02.0.0 rejects this saying
9346 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9347 struct s { int j; const int *ap[3]; };
9348 struct s *b; b->j = 5;
9350 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9354 return !cs[0] && !zero.x;
9361 rm -f conftest.$ac_objext
9362 if { (ac_try="$ac_compile"
9364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9365 *) ac_try_echo
=$ac_try;;
9367 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9368 $as_echo "$ac_try_echo") >&5
9369 (eval "$ac_compile") 2>conftest.er1
9371 grep -v '^ *+' conftest.er1
>conftest.err
9373 cat conftest.err
>&5
9374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } && {
9376 test -z "$ac_c_werror_flag" ||
9377 test ! -s conftest.err
9378 } && test -s conftest.
$ac_objext; then
9381 $as_echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.
$ac_ext >&5
9387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9389 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9390 $as_echo "$ac_cv_c_const" >&6; }
9391 if test $ac_cv_c_const = no
; then
9393 cat >>confdefs.h
<<\_ACEOF
9399 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9400 $as_echo_n "checking for void * support... " >&6; }
9401 if test "${emacs_cv_void_star+set}" = set; then
9402 $as_echo_n "(cached) " >&6
9404 cat >conftest.
$ac_ext <<_ACEOF
9407 cat confdefs.h
>>conftest.
$ac_ext
9408 cat >>conftest.
$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9419 rm -f conftest.
$ac_objext
9420 if { (ac_try
="$ac_compile"
9422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9426 $as_echo "$ac_try_echo") >&5
9427 (eval "$ac_compile") 2>conftest.er1
9429 grep -v '^ *+' conftest.er1 >conftest.err
9431 cat conftest.err >&5
9432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } && {
9434 test -z "$ac_c_werror_flag" ||
9435 test ! -s conftest.err
9436 } && test -s conftest.$ac_objext; then
9437 emacs_cv_void_star=yes
9439 $as_echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9442 emacs_cv_void_star=no
9445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9448 $as_echo "$emacs_cv_void_star" >&6; }
9449 if test $emacs_cv_void_star = yes; then
9450 cat >>confdefs.h <<\_ACEOF
9451 #define POINTER_TYPE void
9455 cat >>confdefs.h <<\_ACEOF
9456 #define POINTER_TYPE char
9465 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9466 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9468 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9469 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9470 $as_echo_n "(cached) " >&6
9472 cat >conftest.make <<\_ACEOF
9475 @echo '@@@%%%=$(MAKE)=@@@%%%'
9477 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9478 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9480 eval ac_cv_prog_make_${ac_make}_set=yes;;
9482 eval ac_cv_prog_make_${ac_make}_set=no;;
9486 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9487 { $as_echo "$as_me:$LINENO: result: yes" >&5
9488 $as_echo "yes" >&6; }
9491 { $as_echo "$as_me:$LINENO: result: no" >&5
9492 $as_echo "no" >&6; }
9493 SET_MAKE="MAKE=${MAKE-make}"
9497 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9498 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9499 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9501 testval=`make --version 2>/dev
/null |
grep 'GNU Make'`
9502 if test "x$testval" != x; then
9505 ac_enable_autodepend=no
9507 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9508 $as_echo "$HAVE_GNU_MAKE" >&6; }
9509 if test $HAVE_GNU_MAKE = yes; then
9510 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9511 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9512 SAVE_CFLAGS="$CFLAGS"
9513 CFLAGS="$CFLAGS -MMD -MF deps.d"
9514 cat >conftest.$ac_ext <<_ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9529 rm -f conftest.$ac_objext
9530 if { (ac_try="$ac_compile"
9532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9533 *) ac_try_echo
=$ac_try;;
9535 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9536 $as_echo "$ac_try_echo") >&5
9537 (eval "$ac_compile") 2>conftest.er1
9539 grep -v '^ *+' conftest.er1
>conftest.err
9541 cat conftest.err
>&5
9542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest.
$ac_objext; then
9549 $as_echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.
$ac_ext >&5
9552 ac_enable_autodepend
=no
9555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9556 CFLAGS
="$SAVE_CFLAGS"
9557 test -f deps.d || ac_enable_autodepend
=no
9559 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9560 $as_echo "$ac_enable_autodepend" >&6; }
9562 if test $ac_enable_autodepend = yes; then
9564 cat >>confdefs.h
<<\_ACEOF
9565 #define AUTO_DEPEND 1
9571 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9572 $as_echo_n "checking for long file names... " >&6; }
9573 if test "${ac_cv_sys_long_file_names+set}" = set; then
9574 $as_echo_n "(cached) " >&6
9576 ac_cv_sys_long_file_names
=yes
9577 # Test for long file names in all the places we know might matter:
9578 # . the current directory, where building will happen
9579 # $prefix/lib where we will be installing things
9580 # $exec_prefix/lib likewise
9581 # $TMPDIR if set, where it might want to write temporary files
9582 # /tmp where it might want to write temporary files
9585 for ac_dir
in .
"$TMPDIR" /tmp
/var
/tmp
/usr
/tmp
"$prefix/lib" "$exec_prefix/lib"; do
9586 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9587 # in the usual case where exec_prefix is '${prefix}'.
9589 . |
/* | ?
:[\\/]*) ;; #(
9592 test -w "$ac_dir/." ||
continue # It is less confusing to not echo anything here.
9593 ac_xdir
=$ac_dir/cf$$
9594 (umask 077 && mkdir
"$ac_xdir" 2>/dev
/null
) ||
continue
9595 ac_tf1
=$ac_xdir/conftest9012345
9596 ac_tf2
=$ac_xdir/conftest9012346
9597 touch "$ac_tf1" 2>/dev
/null
&& test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9598 ac_cv_sys_long_file_names
=no
9599 rm -f -r "$ac_xdir" 2>/dev
/null
9600 test $ac_cv_sys_long_file_names = no
&& break
9603 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9604 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9605 if test $ac_cv_sys_long_file_names = yes; then
9607 cat >>confdefs.h
<<\_ACEOF
9608 #define HAVE_LONG_FILE_NAMES 1
9614 #### Choose a window system.
9616 { $as_echo "$as_me:$LINENO: checking for X" >&5
9617 $as_echo_n "checking for X... " >&6; }
9620 # Check whether --with-x was given.
9621 if test "${with_x+set}" = set; then
9625 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9626 if test "x$with_x" = xno
; then
9627 # The user explicitly disabled X.
9630 case $x_includes,$x_libraries in #(
9631 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9632 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9633 { (exit 1); exit 1; }; };; #(
9634 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
9635 $as_echo_n "(cached) " >&6
9637 # One or both of the vars are not set, and there is no cached value.
9638 ac_x_includes
=no ac_x_libraries
=no
9639 rm -f -r conftest.dir
9640 if mkdir conftest.dir
; then
9642 cat >Imakefile
<<'_ACEOF'
9644 @echo incroot='${INCROOT}'
9646 @echo usrlibdir='${USRLIBDIR}'
9648 @echo libdir='${LIBDIR}'
9650 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9651 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9652 for ac_var
in incroot usrlibdir libdir
; do
9653 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9655 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9656 for ac_extension
in a so sl dylib la dll
; do
9657 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9658 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9659 ac_im_usrlibdir
=$ac_im_libdir; break
9662 # Screen out bogus values from the imake configuration. They are
9663 # bogus both because they are the default anyway, and because
9664 # using them would break gcc on systems where it needs fixed includes.
9665 case $ac_im_incroot in
9666 /usr
/include
) ac_x_includes
= ;;
9667 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9669 case $ac_im_usrlibdir in
9671 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9675 rm -f -r conftest.dir
9678 # Standard set of common directories for X headers.
9679 # Check X11 before X11Rn because it is often a symlink to the current release.
9691 /usr/local/X11/include
9692 /usr/local/X11R6/include
9693 /usr/local/X11R5/include
9694 /usr/local/X11R4/include
9696 /usr/local/include/X11
9697 /usr/local/include/X11R6
9698 /usr/local/include/X11R5
9699 /usr/local/include/X11R4
9703 /usr/XFree86/include/X11
9707 /usr/unsupported/include
9709 /usr/local/x11r5/include
9710 /usr/lpp/Xamples/include
9712 /usr/openwin/include
9713 /usr/openwin/share/include'
9715 if test "$ac_x_includes" = no
; then
9716 # Guess where to find include files, by looking for Xlib.h.
9717 # First, try using that file with no special directory specified.
9718 cat >conftest.
$ac_ext <<_ACEOF
9721 cat confdefs.h
>>conftest.
$ac_ext
9722 cat >>conftest.
$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9724 #include <X11/Xlib.h>
9726 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9729 *) ac_try_echo=$ac_try;;
9731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9732 $as_echo "$ac_try_echo") >&5
9733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9735 grep -v '^ *+' conftest.er1 >conftest.err
9737 cat conftest.err >&5
9738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } >/dev/null && {
9740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9741 test ! -s conftest.err
9743 # We can compile using X headers with no special include directory.
9746 $as_echo "$as_me: failed program was:" >&5
9747 sed 's/^/| /' conftest.$ac_ext >&5
9749 for ac_dir in $ac_x_header_dirs; do
9750 if test -r "$ac_dir/X11/Xlib.h"; then
9751 ac_x_includes=$ac_dir
9757 rm -f conftest.err conftest.$ac_ext
9758 fi # $ac_x_includes = no
9760 if test "$ac_x_libraries" = no; then
9761 # Check for the libraries.
9762 # See if we find them without any special options.
9763 # Don't add to $LIBS permanently.
9766 cat >conftest.$ac_ext <<_ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9772 #include <X11/Xlib.h>
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (ac_try="$ac_link"
9784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9785 *) ac_try_echo
=$ac_try;;
9787 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9788 $as_echo "$ac_try_echo") >&5
9789 (eval "$ac_link") 2>conftest.er1
9791 grep -v '^ *+' conftest.er1
>conftest.err
9793 cat conftest.err
>&5
9794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest
$ac_exeext && {
9799 test "$cross_compiling" = yes ||
9800 $as_test_x conftest
$ac_exeext
9803 # We can link X programs with no special library path.
9806 $as_echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.
$ac_ext >&5
9810 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9812 # Don't even attempt the hair of trying to link an X program!
9813 for ac_extension
in a so sl dylib la dll
; do
9814 if test -r "$ac_dir/libX11.$ac_extension"; then
9815 ac_x_libraries
=$ac_dir
9822 rm -rf conftest.dSYM
9823 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9824 conftest
$ac_exeext conftest.
$ac_ext
9825 fi # $ac_x_libraries = no
9827 case $ac_x_includes,$ac_x_libraries in #(
9829 # Didn't find X, or a directory has "'" in its name.
9830 ac_cv_have_x
="have_x=no";; #(
9832 # Record where we found X for the cache.
9833 ac_cv_have_x
="have_x=yes\
9834 ac_x_includes='$ac_x_includes'\
9835 ac_x_libraries='$ac_x_libraries'"
9841 eval "$ac_cv_have_x"
9844 if test "$have_x" != yes; then
9845 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9846 $as_echo "$have_x" >&6; }
9849 # If each of the values was on the command line, it overrides each guess.
9850 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9851 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9852 # Update the cache value to reflect the command line values.
9853 ac_cv_have_x
="have_x=yes\
9854 ac_x_includes='$x_includes'\
9855 ac_x_libraries='$x_libraries'"
9856 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9857 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9860 if test "$no_x" = yes; then
9866 ## Workaround for bug in autoconf <= 2.62.
9867 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9868 ## No need to do anything special for these standard directories.
9869 if test -n "${x_libraries}" && test x
"${x_libraries}" != xNONE
; then
9871 x_libraries
=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9875 LD_SWITCH_X_SITE_AUX
=
9876 LD_SWITCH_X_SITE_AUX_RPATH
=
9877 if test "${x_libraries}" != NONE
; then
9878 if test -n "${x_libraries}"; then
9879 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9880 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9881 LD_SWITCH_X_SITE_AUX_RPATH
=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9883 x_default_search_path
=""
9884 x_search_path
=${x_libraries}
9885 if test -z "${x_search_path}"; then
9886 x_search_path
=/usr
/lib
9888 for x_library
in `echo ${x_search_path}: | \
9889 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9891 ${x_library}/X11/%L/%T/%N%C%S:\
9892 ${x_library}/X11/%l/%T/%N%C%S:\
9893 ${x_library}/X11/%T/%N%C%S:\
9894 ${x_library}/X11/%L/%T/%N%S:\
9895 ${x_library}/X11/%l/%T/%N%S:\
9896 ${x_library}/X11/%T/%N%S"
9897 if test x
"${x_default_search_path}" = x
; then
9898 x_default_search_path
=${x_search_path}
9900 x_default_search_path
="${x_search_path}:${x_default_search_path}"
9907 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
9908 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9911 if test x
"${x_includes}" = x
; then
9912 bitmapdir
=/usr
/include
/X11
/bitmaps
9914 # accumulate include directories that have X11 bitmap subdirectories
9916 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9917 if test -d "${bmd}/X11/bitmaps"; then
9918 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
9920 if test -d "${bmd}/bitmaps"; then
9921 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
9924 if test ${bmd_acc} != "dummyval"; then
9925 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9932 tmp_CPPFLAGS
="$CPPFLAGS"
9933 tmp_CFLAGS
="$CFLAGS"
9934 CPPFLAGS
="$CPPFLAGS -x objective-c"
9935 CFLAGS
="$CFLAGS -x objective-c"
9936 if test "${with_ns}" != no
; then
9937 if test "${opsys}" = darwin
; then
9939 ns_appdir
=`pwd`/nextstep
/Emacs.app
9940 ns_appbindir
=`pwd`/nextstep
/Emacs.app
/Contents
/MacOS
9941 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Contents
/Resources
9942 ns_appsrc
=${srcdir}/nextstep
/Cocoa
/Emacs.base
9943 elif test -f $GNUSTEP_CONFIG_FILE; then
9945 ns_appdir
=`pwd`/nextstep
/Emacs.app
9946 ns_appbindir
=`pwd`/nextstep
/Emacs.app
9947 ns_appresdir
=`pwd`/nextstep
/Emacs.app
/Resources
9948 ns_appsrc
=${srcdir}/nextstep
/GNUstep
/Emacs.base
9949 GNUSTEP_MAKEFILES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9950 GNUSTEP_SYSTEM_HEADERS
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9951 GNUSTEP_SYSTEM_LIBRARIES
="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9952 CPPFLAGS
="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9953 CFLAGS
="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9954 REAL_CFLAGS
="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9955 LDFLAGS
="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9958 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9959 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9960 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9961 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9962 $as_echo_n "(cached) " >&6
9964 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9965 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9967 # Is the header compilable?
9968 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9969 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9970 cat >conftest.
$ac_ext <<_ACEOF
9973 cat confdefs.h
>>conftest.
$ac_ext
9974 cat >>conftest.
$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 $ac_includes_default
9977 #include <AppKit/AppKit.h>
9979 rm -f conftest.
$ac_objext
9980 if { (ac_try
="$ac_compile"
9982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9986 $as_echo "$ac_try_echo") >&5
9987 (eval "$ac_compile") 2>conftest.er1
9989 grep -v '^ *+' conftest.er1 >conftest.err
9991 cat conftest.err >&5
9992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); } && {
9994 test -z "$ac_c_werror_flag" ||
9995 test ! -s conftest.err
9996 } && test -s conftest.$ac_objext; then
9997 ac_header_compiler=yes
9999 $as_echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10002 ac_header_compiler=no
10005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10006 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10007 $as_echo "$ac_header_compiler" >&6; }
10009 # Is the header present?
10010 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10011 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10012 cat >conftest.$ac_ext <<_ACEOF
10015 cat confdefs.h >>conftest.$ac_ext
10016 cat >>conftest.$ac_ext <<_ACEOF
10017 /* end confdefs.h. */
10018 #include <AppKit/AppKit.h>
10020 if { (ac_try="$ac_cpp conftest.$ac_ext"
10021 case "(($ac_try" in
10022 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10023 *) ac_try_echo
=$ac_try;;
10025 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10026 $as_echo "$ac_try_echo") >&5
10027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10029 grep -v '^ *+' conftest.er1
>conftest.err
10031 cat conftest.err
>&5
10032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } >/dev
/null
&& {
10034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10035 test ! -s conftest.err
10037 ac_header_preproc
=yes
10039 $as_echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.
$ac_ext >&5
10042 ac_header_preproc
=no
10045 rm -f conftest.err conftest.
$ac_ext
10046 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10047 $as_echo "$ac_header_preproc" >&6; }
10049 # So? What about this header?
10050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10052 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10053 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10054 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10055 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10056 ac_header_preproc
=yes
10059 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10060 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10061 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10062 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10063 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10064 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10065 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10066 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10067 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10068 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10069 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10070 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10074 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10075 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10076 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10077 $as_echo_n "(cached) " >&6
10079 ac_cv_header_AppKit_AppKit_h
=$ac_header_preproc
10081 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10082 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10085 if test $ac_cv_header_AppKit_AppKit_h = yes; then
10088 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10089 files are missing or cannot be compiled." >&5
10090 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10091 files are missing or cannot be compiled." >&2;}
10092 { (exit 1); exit 1; }; }
10096 NS_HAVE_NSINTEGER
=yes
10097 cat >conftest.
$ac_ext <<_ACEOF
10100 cat confdefs.h
>>conftest.
$ac_ext
10101 cat >>conftest.
$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103 #include <Foundation/NSObjCRuntime.h>
10112 rm -f conftest.
$ac_objext
10113 if { (ac_try
="$ac_compile"
10114 case "(($ac_try" in
10115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10119 $as_echo "$ac_try_echo") >&5
10120 (eval "$ac_compile") 2>conftest.er1
10122 grep -v '^ *+' conftest.er1 >conftest.err
10124 cat conftest.err >&5
10125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } && {
10127 test -z "$ac_c_werror_flag" ||
10128 test ! -s conftest.err
10129 } && test -s conftest.$ac_objext; then
10130 ns_have_nsinteger=yes
10132 $as_echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10135 ns_have_nsinteger=no
10138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139 if test $ns_have_nsinteger = no; then
10140 NS_HAVE_NSINTEGER=no
10146 if test "${HAVE_NS}" = yes; then
10147 window_system=nextstep
10149 # set up packaging dirs
10150 exec_prefix=${ns_appbindir}
10151 libexecdir=${ns_appbindir}/libexec
10152 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10153 prefix=${ns_appresdir}
10155 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10156 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10158 CFLAGS="$tmp_CFLAGS"
10159 CPPFLAGS="$tmp_CPPFLAGS"
10164 case "${window_system}" in
10168 case "${with_x_toolkit}" in
10169 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10170 motif ) USE_X_TOOLKIT=MOTIF ;;
10172 USE_X_TOOLKIT=none ;;
10173 no ) USE_X_TOOLKIT=none ;;
10174 * ) USE_X_TOOLKIT=maybe ;;
10184 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10185 # Extract the first word of "X", so it can be a program name with args.
10186 set dummy X; ac_word=$2
10187 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10188 $as_echo_n "checking for $ac_word... " >&6; }
10189 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10190 $as_echo_n "(cached) " >&6
10192 if test -n "$HAVE_XSERVER"; then
10193 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10196 for as_dir in $PATH
10199 test -z "$as_dir" && as_dir=.
10200 for ac_exec_ext in '' $ac_executable_extensions; do
10201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10202 ac_cv_prog_HAVE_XSERVER="true"
10203 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10210 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10213 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10214 if test -n "$HAVE_XSERVER"; then
10215 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10216 $as_echo "$HAVE_XSERVER" >&6; }
10218 { $as_echo "$as_me:$LINENO: result: no" >&5
10219 $as_echo "no" >&6; }
10223 if test "$HAVE_XSERVER" = true ||
10224 test -n "$DISPLAY" ||
10225 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
10226 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10227 were found. You should install the relevant development files for X
10228 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10229 sure you have development files for image handling, i.e.
10230 tiff, gif, jpeg, png and xpm.
10231 If you are sure you want Emacs compiled without X window support, pass
10234 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10235 were found. You should install the relevant development files for X
10236 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10237 sure you have development files for image handling, i.e.
10238 tiff, gif, jpeg, png and xpm.
10239 If you are sure you want Emacs compiled without X window support, pass
10241 to configure." >&2;}
10242 { (exit 1); exit 1; }; }
10246 ### If we're using X11, we should use the X menu package.
10248 case ${HAVE_X11} in
10249 yes ) HAVE_MENUS=yes ;;
10252 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10253 # Assume not, until told otherwise.
10255 doug_lea_malloc=yes
10256 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10257 $as_echo_n "checking for malloc_get_state... " >&6; }
10258 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10259 $as_echo_n "(cached) " >&6
10261 cat >conftest.$ac_ext <<_ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10269 #define malloc_get_state innocuous_malloc_get_state
10271 /* System header to define __stub macros and hopefully few prototypes,
10272 which can conflict with char malloc_get_state (); below.
10273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10274 <limits.h> exists even on freestanding compilers. */
10277 # include <limits.h>
10279 # include <assert.h>
10282 #undef malloc_get_state
10284 /* Override any GCC internal prototype to avoid an error.
10285 Use char because int might match the return type of a GCC
10286 builtin and then its argument prototype would still apply. */
10290 char malloc_get_state ();
10291 /* The GNU C library defines this for functions which it implements
10292 to always fail with ENOSYS. Some functions are actually named
10293 something starting with __ and the normal name is an alias. */
10294 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10301 return malloc_get_state ();
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (ac_try="$ac_link"
10308 case "(($ac_try" in
10309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10310 *) ac_try_echo
=$ac_try;;
10312 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10313 $as_echo "$ac_try_echo") >&5
10314 (eval "$ac_link") 2>conftest.er1
10316 grep -v '^ *+' conftest.er1
>conftest.err
10318 cat conftest.err
>&5
10319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } && {
10321 test -z "$ac_c_werror_flag" ||
10322 test ! -s conftest.err
10323 } && test -s conftest
$ac_exeext && {
10324 test "$cross_compiling" = yes ||
10325 $as_test_x conftest
$ac_exeext
10327 ac_cv_func_malloc_get_state
=yes
10329 $as_echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.
$ac_ext >&5
10332 ac_cv_func_malloc_get_state
=no
10335 rm -rf conftest.dSYM
10336 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10337 conftest
$ac_exeext conftest.
$ac_ext
10339 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10340 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10341 if test $ac_cv_func_malloc_get_state = yes; then
10347 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10348 $as_echo_n "checking for malloc_set_state... " >&6; }
10349 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10350 $as_echo_n "(cached) " >&6
10352 cat >conftest.
$ac_ext <<_ACEOF
10355 cat confdefs.h
>>conftest.
$ac_ext
10356 cat >>conftest.
$ac_ext <<_ACEOF
10357 /* end confdefs.h. */
10358 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10360 #define malloc_set_state innocuous_malloc_set_state
10362 /* System header to define __stub macros and hopefully few prototypes,
10363 which can conflict with char malloc_set_state (); below.
10364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10365 <limits.h> exists even on freestanding compilers. */
10368 # include <limits.h>
10370 # include <assert.h>
10373 #undef malloc_set_state
10375 /* Override any GCC internal prototype to avoid an error.
10376 Use char because int might match the return type of a GCC
10377 builtin and then its argument prototype would still apply. */
10381 char malloc_set_state ();
10382 /* The GNU C library defines this for functions which it implements
10383 to always fail with ENOSYS. Some functions are actually named
10384 something starting with __ and the normal name is an alias. */
10385 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10392 return malloc_set_state ();
10397 rm -f conftest.
$ac_objext conftest
$ac_exeext
10398 if { (ac_try
="$ac_link"
10399 case "(($ac_try" in
10400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10404 $as_echo "$ac_try_echo") >&5
10405 (eval "$ac_link") 2>conftest.er1
10407 grep -v '^ *+' conftest.er1 >conftest.err
10409 cat conftest.err >&5
10410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } && {
10412 test -z "$ac_c_werror_flag" ||
10413 test ! -s conftest.err
10414 } && test -s conftest$ac_exeext && {
10415 test "$cross_compiling" = yes ||
10416 $as_test_x conftest$ac_exeext
10418 ac_cv_func_malloc_set_state=yes
10420 $as_echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 ac_cv_func_malloc_set_state=no
10426 rm -rf conftest.dSYM
10427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10428 conftest$ac_exeext conftest.$ac_ext
10430 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10431 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10432 if test $ac_cv_func_malloc_set_state = yes; then
10438 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10439 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10440 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10441 $as_echo_n "(cached) " >&6
10443 cat >conftest.$ac_ext <<_ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10449 extern void (* __after_morecore_hook)();
10453 __after_morecore_hook = 0
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (ac_try="$ac_link"
10460 case "(($ac_try" in
10461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10462 *) ac_try_echo
=$ac_try;;
10464 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10465 $as_echo "$ac_try_echo") >&5
10466 (eval "$ac_link") 2>conftest.er1
10468 grep -v '^ *+' conftest.er1
>conftest.err
10470 cat conftest.err
>&5
10471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } && {
10473 test -z "$ac_c_werror_flag" ||
10474 test ! -s conftest.err
10475 } && test -s conftest
$ac_exeext && {
10476 test "$cross_compiling" = yes ||
10477 $as_test_x conftest
$ac_exeext
10479 emacs_cv_var___after_morecore_hook
=yes
10481 $as_echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.
$ac_ext >&5
10484 emacs_cv_var___after_morecore_hook
=no
10487 rm -rf conftest.dSYM
10488 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10489 conftest
$ac_exeext conftest.
$ac_ext
10491 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10492 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10493 if test $emacs_cv_var___after_morecore_hook = no
; then
10496 if test "${system_malloc}" = "yes"; then
10498 GNU_MALLOC_reason
="
10499 (The GNU allocators don't work with this system configuration.)"
10501 if test "$doug_lea_malloc" = "yes" ; then
10502 if test "$GNU_MALLOC" = yes ; then
10503 GNU_MALLOC_reason
="
10504 (Using Doug Lea's new malloc from the GNU C Library.)"
10507 cat >>confdefs.h
<<\_ACEOF
10508 #define DOUG_LEA_MALLOC 1
10513 if test x
"${REL_ALLOC}" = x
; then
10514 REL_ALLOC
=${GNU_MALLOC}
10520 for ac_header
in stdlib.h unistd.h
10522 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10523 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10524 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10525 $as_echo_n "checking for $ac_header... " >&6; }
10526 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10527 $as_echo_n "(cached) " >&6
10529 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10530 $as_echo "$as_val"'`
10531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10532 $as_echo "$ac_res" >&6; }
10534 # Is the header compilable?
10535 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10536 $as_echo_n "checking $ac_header usability... " >&6; }
10537 cat >conftest.
$ac_ext <<_ACEOF
10540 cat confdefs.h
>>conftest.
$ac_ext
10541 cat >>conftest.
$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10543 $ac_includes_default
10544 #include <$ac_header>
10546 rm -f conftest.
$ac_objext
10547 if { (ac_try
="$ac_compile"
10548 case "(($ac_try" in
10549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10553 $as_echo "$ac_try_echo") >&5
10554 (eval "$ac_compile") 2>conftest.er1
10556 grep -v '^ *+' conftest.er1 >conftest.err
10558 cat conftest.err >&5
10559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && {
10561 test -z "$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10563 } && test -s conftest.$ac_objext; then
10564 ac_header_compiler=yes
10566 $as_echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10569 ac_header_compiler=no
10572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10574 $as_echo "$ac_header_compiler" >&6; }
10576 # Is the header present?
10577 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10578 $as_echo_n "checking $ac_header presence... " >&6; }
10579 cat >conftest.$ac_ext <<_ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10585 #include <$ac_header>
10587 if { (ac_try="$ac_cpp conftest.$ac_ext"
10588 case "(($ac_try" in
10589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10590 *) ac_try_echo
=$ac_try;;
10592 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10593 $as_echo "$ac_try_echo") >&5
10594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10596 grep -v '^ *+' conftest.er1
>conftest.err
10598 cat conftest.err
>&5
10599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } >/dev
/null
&& {
10601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10604 ac_header_preproc
=yes
10606 $as_echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.
$ac_ext >&5
10609 ac_header_preproc
=no
10612 rm -f conftest.err conftest.
$ac_ext
10613 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10614 $as_echo "$ac_header_preproc" >&6; }
10616 # So? What about this header?
10617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10620 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10622 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10623 ac_header_preproc
=yes
10626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10627 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10629 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10631 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10633 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10635 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10637 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10641 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10642 $as_echo_n "checking for $ac_header... " >&6; }
10643 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10644 $as_echo_n "(cached) " >&6
10646 eval "$as_ac_Header=\$ac_header_preproc"
10648 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10649 $as_echo "$as_val"'`
10650 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10651 $as_echo "$ac_res" >&6; }
10654 if test `eval 'as_val=${'$as_ac_Header'}
10655 $as_echo "$as_val"'` = yes; then
10656 cat >>confdefs.h
<<_ACEOF
10657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10665 for ac_func
in getpagesize
10667 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10668 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10669 $as_echo_n "checking for $ac_func... " >&6; }
10670 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10671 $as_echo_n "(cached) " >&6
10673 cat >conftest.
$ac_ext <<_ACEOF
10676 cat confdefs.h
>>conftest.
$ac_ext
10677 cat >>conftest.
$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10681 #define $ac_func innocuous_$ac_func
10683 /* System header to define __stub macros and hopefully few prototypes,
10684 which can conflict with char $ac_func (); below.
10685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10686 <limits.h> exists even on freestanding compilers. */
10689 # include <limits.h>
10691 # include <assert.h>
10696 /* Override any GCC internal prototype to avoid an error.
10697 Use char because int might match the return type of a GCC
10698 builtin and then its argument prototype would still apply. */
10703 /* The GNU C library defines this for functions which it implements
10704 to always fail with ENOSYS. Some functions are actually named
10705 something starting with __ and the normal name is an alias. */
10706 #if defined __stub_$ac_func || defined __stub___$ac_func
10713 return $ac_func ();
10718 rm -f conftest.
$ac_objext conftest
$ac_exeext
10719 if { (ac_try
="$ac_link"
10720 case "(($ac_try" in
10721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10725 $as_echo "$ac_try_echo") >&5
10726 (eval "$ac_link") 2>conftest.er1
10728 grep -v '^ *+' conftest.er1 >conftest.err
10730 cat conftest.err >&5
10731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } && {
10733 test -z "$ac_c_werror_flag" ||
10734 test ! -s conftest.err
10735 } && test -s conftest$ac_exeext && {
10736 test "$cross_compiling" = yes ||
10737 $as_test_x conftest$ac_exeext
10739 eval "$as_ac_var=yes"
10741 $as_echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10744 eval "$as_ac_var=no"
10747 rm -rf conftest.dSYM
10748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10749 conftest$ac_exeext conftest.$ac_ext
10751 ac_res=`eval 'as_val=${'$as_ac_var'}
10752 $as_echo "$as_val"'`
10753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10754 $as_echo "$ac_res" >&6; }
10755 if test `eval 'as_val=${'$as_ac_var'}
10756 $as_echo "$as_val"'` = yes; then
10757 cat >>confdefs.h <<_ACEOF
10758 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10764 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10765 $as_echo_n "checking for working mmap... " >&6; }
10766 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10767 $as_echo_n "(cached) " >&6
10769 if test "$cross_compiling" = yes; then
10770 ac_cv_func_mmap_fixed_mapped=no
10772 cat >conftest.$ac_ext <<_ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10778 $ac_includes_default
10779 /* malloc might have been renamed as rpl_malloc. */
10782 /* Thanks to Mike Haertel and Jim Avera for this test.
10783 Here is a matrix of mmap possibilities:
10784 mmap private not fixed
10785 mmap private fixed at somewhere currently unmapped
10786 mmap private fixed at somewhere already mapped
10787 mmap shared not fixed
10788 mmap shared fixed at somewhere currently unmapped
10789 mmap shared fixed at somewhere already mapped
10790 For private mappings, we should verify that changes cannot be read()
10791 back from the file, nor mmap's back from the file at a different
10792 address. (There have been systems where private was not correctly
10793 implemented like the infamous i386 svr4.0, and systems where the
10794 VM page cache was not coherent with the file system buffer cache
10795 like early versions of FreeBSD and possibly contemporary NetBSD.)
10796 For shared mappings, we should conversely verify that changes get
10797 propagated back to all the places they're supposed to be.
10799 Grep wants private fixed already mapped.
10800 The main things grep needs to know about mmap are:
10801 * does it exist and is it safe to write into the mmap'd area
10802 * how to use it (BSD variants) */
10805 #include <sys/mman.h>
10807 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10811 /* This mess was copied from the GNU getpagesize.h. */
10812 #ifndef HAVE_GETPAGESIZE
10813 /* Assume that all systems that can run configure have sys/param.h. */
10814 # ifndef HAVE_SYS_PARAM_H
10815 # define HAVE_SYS_PARAM_H 1
10818 # ifdef _SC_PAGESIZE
10819 # define getpagesize() sysconf(_SC_PAGESIZE)
10820 # else /* no _SC_PAGESIZE */
10821 # ifdef HAVE_SYS_PARAM_H
10822 # include <sys/param.h>
10823 # ifdef EXEC_PAGESIZE
10824 # define getpagesize() EXEC_PAGESIZE
10825 # else /* no EXEC_PAGESIZE */
10827 # define getpagesize() NBPG * CLSIZE
10830 # endif /* no CLSIZE */
10831 # else /* no NBPG */
10833 # define getpagesize() NBPC
10834 # else /* no NBPC */
10836 # define getpagesize() PAGESIZE
10837 # endif /* PAGESIZE */
10838 # endif /* no NBPC */
10839 # endif /* no NBPG */
10840 # endif /* no EXEC_PAGESIZE */
10841 # else /* no HAVE_SYS_PARAM_H */
10842 # define getpagesize() 8192 /* punt totally */
10843 # endif /* no HAVE_SYS_PARAM_H */
10844 # endif /* no _SC_PAGESIZE */
10846 #endif /* no HAVE_GETPAGESIZE */
10851 char *data, *data2, *data3;
10855 pagesize = getpagesize ();
10857 /* First, make a file with some known garbage in it. */
10858 data = (char *) malloc (pagesize);
10861 for (i = 0; i < pagesize; ++i)
10862 *(data + i) = rand ();
10864 fd = creat ("conftest.mmap", 0600);
10867 if (write (fd, data, pagesize) != pagesize)
10871 /* Next, try to mmap the file at a fixed address which already has
10872 something else allocated at it. If we can, also make sure that
10873 we see the same garbage. */
10874 fd = open ("conftest.mmap", O_RDWR);
10877 data2 = (char *) malloc (2 * pagesize);
10880 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10881 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10882 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10884 for (i = 0; i < pagesize; ++i)
10885 if (*(data + i) != *(data2 + i))
10888 /* Finally, make sure that changes to the mapped area do not
10889 percolate back to the file as seen by read(). (This is a bug on
10890 some variants of i386 svr4.0.) */
10891 for (i = 0; i < pagesize; ++i)
10892 *(data2 + i) = *(data2 + i) + 1;
10893 data3 = (char *) malloc (pagesize);
10896 if (read (fd, data3, pagesize) != pagesize)
10898 for (i = 0; i < pagesize; ++i)
10899 if (*(data + i) != *(data3 + i))
10905 rm -f conftest$ac_exeext
10906 if { (ac_try="$ac_link"
10907 case "(($ac_try" in
10908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10909 *) ac_try_echo
=$ac_try;;
10911 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10912 $as_echo "$ac_try_echo") >&5
10913 (eval "$ac_link") 2>&5
10915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10917 { (case "(($ac_try" in
10918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10922 $as_echo "$ac_try_echo") >&5
10923 (eval "$ac_try") 2>&5
10925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; }; then
10927 ac_cv_func_mmap_fixed_mapped=yes
10929 $as_echo "$as_me: program exited with status $ac_status" >&5
10930 $as_echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10933 ( exit $ac_status )
10934 ac_cv_func_mmap_fixed_mapped=no
10936 rm -rf conftest.dSYM
10937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10942 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10943 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10944 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10946 cat >>confdefs.h <<\_ACEOF
10947 #define HAVE_MMAP 1
10951 rm -f conftest.mmap
10953 if test $use_mmap_for_buffers = yes; then
10957 LIBS="$LIBS_SYSTEM $LIBS"
10960 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10961 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10962 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10963 $as_echo_n "(cached) " >&6
10965 ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-ldnet $LIBS"
10967 cat >conftest.$ac_ext <<_ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10974 /* Override any GCC internal prototype to avoid an error.
10975 Use char because int might match the return type of a GCC
10976 builtin and then its argument prototype would still apply. */
10984 return dnet_ntoa ();
10989 rm -f conftest.$ac_objext conftest$ac_exeext
10990 if { (ac_try="$ac_link"
10991 case "(($ac_try" in
10992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10993 *) ac_try_echo
=$ac_try;;
10995 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10996 $as_echo "$ac_try_echo") >&5
10997 (eval "$ac_link") 2>conftest.er1
10999 grep -v '^ *+' conftest.er1
>conftest.err
11001 cat conftest.err
>&5
11002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && {
11004 test -z "$ac_c_werror_flag" ||
11005 test ! -s conftest.err
11006 } && test -s conftest
$ac_exeext && {
11007 test "$cross_compiling" = yes ||
11008 $as_test_x conftest
$ac_exeext
11010 ac_cv_lib_dnet_dnet_ntoa
=yes
11012 $as_echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.
$ac_ext >&5
11015 ac_cv_lib_dnet_dnet_ntoa
=no
11018 rm -rf conftest.dSYM
11019 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11020 conftest
$ac_exeext conftest.
$ac_ext
11021 LIBS
=$ac_check_lib_save_LIBS
11023 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11024 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11025 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11026 cat >>confdefs.h
<<_ACEOF
11027 #define HAVE_LIBDNET 1
11030 LIBS
="-ldnet $LIBS"
11035 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11036 $as_echo_n "checking for main in -lXbsd... " >&6; }
11037 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11038 $as_echo_n "(cached) " >&6
11040 ac_check_lib_save_LIBS
=$LIBS
11041 LIBS
="-lXbsd $LIBS"
11042 cat >conftest.
$ac_ext <<_ACEOF
11045 cat confdefs.h
>>conftest.
$ac_ext
11046 cat >>conftest.
$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11058 rm -f conftest.
$ac_objext conftest
$ac_exeext
11059 if { (ac_try
="$ac_link"
11060 case "(($ac_try" in
11061 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11065 $as_echo "$ac_try_echo") >&5
11066 (eval "$ac_link") 2>conftest.er1
11068 grep -v '^ *+' conftest.er1 >conftest.err
11070 cat conftest.err >&5
11071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } && {
11073 test -z "$ac_c_werror_flag" ||
11074 test ! -s conftest.err
11075 } && test -s conftest$ac_exeext && {
11076 test "$cross_compiling" = yes ||
11077 $as_test_x conftest$ac_exeext
11079 ac_cv_lib_Xbsd_main=yes
11081 $as_echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11084 ac_cv_lib_Xbsd_main=no
11087 rm -rf conftest.dSYM
11088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11089 conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11092 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11093 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11094 if test $ac_cv_lib_Xbsd_main = yes; then
11095 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11100 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11101 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11102 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11103 $as_echo_n "(cached) " >&6
11105 ac_check_lib_save_LIBS=$LIBS
11106 LIBS="-lpthreads $LIBS"
11107 cat >conftest.$ac_ext <<_ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11114 /* Override any GCC internal prototype to avoid an error.
11115 Use char because int might match the return type of a GCC
11116 builtin and then its argument prototype would still apply. */
11124 return cma_open ();
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (ac_try="$ac_link"
11131 case "(($ac_try" in
11132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11133 *) ac_try_echo
=$ac_try;;
11135 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11136 $as_echo "$ac_try_echo") >&5
11137 (eval "$ac_link") 2>conftest.er1
11139 grep -v '^ *+' conftest.er1
>conftest.err
11141 cat conftest.err
>&5
11142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } && {
11144 test -z "$ac_c_werror_flag" ||
11145 test ! -s conftest.err
11146 } && test -s conftest
$ac_exeext && {
11147 test "$cross_compiling" = yes ||
11148 $as_test_x conftest
$ac_exeext
11150 ac_cv_lib_pthreads_cma_open
=yes
11152 $as_echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.
$ac_ext >&5
11155 ac_cv_lib_pthreads_cma_open
=no
11158 rm -rf conftest.dSYM
11159 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11160 conftest
$ac_exeext conftest.
$ac_ext
11161 LIBS
=$ac_check_lib_save_LIBS
11163 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11164 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11165 if test $ac_cv_lib_pthreads_cma_open = yes; then
11166 cat >>confdefs.h
<<_ACEOF
11167 #define HAVE_LIBPTHREADS 1
11170 LIBS
="-lpthreads $LIBS"
11175 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11176 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11177 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11178 ## added to LIBS in configure would never contain the pthreads part,
11179 ## but the value used in Makefiles might. FIXME?
11181 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11182 ## be harmless on older versions of X where it happens to exist.
11183 test "$opsys" = "aix4-2" && \
11184 test $ac_cv_lib_pthreads_cma_open = yes && \
11185 LIBS_SYSTEM
="$LIBS_SYSTEM -lpthreads"
11190 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11191 $as_echo_n "checking for -bbigtoc option... " >&6; }
11192 if test "${gdb_cv_bigtoc+set}" = set; then
11193 $as_echo_n "(cached) " >&6
11197 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
11198 *) gdb_cv_bigtoc
=-bbigtoc ;;
11201 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
11202 cat >conftest.
$ac_ext <<_ACEOF
11205 cat confdefs.h
>>conftest.
$ac_ext
11206 cat >>conftest.
$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11217 rm -f conftest.
$ac_objext conftest
$ac_exeext
11218 if { (ac_try
="$ac_link"
11219 case "(($ac_try" in
11220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11221 *) ac_try_echo=$ac_try;;
11223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11224 $as_echo "$ac_try_echo") >&5
11225 (eval "$ac_link") 2>conftest.er1
11227 grep -v '^ *+' conftest.er1 >conftest.err
11229 cat conftest.err >&5
11230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } && {
11232 test -z "$ac_c_werror_flag" ||
11233 test ! -s conftest.err
11234 } && test -s conftest$ac_exeext && {
11235 test "$cross_compiling" = yes ||
11236 $as_test_x conftest$ac_exeext
11240 $as_echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11246 rm -rf conftest.dSYM
11247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11248 conftest$ac_exeext conftest.$ac_ext
11251 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11252 $as_echo "$gdb_cv_bigtoc" >&6; }
11256 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11257 # used for the tests that follow. We set them back to REAL_CFLAGS and
11258 # REAL_CPPFLAGS later on.
11260 REAL_CPPFLAGS="$CPPFLAGS"
11262 if test "${HAVE_X11}" = "yes"; then
11263 DEFS="$C_SWITCH_X_SITE $DEFS"
11264 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11266 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11267 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11269 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11270 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11271 # but it's more convenient here to set LD_RUN_PATH
11272 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11273 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11274 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11278 if test "${opsys}" = "gnu-linux"; then
11279 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11280 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11281 cat >conftest.$ac_ext <<_ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11291 XOpenDisplay ("foo");
11296 rm -f conftest.$ac_objext conftest$ac_exeext
11297 if { (ac_try="$ac_link"
11298 case "(($ac_try" in
11299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11300 *) ac_try_echo
=$ac_try;;
11302 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11303 $as_echo "$ac_try_echo") >&5
11304 (eval "$ac_link") 2>conftest.er1
11306 grep -v '^ *+' conftest.er1
>conftest.err
11308 cat conftest.err
>&5
11309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } && {
11311 test -z "$ac_c_werror_flag" ||
11312 test ! -s conftest.err
11313 } && test -s conftest
$ac_exeext && {
11314 test "$cross_compiling" = yes ||
11315 $as_test_x conftest
$ac_exeext
11317 xlinux_first_failure
=no
11319 $as_echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.
$ac_ext >&5
11322 xlinux_first_failure
=yes
11325 rm -rf conftest.dSYM
11326 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11327 conftest
$ac_exeext conftest.
$ac_ext
11328 if test "${xlinux_first_failure}" = "yes"; then
11329 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
11330 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
11331 OLD_CPPFLAGS
="$CPPFLAGS"
11333 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
11334 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
11335 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
11336 LIBS
="$LIBS -b i486-linuxaout"
11337 cat >conftest.
$ac_ext <<_ACEOF
11340 cat confdefs.h
>>conftest.
$ac_ext
11341 cat >>conftest.
$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11347 XOpenDisplay ("foo");
11352 rm -f conftest.
$ac_objext conftest
$ac_exeext
11353 if { (ac_try
="$ac_link"
11354 case "(($ac_try" in
11355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11359 $as_echo "$ac_try_echo") >&5
11360 (eval "$ac_link") 2>conftest.er1
11362 grep -v '^ *+' conftest.er1 >conftest.err
11364 cat conftest.err >&5
11365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); } && {
11367 test -z "$ac_c_werror_flag" ||
11368 test ! -s conftest.err
11369 } && test -s conftest$ac_exeext && {
11370 test "$cross_compiling" = yes ||
11371 $as_test_x conftest$ac_exeext
11373 xlinux_second_failure=no
11375 $as_echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11378 xlinux_second_failure=yes
11381 rm -rf conftest.dSYM
11382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11383 conftest$ac_exeext conftest.$ac_ext
11384 if test "${xlinux_second_failure}" = "yes"; then
11385 # If we get the same failure with -b, there is no use adding -b.
11386 # So take it out. This plays safe.
11387 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11388 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11389 CPPFLAGS="$OLD_CPPFLAGS"
11391 { $as_echo "$as_me:$LINENO: result: no" >&5
11392 $as_echo "no" >&6; }
11394 { $as_echo "$as_me:$LINENO: result: yes" >&5
11395 $as_echo "yes" >&6; }
11398 { $as_echo "$as_me:$LINENO: result: no" >&5
11399 $as_echo "no" >&6; }
11403 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11404 # header files included from there.
11405 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11406 $as_echo_n "checking for Xkb... " >&6; }
11407 cat >conftest.$ac_ext <<_ACEOF
11410 cat confdefs.h >>conftest.$ac_ext
11411 cat >>conftest.$ac_ext <<_ACEOF
11412 /* end confdefs.h. */
11413 #include <X11/Xlib.h>
11414 #include <X11/XKBlib.h>
11418 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11423 rm -f conftest.$ac_objext conftest$ac_exeext
11424 if { (ac_try="$ac_link"
11425 case "(($ac_try" in
11426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11427 *) ac_try_echo
=$ac_try;;
11429 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11430 $as_echo "$ac_try_echo") >&5
11431 (eval "$ac_link") 2>conftest.er1
11433 grep -v '^ *+' conftest.er1
>conftest.err
11435 cat conftest.err
>&5
11436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } && {
11438 test -z "$ac_c_werror_flag" ||
11439 test ! -s conftest.err
11440 } && test -s conftest
$ac_exeext && {
11441 test "$cross_compiling" = yes ||
11442 $as_test_x conftest
$ac_exeext
11446 $as_echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.
$ac_ext >&5
11452 rm -rf conftest.dSYM
11453 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11454 conftest
$ac_exeext conftest.
$ac_ext
11455 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11456 $as_echo "$emacs_xkb" >&6; }
11457 if test $emacs_xkb = yes; then
11459 cat >>confdefs.h
<<\_ACEOF
11460 #define HAVE_XKBGETKEYBOARD 1
11469 for ac_func
in XrmSetDatabase XScreenResourceString \
11470 XScreenNumberOfScreen XSetWMProtocols
11472 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11473 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11474 $as_echo_n "checking for $ac_func... " >&6; }
11475 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11476 $as_echo_n "(cached) " >&6
11478 cat >conftest.
$ac_ext <<_ACEOF
11481 cat confdefs.h
>>conftest.
$ac_ext
11482 cat >>conftest.
$ac_ext <<_ACEOF
11483 /* end confdefs.h. */
11484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11486 #define $ac_func innocuous_$ac_func
11488 /* System header to define __stub macros and hopefully few prototypes,
11489 which can conflict with char $ac_func (); below.
11490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11491 <limits.h> exists even on freestanding compilers. */
11494 # include <limits.h>
11496 # include <assert.h>
11501 /* Override any GCC internal prototype to avoid an error.
11502 Use char because int might match the return type of a GCC
11503 builtin and then its argument prototype would still apply. */
11508 /* The GNU C library defines this for functions which it implements
11509 to always fail with ENOSYS. Some functions are actually named
11510 something starting with __ and the normal name is an alias. */
11511 #if defined __stub_$ac_func || defined __stub___$ac_func
11518 return $ac_func ();
11523 rm -f conftest.
$ac_objext conftest
$ac_exeext
11524 if { (ac_try
="$ac_link"
11525 case "(($ac_try" in
11526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11530 $as_echo "$ac_try_echo") >&5
11531 (eval "$ac_link") 2>conftest.er1
11533 grep -v '^ *+' conftest.er1 >conftest.err
11535 cat conftest.err >&5
11536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } && {
11538 test -z "$ac_c_werror_flag" ||
11539 test ! -s conftest.err
11540 } && test -s conftest$ac_exeext && {
11541 test "$cross_compiling" = yes ||
11542 $as_test_x conftest$ac_exeext
11544 eval "$as_ac_var=yes"
11546 $as_echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 eval "$as_ac_var=no"
11552 rm -rf conftest.dSYM
11553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11554 conftest$ac_exeext conftest.$ac_ext
11556 ac_res=`eval 'as_val=${'$as_ac_var'}
11557 $as_echo "$as_val"'`
11558 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11559 $as_echo "$ac_res" >&6; }
11560 if test `eval 'as_val=${'$as_ac_var'}
11561 $as_echo "$as_val"'` = yes; then
11562 cat >>confdefs.h <<_ACEOF
11563 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11571 if test "${window_system}" = "x11"; then
11572 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11573 $as_echo_n "checking X11 version 6... " >&6; }
11574 if test "${emacs_cv_x11_version_6+set}" = set; then
11575 $as_echo_n "(cached) " >&6
11577 cat >conftest.$ac_ext <<_ACEOF
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h. */
11583 #include <X11/Xlib.h>
11587 #if XlibSpecificationRelease < 6
11595 rm -f conftest.$ac_objext conftest$ac_exeext
11596 if { (ac_try="$ac_link"
11597 case "(($ac_try" in
11598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11599 *) ac_try_echo
=$ac_try;;
11601 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11602 $as_echo "$ac_try_echo") >&5
11603 (eval "$ac_link") 2>conftest.er1
11605 grep -v '^ *+' conftest.er1
>conftest.err
11607 cat conftest.err
>&5
11608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } && {
11610 test -z "$ac_c_werror_flag" ||
11611 test ! -s conftest.err
11612 } && test -s conftest
$ac_exeext && {
11613 test "$cross_compiling" = yes ||
11614 $as_test_x conftest
$ac_exeext
11616 emacs_cv_x11_version_6
=yes
11618 $as_echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.
$ac_ext >&5
11621 emacs_cv_x11_version_6
=no
11624 rm -rf conftest.dSYM
11625 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11626 conftest
$ac_exeext conftest.
$ac_ext
11629 if test $emacs_cv_x11_version_6 = yes; then
11630 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11631 $as_echo "6 or newer" >&6; }
11633 cat >>confdefs.h
<<\_ACEOF
11634 #define HAVE_X11R6 1
11638 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11639 $as_echo "before 6" >&6; }
11644 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11646 if test "${HAVE_X11}" = "yes" ||
test "${NS_IMPL_GNUSTEP}" = "yes"; then
11647 if test "${with_rsvg}" != "no"; then
11648 RSVG_REQUIRED
=2.11.0
11649 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11654 # Extract the first word of "pkg-config", so it can be a program name with args.
11655 set dummy pkg-config
; ac_word
=$2
11656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11659 $as_echo_n "(cached) " >&6
11661 case $PKG_CONFIG in
11663 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11667 for as_dir
in $PATH
11670 test -z "$as_dir" && as_dir
=.
11671 for ac_exec_ext
in '' $ac_executable_extensions; do
11672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11673 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11674 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11681 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11685 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11686 if test -n "$PKG_CONFIG"; then
11687 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11688 $as_echo "$PKG_CONFIG" >&6; }
11690 { $as_echo "$as_me:$LINENO: result: no" >&5
11691 $as_echo "no" >&6; }
11696 if test "$PKG_CONFIG" = "no" ; then
11699 PKG_CONFIG_MIN_VERSION
=0.9.0
11700 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11701 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11702 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11704 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11705 { $as_echo "$as_me:$LINENO: result: yes" >&5
11706 $as_echo "yes" >&6; }
11709 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11710 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11711 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11712 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11713 $as_echo "$RSVG_CFLAGS" >&6; }
11715 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11716 $as_echo_n "checking RSVG_LIBS... " >&6; }
11717 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11718 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11719 $as_echo "$RSVG_LIBS" >&6; }
11721 { $as_echo "$as_me:$LINENO: result: no" >&5
11722 $as_echo "no" >&6; }
11725 ## If we have a custom action on failure, don't print errors, but
11726 ## do set a variable so people can do so.
11727 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11734 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11735 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11739 if test $succeeded = yes; then
11748 if test ".${RSVG_CFLAGS}" != "."; then
11751 cat >>confdefs.h
<<\_ACEOF
11752 #define HAVE_RSVG 1
11755 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11756 LIBS
="$RSVG_LIBS $LIBS"
11763 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11766 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11771 # Extract the first word of "pkg-config", so it can be a program name with args.
11772 set dummy pkg-config
; ac_word
=$2
11773 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11774 $as_echo_n "checking for $ac_word... " >&6; }
11775 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11776 $as_echo_n "(cached) " >&6
11778 case $PKG_CONFIG in
11780 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11783 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11784 for as_dir
in $PATH
11787 test -z "$as_dir" && as_dir
=.
11788 for ac_exec_ext
in '' $ac_executable_extensions; do
11789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11790 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11791 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11798 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11802 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11803 if test -n "$PKG_CONFIG"; then
11804 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11805 $as_echo "$PKG_CONFIG" >&6; }
11807 { $as_echo "$as_me:$LINENO: result: no" >&5
11808 $as_echo "no" >&6; }
11813 if test "$PKG_CONFIG" = "no" ; then
11816 PKG_CONFIG_MIN_VERSION
=0.9.0
11817 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11818 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11819 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11821 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11822 { $as_echo "$as_me:$LINENO: result: yes" >&5
11823 $as_echo "yes" >&6; }
11826 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11827 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11828 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11829 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11830 $as_echo "$GTK_CFLAGS" >&6; }
11832 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11833 $as_echo_n "checking GTK_LIBS... " >&6; }
11834 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11835 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11836 $as_echo "$GTK_LIBS" >&6; }
11838 { $as_echo "$as_me:$LINENO: result: no" >&5
11839 $as_echo "no" >&6; }
11842 ## If we have a custom action on failure, don't print errors, but
11843 ## do set a variable so people can do so.
11844 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11851 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11852 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11856 if test $succeeded = yes; then
11862 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11863 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11864 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11865 { (exit 1); exit 1; }; }
11871 if test x
"$pkg_check_gtk" = xyes
; then
11875 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11876 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11877 LIBS
="$GTK_LIBS $LIBS"
11880 for ac_func
in gtk_main
11882 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11883 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11884 $as_echo_n "checking for $ac_func... " >&6; }
11885 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11886 $as_echo_n "(cached) " >&6
11888 cat >conftest.
$ac_ext <<_ACEOF
11891 cat confdefs.h
>>conftest.
$ac_ext
11892 cat >>conftest.
$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11896 #define $ac_func innocuous_$ac_func
11898 /* System header to define __stub macros and hopefully few prototypes,
11899 which can conflict with char $ac_func (); below.
11900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11901 <limits.h> exists even on freestanding compilers. */
11904 # include <limits.h>
11906 # include <assert.h>
11911 /* Override any GCC internal prototype to avoid an error.
11912 Use char because int might match the return type of a GCC
11913 builtin and then its argument prototype would still apply. */
11918 /* The GNU C library defines this for functions which it implements
11919 to always fail with ENOSYS. Some functions are actually named
11920 something starting with __ and the normal name is an alias. */
11921 #if defined __stub_$ac_func || defined __stub___$ac_func
11928 return $ac_func ();
11933 rm -f conftest.
$ac_objext conftest
$ac_exeext
11934 if { (ac_try
="$ac_link"
11935 case "(($ac_try" in
11936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11940 $as_echo "$ac_try_echo") >&5
11941 (eval "$ac_link") 2>conftest.er1
11943 grep -v '^ *+' conftest.er1 >conftest.err
11945 cat conftest.err >&5
11946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } && {
11948 test -z "$ac_c_werror_flag" ||
11949 test ! -s conftest.err
11950 } && test -s conftest$ac_exeext && {
11951 test "$cross_compiling" = yes ||
11952 $as_test_x conftest$ac_exeext
11954 eval "$as_ac_var=yes"
11956 $as_echo "$as_me: failed program was:" >&5
11957 sed 's/^/| /' conftest.$ac_ext >&5
11959 eval "$as_ac_var=no"
11962 rm -rf conftest.dSYM
11963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11964 conftest$ac_exeext conftest.$ac_ext
11966 ac_res=`eval 'as_val=${'$as_ac_var'}
11967 $as_echo "$as_val"'`
11968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11969 $as_echo "$ac_res" >&6; }
11970 if test `eval 'as_val=${'$as_ac_var'}
11971 $as_echo "$as_val"'` = yes; then
11972 cat >>confdefs.h <<_ACEOF
11973 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11979 if test "${GTK_COMPILES}" != "yes"; then
11980 if test "$USE_X_TOOLKIT" != "maybe"; then
11981 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11982 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11983 { (exit 1); exit 1; }; };
11988 cat >>confdefs.h <<\_ACEOF
11994 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11997 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11998 closing open displays. This is no problem if you just use
11999 one display, but if you use more than one and close one of them
12000 Emacs may crash." >&5
12001 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12002 closing open displays. This is no problem if you just use
12003 one display, but if you use more than one and close one of them
12004 Emacs may crash." >&2;}
12013 if test "${HAVE_GTK}" = "yes"; then
12015 if test "$with_toolkit_scroll_bars" != no; then
12016 with_toolkit_scroll_bars=yes
12019 HAVE_GTK_MULTIDISPLAY=no
12021 for ac_func in gdk_display_open
12023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12024 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12025 $as_echo_n "checking for $ac_func... " >&6; }
12026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12027 $as_echo_n "(cached) " >&6
12029 cat >conftest.$ac_ext <<_ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12037 #define $ac_func innocuous_$ac_func
12039 /* System header to define __stub macros and hopefully few prototypes,
12040 which can conflict with char $ac_func (); below.
12041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12042 <limits.h> exists even on freestanding compilers. */
12045 # include <limits.h>
12047 # include <assert.h>
12052 /* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
12059 /* The GNU C library defines this for functions which it implements
12060 to always fail with ENOSYS. Some functions are actually named
12061 something starting with __ and the normal name is an alias. */
12062 #if defined __stub_$ac_func || defined __stub___$ac_func
12069 return $ac_func ();
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (ac_try="$ac_link"
12076 case "(($ac_try" in
12077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12078 *) ac_try_echo
=$ac_try;;
12080 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12081 $as_echo "$ac_try_echo") >&5
12082 (eval "$ac_link") 2>conftest.er1
12084 grep -v '^ *+' conftest.er1
>conftest.err
12086 cat conftest.err
>&5
12087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } && {
12089 test -z "$ac_c_werror_flag" ||
12090 test ! -s conftest.err
12091 } && test -s conftest
$ac_exeext && {
12092 test "$cross_compiling" = yes ||
12093 $as_test_x conftest
$ac_exeext
12095 eval "$as_ac_var=yes"
12097 $as_echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.
$ac_ext >&5
12100 eval "$as_ac_var=no"
12103 rm -rf conftest.dSYM
12104 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12105 conftest
$ac_exeext conftest.
$ac_ext
12107 ac_res
=`eval 'as_val=${'$as_ac_var'}
12108 $as_echo "$as_val"'`
12109 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12110 $as_echo "$ac_res" >&6; }
12111 if test `eval 'as_val=${'$as_ac_var'}
12112 $as_echo "$as_val"'` = yes; then
12113 cat >>confdefs.h
<<_ACEOF
12114 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12116 HAVE_GTK_MULTIDISPLAY
=yes
12120 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12122 cat >>confdefs.h
<<\_ACEOF
12123 #define HAVE_GTK_MULTIDISPLAY 1
12128 HAVE_GTK_FILE_SELECTION
=no
12129 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12130 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12131 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12132 $as_echo_n "(cached) " >&6
12134 cat >conftest.
$ac_ext <<_ACEOF
12137 cat confdefs.h
>>conftest.
$ac_ext
12138 cat >>conftest.
$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12140 $ac_includes_default
12141 #include <gtk/gtk.h>
12146 #ifndef GTK_TYPE_FILE_SELECTION
12147 (void) GTK_TYPE_FILE_SELECTION;
12154 rm -f conftest.
$ac_objext
12155 if { (ac_try
="$ac_compile"
12156 case "(($ac_try" in
12157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12161 $as_echo "$ac_try_echo") >&5
12162 (eval "$ac_compile") 2>conftest.er1
12164 grep -v '^ *+' conftest.er1 >conftest.err
12166 cat conftest.err >&5
12167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } && {
12169 test -z "$ac_c_werror_flag" ||
12170 test ! -s conftest.err
12171 } && test -s conftest.$ac_objext; then
12172 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12174 $as_echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12177 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12182 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12183 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12184 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12185 HAVE_GTK_FILE_SELECTION=yes
12187 HAVE_GTK_FILE_SELECTION=no
12190 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12192 for ac_func in gtk_file_selection_new
12194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12195 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12196 $as_echo_n "checking for $ac_func... " >&6; }
12197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12198 $as_echo_n "(cached) " >&6
12200 cat >conftest.$ac_ext <<_ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12208 #define $ac_func innocuous_$ac_func
12210 /* System header to define __stub macros and hopefully few prototypes,
12211 which can conflict with char $ac_func (); below.
12212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12213 <limits.h> exists even on freestanding compilers. */
12216 # include <limits.h>
12218 # include <assert.h>
12223 /* Override any GCC internal prototype to avoid an error.
12224 Use char because int might match the return type of a GCC
12225 builtin and then its argument prototype would still apply. */
12230 /* The GNU C library defines this for functions which it implements
12231 to always fail with ENOSYS. Some functions are actually named
12232 something starting with __ and the normal name is an alias. */
12233 #if defined __stub_$ac_func || defined __stub___$ac_func
12240 return $ac_func ();
12245 rm -f conftest.$ac_objext conftest$ac_exeext
12246 if { (ac_try="$ac_link"
12247 case "(($ac_try" in
12248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12249 *) ac_try_echo
=$ac_try;;
12251 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12252 $as_echo "$ac_try_echo") >&5
12253 (eval "$ac_link") 2>conftest.er1
12255 grep -v '^ *+' conftest.er1
>conftest.err
12257 cat conftest.err
>&5
12258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } && {
12260 test -z "$ac_c_werror_flag" ||
12261 test ! -s conftest.err
12262 } && test -s conftest
$ac_exeext && {
12263 test "$cross_compiling" = yes ||
12264 $as_test_x conftest
$ac_exeext
12266 eval "$as_ac_var=yes"
12268 $as_echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.
$ac_ext >&5
12271 eval "$as_ac_var=no"
12274 rm -rf conftest.dSYM
12275 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12276 conftest
$ac_exeext conftest.
$ac_ext
12278 ac_res
=`eval 'as_val=${'$as_ac_var'}
12279 $as_echo "$as_val"'`
12280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12281 $as_echo "$ac_res" >&6; }
12282 if test `eval 'as_val=${'$as_ac_var'}
12283 $as_echo "$as_val"'` = yes; then
12284 cat >>confdefs.h
<<_ACEOF
12285 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12287 HAVE_GTK_FILE_SELECTION
=yes
12289 HAVE_GTK_FILE_SELECTION
=no
12295 HAVE_GTK_FILE_CHOOSER
=no
12296 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12297 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12298 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12299 $as_echo_n "(cached) " >&6
12301 cat >conftest.
$ac_ext <<_ACEOF
12304 cat confdefs.h
>>conftest.
$ac_ext
12305 cat >>conftest.
$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12307 $ac_includes_default
12308 #include <gtk/gtk.h>
12313 #ifndef GTK_TYPE_FILE_CHOOSER
12314 (void) GTK_TYPE_FILE_CHOOSER;
12321 rm -f conftest.
$ac_objext
12322 if { (ac_try
="$ac_compile"
12323 case "(($ac_try" in
12324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12325 *) ac_try_echo=$ac_try;;
12327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12328 $as_echo "$ac_try_echo") >&5
12329 (eval "$ac_compile") 2>conftest.er1
12331 grep -v '^ *+' conftest.er1 >conftest.err
12333 cat conftest.err >&5
12334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } && {
12336 test -z "$ac_c_werror_flag" ||
12337 test ! -s conftest.err
12338 } && test -s conftest.$ac_objext; then
12339 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12341 $as_echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12344 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12349 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12350 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12351 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12352 HAVE_GTK_FILE_CHOOSER=yes
12354 HAVE_GTK_FILE_CHOOSER=no
12357 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12359 for ac_func in gtk_file_chooser_dialog_new
12361 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12362 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12363 $as_echo_n "checking for $ac_func... " >&6; }
12364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12365 $as_echo_n "(cached) " >&6
12367 cat >conftest.$ac_ext <<_ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12375 #define $ac_func innocuous_$ac_func
12377 /* System header to define __stub macros and hopefully few prototypes,
12378 which can conflict with char $ac_func (); below.
12379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12380 <limits.h> exists even on freestanding compilers. */
12383 # include <limits.h>
12385 # include <assert.h>
12390 /* Override any GCC internal prototype to avoid an error.
12391 Use char because int might match the return type of a GCC
12392 builtin and then its argument prototype would still apply. */
12397 /* The GNU C library defines this for functions which it implements
12398 to always fail with ENOSYS. Some functions are actually named
12399 something starting with __ and the normal name is an alias. */
12400 #if defined __stub_$ac_func || defined __stub___$ac_func
12407 return $ac_func ();
12412 rm -f conftest.$ac_objext conftest$ac_exeext
12413 if { (ac_try="$ac_link"
12414 case "(($ac_try" in
12415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12416 *) ac_try_echo
=$ac_try;;
12418 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12419 $as_echo "$ac_try_echo") >&5
12420 (eval "$ac_link") 2>conftest.er1
12422 grep -v '^ *+' conftest.er1
>conftest.err
12424 cat conftest.err
>&5
12425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } && {
12427 test -z "$ac_c_werror_flag" ||
12428 test ! -s conftest.err
12429 } && test -s conftest
$ac_exeext && {
12430 test "$cross_compiling" = yes ||
12431 $as_test_x conftest
$ac_exeext
12433 eval "$as_ac_var=yes"
12435 $as_echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.
$ac_ext >&5
12438 eval "$as_ac_var=no"
12441 rm -rf conftest.dSYM
12442 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12443 conftest
$ac_exeext conftest.
$ac_ext
12445 ac_res
=`eval 'as_val=${'$as_ac_var'}
12446 $as_echo "$as_val"'`
12447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12448 $as_echo "$ac_res" >&6; }
12449 if test `eval 'as_val=${'$as_ac_var'}
12450 $as_echo "$as_val"'` = yes; then
12451 cat >>confdefs.h
<<_ACEOF
12452 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12454 HAVE_GTK_FILE_CHOOSER
=yes
12456 HAVE_GTK_FILE_CHOOSER
=no
12462 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12463 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12465 cat >>confdefs.h
<<\_ACEOF
12466 #define HAVE_GTK_FILE_BOTH 1
12471 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12472 HAVE_GTK_AND_PTHREAD
=no
12474 for ac_header
in pthread.h
12476 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12477 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12478 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12479 $as_echo_n "checking for $ac_header... " >&6; }
12480 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12481 $as_echo_n "(cached) " >&6
12483 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12484 $as_echo "$as_val"'`
12485 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12486 $as_echo "$ac_res" >&6; }
12488 # Is the header compilable?
12489 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12490 $as_echo_n "checking $ac_header usability... " >&6; }
12491 cat >conftest.
$ac_ext <<_ACEOF
12494 cat confdefs.h
>>conftest.
$ac_ext
12495 cat >>conftest.
$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12497 $ac_includes_default
12498 #include <$ac_header>
12500 rm -f conftest.
$ac_objext
12501 if { (ac_try
="$ac_compile"
12502 case "(($ac_try" in
12503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12507 $as_echo "$ac_try_echo") >&5
12508 (eval "$ac_compile") 2>conftest.er1
12510 grep -v '^ *+' conftest.er1 >conftest.err
12512 cat conftest.err >&5
12513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && {
12515 test -z "$ac_c_werror_flag" ||
12516 test ! -s conftest.err
12517 } && test -s conftest.$ac_objext; then
12518 ac_header_compiler=yes
12520 $as_echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12523 ac_header_compiler=no
12526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12527 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12528 $as_echo "$ac_header_compiler" >&6; }
12530 # Is the header present?
12531 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12532 $as_echo_n "checking $ac_header presence... " >&6; }
12533 cat >conftest.$ac_ext <<_ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12539 #include <$ac_header>
12541 if { (ac_try="$ac_cpp conftest.$ac_ext"
12542 case "(($ac_try" in
12543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12544 *) ac_try_echo
=$ac_try;;
12546 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12547 $as_echo "$ac_try_echo") >&5
12548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12550 grep -v '^ *+' conftest.er1
>conftest.err
12552 cat conftest.err
>&5
12553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } >/dev
/null
&& {
12555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12556 test ! -s conftest.err
12558 ac_header_preproc
=yes
12560 $as_echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.
$ac_ext >&5
12563 ac_header_preproc
=no
12566 rm -f conftest.err conftest.
$ac_ext
12567 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12568 $as_echo "$ac_header_preproc" >&6; }
12570 # So? What about this header?
12571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12574 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12576 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12577 ac_header_preproc
=yes
12580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12581 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12583 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12585 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12587 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12589 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12591 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12595 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12596 $as_echo_n "checking for $ac_header... " >&6; }
12597 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12598 $as_echo_n "(cached) " >&6
12600 eval "$as_ac_Header=\$ac_header_preproc"
12602 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12603 $as_echo "$as_val"'`
12604 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12605 $as_echo "$ac_res" >&6; }
12608 if test `eval 'as_val=${'$as_ac_Header'}
12609 $as_echo "$as_val"'` = yes; then
12610 cat >>confdefs.h
<<_ACEOF
12611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12618 if test "$ac_cv_header_pthread_h"; then
12619 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12620 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12621 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12622 $as_echo_n "(cached) " >&6
12624 ac_check_lib_save_LIBS
=$LIBS
12625 LIBS
="-lpthread $LIBS"
12626 cat >conftest.
$ac_ext <<_ACEOF
12629 cat confdefs.h
>>conftest.
$ac_ext
12630 cat >>conftest.
$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12633 /* Override any GCC internal prototype to avoid an error.
12634 Use char because int might match the return type of a GCC
12635 builtin and then its argument prototype would still apply. */
12639 char pthread_self ();
12643 return pthread_self ();
12648 rm -f conftest.
$ac_objext conftest
$ac_exeext
12649 if { (ac_try
="$ac_link"
12650 case "(($ac_try" in
12651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12655 $as_echo "$ac_try_echo") >&5
12656 (eval "$ac_link") 2>conftest.er1
12658 grep -v '^ *+' conftest.er1 >conftest.err
12660 cat conftest.err >&5
12661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } && {
12663 test -z "$ac_c_werror_flag" ||
12664 test ! -s conftest.err
12665 } && test -s conftest$ac_exeext && {
12666 test "$cross_compiling" = yes ||
12667 $as_test_x conftest$ac_exeext
12669 ac_cv_lib_pthread_pthread_self=yes
12671 $as_echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12674 ac_cv_lib_pthread_pthread_self=no
12677 rm -rf conftest.dSYM
12678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12679 conftest$ac_exeext conftest.$ac_ext
12680 LIBS=$ac_check_lib_save_LIBS
12682 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12683 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12684 if test $ac_cv_lib_pthread_pthread_self = yes; then
12685 HAVE_GTK_AND_PTHREAD=yes
12689 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12690 case "${canonical}" in
12692 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12695 cat >>confdefs.h <<\_ACEOF
12696 #define HAVE_GTK_AND_PTHREAD 1
12705 if test "${with_dbus}" = "yes"; then
12709 # Extract the first word of "pkg-config", so it can be a program name with args.
12710 set dummy pkg-config; ac_word=$2
12711 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12712 $as_echo_n "checking for $ac_word... " >&6; }
12713 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12714 $as_echo_n "(cached) " >&6
12716 case $PKG_CONFIG in
12718 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12722 for as_dir in $PATH
12725 test -z "$as_dir" && as_dir=.
12726 for ac_exec_ext in '' $ac_executable_extensions; do
12727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12728 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12729 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12736 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12740 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12741 if test -n "$PKG_CONFIG"; then
12742 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12743 $as_echo "$PKG_CONFIG" >&6; }
12745 { $as_echo "$as_me:$LINENO: result: no" >&5
12746 $as_echo "no" >&6; }
12751 if test "$PKG_CONFIG" = "no" ; then
12754 PKG_CONFIG_MIN_VERSION=0.9.0
12755 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12756 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12757 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12759 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12760 { $as_echo "$as_me:$LINENO: result: yes" >&5
12761 $as_echo "yes" >&6; }
12764 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12765 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12766 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12767 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12768 $as_echo "$DBUS_CFLAGS" >&6; }
12770 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12771 $as_echo_n "checking DBUS_LIBS... " >&6; }
12772 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
12773 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12774 $as_echo "$DBUS_LIBS" >&6; }
12776 { $as_echo "$as_me:$LINENO: result: no" >&5
12777 $as_echo "no" >&6; }
12780 ## If we have a custom action on failure, don't print errors, but
12781 ## do set a variable so people can do so.
12782 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12789 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12790 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12794 if test $succeeded = yes; then
12800 if test "$HAVE_DBUS" = yes; then
12801 LIBS="$LIBS $DBUS_LIBS"
12803 cat >>confdefs.h <<\_ACEOF
12804 #define HAVE_DBUS 1
12808 for ac_func in dbus_watch_get_unix_fd
12810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12811 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12812 $as_echo_n "checking for $ac_func... " >&6; }
12813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12814 $as_echo_n "(cached) " >&6
12816 cat >conftest.$ac_ext <<_ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12824 #define $ac_func innocuous_$ac_func
12826 /* System header to define __stub macros and hopefully few prototypes,
12827 which can conflict with char $ac_func (); below.
12828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12829 <limits.h> exists even on freestanding compilers. */
12832 # include <limits.h>
12834 # include <assert.h>
12839 /* Override any GCC internal prototype to avoid an error.
12840 Use char because int might match the return type of a GCC
12841 builtin and then its argument prototype would still apply. */
12846 /* The GNU C library defines this for functions which it implements
12847 to always fail with ENOSYS. Some functions are actually named
12848 something starting with __ and the normal name is an alias. */
12849 #if defined __stub_$ac_func || defined __stub___$ac_func
12856 return $ac_func ();
12861 rm -f conftest.$ac_objext conftest$ac_exeext
12862 if { (ac_try="$ac_link"
12863 case "(($ac_try" in
12864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12865 *) ac_try_echo
=$ac_try;;
12867 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12868 $as_echo "$ac_try_echo") >&5
12869 (eval "$ac_link") 2>conftest.er1
12871 grep -v '^ *+' conftest.er1
>conftest.err
12873 cat conftest.err
>&5
12874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } && {
12876 test -z "$ac_c_werror_flag" ||
12877 test ! -s conftest.err
12878 } && test -s conftest
$ac_exeext && {
12879 test "$cross_compiling" = yes ||
12880 $as_test_x conftest
$ac_exeext
12882 eval "$as_ac_var=yes"
12884 $as_echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.
$ac_ext >&5
12887 eval "$as_ac_var=no"
12890 rm -rf conftest.dSYM
12891 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12892 conftest
$ac_exeext conftest.
$ac_ext
12894 ac_res
=`eval 'as_val=${'$as_ac_var'}
12895 $as_echo "$as_val"'`
12896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12897 $as_echo "$ac_res" >&6; }
12898 if test `eval 'as_val=${'$as_ac_var'}
12899 $as_echo "$as_val"'` = yes; then
12900 cat >>confdefs.h
<<_ACEOF
12901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12907 DBUS_OBJ
=dbusbind.o
12913 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12917 # Extract the first word of "pkg-config", so it can be a program name with args.
12918 set dummy pkg-config
; ac_word
=$2
12919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12920 $as_echo_n "checking for $ac_word... " >&6; }
12921 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12922 $as_echo_n "(cached) " >&6
12924 case $PKG_CONFIG in
12926 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12930 for as_dir
in $PATH
12933 test -z "$as_dir" && as_dir
=.
12934 for ac_exec_ext
in '' $ac_executable_extensions; do
12935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12936 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12944 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12948 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12949 if test -n "$PKG_CONFIG"; then
12950 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12951 $as_echo "$PKG_CONFIG" >&6; }
12953 { $as_echo "$as_me:$LINENO: result: no" >&5
12954 $as_echo "no" >&6; }
12959 if test "$PKG_CONFIG" = "no" ; then
12962 PKG_CONFIG_MIN_VERSION
=0.9.0
12963 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12964 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12965 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12967 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12968 { $as_echo "$as_me:$LINENO: result: yes" >&5
12969 $as_echo "yes" >&6; }
12972 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12973 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12974 GCONF_CFLAGS
=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12975 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12976 $as_echo "$GCONF_CFLAGS" >&6; }
12978 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12979 $as_echo_n "checking GCONF_LIBS... " >&6; }
12980 GCONF_LIBS
=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12981 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12982 $as_echo "$GCONF_LIBS" >&6; }
12984 { $as_echo "$as_me:$LINENO: result: no" >&5
12985 $as_echo "no" >&6; }
12988 ## If we have a custom action on failure, don't print errors, but
12989 ## do set a variable so people can do so.
12990 GCONF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12997 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12998 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13002 if test $succeeded = yes; then
13008 if test "$HAVE_GCONF" = yes; then
13010 cat >>confdefs.h
<<\_ACEOF
13011 #define HAVE_GCONF 1
13019 if test "${with_selinux}" = "yes"; then
13020 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13021 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13022 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13023 $as_echo_n "(cached) " >&6
13025 ac_check_lib_save_LIBS
=$LIBS
13026 LIBS
="-lselinux $LIBS"
13027 cat >conftest.
$ac_ext <<_ACEOF
13030 cat confdefs.h
>>conftest.
$ac_ext
13031 cat >>conftest.
$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13034 /* Override any GCC internal prototype to avoid an error.
13035 Use char because int might match the return type of a GCC
13036 builtin and then its argument prototype would still apply. */
13040 char lgetfilecon ();
13044 return lgetfilecon ();
13049 rm -f conftest.
$ac_objext conftest
$ac_exeext
13050 if { (ac_try
="$ac_link"
13051 case "(($ac_try" in
13052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13056 $as_echo "$ac_try_echo") >&5
13057 (eval "$ac_link") 2>conftest.er1
13059 grep -v '^ *+' conftest.er1 >conftest.err
13061 cat conftest.err >&5
13062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } && {
13064 test -z "$ac_c_werror_flag" ||
13065 test ! -s conftest.err
13066 } && test -s conftest$ac_exeext && {
13067 test "$cross_compiling" = yes ||
13068 $as_test_x conftest$ac_exeext
13070 ac_cv_lib_selinux_lgetfilecon=yes
13072 $as_echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13075 ac_cv_lib_selinux_lgetfilecon=no
13078 rm -rf conftest.dSYM
13079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13080 conftest$ac_exeext conftest.$ac_ext
13081 LIBS=$ac_check_lib_save_LIBS
13083 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13084 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13085 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
13086 HAVE_LIBSELINUX=yes
13091 if test "$HAVE_LIBSELINUX" = yes; then
13093 cat >>confdefs.h <<\_ACEOF
13094 #define HAVE_LIBSELINUX 1
13097 LIBSELINUX_LIBS=-lselinux
13104 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13105 if test "$with_xaw3d" != no; then
13106 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13107 $as_echo_n "checking for xaw3d... " >&6; }
13108 if test "${emacs_cv_xaw3d+set}" = set; then
13109 $as_echo_n "(cached) " >&6
13111 cat >conftest.$ac_ext <<_ACEOF
13114 cat confdefs.h >>conftest.$ac_ext
13115 cat >>conftest.$ac_ext <<_ACEOF
13116 /* end confdefs.h. */
13118 #include <X11/Intrinsic.h>
13119 #include <X11/Xaw3d/Simple.h>
13128 rm -f conftest.$ac_objext conftest$ac_exeext
13129 if { (ac_try="$ac_link"
13130 case "(($ac_try" in
13131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13132 *) ac_try_echo
=$ac_try;;
13134 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13135 $as_echo "$ac_try_echo") >&5
13136 (eval "$ac_link") 2>conftest.er1
13138 grep -v '^ *+' conftest.er1
>conftest.err
13140 cat conftest.err
>&5
13141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); } && {
13143 test -z "$ac_c_werror_flag" ||
13144 test ! -s conftest.err
13145 } && test -s conftest
$ac_exeext && {
13146 test "$cross_compiling" = yes ||
13147 $as_test_x conftest
$ac_exeext
13151 $as_echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.
$ac_ext >&5
13157 rm -rf conftest.dSYM
13158 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13159 conftest
$ac_exeext conftest.
$ac_ext
13165 if test $emacs_cv_xaw3d = yes; then
13166 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13167 $as_echo "yes; using Lucid toolkit" >&6; }
13168 USE_X_TOOLKIT
=LUCID
13172 cat >>confdefs.h
<<\_ACEOF
13173 #define HAVE_XAW3D 1
13177 { $as_echo "$as_me:$LINENO: result: no" >&5
13178 $as_echo "no" >&6; }
13179 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13180 $as_echo_n "checking for libXaw... " >&6; }
13181 if test "${emacs_cv_xaw+set}" = set; then
13182 $as_echo_n "(cached) " >&6
13184 cat >conftest.
$ac_ext <<_ACEOF
13187 cat confdefs.h
>>conftest.
$ac_ext
13188 cat >>conftest.
$ac_ext <<_ACEOF
13189 /* end confdefs.h. */
13191 #include <X11/Intrinsic.h>
13192 #include <X11/Xaw/Simple.h>
13201 rm -f conftest.
$ac_objext conftest
$ac_exeext
13202 if { (ac_try
="$ac_link"
13203 case "(($ac_try" in
13204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13205 *) ac_try_echo=$ac_try;;
13207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13208 $as_echo "$ac_try_echo") >&5
13209 (eval "$ac_link") 2>conftest.er1
13211 grep -v '^ *+' conftest.er1 >conftest.err
13213 cat conftest.err >&5
13214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } && {
13216 test -z "$ac_c_werror_flag" ||
13217 test ! -s conftest.err
13218 } && test -s conftest$ac_exeext && {
13219 test "$cross_compiling" = yes ||
13220 $as_test_x conftest$ac_exeext
13224 $as_echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13230 rm -rf conftest.dSYM
13231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13232 conftest$ac_exeext conftest.$ac_ext
13235 if test $emacs_cv_xaw = yes; then
13236 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13237 $as_echo "yes; using Lucid toolkit" >&6; }
13238 USE_X_TOOLKIT=LUCID
13240 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13241 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13242 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13243 { (exit 1); exit 1; }; }
13245 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13246 $as_echo "no; do not use toolkit by default" >&6; }
13252 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13255 if test "${USE_X_TOOLKIT}" != "none"; then
13256 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13257 $as_echo_n "checking X11 toolkit version... " >&6; }
13258 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13259 $as_echo_n "(cached) " >&6
13261 cat >conftest.$ac_ext <<_ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h. */
13267 #include <X11/Intrinsic.h>
13271 #if XtSpecificationRelease < 6
13279 rm -f conftest.$ac_objext conftest$ac_exeext
13280 if { (ac_try="$ac_link"
13281 case "(($ac_try" in
13282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13283 *) ac_try_echo
=$ac_try;;
13285 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13286 $as_echo "$ac_try_echo") >&5
13287 (eval "$ac_link") 2>conftest.er1
13289 grep -v '^ *+' conftest.er1
>conftest.err
13291 cat conftest.err
>&5
13292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } && {
13294 test -z "$ac_c_werror_flag" ||
13295 test ! -s conftest.err
13296 } && test -s conftest
$ac_exeext && {
13297 test "$cross_compiling" = yes ||
13298 $as_test_x conftest
$ac_exeext
13300 emacs_cv_x11_toolkit_version_6
=yes
13302 $as_echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.
$ac_ext >&5
13305 emacs_cv_x11_toolkit_version_6
=no
13308 rm -rf conftest.dSYM
13309 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13310 conftest
$ac_exeext conftest.
$ac_ext
13313 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
13314 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13315 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13316 $as_echo "6 or newer" >&6; }
13318 cat >>confdefs.h
<<\_ACEOF
13319 #define HAVE_X11XTR6 1
13322 LIBXTR6
="-lSM -lICE"
13324 ## Use libw.a along with X11R6 Xt.
13325 unixware
) LIBXTR6
="$LIBXTR6 -lw" ;;
13328 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13329 $as_echo "before 6" >&6; }
13333 if test x
$HAVE_X11XTR6 = xyes
; then
13334 LIBS
="-lXt -lSM -lICE $LIBS"
13339 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13340 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13341 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13342 $as_echo_n "(cached) " >&6
13344 ac_check_lib_save_LIBS
=$LIBS
13346 cat >conftest.
$ac_ext <<_ACEOF
13349 cat confdefs.h
>>conftest.
$ac_ext
13350 cat >>conftest.
$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13353 /* Override any GCC internal prototype to avoid an error.
13354 Use char because int might match the return type of a GCC
13355 builtin and then its argument prototype would still apply. */
13359 char XmuConvertStandardSelection ();
13363 return XmuConvertStandardSelection ();
13368 rm -f conftest.
$ac_objext conftest
$ac_exeext
13369 if { (ac_try
="$ac_link"
13370 case "(($ac_try" in
13371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13375 $as_echo "$ac_try_echo") >&5
13376 (eval "$ac_link") 2>conftest.er1
13378 grep -v '^ *+' conftest.er1 >conftest.err
13380 cat conftest.err >&5
13381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && {
13383 test -z "$ac_c_werror_flag" ||
13384 test ! -s conftest.err
13385 } && test -s conftest$ac_exeext && {
13386 test "$cross_compiling" = yes ||
13387 $as_test_x conftest$ac_exeext
13389 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13391 $as_echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13397 rm -rf conftest.dSYM
13398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13399 conftest$ac_exeext conftest.$ac_ext
13400 LIBS=$ac_check_lib_save_LIBS
13402 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13403 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13404 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13405 cat >>confdefs.h <<_ACEOF
13406 #define HAVE_LIBXMU 1
13413 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13419 ## These machines don't supply Xmu.
13421 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13426 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13427 if test "${HAVE_X11}" = "yes"; then
13428 if test "${USE_X_TOOLKIT}" != "none"; then
13430 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13431 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13432 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13433 $as_echo_n "(cached) " >&6
13435 ac_check_lib_save_LIBS=$LIBS
13436 LIBS="-lXext $LIBS"
13437 cat >conftest.$ac_ext <<_ACEOF
13440 cat confdefs.h >>conftest.$ac_ext
13441 cat >>conftest.$ac_ext <<_ACEOF
13442 /* end confdefs.h. */
13444 /* Override any GCC internal prototype to avoid an error.
13445 Use char because int might match the return type of a GCC
13446 builtin and then its argument prototype would still apply. */
13450 char XShapeQueryExtension ();
13454 return XShapeQueryExtension ();
13459 rm -f conftest.$ac_objext conftest$ac_exeext
13460 if { (ac_try="$ac_link"
13461 case "(($ac_try" in
13462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13463 *) ac_try_echo
=$ac_try;;
13465 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13466 $as_echo "$ac_try_echo") >&5
13467 (eval "$ac_link") 2>conftest.er1
13469 grep -v '^ *+' conftest.er1
>conftest.err
13471 cat conftest.err
>&5
13472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } && {
13474 test -z "$ac_c_werror_flag" ||
13475 test ! -s conftest.err
13476 } && test -s conftest
$ac_exeext && {
13477 test "$cross_compiling" = yes ||
13478 $as_test_x conftest
$ac_exeext
13480 ac_cv_lib_Xext_XShapeQueryExtension
=yes
13482 $as_echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.
$ac_ext >&5
13485 ac_cv_lib_Xext_XShapeQueryExtension
=no
13488 rm -rf conftest.dSYM
13489 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13490 conftest
$ac_exeext conftest.
$ac_ext
13491 LIBS
=$ac_check_lib_save_LIBS
13493 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13494 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13495 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13496 cat >>confdefs.h
<<_ACEOF
13497 #define HAVE_LIBXEXT 1
13500 LIBS
="-lXext $LIBS"
13508 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13509 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13510 $as_echo_n "checking for Motif version 2.1... " >&6; }
13511 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13512 $as_echo_n "(cached) " >&6
13514 cat >conftest.
$ac_ext <<_ACEOF
13517 cat confdefs.h
>>conftest.
$ac_ext
13518 cat >>conftest.
$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13524 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13527 Motif version prior to 2.1.
13533 rm -f conftest.
$ac_objext
13534 if { (ac_try
="$ac_compile"
13535 case "(($ac_try" in
13536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13537 *) ac_try_echo=$ac_try;;
13539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13540 $as_echo "$ac_try_echo") >&5
13541 (eval "$ac_compile") 2>conftest.er1
13543 grep -v '^ *+' conftest.er1 >conftest.err
13545 cat conftest.err >&5
13546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } && {
13548 test -z "$ac_c_werror_flag" ||
13549 test ! -s conftest.err
13550 } && test -s conftest.$ac_objext; then
13551 emacs_cv_motif_version_2_1=yes
13553 $as_echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13556 emacs_cv_motif_version_2_1=no
13559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13561 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13562 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13563 if test $emacs_cv_motif_version_2_1 = yes; then
13564 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13565 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13566 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13567 $as_echo_n "(cached) " >&6
13569 ac_check_lib_save_LIBS=$LIBS
13571 cat >conftest.$ac_ext <<_ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13578 /* Override any GCC internal prototype to avoid an error.
13579 Use char because int might match the return type of a GCC
13580 builtin and then its argument prototype would still apply. */
13584 char XpCreateContext ();
13588 return XpCreateContext ();
13593 rm -f conftest.$ac_objext conftest$ac_exeext
13594 if { (ac_try="$ac_link"
13595 case "(($ac_try" in
13596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13597 *) ac_try_echo
=$ac_try;;
13599 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13600 $as_echo "$ac_try_echo") >&5
13601 (eval "$ac_link") 2>conftest.er1
13603 grep -v '^ *+' conftest.er1
>conftest.err
13605 cat conftest.err
>&5
13606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } && {
13608 test -z "$ac_c_werror_flag" ||
13609 test ! -s conftest.err
13610 } && test -s conftest
$ac_exeext && {
13611 test "$cross_compiling" = yes ||
13612 $as_test_x conftest
$ac_exeext
13614 ac_cv_lib_Xp_XpCreateContext
=yes
13616 $as_echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.
$ac_ext >&5
13619 ac_cv_lib_Xp_XpCreateContext
=no
13622 rm -rf conftest.dSYM
13623 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13624 conftest
$ac_exeext conftest.
$ac_ext
13625 LIBS
=$ac_check_lib_save_LIBS
13627 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13628 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13629 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13634 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13635 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13636 if test "${emacs_cv_lesstif+set}" = set; then
13637 $as_echo_n "(cached) " >&6
13639 # We put this in CFLAGS temporarily to precede other -I options
13640 # that might be in CFLAGS temporarily.
13641 # We put this in CPPFLAGS where it precedes the other -I options.
13642 OLD_CPPFLAGS
=$CPPFLAGS
13644 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13645 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13646 cat >conftest.
$ac_ext <<_ACEOF
13649 cat confdefs.h
>>conftest.
$ac_ext
13650 cat >>conftest.
$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13652 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13661 rm -f conftest.
$ac_objext
13662 if { (ac_try
="$ac_compile"
13663 case "(($ac_try" in
13664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13668 $as_echo "$ac_try_echo") >&5
13669 (eval "$ac_compile") 2>conftest.er1
13671 grep -v '^ *+' conftest.er1 >conftest.err
13673 cat conftest.err >&5
13674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } && {
13676 test -z "$ac_c_werror_flag" ||
13677 test ! -s conftest.err
13678 } && test -s conftest.$ac_objext; then
13679 emacs_cv_lesstif=yes
13681 $as_echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13684 emacs_cv_lesstif=no
13687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13689 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13690 $as_echo "$emacs_cv_lesstif" >&6; }
13691 if test $emacs_cv_lesstif = yes; then
13692 # Make sure this -I option remains in CPPFLAGS after it is set
13693 # back to REAL_CPPFLAGS.
13694 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13695 # have those other -I options anyway. Ultimately, having this
13696 # directory ultimately in CPPFLAGS will be enough.
13697 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13698 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13701 CPPFLAGS=$OLD_CPPFLAGS
13708 USE_TOOLKIT_SCROLL_BARS=no
13709 if test "${with_toolkit_scroll_bars}" != "no"; then
13710 if test "${USE_X_TOOLKIT}" != "none"; then
13711 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13712 cat >>confdefs.h <<\_ACEOF
13713 #define USE_TOOLKIT_SCROLL_BARS 1
13717 USE_TOOLKIT_SCROLL_BARS=yes
13718 elif test "${HAVE_XAW3D}" = "yes"; then
13719 cat >>confdefs.h <<\_ACEOF
13720 #define USE_TOOLKIT_SCROLL_BARS 1
13723 USE_TOOLKIT_SCROLL_BARS=yes
13725 elif test "${HAVE_GTK}" = "yes"; then
13726 cat >>confdefs.h <<\_ACEOF
13727 #define USE_TOOLKIT_SCROLL_BARS 1
13730 USE_TOOLKIT_SCROLL_BARS=yes
13731 elif test "${HAVE_NS}" = "yes"; then
13732 cat >>confdefs.h <<\_ACEOF
13733 #define USE_TOOLKIT_SCROLL_BARS 1
13736 USE_TOOLKIT_SCROLL_BARS=yes
13740 cat >conftest.$ac_ext <<_ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13747 #include <X11/Xlib.h>
13748 #include <X11/Xresource.h>
13757 rm -f conftest.$ac_objext
13758 if { (ac_try="$ac_compile"
13759 case "(($ac_try" in
13760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13761 *) ac_try_echo
=$ac_try;;
13763 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13764 $as_echo "$ac_try_echo") >&5
13765 (eval "$ac_compile") 2>conftest.er1
13767 grep -v '^ *+' conftest.er1
>conftest.err
13769 cat conftest.err
>&5
13770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); } && {
13772 test -z "$ac_c_werror_flag" ||
13773 test ! -s conftest.err
13774 } && test -s conftest.
$ac_objext; then
13777 cat >>confdefs.h
<<\_ACEOF
13782 $as_echo "$as_me: failed program was:" >&5
13783 sed 's/^/| /' conftest.
$ac_ext >&5
13788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13791 if test "${with_xim}" != "no"; then
13793 cat >>confdefs.h
<<\_ACEOF
13800 if test "${HAVE_XIM}" != "no"; then
13801 late_CFLAGS
=$CFLAGS
13802 if test "$GCC" = yes; then
13803 CFLAGS
="$CFLAGS --pedantic-errors"
13805 cat >conftest.
$ac_ext <<_ACEOF
13808 cat confdefs.h
>>conftest.
$ac_ext
13809 cat >>conftest.
$ac_ext <<_ACEOF
13810 /* end confdefs.h. */
13812 #include <X11/Xlib.h>
13813 #include <X11/Xresource.h>
13822 XPointer *client_data;
13824 /* If we're not using GCC, it's probably not XFree86, and this is
13825 probably right, but we can't use something like --pedantic-errors. */
13826 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13827 char*, XIMProc, XPointer*);
13829 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13835 rm -f conftest.
$ac_objext
13836 if { (ac_try
="$ac_compile"
13837 case "(($ac_try" in
13838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13839 *) ac_try_echo=$ac_try;;
13841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13842 $as_echo "$ac_try_echo") >&5
13843 (eval "$ac_compile") 2>conftest.er1
13845 grep -v '^ *+' conftest.er1 >conftest.err
13847 cat conftest.err >&5
13848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } && {
13850 test -z "$ac_c_werror_flag" ||
13851 test ! -s conftest.err
13852 } && test -s conftest.$ac_objext; then
13853 emacs_cv_arg6_star=yes
13855 $as_echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13863 if test "$emacs_cv_arg6_star" = yes; then
13864 cat >>confdefs.h <<\_ACEOF
13865 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13869 cat >>confdefs.h <<\_ACEOF
13870 #define XRegisterIMInstantiateCallback_arg6 XPointer
13874 CFLAGS=$late_CFLAGS
13877 ### Start of font-backend (under any platform) section.
13878 # (nothing here yet -- this is a placeholder)
13879 ### End of font-backend (under any platform) section.
13881 ### Start of font-backend (under X11) section.
13882 if test "${HAVE_X11}" = "yes"; then
13886 # Extract the first word of "pkg-config", so it can be a program name with args.
13887 set dummy pkg-config; ac_word=$2
13888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13889 $as_echo_n "checking for $ac_word... " >&6; }
13890 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13891 $as_echo_n "(cached) " >&6
13893 case $PKG_CONFIG in
13895 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13899 for as_dir in $PATH
13902 test -z "$as_dir" && as_dir=.
13903 for ac_exec_ext in '' $ac_executable_extensions; do
13904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13905 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13906 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13913 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13917 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13918 if test -n "$PKG_CONFIG"; then
13919 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13920 $as_echo "$PKG_CONFIG" >&6; }
13922 { $as_echo "$as_me:$LINENO: result: no" >&5
13923 $as_echo "no" >&6; }
13928 if test "$PKG_CONFIG" = "no" ; then
13931 PKG_CONFIG_MIN_VERSION=0.9.0
13932 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13933 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13934 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13936 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13937 { $as_echo "$as_me:$LINENO: result: yes" >&5
13938 $as_echo "yes" >&6; }
13941 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13942 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13943 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13944 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13945 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13947 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13948 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13949 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|
sed -e 's,///*,/,g'`
13950 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13951 $as_echo "$FONTCONFIG_LIBS" >&6; }
13953 { $as_echo "$as_me:$LINENO: result: no" >&5
13954 $as_echo "no" >&6; }
13955 FONTCONFIG_CFLAGS=""
13957 ## If we have a custom action on failure, don't print errors, but
13958 ## do set a variable so people can do so.
13959 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13966 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13967 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13971 if test $succeeded = yes; then
13978 ## Use -lXft if available, unless `--with-xft=no
'.
13980 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13983 if test "x${with_xft}" != "xno"; then
13988 # Extract the first word of "pkg-config", so it can be a program name with args.
13989 set dummy pkg-config; ac_word=$2
13990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13991 $as_echo_n "checking for $ac_word... " >&6; }
13992 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13993 $as_echo_n "(cached) " >&6
13995 case $PKG_CONFIG in
13997 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001 for as_dir in $PATH
14004 test -z "$as_dir" && as_dir=.
14005 for ac_exec_ext in '' $ac_executable_extensions; do
14006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14007 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14015 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14019 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14020 if test -n "$PKG_CONFIG"; then
14021 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14022 $as_echo "$PKG_CONFIG" >&6; }
14024 { $as_echo "$as_me:$LINENO: result: no" >&5
14025 $as_echo "no" >&6; }
14030 if test "$PKG_CONFIG" = "no" ; then
14033 PKG_CONFIG_MIN_VERSION=0.9.0
14034 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14035 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14036 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14038 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14039 { $as_echo "$as_me:$LINENO: result: yes" >&5
14040 $as_echo "yes" >&6; }
14043 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14044 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14045 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14046 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14047 $as_echo "$XFT_CFLAGS" >&6; }
14049 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14050 $as_echo_n "checking XFT_LIBS... " >&6; }
14051 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's
,///*,/,g
'`
14052 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14053 $as_echo "$XFT_LIBS" >&6; }
14055 { $as_echo "$as_me:$LINENO: result: no" >&5
14056 $as_echo "no" >&6; }
14059 ## If we have a custom action on failure, don't print errors
, but
14060 ## do set a variable so people can do so.
14061 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14068 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14069 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14073 if test $succeeded = yes; then
14079 ## Because xftfont.c uses XRenderQueryExtension, we also
14080 ## need to link to -lXrender.
14082 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14083 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14084 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14085 $as_echo_n "(cached) " >&6
14087 ac_check_lib_save_LIBS
=$LIBS
14088 LIBS
="-lXrender $LIBS"
14089 cat >conftest.
$ac_ext <<_ACEOF
14092 cat confdefs.h
>>conftest.
$ac_ext
14093 cat >>conftest.
$ac_ext <<_ACEOF
14094 /* end confdefs.h. */
14096 /* Override any GCC internal prototype to avoid an error.
14097 Use char because int might match the return type of a GCC
14098 builtin and then its argument prototype would still apply. */
14102 char XRenderQueryExtension ();
14106 return XRenderQueryExtension ();
14111 rm -f conftest.
$ac_objext conftest
$ac_exeext
14112 if { (ac_try
="$ac_link"
14113 case "(($ac_try" in
14114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14118 $as_echo "$ac_try_echo") >&5
14119 (eval "$ac_link") 2>conftest.er1
14121 grep -v '^ *+' conftest.er1 >conftest.err
14123 cat conftest.err >&5
14124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } && {
14126 test -z "$ac_c_werror_flag" ||
14127 test ! -s conftest.err
14128 } && test -s conftest$ac_exeext && {
14129 test "$cross_compiling" = yes ||
14130 $as_test_x conftest$ac_exeext
14132 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14134 $as_echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14137 ac_cv_lib_Xrender_XRenderQueryExtension=no
14140 rm -rf conftest.dSYM
14141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14142 conftest$ac_exeext conftest.$ac_ext
14143 LIBS=$ac_check_lib_save_LIBS
14145 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14146 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14147 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
14151 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14152 OLD_CPPFLAGS="$CPPFLAGS"
14153 OLD_CFLAGS="$CFLAGS"
14155 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14156 CFLAGS="$CFLAGS $XFT_CFLAGS"
14157 XFT_LIBS="-lXrender $XFT_LIBS"
14158 LIBS="$XFT_LIBS $LIBS"
14159 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14160 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14161 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14162 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14163 $as_echo_n "(cached) " >&6
14165 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14166 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14168 # Is the header compilable?
14169 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14170 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14171 cat >conftest.$ac_ext <<_ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h. */
14177 $ac_includes_default
14178 #include <X11/Xft/Xft.h>
14180 rm -f conftest.$ac_objext
14181 if { (ac_try="$ac_compile"
14182 case "(($ac_try" in
14183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14184 *) ac_try_echo
=$ac_try;;
14186 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14187 $as_echo "$ac_try_echo") >&5
14188 (eval "$ac_compile") 2>conftest.er1
14190 grep -v '^ *+' conftest.er1
>conftest.err
14192 cat conftest.err
>&5
14193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); } && {
14195 test -z "$ac_c_werror_flag" ||
14196 test ! -s conftest.err
14197 } && test -s conftest.
$ac_objext; then
14198 ac_header_compiler
=yes
14200 $as_echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.
$ac_ext >&5
14203 ac_header_compiler
=no
14206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14207 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14208 $as_echo "$ac_header_compiler" >&6; }
14210 # Is the header present?
14211 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14212 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14213 cat >conftest.
$ac_ext <<_ACEOF
14216 cat confdefs.h
>>conftest.
$ac_ext
14217 cat >>conftest.
$ac_ext <<_ACEOF
14218 /* end confdefs.h. */
14219 #include <X11/Xft/Xft.h>
14221 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14222 case "(($ac_try" in
14223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14224 *) ac_try_echo=$ac_try;;
14226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14227 $as_echo "$ac_try_echo") >&5
14228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14230 grep -v '^ *+' conftest.er1 >conftest.err
14232 cat conftest.err >&5
14233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } >/dev/null && {
14235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14236 test ! -s conftest.err
14238 ac_header_preproc=yes
14240 $as_echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.$ac_ext >&5
14243 ac_header_preproc=no
14246 rm -f conftest.err conftest.$ac_ext
14247 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14248 $as_echo "$ac_header_preproc" >&6; }
14250 # So? What about this header?
14251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14253 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14254 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14255 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14256 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14257 ac_header_preproc=yes
14260 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14261 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14262 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14263 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14264 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14265 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14266 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14267 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14268 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14269 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14270 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14271 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14275 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14276 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14277 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14278 $as_echo_n "(cached) " >&6
14280 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14282 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14283 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14286 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14287 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14288 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14289 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14290 $as_echo_n "(cached) " >&6
14292 ac_check_lib_save_LIBS=$LIBS
14293 LIBS="-lXft $XFT_LIBS $LIBS"
14294 cat >conftest.$ac_ext <<_ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14301 /* Override any GCC internal prototype to avoid an error.
14302 Use char because int might match the return type of a GCC
14303 builtin and then its argument prototype would still apply. */
14307 char XftFontOpen ();
14311 return XftFontOpen ();
14316 rm -f conftest.$ac_objext conftest$ac_exeext
14317 if { (ac_try="$ac_link"
14318 case "(($ac_try" in
14319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14320 *) ac_try_echo
=$ac_try;;
14322 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14323 $as_echo "$ac_try_echo") >&5
14324 (eval "$ac_link") 2>conftest.er1
14326 grep -v '^ *+' conftest.er1
>conftest.err
14328 cat conftest.err
>&5
14329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } && {
14331 test -z "$ac_c_werror_flag" ||
14332 test ! -s conftest.err
14333 } && test -s conftest
$ac_exeext && {
14334 test "$cross_compiling" = yes ||
14335 $as_test_x conftest
$ac_exeext
14337 ac_cv_lib_Xft_XftFontOpen
=yes
14339 $as_echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.
$ac_ext >&5
14342 ac_cv_lib_Xft_XftFontOpen
=no
14345 rm -rf conftest.dSYM
14346 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14347 conftest
$ac_exeext conftest.
$ac_ext
14348 LIBS
=$ac_check_lib_save_LIBS
14350 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14351 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14352 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14360 if test "${HAVE_XFT}" = "yes"; then
14362 cat >>confdefs.h
<<\_ACEOF
14367 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
14369 CPPFLAGS
="$OLD_CPPFLAGS"
14370 CFLAGS
="$OLD_CFLAGS"
14372 fi # "${HAVE_XFT}" = "yes"
14373 fi # "$HAVE_XFT" != no
14374 fi # "x${with_xft}" != "xno"
14376 if test "$HAVE_XFT" != "yes"; then
14382 ## We used to allow building with FreeType and without Xft.
14383 ## However, the ftx font backend driver is not in good shape.
14384 if test "${HAVE_XFT}" = "yes"; then
14391 if test "${HAVE_FREETYPE}" = "yes"; then
14393 cat >>confdefs.h
<<\_ACEOF
14394 #define HAVE_FREETYPE 1
14397 if test "${with_libotf}" != "no"; then
14401 # Extract the first word of "pkg-config", so it can be a program name with args.
14402 set dummy pkg-config
; ac_word
=$2
14403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14404 $as_echo_n "checking for $ac_word... " >&6; }
14405 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14406 $as_echo_n "(cached) " >&6
14408 case $PKG_CONFIG in
14410 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14414 for as_dir
in $PATH
14417 test -z "$as_dir" && as_dir
=.
14418 for ac_exec_ext
in '' $ac_executable_extensions; do
14419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14420 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14428 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
14432 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14433 if test -n "$PKG_CONFIG"; then
14434 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14435 $as_echo "$PKG_CONFIG" >&6; }
14437 { $as_echo "$as_me:$LINENO: result: no" >&5
14438 $as_echo "no" >&6; }
14443 if test "$PKG_CONFIG" = "no" ; then
14446 PKG_CONFIG_MIN_VERSION
=0.9.0
14447 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14448 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14449 $as_echo_n "checking for libotf... " >&6; }
14451 if $PKG_CONFIG --exists "libotf" 2>&5; then
14452 { $as_echo "$as_me:$LINENO: result: yes" >&5
14453 $as_echo "yes" >&6; }
14456 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14457 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14458 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14459 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14460 $as_echo "$LIBOTF_CFLAGS" >&6; }
14462 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14463 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14464 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14465 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14466 $as_echo "$LIBOTF_LIBS" >&6; }
14468 { $as_echo "$as_me:$LINENO: result: no" >&5
14469 $as_echo "no" >&6; }
14472 ## If we have a custom action on failure, don't print errors, but
14473 ## do set a variable so people can do so.
14474 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14481 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14482 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14486 if test $succeeded = yes; then
14492 if test "$HAVE_LIBOTF" = "yes"; then
14494 cat >>confdefs.h
<<\_ACEOF
14495 #define HAVE_LIBOTF 1
14498 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14499 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14500 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14501 $as_echo_n "(cached) " >&6
14503 ac_check_lib_save_LIBS
=$LIBS
14505 cat >conftest.
$ac_ext <<_ACEOF
14508 cat confdefs.h
>>conftest.
$ac_ext
14509 cat >>conftest.
$ac_ext <<_ACEOF
14510 /* end confdefs.h. */
14512 /* Override any GCC internal prototype to avoid an error.
14513 Use char because int might match the return type of a GCC
14514 builtin and then its argument prototype would still apply. */
14518 char OTF_get_variation_glyphs ();
14522 return OTF_get_variation_glyphs ();
14527 rm -f conftest.
$ac_objext conftest
$ac_exeext
14528 if { (ac_try
="$ac_link"
14529 case "(($ac_try" in
14530 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14534 $as_echo "$ac_try_echo") >&5
14535 (eval "$ac_link") 2>conftest.er1
14537 grep -v '^ *+' conftest.er1 >conftest.err
14539 cat conftest.err >&5
14540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } && {
14542 test -z "$ac_c_werror_flag" ||
14543 test ! -s conftest.err
14544 } && test -s conftest$ac_exeext && {
14545 test "$cross_compiling" = yes ||
14546 $as_test_x conftest$ac_exeext
14548 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14550 $as_echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14553 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14556 rm -rf conftest.dSYM
14557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14558 conftest$ac_exeext conftest.$ac_ext
14559 LIBS=$ac_check_lib_save_LIBS
14561 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14562 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14563 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14564 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14566 HAVE_OTF_GET_VARIATION_GLYPHS=no
14569 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14571 cat >>confdefs.h <<\_ACEOF
14572 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14581 if test "${HAVE_LIBOTF}" = yes; then
14582 if test "${with_m17n_flt}" != "no"; then
14586 # Extract the first word of "pkg-config", so it can be a program name with args.
14587 set dummy pkg-config; ac_word=$2
14588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14589 $as_echo_n "checking for $ac_word... " >&6; }
14590 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14591 $as_echo_n "(cached) " >&6
14593 case $PKG_CONFIG in
14595 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14599 for as_dir in $PATH
14602 test -z "$as_dir" && as_dir=.
14603 for ac_exec_ext in '' $ac_executable_extensions; do
14604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14605 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14613 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14617 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14618 if test -n "$PKG_CONFIG"; then
14619 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14620 $as_echo "$PKG_CONFIG" >&6; }
14622 { $as_echo "$as_me:$LINENO: result: no" >&5
14623 $as_echo "no" >&6; }
14628 if test "$PKG_CONFIG" = "no" ; then
14631 PKG_CONFIG_MIN_VERSION=0.9.0
14632 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14633 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14634 $as_echo_n "checking for m17n-flt... " >&6; }
14636 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14637 { $as_echo "$as_me:$LINENO: result: yes" >&5
14638 $as_echo "yes" >&6; }
14641 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14642 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14643 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|
sed -e 's,///*,/,g'`
14644 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14645 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14647 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14648 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14649 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|
sed -e 's,///*,/,g'`
14650 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14651 $as_echo "$M17N_FLT_LIBS" >&6; }
14653 { $as_echo "$as_me:$LINENO: result: no" >&5
14654 $as_echo "no" >&6; }
14657 ## If we have a custom action on failure, don't print errors, but
14658 ## do set a variable so people can do so.
14659 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14666 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14667 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14671 if test $succeeded = yes; then
14677 if test "$HAVE_M17N_FLT" = "yes"; then
14679 cat >>confdefs.h <<\_ACEOF
14680 #define HAVE_M17N_FLT 1
14694 if test "$HAVE_XFT" = "yes"; then
14695 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14696 elif test "$HAVE_FREETYPE" = "yes"; then
14697 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14701 ### End of font-backend (under X11) section.
14712 ### Use -lXpm if available, unless `--with-xpm=no
'.
14715 if test "${HAVE_X11}" = "yes"; then
14716 if test "${with_xpm}" != "no"; then
14717 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14718 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14719 $as_echo_n "checking for X11/xpm.h... " >&6; }
14720 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14721 $as_echo_n "(cached) " >&6
14723 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14724 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14726 # Is the header compilable?
14727 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14728 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14729 cat >conftest.$ac_ext <<_ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14735 $ac_includes_default
14736 #include <X11/xpm.h>
14738 rm -f conftest.$ac_objext
14739 if { (ac_try="$ac_compile"
14740 case "(($ac_try" in
14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742 *) ac_try_echo=$ac_try;;
14744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14745 $as_echo "$ac_try_echo") >&5
14746 (eval "$ac_compile") 2>conftest.er1
14748 grep -v '^
*+' conftest.er1 >conftest.err
14750 cat conftest.err >&5
14751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } && {
14753 test -z "$ac_c_werror_flag" ||
14754 test ! -s conftest.err
14755 } && test -s conftest.$ac_objext; then
14756 ac_header_compiler=yes
14758 $as_echo "$as_me: failed program was:" >&5
14759 sed 's
/^
/|
/' conftest.$ac_ext >&5
14761 ac_header_compiler=no
14764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14765 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14766 $as_echo "$ac_header_compiler" >&6; }
14768 # Is the header present?
14769 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14770 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14771 cat >conftest.$ac_ext <<_ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14777 #include <X11/xpm.h>
14779 if { (ac_try="$ac_cpp conftest.$ac_ext"
14780 case "(($ac_try" in
14781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782 *) ac_try_echo=$ac_try;;
14784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14785 $as_echo "$ac_try_echo") >&5
14786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14788 grep -v '^
*+' conftest.er1 >conftest.err
14790 cat conftest.err >&5
14791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } >/dev/null && {
14793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14794 test ! -s conftest.err
14796 ac_header_preproc=yes
14798 $as_echo "$as_me: failed program was:" >&5
14799 sed 's
/^
/|
/' conftest.$ac_ext >&5
14801 ac_header_preproc=no
14804 rm -f conftest.err conftest.$ac_ext
14805 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14806 $as_echo "$ac_header_preproc" >&6; }
14808 # So? What about this header?
14809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14811 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14812 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14813 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
14814 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
14815 ac_header_preproc=yes
14818 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14819 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14820 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14821 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14822 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14823 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14824 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14825 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14826 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
14827 $as_echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
14828 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14829 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14833 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14834 $as_echo_n "checking for X11/xpm.h... " >&6; }
14835 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14836 $as_echo_n "(cached) " >&6
14838 ac_cv_header_X11_xpm_h=$ac_header_preproc
14840 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14841 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14844 if test $ac_cv_header_X11_xpm_h = yes; then
14845 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14846 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14847 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14848 $as_echo_n "(cached) " >&6
14850 ac_check_lib_save_LIBS=$LIBS
14851 LIBS="-lXpm -lX11 $LIBS"
14852 cat >conftest.$ac_ext <<_ACEOF
14855 cat confdefs.h >>conftest.$ac_ext
14856 cat >>conftest.$ac_ext <<_ACEOF
14857 /* end confdefs.h. */
14859 /* Override any GCC internal prototype to avoid an error.
14860 Use char because int might match the return type of a GCC
14861 builtin and then its argument prototype would still apply. */
14865 char XpmReadFileToPixmap ();
14869 return XpmReadFileToPixmap ();
14874 rm -f conftest.$ac_objext conftest$ac_exeext
14875 if { (ac_try="$ac_link"
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_link") 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); } && {
14889 test -z "$ac_c_werror_flag" ||
14890 test ! -s conftest.err
14891 } && test -s conftest$ac_exeext && {
14892 test "$cross_compiling" = yes ||
14893 $as_test_x conftest$ac_exeext
14895 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14897 $as_echo "$as_me: failed program was:" >&5
14898 sed 's
/^
/|
/' conftest.$ac_ext >&5
14900 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14903 rm -rf conftest.dSYM
14904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14905 conftest$ac_exeext conftest.$ac_ext
14906 LIBS=$ac_check_lib_save_LIBS
14908 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14909 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14910 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14917 if test "${HAVE_XPM}" = "yes"; then
14918 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14919 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14920 cat >conftest.$ac_ext <<_ACEOF
14923 cat confdefs.h >>conftest.$ac_ext
14924 cat >>conftest.$ac_ext <<_ACEOF
14925 /* end confdefs.h. */
14926 #include "X11/xpm.h"
14927 #ifndef XpmReturnAllocPixels
14928 no_return_alloc_pixels
14932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14933 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14941 if test "${HAVE_XPM}" = "yes"; then
14942 { $as_echo "$as_me:$LINENO: result: yes" >&5
14943 $as_echo "yes" >&6; }
14945 { $as_echo "$as_me:$LINENO: result: no" >&5
14946 $as_echo "no" >&6; }
14951 if test "${HAVE_XPM}" = "yes"; then
14953 cat >>confdefs.h <<\_ACEOF
14962 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14965 if test "${HAVE_X11}" = "yes"; then
14966 if test "${with_jpeg}" != "no"; then
14967 if test "${ac_cv_header_jerror_h+set}" = set; then
14968 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14969 $as_echo_n "checking for jerror.h... " >&6; }
14970 if test "${ac_cv_header_jerror_h+set}" = set; then
14971 $as_echo_n "(cached) " >&6
14973 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14974 $as_echo "$ac_cv_header_jerror_h" >&6; }
14976 # Is the header compilable?
14977 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14978 $as_echo_n "checking jerror.h usability... " >&6; }
14979 cat >conftest.
$ac_ext <<_ACEOF
14982 cat confdefs.h
>>conftest.
$ac_ext
14983 cat >>conftest.
$ac_ext <<_ACEOF
14984 /* end confdefs.h. */
14985 $ac_includes_default
14986 #include <jerror.h>
14988 rm -f conftest.
$ac_objext
14989 if { (ac_try
="$ac_compile"
14990 case "(($ac_try" in
14991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14995 $as_echo "$ac_try_echo") >&5
14996 (eval "$ac_compile") 2>conftest.er1
14998 grep -v '^ *+' conftest.er1 >conftest.err
15000 cat conftest.err >&5
15001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); } && {
15003 test -z "$ac_c_werror_flag" ||
15004 test ! -s conftest.err
15005 } && test -s conftest.$ac_objext; then
15006 ac_header_compiler=yes
15008 $as_echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15011 ac_header_compiler=no
15014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15015 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15016 $as_echo "$ac_header_compiler" >&6; }
15018 # Is the header present?
15019 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15020 $as_echo_n "checking jerror.h presence... " >&6; }
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 <jerror.h>
15029 if { (ac_try="$ac_cpp conftest.$ac_ext"
15030 case "(($ac_try" in
15031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15032 *) ac_try_echo
=$ac_try;;
15034 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15035 $as_echo "$ac_try_echo") >&5
15036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15038 grep -v '^ *+' conftest.er1
>conftest.err
15040 cat conftest.err
>&5
15041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } >/dev
/null
&& {
15043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15044 test ! -s conftest.err
15046 ac_header_preproc
=yes
15048 $as_echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.
$ac_ext >&5
15051 ac_header_preproc
=no
15054 rm -f conftest.err conftest.
$ac_ext
15055 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15056 $as_echo "$ac_header_preproc" >&6; }
15058 # So? What about this header?
15059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15061 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15062 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15063 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15064 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15065 ac_header_preproc
=yes
15068 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15069 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15070 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15071 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15072 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15073 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15074 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15075 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15076 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15077 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15078 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15079 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15083 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15084 $as_echo_n "checking for jerror.h... " >&6; }
15085 if test "${ac_cv_header_jerror_h+set}" = set; then
15086 $as_echo_n "(cached) " >&6
15088 ac_cv_header_jerror_h
=$ac_header_preproc
15090 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15091 $as_echo "$ac_cv_header_jerror_h" >&6; }
15094 if test $ac_cv_header_jerror_h = yes; then
15095 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15096 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15097 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15098 $as_echo_n "(cached) " >&6
15100 ac_check_lib_save_LIBS
=$LIBS
15101 LIBS
="-ljpeg $LIBS"
15102 cat >conftest.
$ac_ext <<_ACEOF
15105 cat confdefs.h
>>conftest.
$ac_ext
15106 cat >>conftest.
$ac_ext <<_ACEOF
15107 /* end confdefs.h. */
15109 /* Override any GCC internal prototype to avoid an error.
15110 Use char because int might match the return type of a GCC
15111 builtin and then its argument prototype would still apply. */
15115 char jpeg_destroy_compress ();
15119 return jpeg_destroy_compress ();
15124 rm -f conftest.
$ac_objext conftest
$ac_exeext
15125 if { (ac_try
="$ac_link"
15126 case "(($ac_try" in
15127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15131 $as_echo "$ac_try_echo") >&5
15132 (eval "$ac_link") 2>conftest.er1
15134 grep -v '^ *+' conftest.er1 >conftest.err
15136 cat conftest.err >&5
15137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); } && {
15139 test -z "$ac_c_werror_flag" ||
15140 test ! -s conftest.err
15141 } && test -s conftest$ac_exeext && {
15142 test "$cross_compiling" = yes ||
15143 $as_test_x conftest$ac_exeext
15145 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15147 $as_echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15150 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15153 rm -rf conftest.dSYM
15154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15155 conftest$ac_exeext conftest.$ac_ext
15156 LIBS=$ac_check_lib_save_LIBS
15158 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15159 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15160 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15170 if test "${HAVE_JPEG}" = "yes"; then
15171 cat >>confdefs.h <<\_ACEOF
15172 #define HAVE_JPEG 1
15175 cat >conftest.$ac_ext <<_ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15181 #include <jpeglib.h>
15182 version=JPEG_LIB_VERSION
15185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15186 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15187 cat >>confdefs.h <<\_ACEOF
15188 #define HAVE_JPEG 1
15192 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15193 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15199 if test "${HAVE_JPEG}" = "yes"; then
15205 ### Use -lpng if available, unless `--with-png=no
'.
15208 if test "${HAVE_X11}" = "yes"; then
15209 if test "${with_png}" != "no"; then
15210 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15211 # in /usr/include/libpng.
15214 for ac_header in png.h libpng/png.h
15216 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15218 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15219 $as_echo_n "checking for $ac_header... " >&6; }
15220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15221 $as_echo_n "(cached) " >&6
15223 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15224 $as_echo "$as_val"'`
15225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15226 $as_echo "$ac_res" >&6; }
15228 # Is the header compilable?
15229 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15230 $as_echo_n "checking $ac_header usability... " >&6; }
15231 cat >conftest.$ac_ext <<_ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h. */
15237 $ac_includes_default
15238 #include <$ac_header>
15240 rm -f conftest.$ac_objext
15241 if { (ac_try="$ac_compile"
15242 case "(($ac_try" in
15243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15244 *) ac_try_echo=$ac_try;;
15246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15247 $as_echo "$ac_try_echo") >&5
15248 (eval "$ac_compile") 2>conftest.er1
15250 grep -v '^
*+' conftest.er1 >conftest.err
15252 cat conftest.err >&5
15253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } && {
15255 test -z "$ac_c_werror_flag" ||
15256 test ! -s conftest.err
15257 } && test -s conftest.$ac_objext; then
15258 ac_header_compiler=yes
15260 $as_echo "$as_me: failed program was:" >&5
15261 sed 's
/^
/|
/' conftest.$ac_ext >&5
15263 ac_header_compiler=no
15266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15267 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15268 $as_echo "$ac_header_compiler" >&6; }
15270 # Is the header present?
15271 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15272 $as_echo_n "checking $ac_header presence... " >&6; }
15273 cat >conftest.$ac_ext <<_ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15279 #include <$ac_header>
15281 if { (ac_try="$ac_cpp conftest.$ac_ext"
15282 case "(($ac_try" in
15283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15284 *) ac_try_echo=$ac_try;;
15286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15287 $as_echo "$ac_try_echo") >&5
15288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15290 grep -v '^
*+' conftest.er1 >conftest.err
15292 cat conftest.err >&5
15293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } >/dev/null && {
15295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15296 test ! -s conftest.err
15298 ac_header_preproc=yes
15300 $as_echo "$as_me: failed program was:" >&5
15301 sed 's
/^
/|
/' conftest.$ac_ext >&5
15303 ac_header_preproc=no
15306 rm -f conftest.err conftest.$ac_ext
15307 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15308 $as_echo "$ac_header_preproc" >&6; }
15310 # So? What about this header?
15311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15314 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
15316 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
15317 ac_header_preproc=yes
15320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15321 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15323 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15325 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15327 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
15329 $as_echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
15330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15331 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15335 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15336 $as_echo_n "checking for $ac_header... " >&6; }
15337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15338 $as_echo_n "(cached) " >&6
15340 eval "$as_ac_Header=\$ac_header_preproc"
15342 ac_res=`eval 'as_val
=${'$as_ac_Header'}
15343 $as_echo "$as_val"'`
15344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15345 $as_echo "$ac_res" >&6; }
15348 if test `eval 'as_val
=${'$as_ac_Header'}
15349 $as_echo "$as_val"'` = yes; then
15350 cat >>confdefs.h <<_ACEOF
15351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15358 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15359 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15360 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15361 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15362 $as_echo_n "(cached) " >&6
15364 ac_check_lib_save_LIBS=$LIBS
15365 LIBS="-lpng -lz -lm $LIBS"
15366 cat >conftest.$ac_ext <<_ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15373 /* Override any GCC internal prototype to avoid an error.
15374 Use char because int might match the return type of a GCC
15375 builtin and then its argument prototype would still apply. */
15379 char png_get_channels ();
15383 return png_get_channels ();
15388 rm -f conftest.$ac_objext conftest$ac_exeext
15389 if { (ac_try="$ac_link"
15390 case "(($ac_try" in
15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392 *) ac_try_echo=$ac_try;;
15394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15395 $as_echo "$ac_try_echo") >&5
15396 (eval "$ac_link") 2>conftest.er1
15398 grep -v '^
*+' conftest.er1 >conftest.err
15400 cat conftest.err >&5
15401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } && {
15403 test -z "$ac_c_werror_flag" ||
15404 test ! -s conftest.err
15405 } && test -s conftest$ac_exeext && {
15406 test "$cross_compiling" = yes ||
15407 $as_test_x conftest$ac_exeext
15409 ac_cv_lib_png_png_get_channels=yes
15411 $as_echo "$as_me: failed program was:" >&5
15412 sed 's
/^
/|
/' conftest.$ac_ext >&5
15414 ac_cv_lib_png_png_get_channels=no
15417 rm -rf conftest.dSYM
15418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15419 conftest$ac_exeext conftest.$ac_ext
15420 LIBS=$ac_check_lib_save_LIBS
15422 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15423 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15424 if test $ac_cv_lib_png_png_get_channels = yes; then
15431 if test "${HAVE_PNG}" = "yes"; then
15433 cat >>confdefs.h <<\_ACEOF
15437 LIBPNG="-lpng -lz -lm"
15442 ### Use -ltiff if available, unless `--with-tiff=no'.
15445 if test "${HAVE_X11}" = "yes"; then
15446 if test "${with_tiff}" != "no"; then
15447 if test "${ac_cv_header_tiffio_h+set}" = set; then
15448 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15449 $as_echo_n "checking for tiffio.h... " >&6; }
15450 if test "${ac_cv_header_tiffio_h+set}" = set; then
15451 $as_echo_n "(cached) " >&6
15453 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15454 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15456 # Is the header compilable?
15457 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15458 $as_echo_n "checking tiffio.h usability... " >&6; }
15459 cat >conftest.
$ac_ext <<_ACEOF
15462 cat confdefs.h
>>conftest.
$ac_ext
15463 cat >>conftest.
$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15465 $ac_includes_default
15466 #include <tiffio.h>
15468 rm -f conftest.
$ac_objext
15469 if { (ac_try
="$ac_compile"
15470 case "(($ac_try" in
15471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15475 $as_echo "$ac_try_echo") >&5
15476 (eval "$ac_compile") 2>conftest.er1
15478 grep -v '^ *+' conftest.er1 >conftest.err
15480 cat conftest.err >&5
15481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } && {
15483 test -z "$ac_c_werror_flag" ||
15484 test ! -s conftest.err
15485 } && test -s conftest.$ac_objext; then
15486 ac_header_compiler=yes
15488 $as_echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15491 ac_header_compiler=no
15494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15495 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15496 $as_echo "$ac_header_compiler" >&6; }
15498 # Is the header present?
15499 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15500 $as_echo_n "checking tiffio.h presence... " >&6; }
15501 cat >conftest.$ac_ext <<_ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15507 #include <tiffio.h>
15509 if { (ac_try="$ac_cpp conftest.$ac_ext"
15510 case "(($ac_try" in
15511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15512 *) ac_try_echo
=$ac_try;;
15514 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15515 $as_echo "$ac_try_echo") >&5
15516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15518 grep -v '^ *+' conftest.er1
>conftest.err
15520 cat conftest.err
>&5
15521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } >/dev
/null
&& {
15523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15524 test ! -s conftest.err
15526 ac_header_preproc
=yes
15528 $as_echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.
$ac_ext >&5
15531 ac_header_preproc
=no
15534 rm -f conftest.err conftest.
$ac_ext
15535 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15536 $as_echo "$ac_header_preproc" >&6; }
15538 # So? What about this header?
15539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15541 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15542 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15543 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15544 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15545 ac_header_preproc
=yes
15548 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15549 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15550 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15551 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15552 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15553 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15554 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15555 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15556 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15557 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15558 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15559 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15563 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15564 $as_echo_n "checking for tiffio.h... " >&6; }
15565 if test "${ac_cv_header_tiffio_h+set}" = set; then
15566 $as_echo_n "(cached) " >&6
15568 ac_cv_header_tiffio_h
=$ac_header_preproc
15570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15571 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15574 if test $ac_cv_header_tiffio_h = yes; then
15576 # At least one tiff package requires the jpeg library.
15577 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
15578 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15579 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15580 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15581 $as_echo_n "(cached) " >&6
15583 ac_check_lib_save_LIBS
=$LIBS
15584 LIBS
="-ltiff $tifflibs $LIBS"
15585 cat >conftest.
$ac_ext <<_ACEOF
15588 cat confdefs.h
>>conftest.
$ac_ext
15589 cat >>conftest.
$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15592 /* Override any GCC internal prototype to avoid an error.
15593 Use char because int might match the return type of a GCC
15594 builtin and then its argument prototype would still apply. */
15598 char TIFFGetVersion ();
15602 return TIFFGetVersion ();
15607 rm -f conftest.
$ac_objext conftest
$ac_exeext
15608 if { (ac_try
="$ac_link"
15609 case "(($ac_try" in
15610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15614 $as_echo "$ac_try_echo") >&5
15615 (eval "$ac_link") 2>conftest.er1
15617 grep -v '^ *+' conftest.er1 >conftest.err
15619 cat conftest.err >&5
15620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } && {
15622 test -z "$ac_c_werror_flag" ||
15623 test ! -s conftest.err
15624 } && test -s conftest$ac_exeext && {
15625 test "$cross_compiling" = yes ||
15626 $as_test_x conftest$ac_exeext
15628 ac_cv_lib_tiff_TIFFGetVersion=yes
15630 $as_echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15633 ac_cv_lib_tiff_TIFFGetVersion=no
15636 rm -rf conftest.dSYM
15637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15638 conftest$ac_exeext conftest.$ac_ext
15639 LIBS=$ac_check_lib_save_LIBS
15641 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15642 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15643 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15652 if test "${HAVE_TIFF}" = "yes"; then
15654 cat >>confdefs.h <<\_ACEOF
15655 #define HAVE_TIFF 1
15663 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
15666 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15667 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15668 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15669 $as_echo_n "checking for gif_lib.h... " >&6; }
15670 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15671 $as_echo_n "(cached) " >&6
15673 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15674 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15676 # Is the header compilable?
15677 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15678 $as_echo_n "checking gif_lib.h usability... " >&6; }
15679 cat >conftest.$ac_ext <<_ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15685 $ac_includes_default
15686 #include <gif_lib.h>
15688 rm -f conftest.$ac_objext
15689 if { (ac_try="$ac_compile"
15690 case "(($ac_try" in
15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692 *) ac_try_echo=$ac_try;;
15694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15695 $as_echo "$ac_try_echo") >&5
15696 (eval "$ac_compile") 2>conftest.er1
15698 grep -v '^
*+' conftest.er1 >conftest.err
15700 cat conftest.err >&5
15701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } && {
15703 test -z "$ac_c_werror_flag" ||
15704 test ! -s conftest.err
15705 } && test -s conftest.$ac_objext; then
15706 ac_header_compiler=yes
15708 $as_echo "$as_me: failed program was:" >&5
15709 sed 's
/^
/|
/' conftest.$ac_ext >&5
15711 ac_header_compiler=no
15714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15715 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15716 $as_echo "$ac_header_compiler" >&6; }
15718 # Is the header present?
15719 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15720 $as_echo_n "checking gif_lib.h presence... " >&6; }
15721 cat >conftest.$ac_ext <<_ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h. */
15727 #include <gif_lib.h>
15729 if { (ac_try="$ac_cpp conftest.$ac_ext"
15730 case "(($ac_try" in
15731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732 *) ac_try_echo=$ac_try;;
15734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15735 $as_echo "$ac_try_echo") >&5
15736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15738 grep -v '^
*+' conftest.er1 >conftest.err
15740 cat conftest.err >&5
15741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); } >/dev/null && {
15743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15744 test ! -s conftest.err
15746 ac_header_preproc=yes
15748 $as_echo "$as_me: failed program was:" >&5
15749 sed 's
/^
/|
/' conftest.$ac_ext >&5
15751 ac_header_preproc=no
15754 rm -f conftest.err conftest.$ac_ext
15755 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15756 $as_echo "$ac_header_preproc" >&6; }
15758 # So? What about this header?
15759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15761 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15762 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15763 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
15764 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
15765 ac_header_preproc=yes
15768 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15769 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15770 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15771 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15772 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15773 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15774 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15775 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15776 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
15777 $as_echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
15778 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15779 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15783 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15784 $as_echo_n "checking for gif_lib.h... " >&6; }
15785 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15786 $as_echo_n "(cached) " >&6
15788 ac_cv_header_gif_lib_h=$ac_header_preproc
15790 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15791 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15794 if test $ac_cv_header_gif_lib_h = yes; then
15795 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15796 # Earlier versions can crash Emacs.
15797 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15798 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15799 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15800 $as_echo_n "(cached) " >&6
15802 ac_check_lib_save_LIBS=$LIBS
15804 cat >conftest.$ac_ext <<_ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h. */
15811 /* Override any GCC internal prototype to avoid an error.
15812 Use char because int might match the return type of a GCC
15813 builtin and then its argument prototype would still apply. */
15817 char EGifPutExtensionLast ();
15821 return EGifPutExtensionLast ();
15826 rm -f conftest.$ac_objext conftest$ac_exeext
15827 if { (ac_try="$ac_link"
15828 case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15833 $as_echo "$ac_try_echo") >&5
15834 (eval "$ac_link") 2>conftest.er1
15836 grep -v '^
*+' conftest.er1 >conftest.err
15838 cat conftest.err >&5
15839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } && {
15841 test -z "$ac_c_werror_flag" ||
15842 test ! -s conftest.err
15843 } && test -s conftest$ac_exeext && {
15844 test "$cross_compiling" = yes ||
15845 $as_test_x conftest$ac_exeext
15847 ac_cv_lib_gif_EGifPutExtensionLast=yes
15849 $as_echo "$as_me: failed program was:" >&5
15850 sed 's
/^
/|
/' conftest.$ac_ext >&5
15852 ac_cv_lib_gif_EGifPutExtensionLast=no
15855 rm -rf conftest.dSYM
15856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15857 conftest$ac_exeext conftest.$ac_ext
15858 LIBS=$ac_check_lib_save_LIBS
15860 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15861 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15862 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15872 if test "$HAVE_GIF" = yes; then
15874 elif test "$HAVE_GIF" = maybe; then
15875 # If gif_lib.h but no libgif, try libungif.
15876 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15877 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15878 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15879 $as_echo_n "(cached) " >&6
15881 ac_check_lib_save_LIBS=$LIBS
15882 LIBS="-lungif $LIBS"
15883 cat >conftest.$ac_ext <<_ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15890 /* Override any GCC internal prototype to avoid an error.
15891 Use char because int might match the return type of a GCC
15892 builtin and then its argument prototype would still apply. */
15896 char EGifPutExtensionLast ();
15900 return EGifPutExtensionLast ();
15905 rm -f conftest.$ac_objext conftest$ac_exeext
15906 if { (ac_try="$ac_link"
15907 case "(($ac_try" in
15908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15909 *) ac_try_echo=$ac_try;;
15911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15912 $as_echo "$ac_try_echo") >&5
15913 (eval "$ac_link") 2>conftest.er1
15915 grep -v '^
*+' conftest.er1 >conftest.err
15917 cat conftest.err >&5
15918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } && {
15920 test -z "$ac_c_werror_flag" ||
15921 test ! -s conftest.err
15922 } && test -s conftest$ac_exeext && {
15923 test "$cross_compiling" = yes ||
15924 $as_test_x conftest$ac_exeext
15926 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15928 $as_echo "$as_me: failed program was:" >&5
15929 sed 's
/^
/|
/' conftest.$ac_ext >&5
15931 ac_cv_lib_ungif_EGifPutExtensionLast=no
15934 rm -rf conftest.dSYM
15935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15936 conftest$ac_exeext conftest.$ac_ext
15937 LIBS=$ac_check_lib_save_LIBS
15939 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15940 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15941 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15947 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15950 if test "${HAVE_GIF}" = "yes"; then
15952 cat >>confdefs.h <<\_ACEOF
15960 if test "${HAVE_X11}" = "yes"; then
15963 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15964 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15965 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15966 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15967 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15968 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15969 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15970 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15971 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15972 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15974 if test "X${MISSING}" != X; then
15975 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15977 Maybe some development libraries/packages are missing?
15978 If you don't want to link with them give
15980 as options to configure
" >&5
15981 $as_echo "$as_me: error
: The following required libraries were not found
:
15983 Maybe some development libraries
/packages are missing?
15984 If you don
't want to link with them give
15986 as options to configure" >&2;}
15987 { (exit 1); exit 1; }; }
15991 ### Use -lgpm if available, unless `--with-gpm=no'.
15995 if test "${with_gpm}" != "no"; then
15996 if test "${ac_cv_header_gpm_h+set}" = set; then
15997 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15998 $as_echo_n "checking for gpm.h... " >&6; }
15999 if test "${ac_cv_header_gpm_h+set}" = set; then
16000 $as_echo_n "(cached) " >&6
16002 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16003 $as_echo "$ac_cv_header_gpm_h" >&6; }
16005 # Is the header compilable?
16006 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16007 $as_echo_n "checking gpm.h usability... " >&6; }
16008 cat >conftest.
$ac_ext <<_ACEOF
16011 cat confdefs.h
>>conftest.
$ac_ext
16012 cat >>conftest.
$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 $ac_includes_default
16017 rm -f conftest.
$ac_objext
16018 if { (ac_try
="$ac_compile"
16019 case "(($ac_try" in
16020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16021 *) ac_try_echo=$ac_try;;
16023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16024 $as_echo "$ac_try_echo") >&5
16025 (eval "$ac_compile") 2>conftest.er1
16027 grep -v '^ *+' conftest.er1 >conftest.err
16029 cat conftest.err >&5
16030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } && {
16032 test -z "$ac_c_werror_flag" ||
16033 test ! -s conftest.err
16034 } && test -s conftest.$ac_objext; then
16035 ac_header_compiler=yes
16037 $as_echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16040 ac_header_compiler=no
16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16045 $as_echo "$ac_header_compiler" >&6; }
16047 # Is the header present?
16048 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16049 $as_echo_n "checking gpm.h presence... " >&6; }
16050 cat >conftest.$ac_ext <<_ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h. */
16058 if { (ac_try="$ac_cpp conftest.$ac_ext"
16059 case "(($ac_try" in
16060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16061 *) ac_try_echo
=$ac_try;;
16063 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16064 $as_echo "$ac_try_echo") >&5
16065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16067 grep -v '^ *+' conftest.er1
>conftest.err
16069 cat conftest.err
>&5
16070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } >/dev
/null
&& {
16072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16073 test ! -s conftest.err
16075 ac_header_preproc
=yes
16077 $as_echo "$as_me: failed program was:" >&5
16078 sed 's/^/| /' conftest.
$ac_ext >&5
16080 ac_header_preproc
=no
16083 rm -f conftest.err conftest.
$ac_ext
16084 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16085 $as_echo "$ac_header_preproc" >&6; }
16087 # So? What about this header?
16088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16090 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16091 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16092 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16093 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16094 ac_header_preproc
=yes
16097 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16098 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16099 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16100 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16101 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16102 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16103 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16104 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16105 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16106 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16107 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16108 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16112 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16113 $as_echo_n "checking for gpm.h... " >&6; }
16114 if test "${ac_cv_header_gpm_h+set}" = set; then
16115 $as_echo_n "(cached) " >&6
16117 ac_cv_header_gpm_h
=$ac_header_preproc
16119 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16120 $as_echo "$ac_cv_header_gpm_h" >&6; }
16123 if test $ac_cv_header_gpm_h = yes; then
16124 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16125 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16126 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16127 $as_echo_n "(cached) " >&6
16129 ac_check_lib_save_LIBS
=$LIBS
16131 cat >conftest.
$ac_ext <<_ACEOF
16134 cat confdefs.h
>>conftest.
$ac_ext
16135 cat >>conftest.
$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16138 /* Override any GCC internal prototype to avoid an error.
16139 Use char because int might match the return type of a GCC
16140 builtin and then its argument prototype would still apply. */
16148 return Gpm_Open ();
16153 rm -f conftest.
$ac_objext conftest
$ac_exeext
16154 if { (ac_try
="$ac_link"
16155 case "(($ac_try" in
16156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16157 *) ac_try_echo=$ac_try;;
16159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16160 $as_echo "$ac_try_echo") >&5
16161 (eval "$ac_link") 2>conftest.er1
16163 grep -v '^ *+' conftest.er1 >conftest.err
16165 cat conftest.err >&5
16166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } && {
16168 test -z "$ac_c_werror_flag" ||
16169 test ! -s conftest.err
16170 } && test -s conftest$ac_exeext && {
16171 test "$cross_compiling" = yes ||
16172 $as_test_x conftest$ac_exeext
16174 ac_cv_lib_gpm_Gpm_Open=yes
16176 $as_echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16179 ac_cv_lib_gpm_Gpm_Open=no
16182 rm -rf conftest.dSYM
16183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16184 conftest$ac_exeext conftest.$ac_ext
16185 LIBS=$ac_check_lib_save_LIBS
16187 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16188 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16189 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16197 if test "${HAVE_GPM}" = "yes"; then
16199 cat >>confdefs.h <<\_ACEOF
16204 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc"
16210 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16211 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16212 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16213 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16214 $as_echo_n "(cached) " >&6
16216 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16217 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16219 # Is the header compilable?
16220 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16221 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16222 cat >conftest.$ac_ext <<_ACEOF
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h. */
16228 $ac_includes_default
16229 #include <malloc/malloc.h>
16231 rm -f conftest.$ac_objext
16232 if { (ac_try="$ac_compile"
16233 case "(($ac_try" in
16234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16235 *) ac_try_echo
=$ac_try;;
16237 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16238 $as_echo "$ac_try_echo") >&5
16239 (eval "$ac_compile") 2>conftest.er1
16241 grep -v '^ *+' conftest.er1
>conftest.err
16243 cat conftest.err
>&5
16244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } && {
16246 test -z "$ac_c_werror_flag" ||
16247 test ! -s conftest.err
16248 } && test -s conftest.
$ac_objext; then
16249 ac_header_compiler
=yes
16251 $as_echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.
$ac_ext >&5
16254 ac_header_compiler
=no
16257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16258 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16259 $as_echo "$ac_header_compiler" >&6; }
16261 # Is the header present?
16262 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16263 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16264 cat >conftest.
$ac_ext <<_ACEOF
16267 cat confdefs.h
>>conftest.
$ac_ext
16268 cat >>conftest.
$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16270 #include <malloc/malloc.h>
16272 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16273 case "(($ac_try" in
16274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16275 *) ac_try_echo=$ac_try;;
16277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16278 $as_echo "$ac_try_echo") >&5
16279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16281 grep -v '^ *+' conftest.er1 >conftest.err
16283 cat conftest.err >&5
16284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285 (exit $ac_status); } >/dev/null && {
16286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16287 test ! -s conftest.err
16289 ac_header_preproc=yes
16291 $as_echo "$as_me: failed program was:" >&5
16292 sed 's/^/| /' conftest.$ac_ext >&5
16294 ac_header_preproc=no
16297 rm -f conftest.err conftest.$ac_ext
16298 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16299 $as_echo "$ac_header_preproc" >&6; }
16301 # So? What about this header?
16302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16304 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16305 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16306 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16307 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16308 ac_header_preproc=yes
16311 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16312 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16313 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16314 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16315 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16316 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16317 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16318 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16319 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16320 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16321 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16322 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16326 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16327 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16328 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16329 $as_echo_n "(cached) " >&6
16331 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16333 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16334 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16337 if test $ac_cv_header_malloc_malloc_h = yes; then
16339 cat >>confdefs.h <<\_ACEOF
16340 #define HAVE_MALLOC_MALLOC_H 1
16348 ### Use NeXTstep API to implement GUI.
16349 if test "${HAVE_NS}" = "yes"; then
16351 cat >>confdefs.h <<\_ACEOF
16355 if test "${NS_IMPL_COCOA}" = "yes"; then
16357 cat >>confdefs.h <<\_ACEOF
16358 #define NS_IMPL_COCOA 1
16363 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16365 cat >>confdefs.h <<\_ACEOF
16366 #define NS_IMPL_GNUSTEP 1
16369 # See also .m.o rule in Makefile.in */
16370 # FIXME: are all these flags really needed? Document here why. */
16371 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16372 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16374 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16376 cat >>confdefs.h <<\_ACEOF
16377 #define NS_HAVE_NSINTEGER 1
16381 # We also have mouse menus.
16387 ### Use session management (-lSM -lICE) if available
16390 if test "${HAVE_X11}" = "yes"; then
16391 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16392 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16393 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16394 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16395 $as_echo_n "(cached) " >&6
16397 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16398 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16400 # Is the header compilable?
16401 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16402 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16403 cat >conftest.$ac_ext <<_ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16409 $ac_includes_default
16410 #include <X11/SM/SMlib.h>
16412 rm -f conftest.$ac_objext
16413 if { (ac_try="$ac_compile"
16414 case "(($ac_try" in
16415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16416 *) ac_try_echo
=$ac_try;;
16418 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16419 $as_echo "$ac_try_echo") >&5
16420 (eval "$ac_compile") 2>conftest.er1
16422 grep -v '^ *+' conftest.er1
>conftest.err
16424 cat conftest.err
>&5
16425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } && {
16427 test -z "$ac_c_werror_flag" ||
16428 test ! -s conftest.err
16429 } && test -s conftest.
$ac_objext; then
16430 ac_header_compiler
=yes
16432 $as_echo "$as_me: failed program was:" >&5
16433 sed 's/^/| /' conftest.
$ac_ext >&5
16435 ac_header_compiler
=no
16438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16439 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16440 $as_echo "$ac_header_compiler" >&6; }
16442 # Is the header present?
16443 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16444 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16445 cat >conftest.
$ac_ext <<_ACEOF
16448 cat confdefs.h
>>conftest.
$ac_ext
16449 cat >>conftest.
$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 #include <X11/SM/SMlib.h>
16453 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16454 case "(($ac_try" in
16455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16459 $as_echo "$ac_try_echo") >&5
16460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16462 grep -v '^ *+' conftest.er1 >conftest.err
16464 cat conftest.err >&5
16465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } >/dev/null && {
16467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16468 test ! -s conftest.err
16470 ac_header_preproc=yes
16472 $as_echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16475 ac_header_preproc=no
16478 rm -f conftest.err conftest.$ac_ext
16479 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16480 $as_echo "$ac_header_preproc" >&6; }
16482 # So? What about this header?
16483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16485 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16486 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16487 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16488 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16489 ac_header_preproc=yes
16492 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16493 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16494 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16495 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16496 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16497 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16498 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16499 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16500 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16501 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16502 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16503 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16507 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16508 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16509 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16510 $as_echo_n "(cached) " >&6
16512 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16514 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16515 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16518 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16519 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16520 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16521 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16522 $as_echo_n "(cached) " >&6
16524 ac_check_lib_save_LIBS=$LIBS
16525 LIBS="-lSM -lICE $LIBS"
16526 cat >conftest.$ac_ext <<_ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16533 /* Override any GCC internal prototype to avoid an error.
16534 Use char because int might match the return type of a GCC
16535 builtin and then its argument prototype would still apply. */
16539 char SmcOpenConnection ();
16543 return SmcOpenConnection ();
16548 rm -f conftest.$ac_objext conftest$ac_exeext
16549 if { (ac_try="$ac_link"
16550 case "(($ac_try" in
16551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16552 *) ac_try_echo
=$ac_try;;
16554 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16555 $as_echo "$ac_try_echo") >&5
16556 (eval "$ac_link") 2>conftest.er1
16558 grep -v '^ *+' conftest.er1
>conftest.err
16560 cat conftest.err
>&5
16561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } && {
16563 test -z "$ac_c_werror_flag" ||
16564 test ! -s conftest.err
16565 } && test -s conftest
$ac_exeext && {
16566 test "$cross_compiling" = yes ||
16567 $as_test_x conftest
$ac_exeext
16569 ac_cv_lib_SM_SmcOpenConnection
=yes
16571 $as_echo "$as_me: failed program was:" >&5
16572 sed 's/^/| /' conftest.
$ac_ext >&5
16574 ac_cv_lib_SM_SmcOpenConnection
=no
16577 rm -rf conftest.dSYM
16578 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16579 conftest
$ac_exeext conftest.
$ac_ext
16580 LIBS
=$ac_check_lib_save_LIBS
16582 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16583 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16584 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16592 if test "${HAVE_X_SM}" = "yes"; then
16594 cat >>confdefs.h
<<\_ACEOF
16595 #define HAVE_X_SM 1
16598 LIBXSM
="-lSM -lICE"
16601 *) LIBS
="$LIBXSM $LIBS" ;;
16607 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16608 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16609 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16610 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16611 $as_echo_n "(cached) " >&6
16613 cat >conftest.
$ac_ext <<_ACEOF
16616 cat confdefs.h
>>conftest.
$ac_ext
16617 cat >>conftest.
$ac_ext <<_ACEOF
16618 /* end confdefs.h. */
16628 rm -f conftest.
$ac_objext conftest
$ac_exeext
16629 if { (ac_try
="$ac_link"
16630 case "(($ac_try" in
16631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16632 *) ac_try_echo=$ac_try;;
16634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16635 $as_echo "$ac_try_echo") >&5
16636 (eval "$ac_link") 2>conftest.er1
16638 grep -v '^ *+' conftest.er1 >conftest.err
16640 cat conftest.err >&5
16641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } && {
16643 test -z "$ac_c_werror_flag" ||
16644 test ! -s conftest.err
16645 } && test -s conftest$ac_exeext && {
16646 test "$cross_compiling" = yes ||
16647 $as_test_x conftest$ac_exeext
16649 emacs_cv_netdb_declares_h_errno=yes
16651 $as_echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16654 emacs_cv_netdb_declares_h_errno=no
16657 rm -rf conftest.dSYM
16658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16659 conftest$ac_exeext conftest.$ac_ext
16661 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16662 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16663 if test $emacs_cv_netdb_declares_h_errno = yes; then
16665 cat >>confdefs.h <<\_ACEOF
16666 #define HAVE_H_ERRNO 1
16671 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16672 # for constant arguments. Useless!
16673 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16674 $as_echo_n "checking for working alloca.h... " >&6; }
16675 if test "${ac_cv_working_alloca_h+set}" = set; then
16676 $as_echo_n "(cached) " >&6
16678 cat >conftest.$ac_ext <<_ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 #include <alloca.h>
16688 char *p = (char *) alloca (2 * sizeof (int));
16694 rm -f conftest.$ac_objext conftest$ac_exeext
16695 if { (ac_try="$ac_link"
16696 case "(($ac_try" in
16697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16698 *) ac_try_echo
=$ac_try;;
16700 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16701 $as_echo "$ac_try_echo") >&5
16702 (eval "$ac_link") 2>conftest.er1
16704 grep -v '^ *+' conftest.er1
>conftest.err
16706 cat conftest.err
>&5
16707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } && {
16709 test -z "$ac_c_werror_flag" ||
16710 test ! -s conftest.err
16711 } && test -s conftest
$ac_exeext && {
16712 test "$cross_compiling" = yes ||
16713 $as_test_x conftest
$ac_exeext
16715 ac_cv_working_alloca_h
=yes
16717 $as_echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.
$ac_ext >&5
16720 ac_cv_working_alloca_h
=no
16723 rm -rf conftest.dSYM
16724 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16725 conftest
$ac_exeext conftest.
$ac_ext
16727 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16728 $as_echo "$ac_cv_working_alloca_h" >&6; }
16729 if test $ac_cv_working_alloca_h = yes; then
16731 cat >>confdefs.h
<<\_ACEOF
16732 #define HAVE_ALLOCA_H 1
16737 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16738 $as_echo_n "checking for alloca... " >&6; }
16739 if test "${ac_cv_func_alloca_works+set}" = set; then
16740 $as_echo_n "(cached) " >&6
16742 cat >conftest.
$ac_ext <<_ACEOF
16745 cat confdefs.h
>>conftest.
$ac_ext
16746 cat >>conftest.
$ac_ext <<_ACEOF
16747 /* end confdefs.h. */
16749 # define alloca __builtin_alloca
16752 # include <malloc.h>
16753 # define alloca _alloca
16755 # ifdef HAVE_ALLOCA_H
16756 # include <alloca.h>
16761 # ifndef alloca /* predefined by HP cc +Olibcalls */
16772 char *p = (char *) alloca (1);
16778 rm -f conftest.
$ac_objext conftest
$ac_exeext
16779 if { (ac_try
="$ac_link"
16780 case "(($ac_try" in
16781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16785 $as_echo "$ac_try_echo") >&5
16786 (eval "$ac_link") 2>conftest.er1
16788 grep -v '^ *+' conftest.er1 >conftest.err
16790 cat conftest.err >&5
16791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); } && {
16793 test -z "$ac_c_werror_flag" ||
16794 test ! -s conftest.err
16795 } && test -s conftest$ac_exeext && {
16796 test "$cross_compiling" = yes ||
16797 $as_test_x conftest$ac_exeext
16799 ac_cv_func_alloca_works=yes
16801 $as_echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16804 ac_cv_func_alloca_works=no
16807 rm -rf conftest.dSYM
16808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16809 conftest$ac_exeext conftest.$ac_ext
16811 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16812 $as_echo "$ac_cv_func_alloca_works" >&6; }
16814 if test $ac_cv_func_alloca_works = yes; then
16816 cat >>confdefs.h <<\_ACEOF
16817 #define HAVE_ALLOCA 1
16821 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16822 # that cause trouble. Some versions do not even contain alloca or
16823 # contain a buggy version. If you still want to use their alloca,
16824 # use ar to extract alloca.o from them instead of compiling alloca.c.
16826 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16828 cat >>confdefs.h <<\_ACEOF
16833 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
16834 $as_echo_n "checking whether \`alloca.c' needs Cray hooks...
" >&6; }
16835 if test "${ac_cv_os_cray+set}" = set; then
16836 $as_echo_n "(cached
) " >&6
16838 cat >conftest.$ac_ext <<_ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16844 #if defined CRAY && ! defined CRAY2
16851 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16852 $EGREP "webecray
" >/dev/null 2>&1; then
16860 { $as_echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
16861 $as_echo "$ac_cv_os_cray" >&6; }
16862 if test $ac_cv_os_cray = yes; then
16863 for ac_func in _getb67 GETB67 getb67; do
16864 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16865 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
16866 $as_echo_n "checking
for $ac_func...
" >&6; }
16867 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16868 $as_echo_n "(cached
) " >&6
16870 cat >conftest.$ac_ext <<_ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16878 #define $ac_func innocuous_$ac_func
16880 /* System header to define __stub macros and hopefully few prototypes,
16881 which can conflict with char $ac_func (); below.
16882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16883 <limits.h> exists even on freestanding compilers. */
16886 # include <limits.h>
16888 # include <assert.h>
16893 /* Override any GCC internal prototype to avoid an error.
16894 Use char because int might match the return type of a GCC
16895 builtin and then its argument prototype would still apply. */
16900 /* The GNU C library defines this for functions which it implements
16901 to always fail with ENOSYS. Some functions are actually named
16902 something starting with __ and the normal name is an alias. */
16903 #if defined __stub_$ac_func || defined __stub___$ac_func
16910 return $ac_func ();
16915 rm -f conftest.$ac_objext conftest$ac_exeext
16916 if { (ac_try="$ac_link"
16917 case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16921 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
16922 $as_echo "$ac_try_echo") >&5
16923 (eval "$ac_link") 2>conftest.er1
16925 grep -v '^ *+' conftest.er1 >conftest.err
16927 cat conftest.err >&5
16928 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16929 (exit $ac_status); } && {
16930 test -z "$ac_c_werror_flag" ||
16931 test ! -s conftest.err
16932 } && test -s conftest$ac_exeext && {
16933 test "$cross_compiling" = yes ||
16934 $as_test_x conftest$ac_exeext
16936 eval "$as_ac_var=yes"
16938 $as_echo "$as_me: failed program was
:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16941 eval "$as_ac_var=no
"
16944 rm -rf conftest.dSYM
16945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16946 conftest$ac_exeext conftest.$ac_ext
16948 ac_res=`eval 'as_val=${'$as_ac_var'}
16949 $as_echo "$as_val"'`
16950 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
16951 $as_echo "$ac_res" >&6; }
16952 if test `eval 'as_val=${'$as_ac_var'}
16953 $as_echo "$as_val"'` = yes; then
16955 cat >>confdefs.h <<_ACEOF
16956 #define CRAY_STACKSEG_END $ac_func
16965 { $as_echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
16966 $as_echo_n "checking stack direction
for C alloca...
" >&6; }
16967 if test "${ac_cv_c_stack_direction+set}" = set; then
16968 $as_echo_n "(cached
) " >&6
16970 if test "$cross_compiling" = yes; then
16971 ac_cv_c_stack_direction=0
16973 cat >conftest.$ac_ext <<_ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 $ac_includes_default
16981 find_stack_direction ()
16983 static char *addr = 0;
16988 return find_stack_direction ();
16991 return (&dummy > addr) ? 1 : -1;
16997 return find_stack_direction () < 0;
17000 rm -f conftest$ac_exeext
17001 if { (ac_try="$ac_link"
17002 case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17006 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17007 $as_echo "$ac_try_echo") >&5
17008 (eval "$ac_link") 2>&5
17010 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17012 { (case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17016 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17017 $as_echo "$ac_try_echo") >&5
17018 (eval "$ac_try") 2>&5
17020 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 ac_cv_c_stack_direction=1
17024 $as_echo "$as_me: program exited with status
$ac_status" >&5
17025 $as_echo "$as_me: failed program was
:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17028 ( exit $ac_status )
17029 ac_cv_c_stack_direction=-1
17031 rm -rf conftest.dSYM
17032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17037 { $as_echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
17038 $as_echo "$ac_cv_c_stack_direction" >&6; }
17040 cat >>confdefs.h <<_ACEOF
17041 #define STACK_DIRECTION $ac_cv_c_stack_direction
17048 if test x"$ac_cv_func_alloca_works" != xyes; then
17049 { { $as_echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
17050 $as_echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
17051 { (exit 1); exit 1; }; }
17054 # fmod, logb, and frexp are found in -lm on most systems.
17055 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17057 { $as_echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
17058 $as_echo_n "checking
for sqrt
in -lm...
" >&6; }
17059 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17060 $as_echo_n "(cached
) " >&6
17062 ac_check_lib_save_LIBS=$LIBS
17064 cat >conftest.$ac_ext <<_ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h. */
17071 /* Override any GCC internal prototype to avoid an error.
17072 Use char because int might match the return type of a GCC
17073 builtin and then its argument prototype would still apply. */
17086 rm -f conftest.$ac_objext conftest$ac_exeext
17087 if { (ac_try="$ac_link"
17088 case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17092 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17093 $as_echo "$ac_try_echo") >&5
17094 (eval "$ac_link") 2>conftest.er1
17096 grep -v '^ *+' conftest.er1 >conftest.err
17098 cat conftest.err >&5
17099 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17100 (exit $ac_status); } && {
17101 test -z "$ac_c_werror_flag" ||
17102 test ! -s conftest.err
17103 } && test -s conftest$ac_exeext && {
17104 test "$cross_compiling" = yes ||
17105 $as_test_x conftest$ac_exeext
17107 ac_cv_lib_m_sqrt=yes
17109 $as_echo "$as_me: failed program was
:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17112 ac_cv_lib_m_sqrt=no
17115 rm -rf conftest.dSYM
17116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17117 conftest$ac_exeext conftest.$ac_ext
17118 LIBS=$ac_check_lib_save_LIBS
17120 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
17121 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17122 if test $ac_cv_lib_m_sqrt = yes; then
17123 cat >>confdefs.h <<_ACEOF
17124 #define HAVE_LIBM 1
17132 # Check for mail-locking functions in a "mail" library. Probably this should
17133 # have the same check as for liblockfile below.
17134 { $as_echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
17135 $as_echo_n "checking
for maillock
in -lmail...
" >&6; }
17136 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17137 $as_echo_n "(cached
) " >&6
17139 ac_check_lib_save_LIBS=$LIBS
17140 LIBS="-lmail $LIBS"
17141 cat >conftest.$ac_ext <<_ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17148 /* Override any GCC internal prototype to avoid an error.
17149 Use char because int might match the return type of a GCC
17150 builtin and then its argument prototype would still apply. */
17158 return maillock ();
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (ac_try="$ac_link"
17165 case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17169 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17170 $as_echo "$ac_try_echo") >&5
17171 (eval "$ac_link") 2>conftest.er1
17173 grep -v '^ *+' conftest.er1 >conftest.err
17175 cat conftest.err >&5
17176 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17177 (exit $ac_status); } && {
17178 test -z "$ac_c_werror_flag" ||
17179 test ! -s conftest.err
17180 } && test -s conftest$ac_exeext && {
17181 test "$cross_compiling" = yes ||
17182 $as_test_x conftest$ac_exeext
17184 ac_cv_lib_mail_maillock=yes
17186 $as_echo "$as_me: failed program was
:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17189 ac_cv_lib_mail_maillock=no
17192 rm -rf conftest.dSYM
17193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17194 conftest$ac_exeext conftest.$ac_ext
17195 LIBS=$ac_check_lib_save_LIBS
17197 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
17198 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17199 if test $ac_cv_lib_mail_maillock = yes; then
17205 if test $have_mail = yes; then
17207 LIBS="$LIBS_MAIL $LIBS"
17209 cat >>confdefs.h <<\_ACEOF
17210 #define HAVE_LIBMAIL 1
17216 { $as_echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
17217 $as_echo_n "checking
for maillock
in -llockfile...
" >&6; }
17218 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17219 $as_echo_n "(cached
) " >&6
17221 ac_check_lib_save_LIBS=$LIBS
17222 LIBS="-llockfile $LIBS"
17223 cat >conftest.$ac_ext <<_ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17230 /* Override any GCC internal prototype to avoid an error.
17231 Use char because int might match the return type of a GCC
17232 builtin and then its argument prototype would still apply. */
17240 return maillock ();
17245 rm -f conftest.$ac_objext conftest$ac_exeext
17246 if { (ac_try="$ac_link"
17247 case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17251 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17252 $as_echo "$ac_try_echo") >&5
17253 (eval "$ac_link") 2>conftest.er1
17255 grep -v '^ *+' conftest.er1 >conftest.err
17257 cat conftest.err >&5
17258 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17259 (exit $ac_status); } && {
17260 test -z "$ac_c_werror_flag" ||
17261 test ! -s conftest.err
17262 } && test -s conftest$ac_exeext && {
17263 test "$cross_compiling" = yes ||
17264 $as_test_x conftest$ac_exeext
17266 ac_cv_lib_lockfile_maillock=yes
17268 $as_echo "$as_me: failed program was
:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 ac_cv_lib_lockfile_maillock=no
17274 rm -rf conftest.dSYM
17275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17276 conftest$ac_exeext conftest.$ac_ext
17277 LIBS=$ac_check_lib_save_LIBS
17279 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
17280 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17281 if test $ac_cv_lib_lockfile_maillock = yes; then
17287 if test $have_lockfile = yes; then
17288 LIBS_MAIL=-llockfile
17289 LIBS="$LIBS_MAIL $LIBS"
17291 cat >>confdefs.h <<\_ACEOF
17292 #define HAVE_LIBLOCKFILE 1
17296 # If we have the shared liblockfile, assume we must use it for mail
17297 # locking (e.g. Debian). If we couldn't link against liblockfile
17298 # (no liblockfile.a installed), ensure that we don't need to.
17299 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
17300 set dummy liblockfile.so; ac_word=$2
17301 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
17302 $as_echo_n "checking
for $ac_word...
" >&6; }
17303 if test "${ac_cv_prog_liblockfile+set}" = set; then
17304 $as_echo_n "(cached
) " >&6
17306 if test -n "$liblockfile"; then
17307 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17310 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
17311 for as_dir in $as_dummy
17314 test -z "$as_dir" && as_dir=.
17315 for ac_exec_ext in '' $ac_executable_extensions; do
17316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17317 ac_cv_prog_liblockfile="yes"
17318 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
17325 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
17328 liblockfile=$ac_cv_prog_liblockfile
17329 if test -n "$liblockfile"; then
17330 { $as_echo "$as_me:$LINENO: result
: $liblockfile" >&5
17331 $as_echo "$liblockfile" >&6; }
17333 { $as_echo "$as_me:$LINENO: result
: no
" >&5
17334 $as_echo "no
" >&6; }
17338 if test $ac_cv_prog_liblockfile = yes; then
17339 { { $as_echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
17340 This probably means that movemail could lose mail.
17341 There may be a \`development' package to
install containing liblockfile.
" >&5
17342 $as_echo "$as_me: error
: Shared liblockfile found but can
't link against it.
17343 This probably means that movemail could lose mail.
17344 There may be a \`development' package to
install containing liblockfile.
" >&2;}
17345 { (exit 1); exit 1; }; }
17349 for ac_func in touchlock
17351 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17352 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17353 $as_echo_n "checking
for $ac_func...
" >&6; }
17354 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17355 $as_echo_n "(cached
) " >&6
17357 cat >conftest.$ac_ext <<_ACEOF
17360 cat confdefs.h >>conftest.$ac_ext
17361 cat >>conftest.$ac_ext <<_ACEOF
17362 /* end confdefs.h. */
17363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17365 #define $ac_func innocuous_$ac_func
17367 /* System header to define __stub macros and hopefully few prototypes,
17368 which can conflict with char $ac_func (); below.
17369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17370 <limits.h> exists even on freestanding compilers. */
17373 # include <limits.h>
17375 # include <assert.h>
17380 /* Override any GCC internal prototype to avoid an error.
17381 Use char because int might match the return type of a GCC
17382 builtin and then its argument prototype would still apply. */
17387 /* The GNU C library defines this for functions which it implements
17388 to always fail with ENOSYS. Some functions are actually named
17389 something starting with __ and the normal name is an alias. */
17390 #if defined __stub_$ac_func || defined __stub___$ac_func
17397 return $ac_func ();
17402 rm -f conftest.$ac_objext conftest$ac_exeext
17403 if { (ac_try="$ac_link"
17404 case "(($ac_try" in
17405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406 *) ac_try_echo=$ac_try;;
17408 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17409 $as_echo "$ac_try_echo") >&5
17410 (eval "$ac_link") 2>conftest.er1
17412 grep -v '^ *+' conftest.er1 >conftest.err
17414 cat conftest.err >&5
17415 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17416 (exit $ac_status); } && {
17417 test -z "$ac_c_werror_flag" ||
17418 test ! -s conftest.err
17419 } && test -s conftest$ac_exeext && {
17420 test "$cross_compiling" = yes ||
17421 $as_test_x conftest$ac_exeext
17423 eval "$as_ac_var=yes"
17425 $as_echo "$as_me: failed program was
:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17428 eval "$as_ac_var=no
"
17431 rm -rf conftest.dSYM
17432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17433 conftest$ac_exeext conftest.$ac_ext
17435 ac_res=`eval 'as_val=${'$as_ac_var'}
17436 $as_echo "$as_val"'`
17437 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17438 $as_echo "$ac_res" >&6; }
17439 if test `eval 'as_val=${'$as_ac_var'}
17440 $as_echo "$as_val"'` = yes; then
17441 cat >>confdefs.h <<_ACEOF
17442 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17449 for ac_header in maillock.h
17451 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17452 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17453 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17454 $as_echo_n "checking
for $ac_header...
" >&6; }
17455 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17456 $as_echo_n "(cached
) " >&6
17458 ac_res=`eval 'as_val=${'$as_ac_Header'}
17459 $as_echo "$as_val"'`
17460 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17461 $as_echo "$ac_res" >&6; }
17463 # Is the header compilable?
17464 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17465 $as_echo_n "checking
$ac_header usability...
" >&6; }
17466 cat >conftest.$ac_ext <<_ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17472 $ac_includes_default
17473 #include <$ac_header>
17475 rm -f conftest.$ac_objext
17476 if { (ac_try="$ac_compile"
17477 case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17481 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17482 $as_echo "$ac_try_echo") >&5
17483 (eval "$ac_compile") 2>conftest.er1
17485 grep -v '^ *+' conftest.er1 >conftest.err
17487 cat conftest.err >&5
17488 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17489 (exit $ac_status); } && {
17490 test -z "$ac_c_werror_flag" ||
17491 test ! -s conftest.err
17492 } && test -s conftest.$ac_objext; then
17493 ac_header_compiler=yes
17495 $as_echo "$as_me: failed program was
:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 ac_header_compiler=no
17501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17502 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17503 $as_echo "$ac_header_compiler" >&6; }
17505 # Is the header present?
17506 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17507 $as_echo_n "checking
$ac_header presence...
" >&6; }
17508 cat >conftest.$ac_ext <<_ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17514 #include <$ac_header>
17516 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17517 case "(($ac_try" in
17518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17519 *) ac_try_echo=$ac_try;;
17521 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17522 $as_echo "$ac_try_echo") >&5
17523 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17525 grep -v '^ *+' conftest.er1 >conftest.err
17527 cat conftest.err >&5
17528 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17529 (exit $ac_status); } >/dev/null && {
17530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17531 test ! -s conftest.err
17533 ac_header_preproc=yes
17535 $as_echo "$as_me: failed program was
:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17538 ac_header_preproc=no
17541 rm -f conftest.err conftest.$ac_ext
17542 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17543 $as_echo "$ac_header_preproc" >&6; }
17545 # So? What about this header?
17546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17548 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17549 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17550 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17551 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17552 ac_header_preproc=yes
17555 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17556 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17557 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17558 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17559 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17560 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17561 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17562 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17563 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17564 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17565 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17566 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17570 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17571 $as_echo_n "checking
for $ac_header...
" >&6; }
17572 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17573 $as_echo_n "(cached
) " >&6
17575 eval "$as_ac_Header=\
$ac_header_preproc"
17577 ac_res=`eval 'as_val=${'$as_ac_Header'}
17578 $as_echo "$as_val"'`
17579 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17580 $as_echo "$ac_res" >&6; }
17583 if test `eval 'as_val=${'$as_ac_Header'}
17584 $as_echo "$as_val"'` = yes; then
17585 cat >>confdefs.h <<_ACEOF
17586 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17595 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17596 ## interlock access to the mail spool. The alternative is a lock file named
17597 ## /usr/spool/mail/$USER.lock.
17600 aix4-2) mail_lock="lockf
" ;;
17602 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock
" ;;
17604 ## On GNU/Linux systems, both methods are used by various mail programs.
17605 ## I assume most people are using newer mailers that have heard of flock.
17606 ## Change this if you need to.
17607 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17608 ## configure gets the right answers, and that means *NOT* using flock.
17609 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17610 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17611 ## Debian maintainer hasn't provided a clean fix for Emacs.
17612 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17613 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17614 ## correct logic. -- fx
17615 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17616 ## liblockfile is a Free Software replacement for libmail, used on
17617 ## Debian systems and elsewhere. -rfr.
17620 if test $have_mail = yes || test $have_lockfile = yes; then
17621 test $ac_cv_header_maillock_h = yes && mail_lock=no
17627 case "$mail_lock" in
17629 cat >>confdefs.h <<\_ACEOF
17630 #define MAIL_USE_FLOCK 1
17635 cat >>confdefs.h <<\_ACEOF
17636 #define MAIL_USE_LOCKF 1
17640 *) BLESSMAIL_TARGET="need-blessmail
" ;;
17718 for ac_func in gethostname getdomainname dup2 \
17719 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17720 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17721 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17722 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17723 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17724 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17725 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17726 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17727 cfmakeraw cfsetspeed isnan copysign
17729 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17730 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
17731 $as_echo_n "checking
for $ac_func...
" >&6; }
17732 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17733 $as_echo_n "(cached
) " >&6
17735 cat >conftest.$ac_ext <<_ACEOF
17738 cat confdefs.h >>conftest.$ac_ext
17739 cat >>conftest.$ac_ext <<_ACEOF
17740 /* end confdefs.h. */
17741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17743 #define $ac_func innocuous_$ac_func
17745 /* System header to define __stub macros and hopefully few prototypes,
17746 which can conflict with char $ac_func (); below.
17747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17748 <limits.h> exists even on freestanding compilers. */
17751 # include <limits.h>
17753 # include <assert.h>
17758 /* Override any GCC internal prototype to avoid an error.
17759 Use char because int might match the return type of a GCC
17760 builtin and then its argument prototype would still apply. */
17765 /* The GNU C library defines this for functions which it implements
17766 to always fail with ENOSYS. Some functions are actually named
17767 something starting with __ and the normal name is an alias. */
17768 #if defined __stub_$ac_func || defined __stub___$ac_func
17775 return $ac_func ();
17780 rm -f conftest.$ac_objext conftest$ac_exeext
17781 if { (ac_try="$ac_link"
17782 case "(($ac_try" in
17783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784 *) ac_try_echo=$ac_try;;
17786 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17787 $as_echo "$ac_try_echo") >&5
17788 (eval "$ac_link") 2>conftest.er1
17790 grep -v '^ *+' conftest.er1 >conftest.err
17792 cat conftest.err >&5
17793 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17794 (exit $ac_status); } && {
17795 test -z "$ac_c_werror_flag" ||
17796 test ! -s conftest.err
17797 } && test -s conftest$ac_exeext && {
17798 test "$cross_compiling" = yes ||
17799 $as_test_x conftest$ac_exeext
17801 eval "$as_ac_var=yes"
17803 $as_echo "$as_me: failed program was
:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17806 eval "$as_ac_var=no
"
17809 rm -rf conftest.dSYM
17810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17811 conftest$ac_exeext conftest.$ac_ext
17813 ac_res=`eval 'as_val=${'$as_ac_var'}
17814 $as_echo "$as_val"'`
17815 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17816 $as_echo "$ac_res" >&6; }
17817 if test `eval 'as_val=${'$as_ac_var'}
17818 $as_echo "$as_val"'` = yes; then
17819 cat >>confdefs.h <<_ACEOF
17820 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17828 for ac_header in sys/un.h
17830 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17831 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17832 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17833 $as_echo_n "checking
for $ac_header...
" >&6; }
17834 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17835 $as_echo_n "(cached
) " >&6
17837 ac_res=`eval 'as_val=${'$as_ac_Header'}
17838 $as_echo "$as_val"'`
17839 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17840 $as_echo "$ac_res" >&6; }
17842 # Is the header compilable?
17843 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17844 $as_echo_n "checking
$ac_header usability...
" >&6; }
17845 cat >conftest.$ac_ext <<_ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h. */
17851 $ac_includes_default
17852 #include <$ac_header>
17854 rm -f conftest.$ac_objext
17855 if { (ac_try="$ac_compile"
17856 case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17860 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17861 $as_echo "$ac_try_echo") >&5
17862 (eval "$ac_compile") 2>conftest.er1
17864 grep -v '^ *+' conftest.er1 >conftest.err
17866 cat conftest.err >&5
17867 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17868 (exit $ac_status); } && {
17869 test -z "$ac_c_werror_flag" ||
17870 test ! -s conftest.err
17871 } && test -s conftest.$ac_objext; then
17872 ac_header_compiler=yes
17874 $as_echo "$as_me: failed program was
:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17877 ac_header_compiler=no
17880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17881 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17882 $as_echo "$ac_header_compiler" >&6; }
17884 # Is the header present?
17885 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17886 $as_echo_n "checking
$ac_header presence...
" >&6; }
17887 cat >conftest.$ac_ext <<_ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17893 #include <$ac_header>
17895 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17896 case "(($ac_try" in
17897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17898 *) ac_try_echo=$ac_try;;
17900 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
17901 $as_echo "$ac_try_echo") >&5
17902 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17904 grep -v '^ *+' conftest.er1 >conftest.err
17906 cat conftest.err >&5
17907 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17908 (exit $ac_status); } >/dev/null && {
17909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17910 test ! -s conftest.err
17912 ac_header_preproc=yes
17914 $as_echo "$as_me: failed program was
:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17917 ac_header_preproc=no
17920 rm -f conftest.err conftest.$ac_ext
17921 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17922 $as_echo "$ac_header_preproc" >&6; }
17924 # So? What about this header?
17925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17927 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17928 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17929 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17930 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17931 ac_header_preproc=yes
17934 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17935 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17936 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17937 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17938 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17939 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17940 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17941 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17942 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17943 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17944 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17945 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17949 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17950 $as_echo_n "checking
for $ac_header...
" >&6; }
17951 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17952 $as_echo_n "(cached
) " >&6
17954 eval "$as_ac_Header=\
$ac_header_preproc"
17956 ac_res=`eval 'as_val=${'$as_ac_Header'}
17957 $as_echo "$as_val"'`
17958 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17959 $as_echo "$ac_res" >&6; }
17962 if test `eval 'as_val=${'$as_ac_Header'}
17963 $as_echo "$as_val"'` = yes; then
17964 cat >>confdefs.h <<_ACEOF
17965 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17977 for ac_header in $ac_header_list
17979 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17980 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17981 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
17982 $as_echo_n "checking
for $ac_header...
" >&6; }
17983 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17984 $as_echo_n "(cached
) " >&6
17986 ac_res=`eval 'as_val=${'$as_ac_Header'}
17987 $as_echo "$as_val"'`
17988 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
17989 $as_echo "$ac_res" >&6; }
17991 # Is the header compilable?
17992 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17993 $as_echo_n "checking
$ac_header usability...
" >&6; }
17994 cat >conftest.$ac_ext <<_ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18000 $ac_includes_default
18001 #include <$ac_header>
18003 rm -f conftest.$ac_objext
18004 if { (ac_try="$ac_compile"
18005 case "(($ac_try" in
18006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007 *) ac_try_echo=$ac_try;;
18009 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18010 $as_echo "$ac_try_echo") >&5
18011 (eval "$ac_compile") 2>conftest.er1
18013 grep -v '^ *+' conftest.er1 >conftest.err
18015 cat conftest.err >&5
18016 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18017 (exit $ac_status); } && {
18018 test -z "$ac_c_werror_flag" ||
18019 test ! -s conftest.err
18020 } && test -s conftest.$ac_objext; then
18021 ac_header_compiler=yes
18023 $as_echo "$as_me: failed program was
:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 ac_header_compiler=no
18029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18030 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18031 $as_echo "$ac_header_compiler" >&6; }
18033 # Is the header present?
18034 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18035 $as_echo_n "checking
$ac_header presence...
" >&6; }
18036 cat >conftest.$ac_ext <<_ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18042 #include <$ac_header>
18044 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18045 case "(($ac_try" in
18046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047 *) ac_try_echo=$ac_try;;
18049 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18050 $as_echo "$ac_try_echo") >&5
18051 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18053 grep -v '^ *+' conftest.er1 >conftest.err
18055 cat conftest.err >&5
18056 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18057 (exit $ac_status); } >/dev/null && {
18058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18059 test ! -s conftest.err
18061 ac_header_preproc=yes
18063 $as_echo "$as_me: failed program was
:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18066 ac_header_preproc=no
18069 rm -f conftest.err conftest.$ac_ext
18070 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18071 $as_echo "$ac_header_preproc" >&6; }
18073 # So? What about this header?
18074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18076 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18077 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18078 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18080 ac_header_preproc=yes
18083 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18084 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18085 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18086 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18087 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18088 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18089 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18090 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18091 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18092 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18093 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18094 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18098 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
18099 $as_echo_n "checking
for $ac_header...
" >&6; }
18100 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18101 $as_echo_n "(cached
) " >&6
18103 eval "$as_ac_Header=\
$ac_header_preproc"
18105 ac_res=`eval 'as_val=${'$as_ac_Header'}
18106 $as_echo "$as_val"'`
18107 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18108 $as_echo "$ac_res" >&6; }
18111 if test `eval 'as_val=${'$as_ac_Header'}
18112 $as_echo "$as_val"'` = yes; then
18113 cat >>confdefs.h <<_ACEOF
18114 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18129 for ac_func in $ac_func_list
18131 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18132 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18133 $as_echo_n "checking
for $ac_func...
" >&6; }
18134 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18135 $as_echo_n "(cached
) " >&6
18137 cat >conftest.$ac_ext <<_ACEOF
18140 cat confdefs.h >>conftest.$ac_ext
18141 cat >>conftest.$ac_ext <<_ACEOF
18142 /* end confdefs.h. */
18143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18145 #define $ac_func innocuous_$ac_func
18147 /* System header to define __stub macros and hopefully few prototypes,
18148 which can conflict with char $ac_func (); below.
18149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18150 <limits.h> exists even on freestanding compilers. */
18153 # include <limits.h>
18155 # include <assert.h>
18160 /* Override any GCC internal prototype to avoid an error.
18161 Use char because int might match the return type of a GCC
18162 builtin and then its argument prototype would still apply. */
18167 /* The GNU C library defines this for functions which it implements
18168 to always fail with ENOSYS. Some functions are actually named
18169 something starting with __ and the normal name is an alias. */
18170 #if defined __stub_$ac_func || defined __stub___$ac_func
18177 return $ac_func ();
18182 rm -f conftest.$ac_objext conftest$ac_exeext
18183 if { (ac_try="$ac_link"
18184 case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18188 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18189 $as_echo "$ac_try_echo") >&5
18190 (eval "$ac_link") 2>conftest.er1
18192 grep -v '^ *+' conftest.er1 >conftest.err
18194 cat conftest.err >&5
18195 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18196 (exit $ac_status); } && {
18197 test -z "$ac_c_werror_flag" ||
18198 test ! -s conftest.err
18199 } && test -s conftest$ac_exeext && {
18200 test "$cross_compiling" = yes ||
18201 $as_test_x conftest$ac_exeext
18203 eval "$as_ac_var=yes"
18205 $as_echo "$as_me: failed program was
:" >&5
18206 sed 's/^/| /' conftest.$ac_ext >&5
18208 eval "$as_ac_var=no
"
18211 rm -rf conftest.dSYM
18212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18213 conftest$ac_exeext conftest.$ac_ext
18215 ac_res=`eval 'as_val=${'$as_ac_var'}
18216 $as_echo "$as_val"'`
18217 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18218 $as_echo "$ac_res" >&6; }
18219 if test `eval 'as_val=${'$as_ac_var'}
18220 $as_echo "$as_val"'` = yes; then
18221 cat >>confdefs.h <<_ACEOF
18222 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18244 { $as_echo "$as_me:$LINENO: checking
for working mktime
" >&5
18245 $as_echo_n "checking
for working mktime...
" >&6; }
18246 if test "${ac_cv_func_working_mktime+set}" = set; then
18247 $as_echo_n "(cached
) " >&6
18249 if test "$cross_compiling" = yes; then
18250 ac_cv_func_working_mktime=no
18252 cat >conftest.$ac_ext <<_ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h. */
18258 /* Test program from Paul Eggert and Tony Leneis. */
18259 #ifdef TIME_WITH_SYS_TIME
18260 # include <sys/time.h>
18263 # ifdef HAVE_SYS_TIME_H
18264 # include <sys/time.h>
18270 #include <limits.h>
18271 #include <stdlib.h>
18273 #ifdef HAVE_UNISTD_H
18274 # include <unistd.h>
18278 # define alarm(X) /* empty */
18281 /* Work around redefinition to rpl_putenv by other config tests. */
18284 static time_t time_t_max;
18285 static time_t time_t_min;
18287 /* Values we'll use to set the TZ environment variable. */
18288 static char *tz_strings[] = {
18289 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
18290 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
18292 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18294 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18295 Based on a problem report from Andreas Jaeger. */
18297 spring_forward_gap ()
18299 /* glibc (up to about 1998-10-07) failed this test. */
18302 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18303 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18304 on systems that don't support the Olson extension, or don't have the
18305 full zoneinfo tables installed. */
18306 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18315 return mktime (&tm) != (time_t) -1;
18323 return ! (lt = localtime (&now)) || mktime (lt) == now;
18330 return (mktime_test1 (now)
18331 && mktime_test1 ((time_t) (time_t_max - now))
18332 && mktime_test1 ((time_t) (time_t_min + now)));
18338 /* Based on code from Ariel Faigon. */
18348 return tm.tm_mon == 2 && tm.tm_mday == 31;
18357 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18358 now = mktime (&tm);
18359 if (now != (time_t) -1)
18361 struct tm *lt = localtime (&now);
18363 && lt->tm_year == tm.tm_year
18364 && lt->tm_mon == tm.tm_mon
18365 && lt->tm_mday == tm.tm_mday
18366 && lt->tm_hour == tm.tm_hour
18367 && lt->tm_min == tm.tm_min
18368 && lt->tm_sec == tm.tm_sec
18369 && lt->tm_yday == tm.tm_yday
18370 && lt->tm_wday == tm.tm_wday
18371 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18372 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18381 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18382 ignoring leap seconds. */
18383 unsigned long int answer = 2527315200UL;
18387 tm.tm_year = 2050 - 1900;
18390 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18393 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
18394 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
18395 on systems that don't support the Olson extension, or don't have the
18396 full zoneinfo tables installed. */
18397 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
18401 /* Check that the result is either a failure, or close enough
18402 to the correct answer that we can assume the discrepancy is
18403 due to leap seconds. */
18404 return (t == (time_t) -1
18405 || (0 < t && answer - 120 <= t && t <= answer + 120));
18414 /* This test makes some buggy mktime implementations loop.
18415 Give up after 60 seconds; a mktime slower than that
18416 isn't worth using anyway. */
18421 t = (time_t_max << 1) + 1;
18422 if (t <= time_t_max)
18426 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18428 delta = time_t_max / 997; /* a suitable prime number */
18429 for (i = 0; i < N_STRINGS; i++)
18432 putenv (tz_strings[i]);
18434 for (t = 0; t <= time_t_max - delta; t += delta)
18435 if (! mktime_test (t))
18437 if (! (mktime_test ((time_t) 1)
18438 && mktime_test ((time_t) (60 * 60))
18439 && mktime_test ((time_t) (60 * 60 * 24))))
18442 for (j = 1; ; j <<= 1)
18443 if (! bigtime_test (j))
18445 else if (INT_MAX / 2 < j)
18447 if (! bigtime_test (INT_MAX))
18450 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18453 rm -f conftest$ac_exeext
18454 if { (ac_try="$ac_link"
18455 case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18459 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18460 $as_echo "$ac_try_echo") >&5
18461 (eval "$ac_link") 2>&5
18463 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18469 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18470 $as_echo "$ac_try_echo") >&5
18471 (eval "$ac_try") 2>&5
18473 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18474 (exit $ac_status); }; }; then
18475 ac_cv_func_working_mktime=yes
18477 $as_echo "$as_me: program exited with status
$ac_status" >&5
18478 $as_echo "$as_me: failed program was
:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18481 ( exit $ac_status )
18482 ac_cv_func_working_mktime=no
18484 rm -rf conftest.dSYM
18485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18490 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
18491 $as_echo "$ac_cv_func_working_mktime" >&6; }
18492 if test $ac_cv_func_working_mktime = no; then
18493 case " $LIBOBJS " in
18494 *" mktime.
$ac_objext "* ) ;;
18495 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
18501 if test "$ac_cv_func_working_mktime" = no; then
18503 cat >>confdefs.h <<\_ACEOF
18504 #define BROKEN_MKTIME 1
18509 ac_have_func=no # yes means we've found a way to get the load average.
18511 # Make sure getloadavg.c is where it belongs, at configure-time.
18512 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
18513 { { $as_echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
18514 $as_echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
18515 { (exit 1); exit 1; }; }
18519 # Check for getloadavg, but be sure not to touch the cache variable.
18520 ({ $as_echo "$as_me:$LINENO: checking
for getloadavg
" >&5
18521 $as_echo_n "checking
for getloadavg...
" >&6; }
18522 if test "${ac_cv_func_getloadavg+set}" = set; then
18523 $as_echo_n "(cached
) " >&6
18525 cat >conftest.$ac_ext <<_ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18531 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18533 #define getloadavg innocuous_getloadavg
18535 /* System header to define __stub macros and hopefully few prototypes,
18536 which can conflict with char getloadavg (); below.
18537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18538 <limits.h> exists even on freestanding compilers. */
18541 # include <limits.h>
18543 # include <assert.h>
18548 /* Override any GCC internal prototype to avoid an error.
18549 Use char because int might match the return type of a GCC
18550 builtin and then its argument prototype would still apply. */
18554 char getloadavg ();
18555 /* The GNU C library defines this for functions which it implements
18556 to always fail with ENOSYS. Some functions are actually named
18557 something starting with __ and the normal name is an alias. */
18558 #if defined __stub_getloadavg || defined __stub___getloadavg
18565 return getloadavg ();
18570 rm -f conftest.$ac_objext conftest$ac_exeext
18571 if { (ac_try="$ac_link"
18572 case "(($ac_try" in
18573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18574 *) ac_try_echo=$ac_try;;
18576 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18577 $as_echo "$ac_try_echo") >&5
18578 (eval "$ac_link") 2>conftest.er1
18580 grep -v '^ *+' conftest.er1 >conftest.err
18582 cat conftest.err >&5
18583 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18584 (exit $ac_status); } && {
18585 test -z "$ac_c_werror_flag" ||
18586 test ! -s conftest.err
18587 } && test -s conftest$ac_exeext && {
18588 test "$cross_compiling" = yes ||
18589 $as_test_x conftest$ac_exeext
18591 ac_cv_func_getloadavg=yes
18593 $as_echo "$as_me: failed program was
:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18596 ac_cv_func_getloadavg=no
18599 rm -rf conftest.dSYM
18600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18601 conftest$ac_exeext conftest.$ac_ext
18603 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
18604 $as_echo "$ac_cv_func_getloadavg" >&6; }
18605 if test $ac_cv_func_getloadavg = yes; then
18610 ) && ac_have_func=yes
18612 # On HPUX9, an unprivileged user can get load averages through this function.
18614 for ac_func in pstat_getdynamic
18616 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18617 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18618 $as_echo_n "checking
for $ac_func...
" >&6; }
18619 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18620 $as_echo_n "(cached
) " >&6
18622 cat >conftest.$ac_ext <<_ACEOF
18625 cat confdefs.h >>conftest.$ac_ext
18626 cat >>conftest.$ac_ext <<_ACEOF
18627 /* end confdefs.h. */
18628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18630 #define $ac_func innocuous_$ac_func
18632 /* System header to define __stub macros and hopefully few prototypes,
18633 which can conflict with char $ac_func (); below.
18634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18635 <limits.h> exists even on freestanding compilers. */
18638 # include <limits.h>
18640 # include <assert.h>
18645 /* Override any GCC internal prototype to avoid an error.
18646 Use char because int might match the return type of a GCC
18647 builtin and then its argument prototype would still apply. */
18652 /* The GNU C library defines this for functions which it implements
18653 to always fail with ENOSYS. Some functions are actually named
18654 something starting with __ and the normal name is an alias. */
18655 #if defined __stub_$ac_func || defined __stub___$ac_func
18662 return $ac_func ();
18667 rm -f conftest.$ac_objext conftest$ac_exeext
18668 if { (ac_try="$ac_link"
18669 case "(($ac_try" in
18670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18671 *) ac_try_echo=$ac_try;;
18673 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18674 $as_echo "$ac_try_echo") >&5
18675 (eval "$ac_link") 2>conftest.er1
18677 grep -v '^ *+' conftest.er1 >conftest.err
18679 cat conftest.err >&5
18680 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18681 (exit $ac_status); } && {
18682 test -z "$ac_c_werror_flag" ||
18683 test ! -s conftest.err
18684 } && test -s conftest$ac_exeext && {
18685 test "$cross_compiling" = yes ||
18686 $as_test_x conftest$ac_exeext
18688 eval "$as_ac_var=yes"
18690 $as_echo "$as_me: failed program was
:" >&5
18691 sed 's/^/| /' conftest.$ac_ext >&5
18693 eval "$as_ac_var=no
"
18696 rm -rf conftest.dSYM
18697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18698 conftest$ac_exeext conftest.$ac_ext
18700 ac_res=`eval 'as_val=${'$as_ac_var'}
18701 $as_echo "$as_val"'`
18702 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18703 $as_echo "$ac_res" >&6; }
18704 if test `eval 'as_val=${'$as_ac_var'}
18705 $as_echo "$as_val"'` = yes; then
18706 cat >>confdefs.h <<_ACEOF
18707 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18714 # Solaris has libkstat which does not require root.
18716 { $as_echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
18717 $as_echo_n "checking
for kstat_open
in -lkstat...
" >&6; }
18718 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18719 $as_echo_n "(cached
) " >&6
18721 ac_check_lib_save_LIBS=$LIBS
18722 LIBS="-lkstat $LIBS"
18723 cat >conftest.$ac_ext <<_ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18730 /* Override any GCC internal prototype to avoid an error.
18731 Use char because int might match the return type of a GCC
18732 builtin and then its argument prototype would still apply. */
18736 char kstat_open ();
18740 return kstat_open ();
18745 rm -f conftest.$ac_objext conftest$ac_exeext
18746 if { (ac_try="$ac_link"
18747 case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18751 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18752 $as_echo "$ac_try_echo") >&5
18753 (eval "$ac_link") 2>conftest.er1
18755 grep -v '^ *+' conftest.er1 >conftest.err
18757 cat conftest.err >&5
18758 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18759 (exit $ac_status); } && {
18760 test -z "$ac_c_werror_flag" ||
18761 test ! -s conftest.err
18762 } && test -s conftest$ac_exeext && {
18763 test "$cross_compiling" = yes ||
18764 $as_test_x conftest$ac_exeext
18766 ac_cv_lib_kstat_kstat_open=yes
18768 $as_echo "$as_me: failed program was
:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18771 ac_cv_lib_kstat_kstat_open=no
18774 rm -rf conftest.dSYM
18775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18776 conftest$ac_exeext conftest.$ac_ext
18777 LIBS=$ac_check_lib_save_LIBS
18779 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
18780 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18781 if test $ac_cv_lib_kstat_kstat_open = yes; then
18782 cat >>confdefs.h <<_ACEOF
18783 #define HAVE_LIBKSTAT 1
18786 LIBS="-lkstat $LIBS"
18790 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18792 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18793 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18794 # to get the right answer into the cache.
18795 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18796 if test $ac_have_func = no; then
18797 { $as_echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
18798 $as_echo_n "checking
for elf_begin
in -lelf...
" >&6; }
18799 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18800 $as_echo_n "(cached
) " >&6
18802 ac_check_lib_save_LIBS=$LIBS
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18811 /* Override any GCC internal prototype to avoid an error.
18812 Use char because int might match the return type of a GCC
18813 builtin and then its argument prototype would still apply. */
18821 return elf_begin ();
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (ac_try="$ac_link"
18828 case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18832 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18833 $as_echo "$ac_try_echo") >&5
18834 (eval "$ac_link") 2>conftest.er1
18836 grep -v '^ *+' conftest.er1 >conftest.err
18838 cat conftest.err >&5
18839 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18840 (exit $ac_status); } && {
18841 test -z "$ac_c_werror_flag" ||
18842 test ! -s conftest.err
18843 } && test -s conftest$ac_exeext && {
18844 test "$cross_compiling" = yes ||
18845 $as_test_x conftest$ac_exeext
18847 ac_cv_lib_elf_elf_begin=yes
18849 $as_echo "$as_me: failed program was
:" >&5
18850 sed 's/^/| /' conftest.$ac_ext >&5
18852 ac_cv_lib_elf_elf_begin=no
18855 rm -rf conftest.dSYM
18856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18857 conftest$ac_exeext conftest.$ac_ext
18858 LIBS=$ac_check_lib_save_LIBS
18860 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
18861 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18862 if test $ac_cv_lib_elf_elf_begin = yes; then
18867 if test $ac_have_func = no; then
18868 { $as_echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
18869 $as_echo_n "checking
for kvm_open
in -lkvm...
" >&6; }
18870 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18871 $as_echo_n "(cached
) " >&6
18873 ac_check_lib_save_LIBS=$LIBS
18875 cat >conftest.$ac_ext <<_ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18882 /* Override any GCC internal prototype to avoid an error.
18883 Use char because int might match the return type of a GCC
18884 builtin and then its argument prototype would still apply. */
18892 return kvm_open ();
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (ac_try="$ac_link"
18899 case "(($ac_try" in
18900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901 *) ac_try_echo=$ac_try;;
18903 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18904 $as_echo "$ac_try_echo") >&5
18905 (eval "$ac_link") 2>conftest.er1
18907 grep -v '^ *+' conftest.er1 >conftest.err
18909 cat conftest.err >&5
18910 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18911 (exit $ac_status); } && {
18912 test -z "$ac_c_werror_flag" ||
18913 test ! -s conftest.err
18914 } && test -s conftest$ac_exeext && {
18915 test "$cross_compiling" = yes ||
18916 $as_test_x conftest$ac_exeext
18918 ac_cv_lib_kvm_kvm_open=yes
18920 $as_echo "$as_me: failed program was
:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18923 ac_cv_lib_kvm_kvm_open=no
18926 rm -rf conftest.dSYM
18927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18928 conftest$ac_exeext conftest.$ac_ext
18929 LIBS=$ac_check_lib_save_LIBS
18931 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
18932 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18933 if test $ac_cv_lib_kvm_kvm_open = yes; then
18937 # Check for the 4.4BSD definition of getloadavg.
18938 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
18939 $as_echo_n "checking
for getloadavg
in -lutil...
" >&6; }
18940 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18941 $as_echo_n "(cached
) " >&6
18943 ac_check_lib_save_LIBS=$LIBS
18944 LIBS="-lutil $LIBS"
18945 cat >conftest.$ac_ext <<_ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h. */
18952 /* Override any GCC internal prototype to avoid an error.
18953 Use char because int might match the return type of a GCC
18954 builtin and then its argument prototype would still apply. */
18958 char getloadavg ();
18962 return getloadavg ();
18967 rm -f conftest.$ac_objext conftest$ac_exeext
18968 if { (ac_try="$ac_link"
18969 case "(($ac_try" in
18970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971 *) ac_try_echo=$ac_try;;
18973 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18974 $as_echo "$ac_try_echo") >&5
18975 (eval "$ac_link") 2>conftest.er1
18977 grep -v '^ *+' conftest.er1 >conftest.err
18979 cat conftest.err >&5
18980 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18981 (exit $ac_status); } && {
18982 test -z "$ac_c_werror_flag" ||
18983 test ! -s conftest.err
18984 } && test -s conftest$ac_exeext && {
18985 test "$cross_compiling" = yes ||
18986 $as_test_x conftest$ac_exeext
18988 ac_cv_lib_util_getloadavg=yes
18990 $as_echo "$as_me: failed program was
:" >&5
18991 sed 's/^/| /' conftest.$ac_ext >&5
18993 ac_cv_lib_util_getloadavg=no
18996 rm -rf conftest.dSYM
18997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18998 conftest$ac_exeext conftest.$ac_ext
18999 LIBS=$ac_check_lib_save_LIBS
19001 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
19002 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19003 if test $ac_cv_lib_util_getloadavg = yes; then
19004 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19009 if test $ac_have_func = no; then
19010 # There is a commonly available library for RS/6000 AIX.
19011 # Since it is not a standard part of AIX, it might be installed locally.
19012 ac_getloadavg_LIBS=$LIBS
19013 LIBS="-L/usr
/local
/lib
$LIBS"
19014 { $as_echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
19015 $as_echo_n "checking
for getloadavg
in -lgetloadavg...
" >&6; }
19016 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19017 $as_echo_n "(cached
) " >&6
19019 ac_check_lib_save_LIBS=$LIBS
19020 LIBS="-lgetloadavg $LIBS"
19021 cat >conftest.$ac_ext <<_ACEOF
19024 cat confdefs.h >>conftest.$ac_ext
19025 cat >>conftest.$ac_ext <<_ACEOF
19026 /* end confdefs.h. */
19028 /* Override any GCC internal prototype to avoid an error.
19029 Use char because int might match the return type of a GCC
19030 builtin and then its argument prototype would still apply. */
19034 char getloadavg ();
19038 return getloadavg ();
19043 rm -f conftest.$ac_objext conftest$ac_exeext
19044 if { (ac_try="$ac_link"
19045 case "(($ac_try" in
19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047 *) ac_try_echo=$ac_try;;
19049 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19050 $as_echo "$ac_try_echo") >&5
19051 (eval "$ac_link") 2>conftest.er1
19053 grep -v '^ *+' conftest.er1 >conftest.err
19055 cat conftest.err >&5
19056 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19057 (exit $ac_status); } && {
19058 test -z "$ac_c_werror_flag" ||
19059 test ! -s conftest.err
19060 } && test -s conftest$ac_exeext && {
19061 test "$cross_compiling" = yes ||
19062 $as_test_x conftest$ac_exeext
19064 ac_cv_lib_getloadavg_getloadavg=yes
19066 $as_echo "$as_me: failed program was
:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19069 ac_cv_lib_getloadavg_getloadavg=no
19072 rm -rf conftest.dSYM
19073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19074 conftest$ac_exeext conftest.$ac_ext
19075 LIBS=$ac_check_lib_save_LIBS
19077 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
19078 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19079 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
19080 LIBS="-lgetloadavg $LIBS"
19082 LIBS=$ac_getloadavg_LIBS
19087 # Make sure it is really in the library, if we think we found it,
19088 # otherwise set up the replacement function.
19090 for ac_func in getloadavg
19092 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19093 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19094 $as_echo_n "checking
for $ac_func...
" >&6; }
19095 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19096 $as_echo_n "(cached
) " >&6
19098 cat >conftest.$ac_ext <<_ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19106 #define $ac_func innocuous_$ac_func
19108 /* System header to define __stub macros and hopefully few prototypes,
19109 which can conflict with char $ac_func (); below.
19110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19111 <limits.h> exists even on freestanding compilers. */
19114 # include <limits.h>
19116 # include <assert.h>
19121 /* Override any GCC internal prototype to avoid an error.
19122 Use char because int might match the return type of a GCC
19123 builtin and then its argument prototype would still apply. */
19128 /* The GNU C library defines this for functions which it implements
19129 to always fail with ENOSYS. Some functions are actually named
19130 something starting with __ and the normal name is an alias. */
19131 #if defined __stub_$ac_func || defined __stub___$ac_func
19138 return $ac_func ();
19143 rm -f conftest.$ac_objext conftest$ac_exeext
19144 if { (ac_try="$ac_link"
19145 case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19149 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19150 $as_echo "$ac_try_echo") >&5
19151 (eval "$ac_link") 2>conftest.er1
19153 grep -v '^ *+' conftest.er1 >conftest.err
19155 cat conftest.err >&5
19156 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19157 (exit $ac_status); } && {
19158 test -z "$ac_c_werror_flag" ||
19159 test ! -s conftest.err
19160 } && test -s conftest$ac_exeext && {
19161 test "$cross_compiling" = yes ||
19162 $as_test_x conftest$ac_exeext
19164 eval "$as_ac_var=yes"
19166 $as_echo "$as_me: failed program was
:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19169 eval "$as_ac_var=no
"
19172 rm -rf conftest.dSYM
19173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19174 conftest$ac_exeext conftest.$ac_ext
19176 ac_res=`eval 'as_val=${'$as_ac_var'}
19177 $as_echo "$as_val"'`
19178 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19179 $as_echo "$ac_res" >&6; }
19180 if test `eval 'as_val=${'$as_ac_var'}
19181 $as_echo "$as_val"'` = yes; then
19182 cat >>confdefs.h <<_ACEOF
19183 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19187 case " $LIBOBJS " in
19188 *" getloadavg.
$ac_objext "* ) ;;
19189 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
19194 cat >>confdefs.h <<\_ACEOF
19195 #define C_GETLOADAVG 1
19198 # Figure out what our getloadavg.c needs.
19200 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19201 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19202 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19203 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19204 $as_echo_n "(cached
) " >&6
19206 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19207 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19209 # Is the header compilable?
19210 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
19211 $as_echo_n "checking sys
/dg_sys_info.h usability...
" >&6; }
19212 cat >conftest.$ac_ext <<_ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19218 $ac_includes_default
19219 #include <sys/dg_sys_info.h>
19221 rm -f conftest.$ac_objext
19222 if { (ac_try="$ac_compile"
19223 case "(($ac_try" in
19224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19225 *) ac_try_echo=$ac_try;;
19227 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19228 $as_echo "$ac_try_echo") >&5
19229 (eval "$ac_compile") 2>conftest.er1
19231 grep -v '^ *+' conftest.er1 >conftest.err
19233 cat conftest.err >&5
19234 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19235 (exit $ac_status); } && {
19236 test -z "$ac_c_werror_flag" ||
19237 test ! -s conftest.err
19238 } && test -s conftest.$ac_objext; then
19239 ac_header_compiler=yes
19241 $as_echo "$as_me: failed program was
:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19244 ac_header_compiler=no
19247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19248 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19249 $as_echo "$ac_header_compiler" >&6; }
19251 # Is the header present?
19252 { $as_echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
19253 $as_echo_n "checking sys
/dg_sys_info.h presence...
" >&6; }
19254 cat >conftest.$ac_ext <<_ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19260 #include <sys/dg_sys_info.h>
19262 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19263 case "(($ac_try" in
19264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265 *) ac_try_echo=$ac_try;;
19267 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19268 $as_echo "$ac_try_echo") >&5
19269 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19271 grep -v '^ *+' conftest.er1 >conftest.err
19273 cat conftest.err >&5
19274 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19275 (exit $ac_status); } >/dev/null && {
19276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19277 test ! -s conftest.err
19279 ac_header_preproc=yes
19281 $as_echo "$as_me: failed program was
:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19284 ac_header_preproc=no
19287 rm -f conftest.err conftest.$ac_ext
19288 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19289 $as_echo "$ac_header_preproc" >&6; }
19291 # So? What about this header?
19292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19294 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19295 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19296 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
19297 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
19298 ac_header_preproc=yes
19301 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
19302 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
19303 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
19304 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
19305 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
19306 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
19307 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19308 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19309 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
19310 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
19311 { $as_echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
19312 $as_echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
19316 { $as_echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
19317 $as_echo_n "checking
for sys
/dg_sys_info.h...
" >&6; }
19318 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19319 $as_echo_n "(cached
) " >&6
19321 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19323 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
19324 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19327 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19330 cat >>confdefs.h <<\_ACEOF
19335 { $as_echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
19336 $as_echo_n "checking
for dg_sys_info
in -ldgc...
" >&6; }
19337 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19338 $as_echo_n "(cached
) " >&6
19340 ac_check_lib_save_LIBS=$LIBS
19342 cat >conftest.$ac_ext <<_ACEOF
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h. */
19349 /* Override any GCC internal prototype to avoid an error.
19350 Use char because int might match the return type of a GCC
19351 builtin and then its argument prototype would still apply. */
19355 char dg_sys_info ();
19359 return dg_sys_info ();
19364 rm -f conftest.$ac_objext conftest$ac_exeext
19365 if { (ac_try="$ac_link"
19366 case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19370 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19371 $as_echo "$ac_try_echo") >&5
19372 (eval "$ac_link") 2>conftest.er1
19374 grep -v '^ *+' conftest.er1 >conftest.err
19376 cat conftest.err >&5
19377 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19378 (exit $ac_status); } && {
19379 test -z "$ac_c_werror_flag" ||
19380 test ! -s conftest.err
19381 } && test -s conftest$ac_exeext && {
19382 test "$cross_compiling" = yes ||
19383 $as_test_x conftest$ac_exeext
19385 ac_cv_lib_dgc_dg_sys_info=yes
19387 $as_echo "$as_me: failed program was
:" >&5
19388 sed 's/^/| /' conftest.$ac_ext >&5
19390 ac_cv_lib_dgc_dg_sys_info=no
19393 rm -rf conftest.dSYM
19394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19395 conftest$ac_exeext conftest.$ac_ext
19396 LIBS=$ac_check_lib_save_LIBS
19398 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
19399 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19400 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19401 cat >>confdefs.h <<_ACEOF
19402 #define HAVE_LIBDGC 1
19413 if test "${ac_cv_header_locale_h+set}" = set; then
19414 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19415 $as_echo_n "checking
for locale.h...
" >&6; }
19416 if test "${ac_cv_header_locale_h+set}" = set; then
19417 $as_echo_n "(cached
) " >&6
19419 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19420 $as_echo "$ac_cv_header_locale_h" >&6; }
19422 # Is the header compilable?
19423 { $as_echo "$as_me:$LINENO: checking locale.h usability
" >&5
19424 $as_echo_n "checking locale.h usability...
" >&6; }
19425 cat >conftest.$ac_ext <<_ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h. */
19431 $ac_includes_default
19432 #include <locale.h>
19434 rm -f conftest.$ac_objext
19435 if { (ac_try="$ac_compile"
19436 case "(($ac_try" in
19437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438 *) ac_try_echo=$ac_try;;
19440 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19441 $as_echo "$ac_try_echo") >&5
19442 (eval "$ac_compile") 2>conftest.er1
19444 grep -v '^ *+' conftest.er1 >conftest.err
19446 cat conftest.err >&5
19447 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19448 (exit $ac_status); } && {
19449 test -z "$ac_c_werror_flag" ||
19450 test ! -s conftest.err
19451 } && test -s conftest.$ac_objext; then
19452 ac_header_compiler=yes
19454 $as_echo "$as_me: failed program was
:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 ac_header_compiler=no
19460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19461 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19462 $as_echo "$ac_header_compiler" >&6; }
19464 # Is the header present?
19465 { $as_echo "$as_me:$LINENO: checking locale.h presence
" >&5
19466 $as_echo_n "checking locale.h presence...
" >&6; }
19467 cat >conftest.$ac_ext <<_ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h. */
19473 #include <locale.h>
19475 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19476 case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19480 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19481 $as_echo "$ac_try_echo") >&5
19482 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19484 grep -v '^ *+' conftest.er1 >conftest.err
19486 cat conftest.err >&5
19487 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19488 (exit $ac_status); } >/dev/null && {
19489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19490 test ! -s conftest.err
19492 ac_header_preproc=yes
19494 $as_echo "$as_me: failed program was
:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19497 ac_header_preproc=no
19500 rm -f conftest.err conftest.$ac_ext
19501 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19502 $as_echo "$ac_header_preproc" >&6; }
19504 # So? What about this header?
19505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19507 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19508 $as_echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19509 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
19510 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
19511 ac_header_preproc=yes
19514 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
19515 $as_echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
19516 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
19517 $as_echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
19518 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
19519 $as_echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
19520 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19521 $as_echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19522 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
19523 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
19524 { $as_echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
19525 $as_echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
19529 { $as_echo "$as_me:$LINENO: checking
for locale.h
" >&5
19530 $as_echo_n "checking
for locale.h...
" >&6; }
19531 if test "${ac_cv_header_locale_h+set}" = set; then
19532 $as_echo_n "(cached
) " >&6
19534 ac_cv_header_locale_h=$ac_header_preproc
19536 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
19537 $as_echo "$ac_cv_header_locale_h" >&6; }
19543 for ac_func in setlocale
19545 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19546 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19547 $as_echo_n "checking
for $ac_func...
" >&6; }
19548 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19549 $as_echo_n "(cached
) " >&6
19551 cat >conftest.$ac_ext <<_ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h. */
19557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19559 #define $ac_func innocuous_$ac_func
19561 /* System header to define __stub macros and hopefully few prototypes,
19562 which can conflict with char $ac_func (); below.
19563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19564 <limits.h> exists even on freestanding compilers. */
19567 # include <limits.h>
19569 # include <assert.h>
19574 /* Override any GCC internal prototype to avoid an error.
19575 Use char because int might match the return type of a GCC
19576 builtin and then its argument prototype would still apply. */
19581 /* The GNU C library defines this for functions which it implements
19582 to always fail with ENOSYS. Some functions are actually named
19583 something starting with __ and the normal name is an alias. */
19584 #if defined __stub_$ac_func || defined __stub___$ac_func
19591 return $ac_func ();
19596 rm -f conftest.$ac_objext conftest$ac_exeext
19597 if { (ac_try="$ac_link"
19598 case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19602 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19603 $as_echo "$ac_try_echo") >&5
19604 (eval "$ac_link") 2>conftest.er1
19606 grep -v '^ *+' conftest.er1 >conftest.err
19608 cat conftest.err >&5
19609 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19610 (exit $ac_status); } && {
19611 test -z "$ac_c_werror_flag" ||
19612 test ! -s conftest.err
19613 } && test -s conftest$ac_exeext && {
19614 test "$cross_compiling" = yes ||
19615 $as_test_x conftest$ac_exeext
19617 eval "$as_ac_var=yes"
19619 $as_echo "$as_me: failed program was
:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19622 eval "$as_ac_var=no
"
19625 rm -rf conftest.dSYM
19626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19627 conftest$ac_exeext conftest.$ac_ext
19629 ac_res=`eval 'as_val=${'$as_ac_var'}
19630 $as_echo "$as_val"'`
19631 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19632 $as_echo "$ac_res" >&6; }
19633 if test `eval 'as_val=${'$as_ac_var'}
19634 $as_echo "$as_val"'` = yes; then
19635 cat >>confdefs.h <<_ACEOF
19636 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19643 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19644 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19645 # Irix 4.0.5F has the header but not the library.
19646 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19649 cat >>confdefs.h <<\_ACEOF
19655 if test $ac_have_func = no; then
19656 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19657 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19658 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19659 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19660 $as_echo_n "(cached
) " >&6
19662 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19663 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19665 # Is the header compilable?
19666 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
19667 $as_echo_n "checking inq_stats
/cpustats.h usability...
" >&6; }
19668 cat >conftest.$ac_ext <<_ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19674 $ac_includes_default
19675 #include <inq_stats/cpustats.h>
19677 rm -f conftest.$ac_objext
19678 if { (ac_try="$ac_compile"
19679 case "(($ac_try" in
19680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19681 *) ac_try_echo=$ac_try;;
19683 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19684 $as_echo "$ac_try_echo") >&5
19685 (eval "$ac_compile") 2>conftest.er1
19687 grep -v '^ *+' conftest.er1 >conftest.err
19689 cat conftest.err >&5
19690 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19691 (exit $ac_status); } && {
19692 test -z "$ac_c_werror_flag" ||
19693 test ! -s conftest.err
19694 } && test -s conftest.$ac_objext; then
19695 ac_header_compiler=yes
19697 $as_echo "$as_me: failed program was
:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19700 ac_header_compiler=no
19703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19704 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19705 $as_echo "$ac_header_compiler" >&6; }
19707 # Is the header present?
19708 { $as_echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
19709 $as_echo_n "checking inq_stats
/cpustats.h presence...
" >&6; }
19710 cat >conftest.$ac_ext <<_ACEOF
19713 cat confdefs.h >>conftest.$ac_ext
19714 cat >>conftest.$ac_ext <<_ACEOF
19715 /* end confdefs.h. */
19716 #include <inq_stats/cpustats.h>
19718 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19719 case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19723 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19724 $as_echo "$ac_try_echo") >&5
19725 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19727 grep -v '^ *+' conftest.er1 >conftest.err
19729 cat conftest.err >&5
19730 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19731 (exit $ac_status); } >/dev/null && {
19732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19733 test ! -s conftest.err
19735 ac_header_preproc=yes
19737 $as_echo "$as_me: failed program was
:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 ac_header_preproc=no
19743 rm -f conftest.err conftest.$ac_ext
19744 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19745 $as_echo "$ac_header_preproc" >&6; }
19747 # So? What about this header?
19748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19750 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19751 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19752 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
19753 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
19754 ac_header_preproc=yes
19757 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
19758 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
19759 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19760 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19761 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
19762 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
19763 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19764 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19765 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19766 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19767 { $as_echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19768 $as_echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19772 { $as_echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
19773 $as_echo_n "checking
for inq_stats
/cpustats.h...
" >&6; }
19774 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19775 $as_echo_n "(cached
) " >&6
19777 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19779 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
19780 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19783 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19786 cat >>confdefs.h <<\_ACEOF
19791 cat >>confdefs.h <<\_ACEOF
19800 if test $ac_have_func = no; then
19801 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19802 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19803 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19804 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19805 $as_echo_n "(cached
) " >&6
19807 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19808 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19810 # Is the header compilable?
19811 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
19812 $as_echo_n "checking sys
/cpustats.h usability...
" >&6; }
19813 cat >conftest.$ac_ext <<_ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19819 $ac_includes_default
19820 #include <sys/cpustats.h>
19822 rm -f conftest.$ac_objext
19823 if { (ac_try="$ac_compile"
19824 case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19828 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19829 $as_echo "$ac_try_echo") >&5
19830 (eval "$ac_compile") 2>conftest.er1
19832 grep -v '^ *+' conftest.er1 >conftest.err
19834 cat conftest.err >&5
19835 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19836 (exit $ac_status); } && {
19837 test -z "$ac_c_werror_flag" ||
19838 test ! -s conftest.err
19839 } && test -s conftest.$ac_objext; then
19840 ac_header_compiler=yes
19842 $as_echo "$as_me: failed program was
:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19845 ac_header_compiler=no
19848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19849 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19850 $as_echo "$ac_header_compiler" >&6; }
19852 # Is the header present?
19853 { $as_echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
19854 $as_echo_n "checking sys
/cpustats.h presence...
" >&6; }
19855 cat >conftest.$ac_ext <<_ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 #include <sys/cpustats.h>
19863 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19864 case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19868 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19869 $as_echo "$ac_try_echo") >&5
19870 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19872 grep -v '^ *+' conftest.er1 >conftest.err
19874 cat conftest.err >&5
19875 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19876 (exit $ac_status); } >/dev/null && {
19877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19878 test ! -s conftest.err
19880 ac_header_preproc=yes
19882 $as_echo "$as_me: failed program was
:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19885 ac_header_preproc=no
19888 rm -f conftest.err conftest.$ac_ext
19889 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19890 $as_echo "$ac_header_preproc" >&6; }
19892 # So? What about this header?
19893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19895 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
19896 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19897 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
19898 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
19899 ac_header_preproc=yes
19902 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
19903 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
19904 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
19905 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
19906 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
19907 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
19908 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
19909 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
19910 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
19911 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
19912 { $as_echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
19913 $as_echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
19917 { $as_echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
19918 $as_echo_n "checking
for sys
/cpustats.h...
" >&6; }
19919 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19920 $as_echo_n "(cached
) " >&6
19922 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19924 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
19925 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19928 if test $ac_cv_header_sys_cpustats_h = yes; then
19929 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19938 if test $ac_have_func = no; then
19940 for ac_header in mach/mach.h
19942 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19943 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19944 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
19945 $as_echo_n "checking
for $ac_header...
" >&6; }
19946 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19947 $as_echo_n "(cached
) " >&6
19949 ac_res=`eval 'as_val=${'$as_ac_Header'}
19950 $as_echo "$as_val"'`
19951 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19952 $as_echo "$ac_res" >&6; }
19954 # Is the header compilable?
19955 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19956 $as_echo_n "checking
$ac_header usability...
" >&6; }
19957 cat >conftest.$ac_ext <<_ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19963 $ac_includes_default
19964 #include <$ac_header>
19966 rm -f conftest.$ac_objext
19967 if { (ac_try="$ac_compile"
19968 case "(($ac_try" in
19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970 *) ac_try_echo=$ac_try;;
19972 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19973 $as_echo "$ac_try_echo") >&5
19974 (eval "$ac_compile") 2>conftest.er1
19976 grep -v '^ *+' conftest.er1 >conftest.err
19978 cat conftest.err >&5
19979 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19980 (exit $ac_status); } && {
19981 test -z "$ac_c_werror_flag" ||
19982 test ! -s conftest.err
19983 } && test -s conftest.$ac_objext; then
19984 ac_header_compiler=yes
19986 $as_echo "$as_me: failed program was
:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19989 ac_header_compiler=no
19992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19993 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19994 $as_echo "$ac_header_compiler" >&6; }
19996 # Is the header present?
19997 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19998 $as_echo_n "checking
$ac_header presence...
" >&6; }
19999 cat >conftest.$ac_ext <<_ACEOF
20002 cat confdefs.h >>conftest.$ac_ext
20003 cat >>conftest.$ac_ext <<_ACEOF
20004 /* end confdefs.h. */
20005 #include <$ac_header>
20007 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20008 case "(($ac_try" in
20009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010 *) ac_try_echo=$ac_try;;
20012 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20013 $as_echo "$ac_try_echo") >&5
20014 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20016 grep -v '^ *+' conftest.er1 >conftest.err
20018 cat conftest.err >&5
20019 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20020 (exit $ac_status); } >/dev/null && {
20021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20022 test ! -s conftest.err
20024 ac_header_preproc=yes
20026 $as_echo "$as_me: failed program was
:" >&5
20027 sed 's/^/| /' conftest.$ac_ext >&5
20029 ac_header_preproc=no
20032 rm -f conftest.err conftest.$ac_ext
20033 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20034 $as_echo "$ac_header_preproc" >&6; }
20036 # So? What about this header?
20037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20039 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20040 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20041 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20042 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20043 ac_header_preproc=yes
20046 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20047 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20048 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20049 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20050 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20051 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20052 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20053 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20054 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20055 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20056 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20057 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20061 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20062 $as_echo_n "checking
for $ac_header...
" >&6; }
20063 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20064 $as_echo_n "(cached
) " >&6
20066 eval "$as_ac_Header=\
$ac_header_preproc"
20068 ac_res=`eval 'as_val=${'$as_ac_Header'}
20069 $as_echo "$as_val"'`
20070 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20071 $as_echo "$ac_res" >&6; }
20074 if test `eval 'as_val=${'$as_ac_Header'}
20075 $as_echo "$as_val"'` = yes; then
20076 cat >>confdefs.h <<_ACEOF
20077 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20087 for ac_header in nlist.h
20089 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20090 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20091 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20092 $as_echo_n "checking
for $ac_header...
" >&6; }
20093 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20094 $as_echo_n "(cached
) " >&6
20096 ac_res=`eval 'as_val=${'$as_ac_Header'}
20097 $as_echo "$as_val"'`
20098 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20099 $as_echo "$ac_res" >&6; }
20101 # Is the header compilable?
20102 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20103 $as_echo_n "checking
$ac_header usability...
" >&6; }
20104 cat >conftest.$ac_ext <<_ACEOF
20107 cat confdefs.h >>conftest.$ac_ext
20108 cat >>conftest.$ac_ext <<_ACEOF
20109 /* end confdefs.h. */
20110 $ac_includes_default
20111 #include <$ac_header>
20113 rm -f conftest.$ac_objext
20114 if { (ac_try="$ac_compile"
20115 case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20119 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20120 $as_echo "$ac_try_echo") >&5
20121 (eval "$ac_compile") 2>conftest.er1
20123 grep -v '^ *+' conftest.er1 >conftest.err
20125 cat conftest.err >&5
20126 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20127 (exit $ac_status); } && {
20128 test -z "$ac_c_werror_flag" ||
20129 test ! -s conftest.err
20130 } && test -s conftest.$ac_objext; then
20131 ac_header_compiler=yes
20133 $as_echo "$as_me: failed program was
:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20136 ac_header_compiler=no
20139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20140 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20141 $as_echo "$ac_header_compiler" >&6; }
20143 # Is the header present?
20144 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20145 $as_echo_n "checking
$ac_header presence...
" >&6; }
20146 cat >conftest.$ac_ext <<_ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 #include <$ac_header>
20154 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20155 case "(($ac_try" in
20156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157 *) ac_try_echo=$ac_try;;
20159 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20160 $as_echo "$ac_try_echo") >&5
20161 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20163 grep -v '^ *+' conftest.er1 >conftest.err
20165 cat conftest.err >&5
20166 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20167 (exit $ac_status); } >/dev/null && {
20168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20169 test ! -s conftest.err
20171 ac_header_preproc=yes
20173 $as_echo "$as_me: failed program was
:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20176 ac_header_preproc=no
20179 rm -f conftest.err conftest.$ac_ext
20180 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20181 $as_echo "$ac_header_preproc" >&6; }
20183 # So? What about this header?
20184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20186 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20187 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20188 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20189 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20190 ac_header_preproc=yes
20193 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20194 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20195 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20196 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20197 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20198 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20199 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20200 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20201 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20202 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20203 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20204 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20208 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20209 $as_echo_n "checking
for $ac_header...
" >&6; }
20210 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20211 $as_echo_n "(cached
) " >&6
20213 eval "$as_ac_Header=\
$ac_header_preproc"
20215 ac_res=`eval 'as_val=${'$as_ac_Header'}
20216 $as_echo "$as_val"'`
20217 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20218 $as_echo "$ac_res" >&6; }
20221 if test `eval 'as_val=${'$as_ac_Header'}
20222 $as_echo "$as_val"'` = yes; then
20223 cat >>confdefs.h <<_ACEOF
20224 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20226 { $as_echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
20227 $as_echo_n "checking
for struct nlist.n_un.n_name...
" >&6; }
20228 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20229 $as_echo_n "(cached
) " >&6
20231 cat >conftest.$ac_ext <<_ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h. */
20242 static struct nlist ac_aggr;
20243 if (ac_aggr.n_un.n_name)
20249 rm -f conftest.$ac_objext
20250 if { (ac_try="$ac_compile"
20251 case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20255 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20256 $as_echo "$ac_try_echo") >&5
20257 (eval "$ac_compile") 2>conftest.er1
20259 grep -v '^ *+' conftest.er1 >conftest.err
20261 cat conftest.err >&5
20262 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20263 (exit $ac_status); } && {
20264 test -z "$ac_c_werror_flag" ||
20265 test ! -s conftest.err
20266 } && test -s conftest.$ac_objext; then
20267 ac_cv_member_struct_nlist_n_un_n_name=yes
20269 $as_echo "$as_me: failed program was
:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20272 cat >conftest.$ac_ext <<_ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h. */
20283 static struct nlist ac_aggr;
20284 if (sizeof ac_aggr.n_un.n_name)
20290 rm -f conftest.$ac_objext
20291 if { (ac_try="$ac_compile"
20292 case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20296 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20297 $as_echo "$ac_try_echo") >&5
20298 (eval "$ac_compile") 2>conftest.er1
20300 grep -v '^ *+' conftest.er1 >conftest.err
20302 cat conftest.err >&5
20303 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20304 (exit $ac_status); } && {
20305 test -z "$ac_c_werror_flag" ||
20306 test ! -s conftest.err
20307 } && test -s conftest.$ac_objext; then
20308 ac_cv_member_struct_nlist_n_un_n_name=yes
20310 $as_echo "$as_me: failed program was
:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20313 ac_cv_member_struct_nlist_n_un_n_name=no
20316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20321 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20322 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20323 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20325 cat >>confdefs.h <<_ACEOF
20326 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20330 cat >>confdefs.h <<\_ACEOF
20331 #define NLIST_NAME_UNION 1
20345 # Some definitions of getloadavg require that the program be installed setgid.
20346 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
20347 $as_echo_n "checking whether getloadavg requires setgid...
" >&6; }
20348 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20349 $as_echo_n "(cached
) " >&6
20351 cat >conftest.$ac_ext <<_ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20357 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
20358 #ifdef LDAV_PRIVILEGED
20359 Yowza Am I SETGID yet
20362 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
20363 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
20364 ac_cv_func_getloadavg_setgid=yes
20366 ac_cv_func_getloadavg_setgid=no
20371 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
20372 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20373 if test $ac_cv_func_getloadavg_setgid = yes; then
20376 cat >>confdefs.h <<\_ACEOF
20377 #define GETLOADAVG_PRIVILEGED 1
20384 if test $ac_cv_func_getloadavg_setgid = yes; then
20385 { $as_echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
20386 $as_echo_n "checking group of
/dev
/kmem...
" >&6; }
20387 if test "${ac_cv_group_kmem+set}" = set; then
20388 $as_echo_n "(cached
) " >&6
20390 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20391 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20392 # If we got an error (system does not support symlinks), try without -L.
20393 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20394 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20395 | sed -ne 's/[ ][ ]*/ /g;
20396 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20400 { $as_echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
20401 $as_echo "$ac_cv_group_kmem" >&6; }
20402 KMEM_GROUP=$ac_cv_group_kmem
20404 if test "x
$ac_save_LIBS" = x; then
20405 GETLOADAVG_LIBS=$LIBS
20407 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|
$ac_save_LIBS||
"`
20413 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
20414 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
20415 if test "${ac_cv_sys_largefile_source+set}" = set; then
20416 $as_echo_n "(cached
) " >&6
20419 cat >conftest.$ac_ext <<_ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20425 #include <sys/types.h> /* for off_t */
20430 int (*fp) (FILE *, off_t, int) = fseeko;
20431 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20436 rm -f conftest.$ac_objext conftest$ac_exeext
20437 if { (ac_try="$ac_link"
20438 case "(($ac_try" in
20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440 *) ac_try_echo=$ac_try;;
20442 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20443 $as_echo "$ac_try_echo") >&5
20444 (eval "$ac_link") 2>conftest.er1
20446 grep -v '^ *+' conftest.er1 >conftest.err
20448 cat conftest.err >&5
20449 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20450 (exit $ac_status); } && {
20451 test -z "$ac_c_werror_flag" ||
20452 test ! -s conftest.err
20453 } && test -s conftest$ac_exeext && {
20454 test "$cross_compiling" = yes ||
20455 $as_test_x conftest$ac_exeext
20457 ac_cv_sys_largefile_source=no; break
20459 $as_echo "$as_me: failed program was
:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20465 rm -rf conftest.dSYM
20466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20467 conftest$ac_exeext conftest.$ac_ext
20468 cat >conftest.$ac_ext <<_ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 #define _LARGEFILE_SOURCE 1
20475 #include <sys/types.h> /* for off_t */
20480 int (*fp) (FILE *, off_t, int) = fseeko;
20481 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20486 rm -f conftest.$ac_objext conftest$ac_exeext
20487 if { (ac_try="$ac_link"
20488 case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20492 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20493 $as_echo "$ac_try_echo") >&5
20494 (eval "$ac_link") 2>conftest.er1
20496 grep -v '^ *+' conftest.er1 >conftest.err
20498 cat conftest.err >&5
20499 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20500 (exit $ac_status); } && {
20501 test -z "$ac_c_werror_flag" ||
20502 test ! -s conftest.err
20503 } && test -s conftest$ac_exeext && {
20504 test "$cross_compiling" = yes ||
20505 $as_test_x conftest$ac_exeext
20507 ac_cv_sys_largefile_source=1; break
20509 $as_echo "$as_me: failed program was
:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20515 rm -rf conftest.dSYM
20516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20517 conftest$ac_exeext conftest.$ac_ext
20518 ac_cv_sys_largefile_source=unknown
20522 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
20523 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20524 case $ac_cv_sys_largefile_source in #(
20527 cat >>confdefs.h <<_ACEOF
20528 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20534 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20535 # in glibc 2.1.3, but that breaks too many other things.
20536 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20537 if test $ac_cv_sys_largefile_source != unknown; then
20539 cat >>confdefs.h <<\_ACEOF
20540 #define HAVE_FSEEKO 1
20546 # Configure getopt.
20547 # getopt.m4 serial 10
20549 # The getopt module assume you want GNU getopt, with getopt_long etc,
20550 # rather than vanilla POSIX getopt. This means your your code should
20551 # always include <getopt.h> for the getopt prototypes.
20563 # Prerequisites of lib/getopt*.
20570 for ac_header in getopt.h
20572 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20573 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20574 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20575 $as_echo_n "checking
for $ac_header...
" >&6; }
20576 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20577 $as_echo_n "(cached
) " >&6
20579 ac_res=`eval 'as_val=${'$as_ac_Header'}
20580 $as_echo "$as_val"'`
20581 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20582 $as_echo "$ac_res" >&6; }
20584 # Is the header compilable?
20585 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20586 $as_echo_n "checking
$ac_header usability...
" >&6; }
20587 cat >conftest.$ac_ext <<_ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 $ac_includes_default
20594 #include <$ac_header>
20596 rm -f conftest.$ac_objext
20597 if { (ac_try="$ac_compile"
20598 case "(($ac_try" in
20599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600 *) ac_try_echo=$ac_try;;
20602 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20603 $as_echo "$ac_try_echo") >&5
20604 (eval "$ac_compile") 2>conftest.er1
20606 grep -v '^ *+' conftest.er1 >conftest.err
20608 cat conftest.err >&5
20609 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20610 (exit $ac_status); } && {
20611 test -z "$ac_c_werror_flag" ||
20612 test ! -s conftest.err
20613 } && test -s conftest.$ac_objext; then
20614 ac_header_compiler=yes
20616 $as_echo "$as_me: failed program was
:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20619 ac_header_compiler=no
20622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20623 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20624 $as_echo "$ac_header_compiler" >&6; }
20626 # Is the header present?
20627 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20628 $as_echo_n "checking
$ac_header presence...
" >&6; }
20629 cat >conftest.$ac_ext <<_ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 #include <$ac_header>
20637 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20638 case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20642 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20643 $as_echo "$ac_try_echo") >&5
20644 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20646 grep -v '^ *+' conftest.er1 >conftest.err
20648 cat conftest.err >&5
20649 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20650 (exit $ac_status); } >/dev/null && {
20651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20654 ac_header_preproc=yes
20656 $as_echo "$as_me: failed program was
:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20659 ac_header_preproc=no
20662 rm -f conftest.err conftest.$ac_ext
20663 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20664 $as_echo "$ac_header_preproc" >&6; }
20666 # So? What about this header?
20667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20669 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20670 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20671 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20672 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20673 ac_header_preproc=yes
20676 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20677 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20678 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20679 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20680 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20681 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20682 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20683 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20684 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20685 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20686 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20687 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20691 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
20692 $as_echo_n "checking
for $ac_header...
" >&6; }
20693 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20694 $as_echo_n "(cached
) " >&6
20696 eval "$as_ac_Header=\
$ac_header_preproc"
20698 ac_res=`eval 'as_val=${'$as_ac_Header'}
20699 $as_echo "$as_val"'`
20700 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20701 $as_echo "$ac_res" >&6; }
20704 if test `eval 'as_val=${'$as_ac_Header'}
20705 $as_echo "$as_val"'` = yes; then
20706 cat >>confdefs.h <<_ACEOF
20707 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20716 if test -z "$GETOPT_H"; then
20718 for ac_func in getopt_long_only
20720 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20721 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20722 $as_echo_n "checking
for $ac_func...
" >&6; }
20723 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20724 $as_echo_n "(cached
) " >&6
20726 cat >conftest.$ac_ext <<_ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h. */
20732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20734 #define $ac_func innocuous_$ac_func
20736 /* System header to define __stub macros and hopefully few prototypes,
20737 which can conflict with char $ac_func (); below.
20738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20739 <limits.h> exists even on freestanding compilers. */
20742 # include <limits.h>
20744 # include <assert.h>
20749 /* Override any GCC internal prototype to avoid an error.
20750 Use char because int might match the return type of a GCC
20751 builtin and then its argument prototype would still apply. */
20756 /* The GNU C library defines this for functions which it implements
20757 to always fail with ENOSYS. Some functions are actually named
20758 something starting with __ and the normal name is an alias. */
20759 #if defined __stub_$ac_func || defined __stub___$ac_func
20766 return $ac_func ();
20771 rm -f conftest.$ac_objext conftest$ac_exeext
20772 if { (ac_try="$ac_link"
20773 case "(($ac_try" in
20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20777 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20778 $as_echo "$ac_try_echo") >&5
20779 (eval "$ac_link") 2>conftest.er1
20781 grep -v '^ *+' conftest.er1 >conftest.err
20783 cat conftest.err >&5
20784 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20785 (exit $ac_status); } && {
20786 test -z "$ac_c_werror_flag" ||
20787 test ! -s conftest.err
20788 } && test -s conftest$ac_exeext && {
20789 test "$cross_compiling" = yes ||
20790 $as_test_x conftest$ac_exeext
20792 eval "$as_ac_var=yes"
20794 $as_echo "$as_me: failed program was
:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20797 eval "$as_ac_var=no
"
20800 rm -rf conftest.dSYM
20801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20802 conftest$ac_exeext conftest.$ac_ext
20804 ac_res=`eval 'as_val=${'$as_ac_var'}
20805 $as_echo "$as_val"'`
20806 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20807 $as_echo "$ac_res" >&6; }
20808 if test `eval 'as_val=${'$as_ac_var'}
20809 $as_echo "$as_val"'` = yes; then
20810 cat >>confdefs.h <<_ACEOF
20811 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20821 if test -z "$GETOPT_H"; then
20822 { $as_echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
20823 $as_echo_n "checking whether optreset is declared...
" >&6; }
20824 if test "${ac_cv_have_decl_optreset+set}" = set; then
20825 $as_echo_n "(cached
) " >&6
20827 cat >conftest.$ac_ext <<_ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h. */
20833 #include <getopt.h>
20846 rm -f conftest.$ac_objext
20847 if { (ac_try="$ac_compile"
20848 case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20852 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20853 $as_echo "$ac_try_echo") >&5
20854 (eval "$ac_compile") 2>conftest.er1
20856 grep -v '^ *+' conftest.er1 >conftest.err
20858 cat conftest.err >&5
20859 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20860 (exit $ac_status); } && {
20861 test -z "$ac_c_werror_flag" ||
20862 test ! -s conftest.err
20863 } && test -s conftest.$ac_objext; then
20864 ac_cv_have_decl_optreset=yes
20866 $as_echo "$as_me: failed program was
:" >&5
20867 sed 's/^/| /' conftest.$ac_ext >&5
20869 ac_cv_have_decl_optreset=no
20872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20874 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
20875 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20876 if test $ac_cv_have_decl_optreset = yes; then
20882 if test -z "$GETOPT_H"; then
20883 { $as_echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
20884 $as_echo_n "checking
for working GNU getopt
function...
" >&6; }
20885 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20886 $as_echo_n "(cached
) " >&6
20888 if test "$cross_compiling" = yes; then
20889 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
20890 $as_echo_n "checking whether getopt_clip is declared...
" >&6; }
20891 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20892 $as_echo_n "(cached
) " >&6
20894 cat >conftest.$ac_ext <<_ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20900 #include <getopt.h>
20905 #ifndef getopt_clip
20906 (void) getopt_clip;
20913 rm -f conftest.$ac_objext
20914 if { (ac_try="$ac_compile"
20915 case "(($ac_try" in
20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917 *) ac_try_echo=$ac_try;;
20919 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20920 $as_echo "$ac_try_echo") >&5
20921 (eval "$ac_compile") 2>conftest.er1
20923 grep -v '^ *+' conftest.er1 >conftest.err
20925 cat conftest.err >&5
20926 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20927 (exit $ac_status); } && {
20928 test -z "$ac_c_werror_flag" ||
20929 test ! -s conftest.err
20930 } && test -s conftest.$ac_objext; then
20931 ac_cv_have_decl_getopt_clip=yes
20933 $as_echo "$as_me: failed program was
:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20936 ac_cv_have_decl_getopt_clip=no
20939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
20942 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20943 if test $ac_cv_have_decl_getopt_clip = yes; then
20944 gl_cv_func_gnu_getopt=no
20946 gl_cv_func_gnu_getopt=yes
20950 cat >conftest.$ac_ext <<_ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 #include <getopt.h>
20962 myargv[0] = "conftest
";
20965 return getopt (2, myargv, "+a
") != '?';
20971 rm -f conftest$ac_exeext
20972 if { (ac_try="$ac_link"
20973 case "(($ac_try" in
20974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20975 *) ac_try_echo=$ac_try;;
20977 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20978 $as_echo "$ac_try_echo") >&5
20979 (eval "$ac_link") 2>&5
20981 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20983 { (case "(($ac_try" in
20984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985 *) ac_try_echo=$ac_try;;
20987 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20988 $as_echo "$ac_try_echo") >&5
20989 (eval "$ac_try") 2>&5
20991 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20992 (exit $ac_status); }; }; then
20993 gl_cv_func_gnu_getopt=yes
20995 $as_echo "$as_me: program exited with status
$ac_status" >&5
20996 $as_echo "$as_me: failed program was
:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20999 ( exit $ac_status )
21000 gl_cv_func_gnu_getopt=no
21002 rm -rf conftest.dSYM
21003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21008 { $as_echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
21009 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21010 if test "$gl_cv_func_gnu_getopt" = "no
"; then
21017 if test -n "$GETOPT_H"; then
21022 cat >>confdefs.h <<\_ACEOF
21023 #define __GETOPT_PREFIX rpl_
21029 GETOPTOBJS='getopt.o getopt1.o'
21036 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
21037 $as_echo_n "checking whether getpgrp requires zero arguments...
" >&6; }
21038 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21039 $as_echo_n "(cached
) " >&6
21041 # Use it with a single arg.
21042 cat >conftest.$ac_ext <<_ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21048 $ac_includes_default
21057 rm -f conftest.$ac_objext
21058 if { (ac_try="$ac_compile"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21063 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21064 $as_echo "$ac_try_echo") >&5
21065 (eval "$ac_compile") 2>conftest.er1
21067 grep -v '^ *+' conftest.er1 >conftest.err
21069 cat conftest.err >&5
21070 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21071 (exit $ac_status); } && {
21072 test -z "$ac_c_werror_flag" ||
21073 test ! -s conftest.err
21074 } && test -s conftest.$ac_objext; then
21075 ac_cv_func_getpgrp_void=no
21077 $as_echo "$as_me: failed program was
:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21080 ac_cv_func_getpgrp_void=yes
21083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21086 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
21087 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21088 if test $ac_cv_func_getpgrp_void = yes; then
21090 cat >>confdefs.h <<\_ACEOF
21091 #define GETPGRP_VOID 1
21098 for ac_func in strftime
21100 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21101 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21102 $as_echo_n "checking
for $ac_func...
" >&6; }
21103 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21104 $as_echo_n "(cached
) " >&6
21106 cat >conftest.$ac_ext <<_ACEOF
21109 cat confdefs.h >>conftest.$ac_ext
21110 cat >>conftest.$ac_ext <<_ACEOF
21111 /* end confdefs.h. */
21112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21114 #define $ac_func innocuous_$ac_func
21116 /* System header to define __stub macros and hopefully few prototypes,
21117 which can conflict with char $ac_func (); below.
21118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21119 <limits.h> exists even on freestanding compilers. */
21122 # include <limits.h>
21124 # include <assert.h>
21129 /* Override any GCC internal prototype to avoid an error.
21130 Use char because int might match the return type of a GCC
21131 builtin and then its argument prototype would still apply. */
21136 /* The GNU C library defines this for functions which it implements
21137 to always fail with ENOSYS. Some functions are actually named
21138 something starting with __ and the normal name is an alias. */
21139 #if defined __stub_$ac_func || defined __stub___$ac_func
21146 return $ac_func ();
21151 rm -f conftest.$ac_objext conftest$ac_exeext
21152 if { (ac_try="$ac_link"
21153 case "(($ac_try" in
21154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21155 *) ac_try_echo=$ac_try;;
21157 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21158 $as_echo "$ac_try_echo") >&5
21159 (eval "$ac_link") 2>conftest.er1
21161 grep -v '^ *+' conftest.er1 >conftest.err
21163 cat conftest.err >&5
21164 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21165 (exit $ac_status); } && {
21166 test -z "$ac_c_werror_flag" ||
21167 test ! -s conftest.err
21168 } && test -s conftest$ac_exeext && {
21169 test "$cross_compiling" = yes ||
21170 $as_test_x conftest$ac_exeext
21172 eval "$as_ac_var=yes"
21174 $as_echo "$as_me: failed program was
:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21177 eval "$as_ac_var=no
"
21180 rm -rf conftest.dSYM
21181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21182 conftest$ac_exeext conftest.$ac_ext
21184 ac_res=`eval 'as_val=${'$as_ac_var'}
21185 $as_echo "$as_val"'`
21186 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21187 $as_echo "$ac_res" >&6; }
21188 if test `eval 'as_val=${'$as_ac_var'}
21189 $as_echo "$as_val"'` = yes; then
21190 cat >>confdefs.h <<_ACEOF
21191 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21195 # strftime is in -lintl on SCO UNIX.
21196 { $as_echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
21197 $as_echo_n "checking
for strftime
in -lintl...
" >&6; }
21198 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21199 $as_echo_n "(cached
) " >&6
21201 ac_check_lib_save_LIBS=$LIBS
21202 LIBS="-lintl $LIBS"
21203 cat >conftest.$ac_ext <<_ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21210 /* Override any GCC internal prototype to avoid an error.
21211 Use char because int might match the return type of a GCC
21212 builtin and then its argument prototype would still apply. */
21220 return strftime ();
21225 rm -f conftest.$ac_objext conftest$ac_exeext
21226 if { (ac_try="$ac_link"
21227 case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21231 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21232 $as_echo "$ac_try_echo") >&5
21233 (eval "$ac_link") 2>conftest.er1
21235 grep -v '^ *+' conftest.er1 >conftest.err
21237 cat conftest.err >&5
21238 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21239 (exit $ac_status); } && {
21240 test -z "$ac_c_werror_flag" ||
21241 test ! -s conftest.err
21242 } && test -s conftest$ac_exeext && {
21243 test "$cross_compiling" = yes ||
21244 $as_test_x conftest$ac_exeext
21246 ac_cv_lib_intl_strftime=yes
21248 $as_echo "$as_me: failed program was
:" >&5
21249 sed 's/^/| /' conftest.$ac_ext >&5
21251 ac_cv_lib_intl_strftime=no
21254 rm -rf conftest.dSYM
21255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21256 conftest$ac_exeext conftest.$ac_ext
21257 LIBS=$ac_check_lib_save_LIBS
21259 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
21260 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21261 if test $ac_cv_lib_intl_strftime = yes; then
21262 cat >>confdefs.h <<\_ACEOF
21263 #define HAVE_STRFTIME 1
21266 LIBS="-lintl $LIBS"
21275 for ac_func in grantpt
21277 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21278 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21279 $as_echo_n "checking
for $ac_func...
" >&6; }
21280 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21281 $as_echo_n "(cached
) " >&6
21283 cat >conftest.$ac_ext <<_ACEOF
21286 cat confdefs.h >>conftest.$ac_ext
21287 cat >>conftest.$ac_ext <<_ACEOF
21288 /* end confdefs.h. */
21289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21291 #define $ac_func innocuous_$ac_func
21293 /* System header to define __stub macros and hopefully few prototypes,
21294 which can conflict with char $ac_func (); below.
21295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21296 <limits.h> exists even on freestanding compilers. */
21299 # include <limits.h>
21301 # include <assert.h>
21306 /* Override any GCC internal prototype to avoid an error.
21307 Use char because int might match the return type of a GCC
21308 builtin and then its argument prototype would still apply. */
21313 /* The GNU C library defines this for functions which it implements
21314 to always fail with ENOSYS. Some functions are actually named
21315 something starting with __ and the normal name is an alias. */
21316 #if defined __stub_$ac_func || defined __stub___$ac_func
21323 return $ac_func ();
21328 rm -f conftest.$ac_objext conftest$ac_exeext
21329 if { (ac_try="$ac_link"
21330 case "(($ac_try" in
21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332 *) ac_try_echo=$ac_try;;
21334 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21335 $as_echo "$ac_try_echo") >&5
21336 (eval "$ac_link") 2>conftest.er1
21338 grep -v '^ *+' conftest.er1 >conftest.err
21340 cat conftest.err >&5
21341 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21342 (exit $ac_status); } && {
21343 test -z "$ac_c_werror_flag" ||
21344 test ! -s conftest.err
21345 } && test -s conftest$ac_exeext && {
21346 test "$cross_compiling" = yes ||
21347 $as_test_x conftest$ac_exeext
21349 eval "$as_ac_var=yes"
21351 $as_echo "$as_me: failed program was
:" >&5
21352 sed 's/^/| /' conftest.$ac_ext >&5
21354 eval "$as_ac_var=no
"
21357 rm -rf conftest.dSYM
21358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21359 conftest$ac_exeext conftest.$ac_ext
21361 ac_res=`eval 'as_val=${'$as_ac_var'}
21362 $as_echo "$as_val"'`
21363 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21364 $as_echo "$ac_res" >&6; }
21365 if test `eval 'as_val=${'$as_ac_var'}
21366 $as_echo "$as_val"'` = yes; then
21367 cat >>confdefs.h <<_ACEOF
21368 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21375 # PTY-related GNU extensions.
21377 for ac_func in getpt
21379 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21380 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21381 $as_echo_n "checking
for $ac_func...
" >&6; }
21382 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21383 $as_echo_n "(cached
) " >&6
21385 cat >conftest.$ac_ext <<_ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21393 #define $ac_func innocuous_$ac_func
21395 /* System header to define __stub macros and hopefully few prototypes,
21396 which can conflict with char $ac_func (); below.
21397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21398 <limits.h> exists even on freestanding compilers. */
21401 # include <limits.h>
21403 # include <assert.h>
21408 /* Override any GCC internal prototype to avoid an error.
21409 Use char because int might match the return type of a GCC
21410 builtin and then its argument prototype would still apply. */
21415 /* The GNU C library defines this for functions which it implements
21416 to always fail with ENOSYS. Some functions are actually named
21417 something starting with __ and the normal name is an alias. */
21418 #if defined __stub_$ac_func || defined __stub___$ac_func
21425 return $ac_func ();
21430 rm -f conftest.$ac_objext conftest$ac_exeext
21431 if { (ac_try="$ac_link"
21432 case "(($ac_try" in
21433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434 *) ac_try_echo=$ac_try;;
21436 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21437 $as_echo "$ac_try_echo") >&5
21438 (eval "$ac_link") 2>conftest.er1
21440 grep -v '^ *+' conftest.er1 >conftest.err
21442 cat conftest.err >&5
21443 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21444 (exit $ac_status); } && {
21445 test -z "$ac_c_werror_flag" ||
21446 test ! -s conftest.err
21447 } && test -s conftest$ac_exeext && {
21448 test "$cross_compiling" = yes ||
21449 $as_test_x conftest$ac_exeext
21451 eval "$as_ac_var=yes"
21453 $as_echo "$as_me: failed program was
:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21456 eval "$as_ac_var=no
"
21459 rm -rf conftest.dSYM
21460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21461 conftest$ac_exeext conftest.$ac_ext
21463 ac_res=`eval 'as_val=${'$as_ac_var'}
21464 $as_echo "$as_val"'`
21465 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21466 $as_echo "$ac_res" >&6; }
21467 if test `eval 'as_val=${'$as_ac_var'}
21468 $as_echo "$as_val"'` = yes; then
21469 cat >>confdefs.h <<_ACEOF
21470 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21477 # Check this now, so that we will NOT find the above functions in ncurses.
21478 # That is because we have not set up to link ncurses in lib-src.
21479 # It's better to believe a function is not available
21480 # than to expect to find it in ncurses.
21481 # Also we need tputs and friends to be able to build at all.
21482 have_tputs_et_al=true
21483 { $as_echo "$as_me:$LINENO: checking
for library containing tputs
" >&5
21484 $as_echo_n "checking
for library containing tputs...
" >&6; }
21485 if test "${ac_cv_search_tputs+set}" = set; then
21486 $as_echo_n "(cached
) " >&6
21488 ac_func_search_save_LIBS=$LIBS
21489 cat >conftest.$ac_ext <<_ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21496 /* Override any GCC internal prototype to avoid an error.
21497 Use char because int might match the return type of a GCC
21498 builtin and then its argument prototype would still apply. */
21511 for ac_lib in '' ncurses terminfo termcap; do
21512 if test -z "$ac_lib"; then
21513 ac_res="none required
"
21516 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21518 rm -f conftest.$ac_objext conftest$ac_exeext
21519 if { (ac_try="$ac_link"
21520 case "(($ac_try" in
21521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21522 *) ac_try_echo=$ac_try;;
21524 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21525 $as_echo "$ac_try_echo") >&5
21526 (eval "$ac_link") 2>conftest.er1
21528 grep -v '^ *+' conftest.er1 >conftest.err
21530 cat conftest.err >&5
21531 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21532 (exit $ac_status); } && {
21533 test -z "$ac_c_werror_flag" ||
21534 test ! -s conftest.err
21535 } && test -s conftest$ac_exeext && {
21536 test "$cross_compiling" = yes ||
21537 $as_test_x conftest$ac_exeext
21539 ac_cv_search_tputs=$ac_res
21541 $as_echo "$as_me: failed program was
:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21547 rm -rf conftest.dSYM
21548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21550 if test "${ac_cv_search_tputs+set}" = set; then
21554 if test "${ac_cv_search_tputs+set}" = set; then
21557 ac_cv_search_tputs=no
21559 rm conftest.$ac_ext
21560 LIBS=$ac_func_search_save_LIBS
21562 { $as_echo "$as_me:$LINENO: result
: $ac_cv_search_tputs" >&5
21563 $as_echo "$ac_cv_search_tputs" >&6; }
21564 ac_res=$ac_cv_search_tputs
21565 if test "$ac_res" != no; then
21566 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
21569 have_tputs_et_al=false
21572 if test "$have_tputs_et_al" != true; then
21573 { { $as_echo "$as_me:$LINENO: error
: I couldn
't find termcap functions (tputs and friends).
21574 Maybe some development libraries/packages are missing? Try installing
21575 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21576 $as_echo "$as_me: error: I couldn't
find termcap functions
(tputs and friends
).
21577 Maybe some development libraries
/packages are missing? Try installing
21578 libncurses-dev
(el
), libterminfo-dev
(el
) or similar.
" >&2;}
21579 { (exit 1); exit 1; }; }
21581 # Must define this when any termcap library is found.
21583 cat >>confdefs.h <<\_ACEOF
21584 #define HAVE_LIBNCURSES 1
21587 ## FIXME This was the cpp logic, but I am not sure it is right.
21588 ## The above test has not necessarily found libncurses.
21589 HAVE_LIBNCURSES=yes
21591 ## Use terminfo instead of termcap?
21592 ## Note only system files NOT using terminfo are:
21593 ## bsd-common, freebsd < 40000, ms-w32, msdos, netbsd, and
21594 ## darwin|gnu without ncurses.
21598 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21599 ## hpux10-20: Use the system provided termcap(3) library.
21600 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21601 ## is necessary. Otherwise Emacs dumps core when run -nw.
21602 aix4-2|cygwin|hpux*|irix6-5|openbsd|usg5-4|sol2*|unixware) TERMINFO=yes ;;
21604 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21605 ## The ncurses library has been moved out of the System framework in
21606 ## Mac OS X 10.2. So if configure detects it, set the command-line
21607 ## option to use it.
21609 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21610 if test "x
$HAVE_LIBNCURSES" = "xyes
"; then
21612 LIBS_TERMCAP="-lncurses"
21617 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo
" >&5
21618 $as_echo_n "checking whether FreeBSD is new enough to use terminfo...
" >&6; }
21619 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21620 $as_echo_n "(cached
) " >&6
21622 cat >conftest.$ac_ext <<_ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628 #include <osreldate.h>
21632 #if __FreeBSD_version < 400000
21640 rm -f conftest.$ac_objext conftest$ac_exeext
21641 if { (ac_try="$ac_link"
21642 case "(($ac_try" in
21643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21644 *) ac_try_echo=$ac_try;;
21646 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21647 $as_echo "$ac_try_echo") >&5
21648 (eval "$ac_link") 2>conftest.er1
21650 grep -v '^ *+' conftest.er1 >conftest.err
21652 cat conftest.err >&5
21653 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21654 (exit $ac_status); } && {
21655 test -z "$ac_c_werror_flag" ||
21656 test ! -s conftest.err
21657 } && test -s conftest$ac_exeext && {
21658 test "$cross_compiling" = yes ||
21659 $as_test_x conftest$ac_exeext
21661 emacs_cv_freebsd_terminfo=yes
21663 $as_echo "$as_me: failed program was
:" >&5
21664 sed 's/^/| /' conftest.$ac_ext >&5
21666 emacs_cv_freebsd_terminfo=no
21669 rm -rf conftest.dSYM
21670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21671 conftest$ac_exeext conftest.$ac_ext
21675 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_freebsd_terminfo" >&5
21676 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21678 if test $emacs_cv_freebsd_terminfo = yes; then
21680 LIBS_TERMCAP="-lncurses"
21682 LIBS_TERMCAP="-ltermcap"
21689 ## hpux: Make sure we get select from libc rather than from libcurses
21690 ## because libcurses on HPUX 10.10 has a broken version of select.
21691 ## We used to use -lc -lcurses, but this may be cleaner.
21692 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
21694 openbsd) LIBS_TERMCAP="-lncurses" ;;
21696 ## Must use system termcap, if we use any termcap. It does special things.
21697 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21700 TERMCAP_OBJ=tparam.o
21701 if test $TERMINFO = yes; then
21703 cat >>confdefs.h <<\_ACEOF
21708 ## Default used to be -ltermcap. Add a case above if need something else.
21709 test "x
$LIBS_TERMCAP" = "x
" && LIBS_TERMCAP="-lcurses"
21711 TERMCAP_OBJ=terminfo.o
21717 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21719 cat >conftest.$ac_ext <<_ACEOF
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h. */
21725 #include <netinet/in.h>
21726 #include <arpa/nameser.h>
21727 #include <resolv.h>
21736 rm -f conftest.$ac_objext conftest$ac_exeext
21737 if { (ac_try="$ac_link"
21738 case "(($ac_try" in
21739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21740 *) ac_try_echo=$ac_try;;
21742 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21743 $as_echo "$ac_try_echo") >&5
21744 (eval "$ac_link") 2>conftest.er1
21746 grep -v '^ *+' conftest.er1 >conftest.err
21748 cat conftest.err >&5
21749 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21750 (exit $ac_status); } && {
21751 test -z "$ac_c_werror_flag" ||
21752 test ! -s conftest.err
21753 } && test -s conftest$ac_exeext && {
21754 test "$cross_compiling" = yes ||
21755 $as_test_x conftest$ac_exeext
21759 $as_echo "$as_me: failed program was
:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21765 rm -rf conftest.dSYM
21766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21767 conftest$ac_exeext conftest.$ac_ext
21768 if test "$have_res_init" = no; then
21770 LIBS="$LIBS -lresolv"
21771 { $as_echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
21772 $as_echo_n "checking
for res_init with
-lresolv...
" >&6; }
21773 cat >conftest.$ac_ext <<_ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h. */
21779 #include <netinet/in.h>
21780 #include <arpa/nameser.h>
21781 #include <resolv.h>
21790 rm -f conftest.$ac_objext conftest$ac_exeext
21791 if { (ac_try="$ac_link"
21792 case "(($ac_try" in
21793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794 *) ac_try_echo=$ac_try;;
21796 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21797 $as_echo "$ac_try_echo") >&5
21798 (eval "$ac_link") 2>conftest.er1
21800 grep -v '^ *+' conftest.er1 >conftest.err
21802 cat conftest.err >&5
21803 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21804 (exit $ac_status); } && {
21805 test -z "$ac_c_werror_flag" ||
21806 test ! -s conftest.err
21807 } && test -s conftest$ac_exeext && {
21808 test "$cross_compiling" = yes ||
21809 $as_test_x conftest$ac_exeext
21813 $as_echo "$as_me: failed program was
:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21819 rm -rf conftest.dSYM
21820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21821 conftest$ac_exeext conftest.$ac_ext
21822 { $as_echo "$as_me:$LINENO: result
: $have_res_init" >&5
21823 $as_echo "$have_res_init" >&6; }
21824 if test "$have_res_init" = yes ; then
21830 if test "$have_res_init" = yes; then
21832 cat >>confdefs.h <<\_ACEOF
21833 #define HAVE_RES_INIT 1
21838 # Do we need the Hesiod library to provide the support routines?
21840 if test "$with_hesiod" != no ; then
21841 # Don't set $LIBS here -- see comments above. FIXME which comments?
21842 { $as_echo "$as_me:$LINENO: checking
for res_send
" >&5
21843 $as_echo_n "checking
for res_send...
" >&6; }
21844 if test "${ac_cv_func_res_send+set}" = set; then
21845 $as_echo_n "(cached
) " >&6
21847 cat >conftest.$ac_ext <<_ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h. */
21853 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21855 #define res_send innocuous_res_send
21857 /* System header to define __stub macros and hopefully few prototypes,
21858 which can conflict with char res_send (); below.
21859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21860 <limits.h> exists even on freestanding compilers. */
21863 # include <limits.h>
21865 # include <assert.h>
21870 /* Override any GCC internal prototype to avoid an error.
21871 Use char because int might match the return type of a GCC
21872 builtin and then its argument prototype would still apply. */
21877 /* The GNU C library defines this for functions which it implements
21878 to always fail with ENOSYS. Some functions are actually named
21879 something starting with __ and the normal name is an alias. */
21880 #if defined __stub_res_send || defined __stub___res_send
21887 return res_send ();
21892 rm -f conftest.$ac_objext conftest$ac_exeext
21893 if { (ac_try="$ac_link"
21894 case "(($ac_try" in
21895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21896 *) ac_try_echo=$ac_try;;
21898 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21899 $as_echo "$ac_try_echo") >&5
21900 (eval "$ac_link") 2>conftest.er1
21902 grep -v '^ *+' conftest.er1 >conftest.err
21904 cat conftest.err >&5
21905 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21906 (exit $ac_status); } && {
21907 test -z "$ac_c_werror_flag" ||
21908 test ! -s conftest.err
21909 } && test -s conftest$ac_exeext && {
21910 test "$cross_compiling" = yes ||
21911 $as_test_x conftest$ac_exeext
21913 ac_cv_func_res_send=yes
21915 $as_echo "$as_me: failed program was
:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21918 ac_cv_func_res_send=no
21921 rm -rf conftest.dSYM
21922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21923 conftest$ac_exeext conftest.$ac_ext
21925 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
21926 $as_echo "$ac_cv_func_res_send" >&6; }
21927 if test $ac_cv_func_res_send = yes; then
21930 { $as_echo "$as_me:$LINENO: checking
for __res_send
" >&5
21931 $as_echo_n "checking
for __res_send...
" >&6; }
21932 if test "${ac_cv_func___res_send+set}" = set; then
21933 $as_echo_n "(cached
) " >&6
21935 cat >conftest.$ac_ext <<_ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21941 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21943 #define __res_send innocuous___res_send
21945 /* System header to define __stub macros and hopefully few prototypes,
21946 which can conflict with char __res_send (); below.
21947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21948 <limits.h> exists even on freestanding compilers. */
21951 # include <limits.h>
21953 # include <assert.h>
21958 /* Override any GCC internal prototype to avoid an error.
21959 Use char because int might match the return type of a GCC
21960 builtin and then its argument prototype would still apply. */
21964 char __res_send ();
21965 /* The GNU C library defines this for functions which it implements
21966 to always fail with ENOSYS. Some functions are actually named
21967 something starting with __ and the normal name is an alias. */
21968 #if defined __stub___res_send || defined __stub_____res_send
21975 return __res_send ();
21980 rm -f conftest.$ac_objext conftest$ac_exeext
21981 if { (ac_try="$ac_link"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21986 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21987 $as_echo "$ac_try_echo") >&5
21988 (eval "$ac_link") 2>conftest.er1
21990 grep -v '^ *+' conftest.er1 >conftest.err
21992 cat conftest.err >&5
21993 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21994 (exit $ac_status); } && {
21995 test -z "$ac_c_werror_flag" ||
21996 test ! -s conftest.err
21997 } && test -s conftest$ac_exeext && {
21998 test "$cross_compiling" = yes ||
21999 $as_test_x conftest$ac_exeext
22001 ac_cv_func___res_send=yes
22003 $as_echo "$as_me: failed program was
:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22006 ac_cv_func___res_send=no
22009 rm -rf conftest.dSYM
22010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22011 conftest$ac_exeext conftest.$ac_ext
22013 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
22014 $as_echo "$ac_cv_func___res_send" >&6; }
22015 if test $ac_cv_func___res_send = yes; then
22018 { $as_echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
22019 $as_echo_n "checking
for res_send
in -lresolv...
" >&6; }
22020 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22021 $as_echo_n "(cached
) " >&6
22023 ac_check_lib_save_LIBS=$LIBS
22024 LIBS="-lresolv $LIBS"
22025 cat >conftest.$ac_ext <<_ACEOF
22028 cat confdefs.h >>conftest.$ac_ext
22029 cat >>conftest.$ac_ext <<_ACEOF
22030 /* end confdefs.h. */
22032 /* Override any GCC internal prototype to avoid an error.
22033 Use char because int might match the return type of a GCC
22034 builtin and then its argument prototype would still apply. */
22042 return res_send ();
22047 rm -f conftest.$ac_objext conftest$ac_exeext
22048 if { (ac_try="$ac_link"
22049 case "(($ac_try" in
22050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051 *) ac_try_echo=$ac_try;;
22053 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22054 $as_echo "$ac_try_echo") >&5
22055 (eval "$ac_link") 2>conftest.er1
22057 grep -v '^ *+' conftest.er1 >conftest.err
22059 cat conftest.err >&5
22060 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22061 (exit $ac_status); } && {
22062 test -z "$ac_c_werror_flag" ||
22063 test ! -s conftest.err
22064 } && test -s conftest$ac_exeext && {
22065 test "$cross_compiling" = yes ||
22066 $as_test_x conftest$ac_exeext
22068 ac_cv_lib_resolv_res_send=yes
22070 $as_echo "$as_me: failed program was
:" >&5
22071 sed 's/^/| /' conftest.$ac_ext >&5
22073 ac_cv_lib_resolv_res_send=no
22076 rm -rf conftest.dSYM
22077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22078 conftest$ac_exeext conftest.$ac_ext
22079 LIBS=$ac_check_lib_save_LIBS
22081 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
22082 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22083 if test $ac_cv_lib_resolv_res_send = yes; then
22086 { $as_echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
22087 $as_echo_n "checking
for __res_send
in -lresolv...
" >&6; }
22088 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22089 $as_echo_n "(cached
) " >&6
22091 ac_check_lib_save_LIBS=$LIBS
22092 LIBS="-lresolv $LIBS"
22093 cat >conftest.$ac_ext <<_ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h. */
22100 /* Override any GCC internal prototype to avoid an error.
22101 Use char because int might match the return type of a GCC
22102 builtin and then its argument prototype would still apply. */
22106 char __res_send ();
22110 return __res_send ();
22115 rm -f conftest.$ac_objext conftest$ac_exeext
22116 if { (ac_try="$ac_link"
22117 case "(($ac_try" in
22118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22119 *) ac_try_echo=$ac_try;;
22121 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22122 $as_echo "$ac_try_echo") >&5
22123 (eval "$ac_link") 2>conftest.er1
22125 grep -v '^ *+' conftest.er1 >conftest.err
22127 cat conftest.err >&5
22128 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22129 (exit $ac_status); } && {
22130 test -z "$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22132 } && test -s conftest$ac_exeext && {
22133 test "$cross_compiling" = yes ||
22134 $as_test_x conftest$ac_exeext
22136 ac_cv_lib_resolv___res_send=yes
22138 $as_echo "$as_me: failed program was
:" >&5
22139 sed 's/^/| /' conftest.$ac_ext >&5
22141 ac_cv_lib_resolv___res_send=no
22144 rm -rf conftest.dSYM
22145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22146 conftest$ac_exeext conftest.$ac_ext
22147 LIBS=$ac_check_lib_save_LIBS
22149 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
22150 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22151 if test $ac_cv_lib_resolv___res_send = yes; then
22161 if test "$resolv" = yes ; then
22166 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
22167 $as_echo_n "checking
for hes_getmailhost...
" >&6; }
22168 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22169 $as_echo_n "(cached
) " >&6
22171 cat >conftest.$ac_ext <<_ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h. */
22177 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22179 #define hes_getmailhost innocuous_hes_getmailhost
22181 /* System header to define __stub macros and hopefully few prototypes,
22182 which can conflict with char hes_getmailhost (); below.
22183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22184 <limits.h> exists even on freestanding compilers. */
22187 # include <limits.h>
22189 # include <assert.h>
22192 #undef hes_getmailhost
22194 /* Override any GCC internal prototype to avoid an error.
22195 Use char because int might match the return type of a GCC
22196 builtin and then its argument prototype would still apply. */
22200 char hes_getmailhost ();
22201 /* The GNU C library defines this for functions which it implements
22202 to always fail with ENOSYS. Some functions are actually named
22203 something starting with __ and the normal name is an alias. */
22204 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22211 return hes_getmailhost ();
22216 rm -f conftest.$ac_objext conftest$ac_exeext
22217 if { (ac_try="$ac_link"
22218 case "(($ac_try" in
22219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22220 *) ac_try_echo=$ac_try;;
22222 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22223 $as_echo "$ac_try_echo") >&5
22224 (eval "$ac_link") 2>conftest.er1
22226 grep -v '^ *+' conftest.er1 >conftest.err
22228 cat conftest.err >&5
22229 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22230 (exit $ac_status); } && {
22231 test -z "$ac_c_werror_flag" ||
22232 test ! -s conftest.err
22233 } && test -s conftest$ac_exeext && {
22234 test "$cross_compiling" = yes ||
22235 $as_test_x conftest$ac_exeext
22237 ac_cv_func_hes_getmailhost=yes
22239 $as_echo "$as_me: failed program was
:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22242 ac_cv_func_hes_getmailhost=no
22245 rm -rf conftest.dSYM
22246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22247 conftest$ac_exeext conftest.$ac_ext
22249 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
22250 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22251 if test $ac_cv_func_hes_getmailhost = yes; then
22254 { $as_echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
22255 $as_echo_n "checking
for hes_getmailhost
in -lhesiod...
" >&6; }
22256 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22257 $as_echo_n "(cached
) " >&6
22259 ac_check_lib_save_LIBS=$LIBS
22260 LIBS="-lhesiod $RESOLVLIB $LIBS"
22261 cat >conftest.$ac_ext <<_ACEOF
22264 cat confdefs.h >>conftest.$ac_ext
22265 cat >>conftest.$ac_ext <<_ACEOF
22266 /* end confdefs.h. */
22268 /* Override any GCC internal prototype to avoid an error.
22269 Use char because int might match the return type of a GCC
22270 builtin and then its argument prototype would still apply. */
22274 char hes_getmailhost ();
22278 return hes_getmailhost ();
22283 rm -f conftest.$ac_objext conftest$ac_exeext
22284 if { (ac_try="$ac_link"
22285 case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22289 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22290 $as_echo "$ac_try_echo") >&5
22291 (eval "$ac_link") 2>conftest.er1
22293 grep -v '^ *+' conftest.er1 >conftest.err
22295 cat conftest.err >&5
22296 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22297 (exit $ac_status); } && {
22298 test -z "$ac_c_werror_flag" ||
22299 test ! -s conftest.err
22300 } && test -s conftest$ac_exeext && {
22301 test "$cross_compiling" = yes ||
22302 $as_test_x conftest$ac_exeext
22304 ac_cv_lib_hesiod_hes_getmailhost=yes
22306 $as_echo "$as_me: failed program was
:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22309 ac_cv_lib_hesiod_hes_getmailhost=no
22312 rm -rf conftest.dSYM
22313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22314 conftest$ac_exeext conftest.$ac_ext
22315 LIBS=$ac_check_lib_save_LIBS
22317 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22318 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22319 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
22328 if test x"$hesiod" = xyes; then
22330 cat >>confdefs.h <<\_ACEOF
22331 #define HAVE_LIBHESIOD 1
22339 # Do we need libresolv (due to res_init or Hesiod)?
22340 if test "$resolv" = yes ; then
22342 cat >>confdefs.h <<\_ACEOF
22343 #define HAVE_LIBRESOLV 1
22352 # These tell us which Kerberos-related libraries to use.
22359 if test "${with_kerberos}" != no; then
22360 { $as_echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
22361 $as_echo_n "checking
for com_err
in -lcom_err...
" >&6; }
22362 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22363 $as_echo_n "(cached
) " >&6
22365 ac_check_lib_save_LIBS=$LIBS
22366 LIBS="-lcom_err $LIBS"
22367 cat >conftest.$ac_ext <<_ACEOF
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h. */
22374 /* Override any GCC internal prototype to avoid an error.
22375 Use char because int might match the return type of a GCC
22376 builtin and then its argument prototype would still apply. */
22389 rm -f conftest.$ac_objext conftest$ac_exeext
22390 if { (ac_try="$ac_link"
22391 case "(($ac_try" in
22392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22393 *) ac_try_echo=$ac_try;;
22395 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22396 $as_echo "$ac_try_echo") >&5
22397 (eval "$ac_link") 2>conftest.er1
22399 grep -v '^ *+' conftest.er1 >conftest.err
22401 cat conftest.err >&5
22402 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22403 (exit $ac_status); } && {
22404 test -z "$ac_c_werror_flag" ||
22405 test ! -s conftest.err
22406 } && test -s conftest$ac_exeext && {
22407 test "$cross_compiling" = yes ||
22408 $as_test_x conftest$ac_exeext
22410 ac_cv_lib_com_err_com_err=yes
22412 $as_echo "$as_me: failed program was
:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22415 ac_cv_lib_com_err_com_err=no
22418 rm -rf conftest.dSYM
22419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22420 conftest$ac_exeext conftest.$ac_ext
22421 LIBS=$ac_check_lib_save_LIBS
22423 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
22424 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22425 if test $ac_cv_lib_com_err_com_err = yes; then
22431 if test $have_com_err = yes; then
22432 COM_ERRLIB=-lcom_err
22433 LIBS="$COM_ERRLIB $LIBS"
22435 cat >>confdefs.h <<\_ACEOF
22436 #define HAVE_LIBCOM_ERR 1
22440 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
22441 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lcrypto...
" >&6; }
22442 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22443 $as_echo_n "(cached
) " >&6
22445 ac_check_lib_save_LIBS=$LIBS
22446 LIBS="-lcrypto $LIBS"
22447 cat >conftest.$ac_ext <<_ACEOF
22450 cat confdefs.h >>conftest.$ac_ext
22451 cat >>conftest.$ac_ext <<_ACEOF
22452 /* end confdefs.h. */
22454 /* Override any GCC internal prototype to avoid an error.
22455 Use char because int might match the return type of a GCC
22456 builtin and then its argument prototype would still apply. */
22460 char mit_des_cbc_encrypt ();
22464 return mit_des_cbc_encrypt ();
22469 rm -f conftest.$ac_objext conftest$ac_exeext
22470 if { (ac_try="$ac_link"
22471 case "(($ac_try" in
22472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473 *) ac_try_echo=$ac_try;;
22475 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22476 $as_echo "$ac_try_echo") >&5
22477 (eval "$ac_link") 2>conftest.er1
22479 grep -v '^ *+' conftest.er1 >conftest.err
22481 cat conftest.err >&5
22482 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22483 (exit $ac_status); } && {
22484 test -z "$ac_c_werror_flag" ||
22485 test ! -s conftest.err
22486 } && test -s conftest$ac_exeext && {
22487 test "$cross_compiling" = yes ||
22488 $as_test_x conftest$ac_exeext
22490 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22492 $as_echo "$as_me: failed program was
:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22495 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22498 rm -rf conftest.dSYM
22499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22500 conftest$ac_exeext conftest.$ac_ext
22501 LIBS=$ac_check_lib_save_LIBS
22503 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22504 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22505 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22511 if test $have_crypto = yes; then
22513 LIBS="$CRYPTOLIB $LIBS"
22515 cat >>confdefs.h <<\_ACEOF
22516 #define HAVE_LIBCRYPTO 1
22520 { $as_echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
22521 $as_echo_n "checking
for mit_des_cbc_encrypt
in -lk5crypto...
" >&6; }
22522 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22523 $as_echo_n "(cached
) " >&6
22525 ac_check_lib_save_LIBS=$LIBS
22526 LIBS="-lk5crypto $LIBS"
22527 cat >conftest.$ac_ext <<_ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h. */
22534 /* Override any GCC internal prototype to avoid an error.
22535 Use char because int might match the return type of a GCC
22536 builtin and then its argument prototype would still apply. */
22540 char mit_des_cbc_encrypt ();
22544 return mit_des_cbc_encrypt ();
22549 rm -f conftest.$ac_objext conftest$ac_exeext
22550 if { (ac_try="$ac_link"
22551 case "(($ac_try" in
22552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553 *) ac_try_echo=$ac_try;;
22555 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22556 $as_echo "$ac_try_echo") >&5
22557 (eval "$ac_link") 2>conftest.er1
22559 grep -v '^ *+' conftest.er1 >conftest.err
22561 cat conftest.err >&5
22562 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22563 (exit $ac_status); } && {
22564 test -z "$ac_c_werror_flag" ||
22565 test ! -s conftest.err
22566 } && test -s conftest$ac_exeext && {
22567 test "$cross_compiling" = yes ||
22568 $as_test_x conftest$ac_exeext
22570 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22572 $as_echo "$as_me: failed program was
:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22575 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22578 rm -rf conftest.dSYM
22579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22580 conftest$ac_exeext conftest.$ac_ext
22581 LIBS=$ac_check_lib_save_LIBS
22583 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22584 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22585 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22591 if test $have_k5crypto = yes; then
22592 CRYPTOLIB=-lk5crypto
22593 LIBS="$CRYPTOLIB $LIBS"
22595 cat >>confdefs.h <<\_ACEOF
22596 #define HAVE_LIBK5CRYPTO 1
22600 { $as_echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
22601 $as_echo_n "checking
for krb5_init_context
in -lkrb5...
" >&6; }
22602 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22603 $as_echo_n "(cached
) " >&6
22605 ac_check_lib_save_LIBS=$LIBS
22606 LIBS="-lkrb5 $LIBS"
22607 cat >conftest.$ac_ext <<_ACEOF
22610 cat confdefs.h >>conftest.$ac_ext
22611 cat >>conftest.$ac_ext <<_ACEOF
22612 /* end confdefs.h. */
22614 /* Override any GCC internal prototype to avoid an error.
22615 Use char because int might match the return type of a GCC
22616 builtin and then its argument prototype would still apply. */
22620 char krb5_init_context ();
22624 return krb5_init_context ();
22629 rm -f conftest.$ac_objext conftest$ac_exeext
22630 if { (ac_try="$ac_link"
22631 case "(($ac_try" in
22632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633 *) ac_try_echo=$ac_try;;
22635 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22636 $as_echo "$ac_try_echo") >&5
22637 (eval "$ac_link") 2>conftest.er1
22639 grep -v '^ *+' conftest.er1 >conftest.err
22641 cat conftest.err >&5
22642 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22643 (exit $ac_status); } && {
22644 test -z "$ac_c_werror_flag" ||
22645 test ! -s conftest.err
22646 } && test -s conftest$ac_exeext && {
22647 test "$cross_compiling" = yes ||
22648 $as_test_x conftest$ac_exeext
22650 ac_cv_lib_krb5_krb5_init_context=yes
22652 $as_echo "$as_me: failed program was
:" >&5
22653 sed 's/^/| /' conftest.$ac_ext >&5
22655 ac_cv_lib_krb5_krb5_init_context=no
22658 rm -rf conftest.dSYM
22659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22660 conftest$ac_exeext conftest.$ac_ext
22661 LIBS=$ac_check_lib_save_LIBS
22663 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
22664 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22665 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22671 if test $have_krb5=yes; then
22673 LIBS="$KRB5LIB $LIBS"
22675 cat >>confdefs.h <<\_ACEOF
22676 #define HAVE_LIBKRB5 1
22680 if test "${with_kerberos5}" = no; then
22681 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
22682 $as_echo_n "checking
for des_cbc_encrypt
in -ldes425...
" >&6; }
22683 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22684 $as_echo_n "(cached
) " >&6
22686 ac_check_lib_save_LIBS=$LIBS
22687 LIBS="-ldes425 $LIBS"
22688 cat >conftest.$ac_ext <<_ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h. */
22695 /* Override any GCC internal prototype to avoid an error.
22696 Use char because int might match the return type of a GCC
22697 builtin and then its argument prototype would still apply. */
22701 char des_cbc_encrypt ();
22705 return des_cbc_encrypt ();
22710 rm -f conftest.$ac_objext conftest$ac_exeext
22711 if { (ac_try="$ac_link"
22712 case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22716 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22717 $as_echo "$ac_try_echo") >&5
22718 (eval "$ac_link") 2>conftest.er1
22720 grep -v '^ *+' conftest.er1 >conftest.err
22722 cat conftest.err >&5
22723 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22724 (exit $ac_status); } && {
22725 test -z "$ac_c_werror_flag" ||
22726 test ! -s conftest.err
22727 } && test -s conftest$ac_exeext && {
22728 test "$cross_compiling" = yes ||
22729 $as_test_x conftest$ac_exeext
22731 ac_cv_lib_des425_des_cbc_encrypt=yes
22733 $as_echo "$as_me: failed program was
:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22736 ac_cv_lib_des425_des_cbc_encrypt=no
22739 rm -rf conftest.dSYM
22740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22741 conftest$ac_exeext conftest.$ac_ext
22742 LIBS=$ac_check_lib_save_LIBS
22744 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22745 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22746 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22752 if test $have_des425 = yes; then
22754 LIBS="$DESLIB $LIBS"
22756 cat >>confdefs.h <<\_ACEOF
22757 #define HAVE_LIBDES425 1
22761 { $as_echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
22762 $as_echo_n "checking
for des_cbc_encrypt
in -ldes...
" >&6; }
22763 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22764 $as_echo_n "(cached
) " >&6
22766 ac_check_lib_save_LIBS=$LIBS
22768 cat >conftest.$ac_ext <<_ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h. */
22775 /* Override any GCC internal prototype to avoid an error.
22776 Use char because int might match the return type of a GCC
22777 builtin and then its argument prototype would still apply. */
22781 char des_cbc_encrypt ();
22785 return des_cbc_encrypt ();
22790 rm -f conftest.$ac_objext conftest$ac_exeext
22791 if { (ac_try="$ac_link"
22792 case "(($ac_try" in
22793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794 *) ac_try_echo=$ac_try;;
22796 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22797 $as_echo "$ac_try_echo") >&5
22798 (eval "$ac_link") 2>conftest.er1
22800 grep -v '^ *+' conftest.er1 >conftest.err
22802 cat conftest.err >&5
22803 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22804 (exit $ac_status); } && {
22805 test -z "$ac_c_werror_flag" ||
22806 test ! -s conftest.err
22807 } && test -s conftest$ac_exeext && {
22808 test "$cross_compiling" = yes ||
22809 $as_test_x conftest$ac_exeext
22811 ac_cv_lib_des_des_cbc_encrypt=yes
22813 $as_echo "$as_me: failed program was
:" >&5
22814 sed 's/^/| /' conftest.$ac_ext >&5
22816 ac_cv_lib_des_des_cbc_encrypt=no
22819 rm -rf conftest.dSYM
22820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22821 conftest$ac_exeext conftest.$ac_ext
22822 LIBS=$ac_check_lib_save_LIBS
22824 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
22825 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22826 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22832 if test $have_des = yes; then
22834 LIBS="$DESLIB $LIBS"
22836 cat >>confdefs.h <<\_ACEOF
22837 #define HAVE_LIBDES 1
22842 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
22843 $as_echo_n "checking
for krb_get_cred
in -lkrb4...
" >&6; }
22844 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22845 $as_echo_n "(cached
) " >&6
22847 ac_check_lib_save_LIBS=$LIBS
22848 LIBS="-lkrb4 $LIBS"
22849 cat >conftest.$ac_ext <<_ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22856 /* Override any GCC internal prototype to avoid an error.
22857 Use char because int might match the return type of a GCC
22858 builtin and then its argument prototype would still apply. */
22862 char krb_get_cred ();
22866 return krb_get_cred ();
22871 rm -f conftest.$ac_objext conftest$ac_exeext
22872 if { (ac_try="$ac_link"
22873 case "(($ac_try" in
22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22877 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22878 $as_echo "$ac_try_echo") >&5
22879 (eval "$ac_link") 2>conftest.er1
22881 grep -v '^ *+' conftest.er1 >conftest.err
22883 cat conftest.err >&5
22884 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22885 (exit $ac_status); } && {
22886 test -z "$ac_c_werror_flag" ||
22887 test ! -s conftest.err
22888 } && test -s conftest$ac_exeext && {
22889 test "$cross_compiling" = yes ||
22890 $as_test_x conftest$ac_exeext
22892 ac_cv_lib_krb4_krb_get_cred=yes
22894 $as_echo "$as_me: failed program was
:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22897 ac_cv_lib_krb4_krb_get_cred=no
22900 rm -rf conftest.dSYM
22901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22902 conftest$ac_exeext conftest.$ac_ext
22903 LIBS=$ac_check_lib_save_LIBS
22905 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
22906 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22907 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22913 if test $have_krb4 = yes; then
22915 LIBS="$KRB4LIB $LIBS"
22917 cat >>confdefs.h <<\_ACEOF
22918 #define HAVE_LIBKRB4 1
22922 { $as_echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
22923 $as_echo_n "checking
for krb_get_cred
in -lkrb...
" >&6; }
22924 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22925 $as_echo_n "(cached
) " >&6
22927 ac_check_lib_save_LIBS=$LIBS
22929 cat >conftest.$ac_ext <<_ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h. */
22936 /* Override any GCC internal prototype to avoid an error.
22937 Use char because int might match the return type of a GCC
22938 builtin and then its argument prototype would still apply. */
22942 char krb_get_cred ();
22946 return krb_get_cred ();
22951 rm -f conftest.$ac_objext conftest$ac_exeext
22952 if { (ac_try="$ac_link"
22953 case "(($ac_try" in
22954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22955 *) ac_try_echo=$ac_try;;
22957 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22958 $as_echo "$ac_try_echo") >&5
22959 (eval "$ac_link") 2>conftest.er1
22961 grep -v '^ *+' conftest.er1 >conftest.err
22963 cat conftest.err >&5
22964 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22965 (exit $ac_status); } && {
22966 test -z "$ac_c_werror_flag" ||
22967 test ! -s conftest.err
22968 } && test -s conftest$ac_exeext && {
22969 test "$cross_compiling" = yes ||
22970 $as_test_x conftest$ac_exeext
22972 ac_cv_lib_krb_krb_get_cred=yes
22974 $as_echo "$as_me: failed program was
:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22977 ac_cv_lib_krb_krb_get_cred=no
22980 rm -rf conftest.dSYM
22981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22982 conftest$ac_exeext conftest.$ac_ext
22983 LIBS=$ac_check_lib_save_LIBS
22985 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
22986 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22987 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22993 if test $have_krb = yes; then
22995 LIBS="$KRB4LIB $LIBS"
22997 cat >>confdefs.h <<\_ACEOF
22998 #define HAVE_LIBKRB 1
23005 if test "${with_kerberos5}" != no; then
23007 for ac_header in krb5.h
23009 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23010 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23011 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23012 $as_echo_n "checking
for $ac_header...
" >&6; }
23013 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23014 $as_echo_n "(cached
) " >&6
23016 ac_res=`eval 'as_val=${'$as_ac_Header'}
23017 $as_echo "$as_val"'`
23018 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23019 $as_echo "$ac_res" >&6; }
23021 # Is the header compilable?
23022 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23023 $as_echo_n "checking
$ac_header usability...
" >&6; }
23024 cat >conftest.$ac_ext <<_ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23030 $ac_includes_default
23031 #include <$ac_header>
23033 rm -f conftest.$ac_objext
23034 if { (ac_try="$ac_compile"
23035 case "(($ac_try" in
23036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037 *) ac_try_echo=$ac_try;;
23039 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23040 $as_echo "$ac_try_echo") >&5
23041 (eval "$ac_compile") 2>conftest.er1
23043 grep -v '^ *+' conftest.er1 >conftest.err
23045 cat conftest.err >&5
23046 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23047 (exit $ac_status); } && {
23048 test -z "$ac_c_werror_flag" ||
23049 test ! -s conftest.err
23050 } && test -s conftest.$ac_objext; then
23051 ac_header_compiler=yes
23053 $as_echo "$as_me: failed program was
:" >&5
23054 sed 's/^/| /' conftest.$ac_ext >&5
23056 ac_header_compiler=no
23059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23060 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23061 $as_echo "$ac_header_compiler" >&6; }
23063 # Is the header present?
23064 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23065 $as_echo_n "checking
$ac_header presence...
" >&6; }
23066 cat >conftest.$ac_ext <<_ACEOF
23069 cat confdefs.h >>conftest.$ac_ext
23070 cat >>conftest.$ac_ext <<_ACEOF
23071 /* end confdefs.h. */
23072 #include <$ac_header>
23074 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23075 case "(($ac_try" in
23076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077 *) ac_try_echo=$ac_try;;
23079 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23080 $as_echo "$ac_try_echo") >&5
23081 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23083 grep -v '^ *+' conftest.er1 >conftest.err
23085 cat conftest.err >&5
23086 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23087 (exit $ac_status); } >/dev/null && {
23088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23089 test ! -s conftest.err
23091 ac_header_preproc=yes
23093 $as_echo "$as_me: failed program was
:" >&5
23094 sed 's/^/| /' conftest.$ac_ext >&5
23096 ac_header_preproc=no
23099 rm -f conftest.err conftest.$ac_ext
23100 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23101 $as_echo "$ac_header_preproc" >&6; }
23103 # So? What about this header?
23104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23106 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23107 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23108 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23110 ac_header_preproc=yes
23113 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23114 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23115 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23116 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23117 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23118 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23119 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23120 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23121 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23122 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23123 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23124 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23128 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23129 $as_echo_n "checking
for $ac_header...
" >&6; }
23130 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23131 $as_echo_n "(cached
) " >&6
23133 eval "$as_ac_Header=\
$ac_header_preproc"
23135 ac_res=`eval 'as_val=${'$as_ac_Header'}
23136 $as_echo "$as_val"'`
23137 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23138 $as_echo "$ac_res" >&6; }
23141 if test `eval 'as_val=${'$as_ac_Header'}
23142 $as_echo "$as_val"'` = yes; then
23143 cat >>confdefs.h <<_ACEOF
23144 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23146 { $as_echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
23147 $as_echo_n "checking
for krb5_error.text...
" >&6; }
23148 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23149 $as_echo_n "(cached
) " >&6
23151 cat >conftest.$ac_ext <<_ACEOF
23154 cat confdefs.h >>conftest.$ac_ext
23155 cat >>conftest.$ac_ext <<_ACEOF
23156 /* end confdefs.h. */
23162 static krb5_error ac_aggr;
23169 rm -f conftest.$ac_objext
23170 if { (ac_try="$ac_compile"
23171 case "(($ac_try" in
23172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23173 *) ac_try_echo=$ac_try;;
23175 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23176 $as_echo "$ac_try_echo") >&5
23177 (eval "$ac_compile") 2>conftest.er1
23179 grep -v '^ *+' conftest.er1 >conftest.err
23181 cat conftest.err >&5
23182 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23183 (exit $ac_status); } && {
23184 test -z "$ac_c_werror_flag" ||
23185 test ! -s conftest.err
23186 } && test -s conftest.$ac_objext; then
23187 ac_cv_member_krb5_error_text=yes
23189 $as_echo "$as_me: failed program was
:" >&5
23190 sed 's/^/| /' conftest.$ac_ext >&5
23192 cat >conftest.$ac_ext <<_ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h. */
23203 static krb5_error ac_aggr;
23204 if (sizeof ac_aggr.text)
23210 rm -f conftest.$ac_objext
23211 if { (ac_try="$ac_compile"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23216 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23217 $as_echo "$ac_try_echo") >&5
23218 (eval "$ac_compile") 2>conftest.er1
23220 grep -v '^ *+' conftest.er1 >conftest.err
23222 cat conftest.err >&5
23223 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23224 (exit $ac_status); } && {
23225 test -z "$ac_c_werror_flag" ||
23226 test ! -s conftest.err
23227 } && test -s conftest.$ac_objext; then
23228 ac_cv_member_krb5_error_text=yes
23230 $as_echo "$as_me: failed program was
:" >&5
23231 sed 's/^/| /' conftest.$ac_ext >&5
23233 ac_cv_member_krb5_error_text=no
23236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23241 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
23242 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23243 if test $ac_cv_member_krb5_error_text = yes; then
23245 cat >>confdefs.h <<_ACEOF
23246 #define HAVE_KRB5_ERROR_TEXT 1
23251 { $as_echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
23252 $as_echo_n "checking
for krb5_error.e_text...
" >&6; }
23253 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23254 $as_echo_n "(cached
) " >&6
23256 cat >conftest.$ac_ext <<_ACEOF
23259 cat confdefs.h >>conftest.$ac_ext
23260 cat >>conftest.$ac_ext <<_ACEOF
23261 /* end confdefs.h. */
23267 static krb5_error ac_aggr;
23268 if (ac_aggr.e_text)
23274 rm -f conftest.$ac_objext
23275 if { (ac_try="$ac_compile"
23276 case "(($ac_try" in
23277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278 *) ac_try_echo=$ac_try;;
23280 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23281 $as_echo "$ac_try_echo") >&5
23282 (eval "$ac_compile") 2>conftest.er1
23284 grep -v '^ *+' conftest.er1 >conftest.err
23286 cat conftest.err >&5
23287 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23288 (exit $ac_status); } && {
23289 test -z "$ac_c_werror_flag" ||
23290 test ! -s conftest.err
23291 } && test -s conftest.$ac_objext; then
23292 ac_cv_member_krb5_error_e_text=yes
23294 $as_echo "$as_me: failed program was
:" >&5
23295 sed 's/^/| /' conftest.$ac_ext >&5
23297 cat >conftest.$ac_ext <<_ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h. */
23308 static krb5_error ac_aggr;
23309 if (sizeof ac_aggr.e_text)
23315 rm -f conftest.$ac_objext
23316 if { (ac_try="$ac_compile"
23317 case "(($ac_try" in
23318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319 *) ac_try_echo=$ac_try;;
23321 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23322 $as_echo "$ac_try_echo") >&5
23323 (eval "$ac_compile") 2>conftest.er1
23325 grep -v '^ *+' conftest.er1 >conftest.err
23327 cat conftest.err >&5
23328 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23329 (exit $ac_status); } && {
23330 test -z "$ac_c_werror_flag" ||
23331 test ! -s conftest.err
23332 } && test -s conftest.$ac_objext; then
23333 ac_cv_member_krb5_error_e_text=yes
23335 $as_echo "$as_me: failed program was
:" >&5
23336 sed 's/^/| /' conftest.$ac_ext >&5
23338 ac_cv_member_krb5_error_e_text=no
23341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23346 { $as_echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
23347 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23348 if test $ac_cv_member_krb5_error_e_text = yes; then
23350 cat >>confdefs.h <<_ACEOF
23351 #define HAVE_KRB5_ERROR_E_TEXT 1
23363 for ac_header in des.h
23365 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23366 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23367 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23368 $as_echo_n "checking
for $ac_header...
" >&6; }
23369 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23370 $as_echo_n "(cached
) " >&6
23372 ac_res=`eval 'as_val=${'$as_ac_Header'}
23373 $as_echo "$as_val"'`
23374 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23375 $as_echo "$ac_res" >&6; }
23377 # Is the header compilable?
23378 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23379 $as_echo_n "checking
$ac_header usability...
" >&6; }
23380 cat >conftest.$ac_ext <<_ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h. */
23386 $ac_includes_default
23387 #include <$ac_header>
23389 rm -f conftest.$ac_objext
23390 if { (ac_try="$ac_compile"
23391 case "(($ac_try" in
23392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23393 *) ac_try_echo=$ac_try;;
23395 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23396 $as_echo "$ac_try_echo") >&5
23397 (eval "$ac_compile") 2>conftest.er1
23399 grep -v '^ *+' conftest.er1 >conftest.err
23401 cat conftest.err >&5
23402 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23403 (exit $ac_status); } && {
23404 test -z "$ac_c_werror_flag" ||
23405 test ! -s conftest.err
23406 } && test -s conftest.$ac_objext; then
23407 ac_header_compiler=yes
23409 $as_echo "$as_me: failed program was
:" >&5
23410 sed 's/^/| /' conftest.$ac_ext >&5
23412 ac_header_compiler=no
23415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23416 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23417 $as_echo "$ac_header_compiler" >&6; }
23419 # Is the header present?
23420 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23421 $as_echo_n "checking
$ac_header presence...
" >&6; }
23422 cat >conftest.$ac_ext <<_ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h. */
23428 #include <$ac_header>
23430 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23431 case "(($ac_try" in
23432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23433 *) ac_try_echo=$ac_try;;
23435 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23436 $as_echo "$ac_try_echo") >&5
23437 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23439 grep -v '^ *+' conftest.er1 >conftest.err
23441 cat conftest.err >&5
23442 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23443 (exit $ac_status); } >/dev/null && {
23444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23445 test ! -s conftest.err
23447 ac_header_preproc=yes
23449 $as_echo "$as_me: failed program was
:" >&5
23450 sed 's/^/| /' conftest.$ac_ext >&5
23452 ac_header_preproc=no
23455 rm -f conftest.err conftest.$ac_ext
23456 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23457 $as_echo "$ac_header_preproc" >&6; }
23459 # So? What about this header?
23460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23462 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23463 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23464 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23465 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23466 ac_header_preproc=yes
23469 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23470 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23471 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23472 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23473 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23474 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23475 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23476 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23477 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23478 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23479 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23480 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23484 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23485 $as_echo_n "checking
for $ac_header...
" >&6; }
23486 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23487 $as_echo_n "(cached
) " >&6
23489 eval "$as_ac_Header=\
$ac_header_preproc"
23491 ac_res=`eval 'as_val=${'$as_ac_Header'}
23492 $as_echo "$as_val"'`
23493 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23494 $as_echo "$ac_res" >&6; }
23497 if test `eval 'as_val=${'$as_ac_Header'}
23498 $as_echo "$as_val"'` = yes; then
23499 cat >>confdefs.h <<_ACEOF
23500 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23505 for ac_header in kerberosIV/des.h
23507 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23508 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23509 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23510 $as_echo_n "checking
for $ac_header...
" >&6; }
23511 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23512 $as_echo_n "(cached
) " >&6
23514 ac_res=`eval 'as_val=${'$as_ac_Header'}
23515 $as_echo "$as_val"'`
23516 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23517 $as_echo "$ac_res" >&6; }
23519 # Is the header compilable?
23520 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23521 $as_echo_n "checking
$ac_header usability...
" >&6; }
23522 cat >conftest.$ac_ext <<_ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23528 $ac_includes_default
23529 #include <$ac_header>
23531 rm -f conftest.$ac_objext
23532 if { (ac_try="$ac_compile"
23533 case "(($ac_try" in
23534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535 *) ac_try_echo=$ac_try;;
23537 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23538 $as_echo "$ac_try_echo") >&5
23539 (eval "$ac_compile") 2>conftest.er1
23541 grep -v '^ *+' conftest.er1 >conftest.err
23543 cat conftest.err >&5
23544 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23545 (exit $ac_status); } && {
23546 test -z "$ac_c_werror_flag" ||
23547 test ! -s conftest.err
23548 } && test -s conftest.$ac_objext; then
23549 ac_header_compiler=yes
23551 $as_echo "$as_me: failed program was
:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23554 ac_header_compiler=no
23557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23558 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23559 $as_echo "$ac_header_compiler" >&6; }
23561 # Is the header present?
23562 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23563 $as_echo_n "checking
$ac_header presence...
" >&6; }
23564 cat >conftest.$ac_ext <<_ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h. */
23570 #include <$ac_header>
23572 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23573 case "(($ac_try" in
23574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23575 *) ac_try_echo=$ac_try;;
23577 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23578 $as_echo "$ac_try_echo") >&5
23579 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23581 grep -v '^ *+' conftest.er1 >conftest.err
23583 cat conftest.err >&5
23584 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23585 (exit $ac_status); } >/dev/null && {
23586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23587 test ! -s conftest.err
23589 ac_header_preproc=yes
23591 $as_echo "$as_me: failed program was
:" >&5
23592 sed 's/^/| /' conftest.$ac_ext >&5
23594 ac_header_preproc=no
23597 rm -f conftest.err conftest.$ac_ext
23598 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23599 $as_echo "$ac_header_preproc" >&6; }
23601 # So? What about this header?
23602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23604 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23605 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23606 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23607 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23608 ac_header_preproc=yes
23611 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23612 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23613 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23614 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23615 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23616 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23617 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23618 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23619 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23620 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23621 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23622 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23626 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23627 $as_echo_n "checking
for $ac_header...
" >&6; }
23628 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23629 $as_echo_n "(cached
) " >&6
23631 eval "$as_ac_Header=\
$ac_header_preproc"
23633 ac_res=`eval 'as_val=${'$as_ac_Header'}
23634 $as_echo "$as_val"'`
23635 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23636 $as_echo "$ac_res" >&6; }
23639 if test `eval 'as_val=${'$as_ac_Header'}
23640 $as_echo "$as_val"'` = yes; then
23641 cat >>confdefs.h <<_ACEOF
23642 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23647 for ac_header in kerberos/des.h
23649 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23650 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23651 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23652 $as_echo_n "checking
for $ac_header...
" >&6; }
23653 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23654 $as_echo_n "(cached
) " >&6
23656 ac_res=`eval 'as_val=${'$as_ac_Header'}
23657 $as_echo "$as_val"'`
23658 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23659 $as_echo "$ac_res" >&6; }
23661 # Is the header compilable?
23662 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23663 $as_echo_n "checking
$ac_header usability...
" >&6; }
23664 cat >conftest.$ac_ext <<_ACEOF
23667 cat confdefs.h >>conftest.$ac_ext
23668 cat >>conftest.$ac_ext <<_ACEOF
23669 /* end confdefs.h. */
23670 $ac_includes_default
23671 #include <$ac_header>
23673 rm -f conftest.$ac_objext
23674 if { (ac_try="$ac_compile"
23675 case "(($ac_try" in
23676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23677 *) ac_try_echo=$ac_try;;
23679 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23680 $as_echo "$ac_try_echo") >&5
23681 (eval "$ac_compile") 2>conftest.er1
23683 grep -v '^ *+' conftest.er1 >conftest.err
23685 cat conftest.err >&5
23686 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23687 (exit $ac_status); } && {
23688 test -z "$ac_c_werror_flag" ||
23689 test ! -s conftest.err
23690 } && test -s conftest.$ac_objext; then
23691 ac_header_compiler=yes
23693 $as_echo "$as_me: failed program was
:" >&5
23694 sed 's/^/| /' conftest.$ac_ext >&5
23696 ac_header_compiler=no
23699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23700 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23701 $as_echo "$ac_header_compiler" >&6; }
23703 # Is the header present?
23704 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23705 $as_echo_n "checking
$ac_header presence...
" >&6; }
23706 cat >conftest.$ac_ext <<_ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h. */
23712 #include <$ac_header>
23714 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23715 case "(($ac_try" in
23716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717 *) ac_try_echo=$ac_try;;
23719 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23720 $as_echo "$ac_try_echo") >&5
23721 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23723 grep -v '^ *+' conftest.er1 >conftest.err
23725 cat conftest.err >&5
23726 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23727 (exit $ac_status); } >/dev/null && {
23728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23729 test ! -s conftest.err
23731 ac_header_preproc=yes
23733 $as_echo "$as_me: failed program was
:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23736 ac_header_preproc=no
23739 rm -f conftest.err conftest.$ac_ext
23740 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23741 $as_echo "$ac_header_preproc" >&6; }
23743 # So? What about this header?
23744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23746 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23747 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23748 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23749 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23750 ac_header_preproc=yes
23753 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23754 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23755 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23756 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23757 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23758 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23759 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23760 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23761 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23762 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23763 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23764 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23768 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23769 $as_echo_n "checking
for $ac_header...
" >&6; }
23770 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23771 $as_echo_n "(cached
) " >&6
23773 eval "$as_ac_Header=\
$ac_header_preproc"
23775 ac_res=`eval 'as_val=${'$as_ac_Header'}
23776 $as_echo "$as_val"'`
23777 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23778 $as_echo "$ac_res" >&6; }
23781 if test `eval 'as_val=${'$as_ac_Header'}
23782 $as_echo "$as_val"'` = yes; then
23783 cat >>confdefs.h <<_ACEOF
23784 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23800 for ac_header in krb.h
23802 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23803 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23804 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23805 $as_echo_n "checking
for $ac_header...
" >&6; }
23806 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23807 $as_echo_n "(cached
) " >&6
23809 ac_res=`eval 'as_val=${'$as_ac_Header'}
23810 $as_echo "$as_val"'`
23811 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23812 $as_echo "$ac_res" >&6; }
23814 # Is the header compilable?
23815 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23816 $as_echo_n "checking
$ac_header usability...
" >&6; }
23817 cat >conftest.$ac_ext <<_ACEOF
23820 cat confdefs.h >>conftest.$ac_ext
23821 cat >>conftest.$ac_ext <<_ACEOF
23822 /* end confdefs.h. */
23823 $ac_includes_default
23824 #include <$ac_header>
23826 rm -f conftest.$ac_objext
23827 if { (ac_try="$ac_compile"
23828 case "(($ac_try" in
23829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23830 *) ac_try_echo=$ac_try;;
23832 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23833 $as_echo "$ac_try_echo") >&5
23834 (eval "$ac_compile") 2>conftest.er1
23836 grep -v '^ *+' conftest.er1 >conftest.err
23838 cat conftest.err >&5
23839 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23840 (exit $ac_status); } && {
23841 test -z "$ac_c_werror_flag" ||
23842 test ! -s conftest.err
23843 } && test -s conftest.$ac_objext; then
23844 ac_header_compiler=yes
23846 $as_echo "$as_me: failed program was
:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23849 ac_header_compiler=no
23852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23853 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23854 $as_echo "$ac_header_compiler" >&6; }
23856 # Is the header present?
23857 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23858 $as_echo_n "checking
$ac_header presence...
" >&6; }
23859 cat >conftest.$ac_ext <<_ACEOF
23862 cat confdefs.h >>conftest.$ac_ext
23863 cat >>conftest.$ac_ext <<_ACEOF
23864 /* end confdefs.h. */
23865 #include <$ac_header>
23867 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23868 case "(($ac_try" in
23869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23870 *) ac_try_echo=$ac_try;;
23872 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23873 $as_echo "$ac_try_echo") >&5
23874 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23876 grep -v '^ *+' conftest.er1 >conftest.err
23878 cat conftest.err >&5
23879 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23880 (exit $ac_status); } >/dev/null && {
23881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23882 test ! -s conftest.err
23884 ac_header_preproc=yes
23886 $as_echo "$as_me: failed program was
:" >&5
23887 sed 's/^/| /' conftest.$ac_ext >&5
23889 ac_header_preproc=no
23892 rm -f conftest.err conftest.$ac_ext
23893 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23894 $as_echo "$ac_header_preproc" >&6; }
23896 # So? What about this header?
23897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23899 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23900 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23901 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23902 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23903 ac_header_preproc=yes
23906 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23907 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23908 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23909 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23910 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23911 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23912 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23913 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23914 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23915 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23916 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23917 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23921 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23922 $as_echo_n "checking
for $ac_header...
" >&6; }
23923 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23924 $as_echo_n "(cached
) " >&6
23926 eval "$as_ac_Header=\
$ac_header_preproc"
23928 ac_res=`eval 'as_val=${'$as_ac_Header'}
23929 $as_echo "$as_val"'`
23930 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23931 $as_echo "$ac_res" >&6; }
23934 if test `eval 'as_val=${'$as_ac_Header'}
23935 $as_echo "$as_val"'` = yes; then
23936 cat >>confdefs.h <<_ACEOF
23937 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23942 for ac_header in kerberosIV/krb.h
23944 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23945 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23946 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
23947 $as_echo_n "checking
for $ac_header...
" >&6; }
23948 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23949 $as_echo_n "(cached
) " >&6
23951 ac_res=`eval 'as_val=${'$as_ac_Header'}
23952 $as_echo "$as_val"'`
23953 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
23954 $as_echo "$ac_res" >&6; }
23956 # Is the header compilable?
23957 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23958 $as_echo_n "checking
$ac_header usability...
" >&6; }
23959 cat >conftest.$ac_ext <<_ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h. */
23965 $ac_includes_default
23966 #include <$ac_header>
23968 rm -f conftest.$ac_objext
23969 if { (ac_try="$ac_compile"
23970 case "(($ac_try" in
23971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23972 *) ac_try_echo=$ac_try;;
23974 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23975 $as_echo "$ac_try_echo") >&5
23976 (eval "$ac_compile") 2>conftest.er1
23978 grep -v '^ *+' conftest.er1 >conftest.err
23980 cat conftest.err >&5
23981 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23982 (exit $ac_status); } && {
23983 test -z "$ac_c_werror_flag" ||
23984 test ! -s conftest.err
23985 } && test -s conftest.$ac_objext; then
23986 ac_header_compiler=yes
23988 $as_echo "$as_me: failed program was
:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23991 ac_header_compiler=no
23994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23995 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23996 $as_echo "$ac_header_compiler" >&6; }
23998 # Is the header present?
23999 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24000 $as_echo_n "checking
$ac_header presence...
" >&6; }
24001 cat >conftest.$ac_ext <<_ACEOF
24004 cat confdefs.h >>conftest.$ac_ext
24005 cat >>conftest.$ac_ext <<_ACEOF
24006 /* end confdefs.h. */
24007 #include <$ac_header>
24009 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24010 case "(($ac_try" in
24011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24012 *) ac_try_echo=$ac_try;;
24014 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24015 $as_echo "$ac_try_echo") >&5
24016 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24018 grep -v '^ *+' conftest.er1 >conftest.err
24020 cat conftest.err >&5
24021 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24022 (exit $ac_status); } >/dev/null && {
24023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24024 test ! -s conftest.err
24026 ac_header_preproc=yes
24028 $as_echo "$as_me: failed program was
:" >&5
24029 sed 's/^/| /' conftest.$ac_ext >&5
24031 ac_header_preproc=no
24034 rm -f conftest.err conftest.$ac_ext
24035 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24036 $as_echo "$ac_header_preproc" >&6; }
24038 # So? What about this header?
24039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24041 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24042 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24043 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24044 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24045 ac_header_preproc=yes
24048 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24049 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24050 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24051 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24052 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24053 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24054 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24055 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24056 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24057 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24058 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24059 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24063 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24064 $as_echo_n "checking
for $ac_header...
" >&6; }
24065 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24066 $as_echo_n "(cached
) " >&6
24068 eval "$as_ac_Header=\
$ac_header_preproc"
24070 ac_res=`eval 'as_val=${'$as_ac_Header'}
24071 $as_echo "$as_val"'`
24072 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24073 $as_echo "$ac_res" >&6; }
24076 if test `eval 'as_val=${'$as_ac_Header'}
24077 $as_echo "$as_val"'` = yes; then
24078 cat >>confdefs.h <<_ACEOF
24079 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24084 for ac_header in kerberos/krb.h
24086 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24087 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24088 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24089 $as_echo_n "checking
for $ac_header...
" >&6; }
24090 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24091 $as_echo_n "(cached
) " >&6
24093 ac_res=`eval 'as_val=${'$as_ac_Header'}
24094 $as_echo "$as_val"'`
24095 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24096 $as_echo "$ac_res" >&6; }
24098 # Is the header compilable?
24099 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24100 $as_echo_n "checking
$ac_header usability...
" >&6; }
24101 cat >conftest.$ac_ext <<_ACEOF
24104 cat confdefs.h >>conftest.$ac_ext
24105 cat >>conftest.$ac_ext <<_ACEOF
24106 /* end confdefs.h. */
24107 $ac_includes_default
24108 #include <$ac_header>
24110 rm -f conftest.$ac_objext
24111 if { (ac_try="$ac_compile"
24112 case "(($ac_try" in
24113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24114 *) ac_try_echo=$ac_try;;
24116 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24117 $as_echo "$ac_try_echo") >&5
24118 (eval "$ac_compile") 2>conftest.er1
24120 grep -v '^ *+' conftest.er1 >conftest.err
24122 cat conftest.err >&5
24123 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24124 (exit $ac_status); } && {
24125 test -z "$ac_c_werror_flag" ||
24126 test ! -s conftest.err
24127 } && test -s conftest.$ac_objext; then
24128 ac_header_compiler=yes
24130 $as_echo "$as_me: failed program was
:" >&5
24131 sed 's/^/| /' conftest.$ac_ext >&5
24133 ac_header_compiler=no
24136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24137 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24138 $as_echo "$ac_header_compiler" >&6; }
24140 # Is the header present?
24141 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24142 $as_echo_n "checking
$ac_header presence...
" >&6; }
24143 cat >conftest.$ac_ext <<_ACEOF
24146 cat confdefs.h >>conftest.$ac_ext
24147 cat >>conftest.$ac_ext <<_ACEOF
24148 /* end confdefs.h. */
24149 #include <$ac_header>
24151 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24152 case "(($ac_try" in
24153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24154 *) ac_try_echo=$ac_try;;
24156 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24157 $as_echo "$ac_try_echo") >&5
24158 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24160 grep -v '^ *+' conftest.er1 >conftest.err
24162 cat conftest.err >&5
24163 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24164 (exit $ac_status); } >/dev/null && {
24165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24166 test ! -s conftest.err
24168 ac_header_preproc=yes
24170 $as_echo "$as_me: failed program was
:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24173 ac_header_preproc=no
24176 rm -f conftest.err conftest.$ac_ext
24177 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24178 $as_echo "$ac_header_preproc" >&6; }
24180 # So? What about this header?
24181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24183 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24184 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24185 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24186 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24187 ac_header_preproc=yes
24190 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24191 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24192 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24193 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24194 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24195 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24196 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24197 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24198 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24199 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24200 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24201 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24205 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24206 $as_echo_n "checking
for $ac_header...
" >&6; }
24207 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24208 $as_echo_n "(cached
) " >&6
24210 eval "$as_ac_Header=\
$ac_header_preproc"
24212 ac_res=`eval 'as_val=${'$as_ac_Header'}
24213 $as_echo "$as_val"'`
24214 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24215 $as_echo "$ac_res" >&6; }
24218 if test `eval 'as_val=${'$as_ac_Header'}
24219 $as_echo "$as_val"'` = yes; then
24220 cat >>confdefs.h <<_ACEOF
24221 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24238 for ac_header in com_err.h
24240 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
24241 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24242 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24243 $as_echo_n "checking
for $ac_header...
" >&6; }
24244 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24245 $as_echo_n "(cached
) " >&6
24247 ac_res=`eval 'as_val=${'$as_ac_Header'}
24248 $as_echo "$as_val"'`
24249 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24250 $as_echo "$ac_res" >&6; }
24252 # Is the header compilable?
24253 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
24254 $as_echo_n "checking
$ac_header usability...
" >&6; }
24255 cat >conftest.$ac_ext <<_ACEOF
24258 cat confdefs.h >>conftest.$ac_ext
24259 cat >>conftest.$ac_ext <<_ACEOF
24260 /* end confdefs.h. */
24261 $ac_includes_default
24262 #include <$ac_header>
24264 rm -f conftest.$ac_objext
24265 if { (ac_try="$ac_compile"
24266 case "(($ac_try" in
24267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24268 *) ac_try_echo=$ac_try;;
24270 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24271 $as_echo "$ac_try_echo") >&5
24272 (eval "$ac_compile") 2>conftest.er1
24274 grep -v '^ *+' conftest.er1 >conftest.err
24276 cat conftest.err >&5
24277 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24278 (exit $ac_status); } && {
24279 test -z "$ac_c_werror_flag" ||
24280 test ! -s conftest.err
24281 } && test -s conftest.$ac_objext; then
24282 ac_header_compiler=yes
24284 $as_echo "$as_me: failed program was
:" >&5
24285 sed 's/^/| /' conftest.$ac_ext >&5
24287 ac_header_compiler=no
24290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24291 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24292 $as_echo "$ac_header_compiler" >&6; }
24294 # Is the header present?
24295 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
24296 $as_echo_n "checking
$ac_header presence...
" >&6; }
24297 cat >conftest.$ac_ext <<_ACEOF
24300 cat confdefs.h >>conftest.$ac_ext
24301 cat >>conftest.$ac_ext <<_ACEOF
24302 /* end confdefs.h. */
24303 #include <$ac_header>
24305 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24306 case "(($ac_try" in
24307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24308 *) ac_try_echo=$ac_try;;
24310 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24311 $as_echo "$ac_try_echo") >&5
24312 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24314 grep -v '^ *+' conftest.er1 >conftest.err
24316 cat conftest.err >&5
24317 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24318 (exit $ac_status); } >/dev/null && {
24319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24320 test ! -s conftest.err
24322 ac_header_preproc=yes
24324 $as_echo "$as_me: failed program was
:" >&5
24325 sed 's/^/| /' conftest.$ac_ext >&5
24327 ac_header_preproc=no
24330 rm -f conftest.err conftest.$ac_ext
24331 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24332 $as_echo "$ac_header_preproc" >&6; }
24334 # So? What about this header?
24335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24337 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
24338 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24339 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
24340 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
24341 ac_header_preproc=yes
24344 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
24345 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
24346 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
24347 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
24348 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
24349 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
24350 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
24351 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
24352 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
24353 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
24354 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
24355 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
24359 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
24360 $as_echo_n "checking
for $ac_header...
" >&6; }
24361 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
24362 $as_echo_n "(cached
) " >&6
24364 eval "$as_ac_Header=\
$ac_header_preproc"
24366 ac_res=`eval 'as_val=${'$as_ac_Header'}
24367 $as_echo "$as_val"'`
24368 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24369 $as_echo "$ac_res" >&6; }
24372 if test `eval 'as_val=${'$as_ac_Header'}
24373 $as_echo "$as_val"'` = yes; then
24374 cat >>confdefs.h <<_ACEOF
24375 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
24390 # Solaris requires -lintl if you want strerror (which calls dgettext)
24391 # to return localized messages.
24393 { $as_echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
24394 $as_echo_n "checking
for dgettext
in -lintl...
" >&6; }
24395 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24396 $as_echo_n "(cached
) " >&6
24398 ac_check_lib_save_LIBS=$LIBS
24399 LIBS="-lintl $LIBS"
24400 cat >conftest.$ac_ext <<_ACEOF
24403 cat confdefs.h >>conftest.$ac_ext
24404 cat >>conftest.$ac_ext <<_ACEOF
24405 /* end confdefs.h. */
24407 /* Override any GCC internal prototype to avoid an error.
24408 Use char because int might match the return type of a GCC
24409 builtin and then its argument prototype would still apply. */
24417 return dgettext ();
24422 rm -f conftest.$ac_objext conftest$ac_exeext
24423 if { (ac_try="$ac_link"
24424 case "(($ac_try" in
24425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24426 *) ac_try_echo=$ac_try;;
24428 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24429 $as_echo "$ac_try_echo") >&5
24430 (eval "$ac_link") 2>conftest.er1
24432 grep -v '^ *+' conftest.er1 >conftest.err
24434 cat conftest.err >&5
24435 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24436 (exit $ac_status); } && {
24437 test -z "$ac_c_werror_flag" ||
24438 test ! -s conftest.err
24439 } && test -s conftest$ac_exeext && {
24440 test "$cross_compiling" = yes ||
24441 $as_test_x conftest$ac_exeext
24443 ac_cv_lib_intl_dgettext=yes
24445 $as_echo "$as_me: failed program was
:" >&5
24446 sed 's/^/| /' conftest.$ac_ext >&5
24448 ac_cv_lib_intl_dgettext=no
24451 rm -rf conftest.dSYM
24452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24453 conftest$ac_exeext conftest.$ac_ext
24454 LIBS=$ac_check_lib_save_LIBS
24456 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
24457 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24458 if test $ac_cv_lib_intl_dgettext = yes; then
24459 cat >>confdefs.h <<_ACEOF
24460 #define HAVE_LIBINTL 1
24463 LIBS="-lintl $LIBS"
24468 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
24469 $as_echo_n "checking whether localtime caches TZ...
" >&6; }
24470 if test "${emacs_cv_localtime_cache+set}" = set; then
24471 $as_echo_n "(cached
) " >&6
24473 if test x$ac_cv_func_tzset = xyes; then
24474 if test "$cross_compiling" = yes; then
24475 # If we have tzset, assume the worst when cross-compiling.
24476 emacs_cv_localtime_cache=yes
24478 cat >conftest.$ac_ext <<_ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h. */
24485 extern char **environ;
24489 for (to = from = environ; (*to = *from); from++)
24490 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24493 char TZ_GMT0[] = "TZ
=GMT0
";
24494 char TZ_PST8[] = "TZ
=PST8
";
24497 time_t now = time ((time_t *) 0);
24498 int hour_GMT0, hour_unset;
24499 if (putenv (TZ_GMT0) != 0)
24501 hour_GMT0 = localtime (&now)->tm_hour;
24503 hour_unset = localtime (&now)->tm_hour;
24504 if (putenv (TZ_PST8) != 0)
24506 if (localtime (&now)->tm_hour == hour_GMT0)
24509 if (localtime (&now)->tm_hour != hour_unset)
24514 rm -f conftest$ac_exeext
24515 if { (ac_try="$ac_link"
24516 case "(($ac_try" in
24517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24518 *) ac_try_echo=$ac_try;;
24520 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24521 $as_echo "$ac_try_echo") >&5
24522 (eval "$ac_link") 2>&5
24524 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24526 { (case "(($ac_try" in
24527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528 *) ac_try_echo=$ac_try;;
24530 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24531 $as_echo "$ac_try_echo") >&5
24532 (eval "$ac_try") 2>&5
24534 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24535 (exit $ac_status); }; }; then
24536 emacs_cv_localtime_cache=no
24538 $as_echo "$as_me: program exited with status
$ac_status" >&5
24539 $as_echo "$as_me: failed program was
:" >&5
24540 sed 's/^/| /' conftest.$ac_ext >&5
24542 ( exit $ac_status )
24543 emacs_cv_localtime_cache=yes
24545 rm -rf conftest.dSYM
24546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24551 # If we lack tzset, report that localtime does not cache TZ,
24552 # since we can't invalidate the cache if we don't have tzset.
24553 emacs_cv_localtime_cache=no
24556 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
24557 $as_echo "$emacs_cv_localtime_cache" >&6; }
24558 if test $emacs_cv_localtime_cache = yes; then
24560 cat >>confdefs.h <<\_ACEOF
24561 #define LOCALTIME_CACHE 1
24566 if test "x
$HAVE_TIMEVAL" = xyes; then
24568 for ac_func in gettimeofday
24570 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
24571 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
24572 $as_echo_n "checking
for $ac_func...
" >&6; }
24573 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
24574 $as_echo_n "(cached
) " >&6
24576 cat >conftest.$ac_ext <<_ACEOF
24579 cat confdefs.h >>conftest.$ac_ext
24580 cat >>conftest.$ac_ext <<_ACEOF
24581 /* end confdefs.h. */
24582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24584 #define $ac_func innocuous_$ac_func
24586 /* System header to define __stub macros and hopefully few prototypes,
24587 which can conflict with char $ac_func (); below.
24588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24589 <limits.h> exists even on freestanding compilers. */
24592 # include <limits.h>
24594 # include <assert.h>
24599 /* Override any GCC internal prototype to avoid an error.
24600 Use char because int might match the return type of a GCC
24601 builtin and then its argument prototype would still apply. */
24606 /* The GNU C library defines this for functions which it implements
24607 to always fail with ENOSYS. Some functions are actually named
24608 something starting with __ and the normal name is an alias. */
24609 #if defined __stub_$ac_func || defined __stub___$ac_func
24616 return $ac_func ();
24621 rm -f conftest.$ac_objext conftest$ac_exeext
24622 if { (ac_try="$ac_link"
24623 case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24627 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24628 $as_echo "$ac_try_echo") >&5
24629 (eval "$ac_link") 2>conftest.er1
24631 grep -v '^ *+' conftest.er1 >conftest.err
24633 cat conftest.err >&5
24634 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24635 (exit $ac_status); } && {
24636 test -z "$ac_c_werror_flag" ||
24637 test ! -s conftest.err
24638 } && test -s conftest$ac_exeext && {
24639 test "$cross_compiling" = yes ||
24640 $as_test_x conftest$ac_exeext
24642 eval "$as_ac_var=yes"
24644 $as_echo "$as_me: failed program was
:" >&5
24645 sed 's/^/| /' conftest.$ac_ext >&5
24647 eval "$as_ac_var=no
"
24650 rm -rf conftest.dSYM
24651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24652 conftest$ac_exeext conftest.$ac_ext
24654 ac_res=`eval 'as_val=${'$as_ac_var'}
24655 $as_echo "$as_val"'`
24656 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
24657 $as_echo "$ac_res" >&6; }
24658 if test `eval 'as_val=${'$as_ac_var'}
24659 $as_echo "$as_val"'` = yes; then
24660 cat >>confdefs.h <<_ACEOF
24661 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
24667 if test $ac_cv_func_gettimeofday = yes; then
24668 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
24669 $as_echo_n "checking whether gettimeofday can accept two arguments...
" >&6; }
24670 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24671 $as_echo_n "(cached
) " >&6
24673 cat >conftest.$ac_ext <<_ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h. */
24680 #ifdef TIME_WITH_SYS_TIME
24681 #include <sys/time.h>
24684 #ifdef HAVE_SYS_TIME_H
24685 #include <sys/time.h>
24693 struct timeval time;
24694 gettimeofday (&time, 0);
24699 rm -f conftest.$ac_objext
24700 if { (ac_try="$ac_compile"
24701 case "(($ac_try" in
24702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703 *) ac_try_echo=$ac_try;;
24705 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24706 $as_echo "$ac_try_echo") >&5
24707 (eval "$ac_compile") 2>conftest.er1
24709 grep -v '^ *+' conftest.er1 >conftest.err
24711 cat conftest.err >&5
24712 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24713 (exit $ac_status); } && {
24714 test -z "$ac_c_werror_flag" ||
24715 test ! -s conftest.err
24716 } && test -s conftest.$ac_objext; then
24717 emacs_cv_gettimeofday_two_arguments=yes
24719 $as_echo "$as_me: failed program was
:" >&5
24720 sed 's/^/| /' conftest.$ac_ext >&5
24722 emacs_cv_gettimeofday_two_arguments=no
24725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24727 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
24728 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24729 if test $emacs_cv_gettimeofday_two_arguments = no; then
24731 cat >>confdefs.h <<\_ACEOF
24732 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24740 { $as_echo "$as_me:$LINENO: checking
for socket
" >&5
24741 $as_echo_n "checking
for socket...
" >&6; }
24742 if test "${ac_cv_func_socket+set}" = set; then
24743 $as_echo_n "(cached
) " >&6
24745 cat >conftest.$ac_ext <<_ACEOF
24748 cat confdefs.h >>conftest.$ac_ext
24749 cat >>conftest.$ac_ext <<_ACEOF
24750 /* end confdefs.h. */
24751 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24753 #define socket innocuous_socket
24755 /* System header to define __stub macros and hopefully few prototypes,
24756 which can conflict with char socket (); below.
24757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24758 <limits.h> exists even on freestanding compilers. */
24761 # include <limits.h>
24763 # include <assert.h>
24768 /* Override any GCC internal prototype to avoid an error.
24769 Use char because int might match the return type of a GCC
24770 builtin and then its argument prototype would still apply. */
24775 /* The GNU C library defines this for functions which it implements
24776 to always fail with ENOSYS. Some functions are actually named
24777 something starting with __ and the normal name is an alias. */
24778 #if defined __stub_socket || defined __stub___socket
24790 rm -f conftest.$ac_objext conftest$ac_exeext
24791 if { (ac_try="$ac_link"
24792 case "(($ac_try" in
24793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794 *) ac_try_echo=$ac_try;;
24796 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24797 $as_echo "$ac_try_echo") >&5
24798 (eval "$ac_link") 2>conftest.er1
24800 grep -v '^ *+' conftest.er1 >conftest.err
24802 cat conftest.err >&5
24803 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24804 (exit $ac_status); } && {
24805 test -z "$ac_c_werror_flag" ||
24806 test ! -s conftest.err
24807 } && test -s conftest$ac_exeext && {
24808 test "$cross_compiling" = yes ||
24809 $as_test_x conftest$ac_exeext
24811 ac_cv_func_socket=yes
24813 $as_echo "$as_me: failed program was
:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24816 ac_cv_func_socket=no
24819 rm -rf conftest.dSYM
24820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24821 conftest$ac_exeext conftest.$ac_ext
24823 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
24824 $as_echo "$ac_cv_func_socket" >&6; }
24825 if test $ac_cv_func_socket = yes; then
24831 if test $ok_so_far = yes; then
24832 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24833 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24834 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24835 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24836 $as_echo_n "(cached
) " >&6
24838 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24839 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24841 # Is the header compilable?
24842 { $as_echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
24843 $as_echo_n "checking netinet
/in.h usability...
" >&6; }
24844 cat >conftest.$ac_ext <<_ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h. */
24850 $ac_includes_default
24851 #include <netinet/in.h>
24853 rm -f conftest.$ac_objext
24854 if { (ac_try="$ac_compile"
24855 case "(($ac_try" in
24856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24857 *) ac_try_echo=$ac_try;;
24859 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24860 $as_echo "$ac_try_echo") >&5
24861 (eval "$ac_compile") 2>conftest.er1
24863 grep -v '^ *+' conftest.er1 >conftest.err
24865 cat conftest.err >&5
24866 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24867 (exit $ac_status); } && {
24868 test -z "$ac_c_werror_flag" ||
24869 test ! -s conftest.err
24870 } && test -s conftest.$ac_objext; then
24871 ac_header_compiler=yes
24873 $as_echo "$as_me: failed program was
:" >&5
24874 sed 's/^/| /' conftest.$ac_ext >&5
24876 ac_header_compiler=no
24879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24880 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
24881 $as_echo "$ac_header_compiler" >&6; }
24883 # Is the header present?
24884 { $as_echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
24885 $as_echo_n "checking netinet
/in.h presence...
" >&6; }
24886 cat >conftest.$ac_ext <<_ACEOF
24889 cat confdefs.h >>conftest.$ac_ext
24890 cat >>conftest.$ac_ext <<_ACEOF
24891 /* end confdefs.h. */
24892 #include <netinet/in.h>
24894 if { (ac_try="$ac_cpp conftest.
$ac_ext"
24895 case "(($ac_try" in
24896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24897 *) ac_try_echo=$ac_try;;
24899 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24900 $as_echo "$ac_try_echo") >&5
24901 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
24903 grep -v '^ *+' conftest.er1 >conftest.err
24905 cat conftest.err >&5
24906 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24907 (exit $ac_status); } >/dev/null && {
24908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24909 test ! -s conftest.err
24911 ac_header_preproc=yes
24913 $as_echo "$as_me: failed program was
:" >&5
24914 sed 's/^/| /' conftest.$ac_ext >&5
24916 ac_header_preproc=no
24919 rm -f conftest.err conftest.$ac_ext
24920 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
24921 $as_echo "$ac_header_preproc" >&6; }
24923 # So? What about this header?
24924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24926 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
24927 $as_echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
24928 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
24929 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
24930 ac_header_preproc=yes
24933 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
24934 $as_echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
24935 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
24936 $as_echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
24937 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
24938 $as_echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
24939 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
24940 $as_echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
24941 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
24942 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
24943 { $as_echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
24944 $as_echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
24948 { $as_echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
24949 $as_echo_n "checking
for netinet
/in.h...
" >&6; }
24950 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24951 $as_echo_n "(cached
) " >&6
24953 ac_cv_header_netinet_in_h=$ac_header_preproc
24955 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
24956 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24959 if test $ac_cv_header_netinet_in_h = yes; then
24967 if test $ok_so_far = yes; then
24968 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24969 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
24970 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
24971 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24972 $as_echo_n "(cached
) " >&6
24974 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
24975 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24977 # Is the header compilable?
24978 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
24979 $as_echo_n "checking arpa
/inet.h usability...
" >&6; }
24980 cat >conftest.$ac_ext <<_ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h. */
24986 $ac_includes_default
24987 #include <arpa/inet.h>
24989 rm -f conftest.$ac_objext
24990 if { (ac_try="$ac_compile"
24991 case "(($ac_try" in
24992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24993 *) ac_try_echo=$ac_try;;
24995 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24996 $as_echo "$ac_try_echo") >&5
24997 (eval "$ac_compile") 2>conftest.er1
24999 grep -v '^ *+' conftest.er1 >conftest.err
25001 cat conftest.err >&5
25002 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25003 (exit $ac_status); } && {
25004 test -z "$ac_c_werror_flag" ||
25005 test ! -s conftest.err
25006 } && test -s conftest.$ac_objext; then
25007 ac_header_compiler=yes
25009 $as_echo "$as_me: failed program was
:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25012 ac_header_compiler=no
25015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25016 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25017 $as_echo "$ac_header_compiler" >&6; }
25019 # Is the header present?
25020 { $as_echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
25021 $as_echo_n "checking arpa
/inet.h presence...
" >&6; }
25022 cat >conftest.$ac_ext <<_ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h. */
25028 #include <arpa/inet.h>
25030 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25031 case "(($ac_try" in
25032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25033 *) ac_try_echo=$ac_try;;
25035 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25036 $as_echo "$ac_try_echo") >&5
25037 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25039 grep -v '^ *+' conftest.er1 >conftest.err
25041 cat conftest.err >&5
25042 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25043 (exit $ac_status); } >/dev/null && {
25044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25045 test ! -s conftest.err
25047 ac_header_preproc=yes
25049 $as_echo "$as_me: failed program was
:" >&5
25050 sed 's/^/| /' conftest.$ac_ext >&5
25052 ac_header_preproc=no
25055 rm -f conftest.err conftest.$ac_ext
25056 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25057 $as_echo "$ac_header_preproc" >&6; }
25059 # So? What about this header?
25060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25062 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
25063 $as_echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25064 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
25065 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
25066 ac_header_preproc=yes
25069 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
25070 $as_echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
25071 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
25072 $as_echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
25073 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
25074 $as_echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
25075 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
25076 $as_echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
25077 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
25078 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
25079 { $as_echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
25080 $as_echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
25084 { $as_echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
25085 $as_echo_n "checking
for arpa
/inet.h...
" >&6; }
25086 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25087 $as_echo_n "(cached
) " >&6
25089 ac_cv_header_arpa_inet_h=$ac_header_preproc
25091 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
25092 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25095 if test $ac_cv_header_arpa_inet_h = yes; then
25103 if test $ok_so_far = yes; then
25105 cat >>confdefs.h <<\_ACEOF
25106 #define HAVE_INET_SOCKETS 1
25112 for ac_header in sys/ioctl.h
25114 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25115 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25116 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25117 $as_echo_n "checking
for $ac_header...
" >&6; }
25118 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25119 $as_echo_n "(cached
) " >&6
25121 ac_res=`eval 'as_val=${'$as_ac_Header'}
25122 $as_echo "$as_val"'`
25123 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25124 $as_echo "$ac_res" >&6; }
25126 # Is the header compilable?
25127 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25128 $as_echo_n "checking
$ac_header usability...
" >&6; }
25129 cat >conftest.$ac_ext <<_ACEOF
25132 cat confdefs.h >>conftest.$ac_ext
25133 cat >>conftest.$ac_ext <<_ACEOF
25134 /* end confdefs.h. */
25135 $ac_includes_default
25136 #include <$ac_header>
25138 rm -f conftest.$ac_objext
25139 if { (ac_try="$ac_compile"
25140 case "(($ac_try" in
25141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142 *) ac_try_echo=$ac_try;;
25144 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25145 $as_echo "$ac_try_echo") >&5
25146 (eval "$ac_compile") 2>conftest.er1
25148 grep -v '^ *+' conftest.er1 >conftest.err
25150 cat conftest.err >&5
25151 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25152 (exit $ac_status); } && {
25153 test -z "$ac_c_werror_flag" ||
25154 test ! -s conftest.err
25155 } && test -s conftest.$ac_objext; then
25156 ac_header_compiler=yes
25158 $as_echo "$as_me: failed program was
:" >&5
25159 sed 's/^/| /' conftest.$ac_ext >&5
25161 ac_header_compiler=no
25164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25165 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25166 $as_echo "$ac_header_compiler" >&6; }
25168 # Is the header present?
25169 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25170 $as_echo_n "checking
$ac_header presence...
" >&6; }
25171 cat >conftest.$ac_ext <<_ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h. */
25177 #include <$ac_header>
25179 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25180 case "(($ac_try" in
25181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25182 *) ac_try_echo=$ac_try;;
25184 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25185 $as_echo "$ac_try_echo") >&5
25186 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25188 grep -v '^ *+' conftest.er1 >conftest.err
25190 cat conftest.err >&5
25191 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25192 (exit $ac_status); } >/dev/null && {
25193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25194 test ! -s conftest.err
25196 ac_header_preproc=yes
25198 $as_echo "$as_me: failed program was
:" >&5
25199 sed 's/^/| /' conftest.$ac_ext >&5
25201 ac_header_preproc=no
25204 rm -f conftest.err conftest.$ac_ext
25205 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25206 $as_echo "$ac_header_preproc" >&6; }
25208 # So? What about this header?
25209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25211 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25212 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25213 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25215 ac_header_preproc=yes
25218 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25219 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25220 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25221 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25222 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25223 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25224 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25225 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25226 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25228 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25229 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25233 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25234 $as_echo_n "checking
for $ac_header...
" >&6; }
25235 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25236 $as_echo_n "(cached
) " >&6
25238 eval "$as_ac_Header=\
$ac_header_preproc"
25240 ac_res=`eval 'as_val=${'$as_ac_Header'}
25241 $as_echo "$as_val"'`
25242 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25243 $as_echo "$ac_res" >&6; }
25246 if test `eval 'as_val=${'$as_ac_Header'}
25247 $as_echo "$as_val"'` = yes; then
25248 cat >>confdefs.h <<_ACEOF
25249 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25257 if test -f /usr/lpp/X11/bin/smt.exp; then
25259 cat >>confdefs.h <<\_ACEOF
25260 #define HAVE_AIX_SMT_EXP 1
25265 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
25266 $as_echo_n "checking whether system supports dynamic ptys...
" >&6; }
25267 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25268 { $as_echo "$as_me:$LINENO: result
: yes" >&5
25269 $as_echo "yes" >&6; }
25271 cat >>confdefs.h <<\_ACEOF
25272 #define HAVE_DEV_PTMX 1
25276 { $as_echo "$as_me:$LINENO: result
: no
" >&5
25277 $as_echo "no
" >&6; }
25280 { $as_echo "$as_me:$LINENO: checking
for pid_t
" >&5
25281 $as_echo_n "checking
for pid_t...
" >&6; }
25282 if test "${ac_cv_type_pid_t+set}" = set; then
25283 $as_echo_n "(cached
) " >&6
25285 ac_cv_type_pid_t=no
25286 cat >conftest.$ac_ext <<_ACEOF
25289 cat confdefs.h >>conftest.$ac_ext
25290 cat >>conftest.$ac_ext <<_ACEOF
25291 /* end confdefs.h. */
25292 $ac_includes_default
25296 if (sizeof (pid_t))
25302 rm -f conftest.$ac_objext
25303 if { (ac_try="$ac_compile"
25304 case "(($ac_try" in
25305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306 *) ac_try_echo=$ac_try;;
25308 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25309 $as_echo "$ac_try_echo") >&5
25310 (eval "$ac_compile") 2>conftest.er1
25312 grep -v '^ *+' conftest.er1 >conftest.err
25314 cat conftest.err >&5
25315 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25316 (exit $ac_status); } && {
25317 test -z "$ac_c_werror_flag" ||
25318 test ! -s conftest.err
25319 } && test -s conftest.$ac_objext; then
25320 cat >conftest.$ac_ext <<_ACEOF
25323 cat confdefs.h >>conftest.$ac_ext
25324 cat >>conftest.$ac_ext <<_ACEOF
25325 /* end confdefs.h. */
25326 $ac_includes_default
25330 if (sizeof ((pid_t)))
25336 rm -f conftest.$ac_objext
25337 if { (ac_try="$ac_compile"
25338 case "(($ac_try" in
25339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25340 *) ac_try_echo=$ac_try;;
25342 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25343 $as_echo "$ac_try_echo") >&5
25344 (eval "$ac_compile") 2>conftest.er1
25346 grep -v '^ *+' conftest.er1 >conftest.err
25348 cat conftest.err >&5
25349 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25350 (exit $ac_status); } && {
25351 test -z "$ac_c_werror_flag" ||
25352 test ! -s conftest.err
25353 } && test -s conftest.$ac_objext; then
25356 $as_echo "$as_me: failed program was
:" >&5
25357 sed 's/^/| /' conftest.$ac_ext >&5
25359 ac_cv_type_pid_t=yes
25362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25364 $as_echo "$as_me: failed program was
:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25372 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
25373 $as_echo "$ac_cv_type_pid_t" >&6; }
25374 if test $ac_cv_type_pid_t = yes; then
25378 cat >>confdefs.h <<_ACEOF
25385 for ac_header in vfork.h
25387 as_ac_Header=`$as_echo "ac_cv_header_
$ac_header" | $as_tr_sh`
25388 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25389 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25390 $as_echo_n "checking
for $ac_header...
" >&6; }
25391 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25392 $as_echo_n "(cached
) " >&6
25394 ac_res=`eval 'as_val=${'$as_ac_Header'}
25395 $as_echo "$as_val"'`
25396 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25397 $as_echo "$ac_res" >&6; }
25399 # Is the header compilable?
25400 { $as_echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
25401 $as_echo_n "checking
$ac_header usability...
" >&6; }
25402 cat >conftest.$ac_ext <<_ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h. */
25408 $ac_includes_default
25409 #include <$ac_header>
25411 rm -f conftest.$ac_objext
25412 if { (ac_try="$ac_compile"
25413 case "(($ac_try" in
25414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25415 *) ac_try_echo=$ac_try;;
25417 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25418 $as_echo "$ac_try_echo") >&5
25419 (eval "$ac_compile") 2>conftest.er1
25421 grep -v '^ *+' conftest.er1 >conftest.err
25423 cat conftest.err >&5
25424 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25425 (exit $ac_status); } && {
25426 test -z "$ac_c_werror_flag" ||
25427 test ! -s conftest.err
25428 } && test -s conftest.$ac_objext; then
25429 ac_header_compiler=yes
25431 $as_echo "$as_me: failed program was
:" >&5
25432 sed 's/^/| /' conftest.$ac_ext >&5
25434 ac_header_compiler=no
25437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25438 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
25439 $as_echo "$ac_header_compiler" >&6; }
25441 # Is the header present?
25442 { $as_echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
25443 $as_echo_n "checking
$ac_header presence...
" >&6; }
25444 cat >conftest.$ac_ext <<_ACEOF
25447 cat confdefs.h >>conftest.$ac_ext
25448 cat >>conftest.$ac_ext <<_ACEOF
25449 /* end confdefs.h. */
25450 #include <$ac_header>
25452 if { (ac_try="$ac_cpp conftest.
$ac_ext"
25453 case "(($ac_try" in
25454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25455 *) ac_try_echo=$ac_try;;
25457 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25458 $as_echo "$ac_try_echo") >&5
25459 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
25461 grep -v '^ *+' conftest.er1 >conftest.err
25463 cat conftest.err >&5
25464 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25465 (exit $ac_status); } >/dev/null && {
25466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25467 test ! -s conftest.err
25469 ac_header_preproc=yes
25471 $as_echo "$as_me: failed program was
:" >&5
25472 sed 's/^/| /' conftest.$ac_ext >&5
25474 ac_header_preproc=no
25477 rm -f conftest.err conftest.$ac_ext
25478 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
25479 $as_echo "$ac_header_preproc" >&6; }
25481 # So? What about this header?
25482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25484 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
25485 $as_echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
25486 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
25487 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
25488 ac_header_preproc=yes
25491 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
25492 $as_echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
25493 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
25494 $as_echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
25495 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
25496 $as_echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
25497 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
25498 $as_echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
25499 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
25500 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
25501 { $as_echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
25502 $as_echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
25506 { $as_echo "$as_me:$LINENO: checking
for $ac_header" >&5
25507 $as_echo_n "checking
for $ac_header...
" >&6; }
25508 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
25509 $as_echo_n "(cached
) " >&6
25511 eval "$as_ac_Header=\
$ac_header_preproc"
25513 ac_res=`eval 'as_val=${'$as_ac_Header'}
25514 $as_echo "$as_val"'`
25515 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25516 $as_echo "$ac_res" >&6; }
25519 if test `eval 'as_val=${'$as_ac_Header'}
25520 $as_echo "$as_val"'` = yes; then
25521 cat >>confdefs.h <<_ACEOF
25522 #define `$as_echo "HAVE_
$ac_header" | $as_tr_cpp` 1
25531 for ac_func in fork vfork
25533 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
25534 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
25535 $as_echo_n "checking
for $ac_func...
" >&6; }
25536 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
25537 $as_echo_n "(cached
) " >&6
25539 cat >conftest.$ac_ext <<_ACEOF
25542 cat confdefs.h >>conftest.$ac_ext
25543 cat >>conftest.$ac_ext <<_ACEOF
25544 /* end confdefs.h. */
25545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25547 #define $ac_func innocuous_$ac_func
25549 /* System header to define __stub macros and hopefully few prototypes,
25550 which can conflict with char $ac_func (); below.
25551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25552 <limits.h> exists even on freestanding compilers. */
25555 # include <limits.h>
25557 # include <assert.h>
25562 /* Override any GCC internal prototype to avoid an error.
25563 Use char because int might match the return type of a GCC
25564 builtin and then its argument prototype would still apply. */
25569 /* The GNU C library defines this for functions which it implements
25570 to always fail with ENOSYS. Some functions are actually named
25571 something starting with __ and the normal name is an alias. */
25572 #if defined __stub_$ac_func || defined __stub___$ac_func
25579 return $ac_func ();
25584 rm -f conftest.$ac_objext conftest$ac_exeext
25585 if { (ac_try="$ac_link"
25586 case "(($ac_try" in
25587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25588 *) ac_try_echo=$ac_try;;
25590 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25591 $as_echo "$ac_try_echo") >&5
25592 (eval "$ac_link") 2>conftest.er1
25594 grep -v '^ *+' conftest.er1 >conftest.err
25596 cat conftest.err >&5
25597 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25598 (exit $ac_status); } && {
25599 test -z "$ac_c_werror_flag" ||
25600 test ! -s conftest.err
25601 } && test -s conftest$ac_exeext && {
25602 test "$cross_compiling" = yes ||
25603 $as_test_x conftest$ac_exeext
25605 eval "$as_ac_var=yes"
25607 $as_echo "$as_me: failed program was
:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25610 eval "$as_ac_var=no
"
25613 rm -rf conftest.dSYM
25614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25615 conftest$ac_exeext conftest.$ac_ext
25617 ac_res=`eval 'as_val=${'$as_ac_var'}
25618 $as_echo "$as_val"'`
25619 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
25620 $as_echo "$ac_res" >&6; }
25621 if test `eval 'as_val=${'$as_ac_var'}
25622 $as_echo "$as_val"'` = yes; then
25623 cat >>confdefs.h <<_ACEOF
25624 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
25630 if test "x
$ac_cv_func_fork" = xyes; then
25631 { $as_echo "$as_me:$LINENO: checking
for working fork
" >&5
25632 $as_echo_n "checking
for working fork...
" >&6; }
25633 if test "${ac_cv_func_fork_works+set}" = set; then
25634 $as_echo_n "(cached
) " >&6
25636 if test "$cross_compiling" = yes; then
25637 ac_cv_func_fork_works=cross
25639 cat >conftest.$ac_ext <<_ACEOF
25642 cat confdefs.h >>conftest.$ac_ext
25643 cat >>conftest.$ac_ext <<_ACEOF
25644 /* end confdefs.h. */
25645 $ac_includes_default
25650 /* By Ruediger Kuhlmann. */
25651 return fork () < 0;
25657 rm -f conftest$ac_exeext
25658 if { (ac_try="$ac_link"
25659 case "(($ac_try" in
25660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25661 *) ac_try_echo=$ac_try;;
25663 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25664 $as_echo "$ac_try_echo") >&5
25665 (eval "$ac_link") 2>&5
25667 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25669 { (case "(($ac_try" in
25670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25671 *) ac_try_echo=$ac_try;;
25673 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25674 $as_echo "$ac_try_echo") >&5
25675 (eval "$ac_try") 2>&5
25677 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25678 (exit $ac_status); }; }; then
25679 ac_cv_func_fork_works=yes
25681 $as_echo "$as_me: program exited with status
$ac_status" >&5
25682 $as_echo "$as_me: failed program was
:" >&5
25683 sed 's/^/| /' conftest.$ac_ext >&5
25685 ( exit $ac_status )
25686 ac_cv_func_fork_works=no
25688 rm -rf conftest.dSYM
25689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25694 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
25695 $as_echo "$ac_cv_func_fork_works" >&6; }
25698 ac_cv_func_fork_works=$ac_cv_func_fork
25700 if test "x
$ac_cv_func_fork_works" = xcross; then
25702 *-*-amigaos* | *-*-msdosdjgpp*)
25703 # Override, as these systems have only a dummy fork() stub
25704 ac_cv_func_fork_works=no
25707 ac_cv_func_fork_works=yes
25710 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
25711 $as_echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
25713 ac_cv_func_vfork_works=$ac_cv_func_vfork
25714 if test "x
$ac_cv_func_vfork" = xyes; then
25715 { $as_echo "$as_me:$LINENO: checking
for working vfork
" >&5
25716 $as_echo_n "checking
for working vfork...
" >&6; }
25717 if test "${ac_cv_func_vfork_works+set}" = set; then
25718 $as_echo_n "(cached
) " >&6
25720 if test "$cross_compiling" = yes; then
25721 ac_cv_func_vfork_works=cross
25723 cat >conftest.$ac_ext <<_ACEOF
25726 cat confdefs.h >>conftest.$ac_ext
25727 cat >>conftest.$ac_ext <<_ACEOF
25728 /* end confdefs.h. */
25729 /* Thanks to Paul Eggert for this test. */
25730 $ac_includes_default
25731 #include <sys/wait.h>
25732 #ifdef HAVE_VFORK_H
25733 # include <vfork.h>
25735 /* On some sparc systems, changes by the child to local and incoming
25736 argument registers are propagated back to the parent. The compiler
25737 is told about this with #include <vfork.h>, but some compilers
25738 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25739 static variable whose address is put into a register that is
25740 clobbered by the vfork. */
25743 sparc_address_test (int arg)
25745 sparc_address_test (arg) int arg;
25748 static pid_t child;
25766 pid_t parent = getpid ();
25769 sparc_address_test (0);
25774 /* Here is another test for sparc vfork register problems. This
25775 test uses lots of local variables, at least as many local
25776 variables as main has allocated so far including compiler
25777 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25778 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25779 reuse the register of parent for one of the local variables,
25780 since it will think that parent can't possibly be used any more
25781 in this routine. Assigning to the local variable will thus
25782 munge parent in the parent process. */
25784 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25785 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25786 /* Convince the compiler that p..p7 are live; otherwise, it might
25787 use the same hardware register for all 8 local variables. */
25788 if (p != p1 || p != p2 || p != p3 || p != p4
25789 || p != p5 || p != p6 || p != p7)
25792 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25793 from child file descriptors. If the child closes a descriptor
25794 before it execs or exits, this munges the parent's descriptor
25795 as well. Test for this by closing stdout in the child. */
25796 _exit(close(fileno(stdout)) != 0);
25801 while (wait(&status) != child)
25804 /* Was there some problem with vforking? */
25807 /* Did the child fail? (This shouldn't happen.) */
25810 /* Did the vfork/compiler bug occur? */
25811 || parent != getpid()
25813 /* Did the file descriptor bug occur? */
25814 || fstat(fileno(stdout), &st) != 0
25819 rm -f conftest$ac_exeext
25820 if { (ac_try="$ac_link"
25821 case "(($ac_try" in
25822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25823 *) ac_try_echo=$ac_try;;
25825 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25826 $as_echo "$ac_try_echo") >&5
25827 (eval "$ac_link") 2>&5
25829 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25831 { (case "(($ac_try" in
25832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25833 *) ac_try_echo=$ac_try;;
25835 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25836 $as_echo "$ac_try_echo") >&5
25837 (eval "$ac_try") 2>&5
25839 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25840 (exit $ac_status); }; }; then
25841 ac_cv_func_vfork_works=yes
25843 $as_echo "$as_me: program exited with status
$ac_status" >&5
25844 $as_echo "$as_me: failed program was
:" >&5
25845 sed 's/^/| /' conftest.$ac_ext >&5
25847 ( exit $ac_status )
25848 ac_cv_func_vfork_works=no
25850 rm -rf conftest.dSYM
25851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25856 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
25857 $as_echo "$ac_cv_func_vfork_works" >&6; }
25860 if test "x
$ac_cv_func_fork_works" = xcross; then
25861 ac_cv_func_vfork_works=$ac_cv_func_vfork
25862 { $as_echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
25863 $as_echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
25866 if test "x
$ac_cv_func_vfork_works" = xyes; then
25868 cat >>confdefs.h <<\_ACEOF
25869 #define HAVE_WORKING_VFORK 1
25874 cat >>confdefs.h <<\_ACEOF
25879 if test "x
$ac_cv_func_fork_works" = xyes; then
25881 cat >>confdefs.h <<\_ACEOF
25882 #define HAVE_WORKING_FORK 1
25888 { $as_echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
25889 $as_echo_n "checking
for nl_langinfo and CODESET...
" >&6; }
25890 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25891 $as_echo_n "(cached
) " >&6
25893 cat >conftest.$ac_ext <<_ACEOF
25896 cat confdefs.h >>conftest.$ac_ext
25897 cat >>conftest.$ac_ext <<_ACEOF
25898 /* end confdefs.h. */
25899 #include <langinfo.h>
25903 char* cs = nl_langinfo(CODESET);
25908 rm -f conftest.$ac_objext conftest$ac_exeext
25909 if { (ac_try="$ac_link"
25910 case "(($ac_try" in
25911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25912 *) ac_try_echo=$ac_try;;
25914 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25915 $as_echo "$ac_try_echo") >&5
25916 (eval "$ac_link") 2>conftest.er1
25918 grep -v '^ *+' conftest.er1 >conftest.err
25920 cat conftest.err >&5
25921 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25922 (exit $ac_status); } && {
25923 test -z "$ac_c_werror_flag" ||
25924 test ! -s conftest.err
25925 } && test -s conftest$ac_exeext && {
25926 test "$cross_compiling" = yes ||
25927 $as_test_x conftest$ac_exeext
25929 emacs_cv_langinfo_codeset=yes
25931 $as_echo "$as_me: failed program was
:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25934 emacs_cv_langinfo_codeset=no
25937 rm -rf conftest.dSYM
25938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25939 conftest$ac_exeext conftest.$ac_ext
25942 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
25943 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25944 if test $emacs_cv_langinfo_codeset = yes; then
25946 cat >>confdefs.h <<\_ACEOF
25947 #define HAVE_LANGINFO_CODESET 1
25952 { $as_echo "$as_me:$LINENO: checking
for size_t
" >&5
25953 $as_echo_n "checking
for size_t...
" >&6; }
25954 if test "${ac_cv_type_size_t+set}" = set; then
25955 $as_echo_n "(cached
) " >&6
25957 ac_cv_type_size_t=no
25958 cat >conftest.$ac_ext <<_ACEOF
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h. */
25964 $ac_includes_default
25968 if (sizeof (size_t))
25974 rm -f conftest.$ac_objext
25975 if { (ac_try="$ac_compile"
25976 case "(($ac_try" in
25977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25978 *) ac_try_echo=$ac_try;;
25980 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25981 $as_echo "$ac_try_echo") >&5
25982 (eval "$ac_compile") 2>conftest.er1
25984 grep -v '^ *+' conftest.er1 >conftest.err
25986 cat conftest.err >&5
25987 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25988 (exit $ac_status); } && {
25989 test -z "$ac_c_werror_flag" ||
25990 test ! -s conftest.err
25991 } && test -s conftest.$ac_objext; then
25992 cat >conftest.$ac_ext <<_ACEOF
25995 cat confdefs.h >>conftest.$ac_ext
25996 cat >>conftest.$ac_ext <<_ACEOF
25997 /* end confdefs.h. */
25998 $ac_includes_default
26002 if (sizeof ((size_t)))
26008 rm -f conftest.$ac_objext
26009 if { (ac_try="$ac_compile"
26010 case "(($ac_try" in
26011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012 *) ac_try_echo=$ac_try;;
26014 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26015 $as_echo "$ac_try_echo") >&5
26016 (eval "$ac_compile") 2>conftest.er1
26018 grep -v '^ *+' conftest.er1 >conftest.err
26020 cat conftest.err >&5
26021 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26022 (exit $ac_status); } && {
26023 test -z "$ac_c_werror_flag" ||
26024 test ! -s conftest.err
26025 } && test -s conftest.$ac_objext; then
26028 $as_echo "$as_me: failed program was
:" >&5
26029 sed 's/^/| /' conftest.$ac_ext >&5
26031 ac_cv_type_size_t=yes
26034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26036 $as_echo "$as_me: failed program was
:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26044 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
26045 $as_echo "$ac_cv_type_size_t" >&6; }
26046 if test $ac_cv_type_size_t = yes; then
26048 cat >>confdefs.h <<_ACEOF
26049 #define HAVE_SIZE_T 1
26056 { $as_echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
26057 $as_echo_n "checking
for mbstate_t...
" >&6; }
26058 if test "${ac_cv_type_mbstate_t+set}" = set; then
26059 $as_echo_n "(cached
) " >&6
26061 cat >conftest.$ac_ext <<_ACEOF
26064 cat confdefs.h >>conftest.$ac_ext
26065 cat >>conftest.$ac_ext <<_ACEOF
26066 /* end confdefs.h. */
26067 $ac_includes_default
26068 # include <wchar.h>
26072 mbstate_t x; return sizeof x;
26077 rm -f conftest.$ac_objext
26078 if { (ac_try="$ac_compile"
26079 case "(($ac_try" in
26080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26081 *) ac_try_echo=$ac_try;;
26083 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26084 $as_echo "$ac_try_echo") >&5
26085 (eval "$ac_compile") 2>conftest.er1
26087 grep -v '^ *+' conftest.er1 >conftest.err
26089 cat conftest.err >&5
26090 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26091 (exit $ac_status); } && {
26092 test -z "$ac_c_werror_flag" ||
26093 test ! -s conftest.err
26094 } && test -s conftest.$ac_objext; then
26095 ac_cv_type_mbstate_t=yes
26097 $as_echo "$as_me: failed program was
:" >&5
26098 sed 's/^/| /' conftest.$ac_ext >&5
26100 ac_cv_type_mbstate_t=no
26103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26105 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
26106 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26107 if test $ac_cv_type_mbstate_t = yes; then
26109 cat >>confdefs.h <<\_ACEOF
26110 #define HAVE_MBSTATE_T 1
26115 cat >>confdefs.h <<\_ACEOF
26116 #define mbstate_t int
26121 { $as_echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
26122 $as_echo_n "checking
for C restrict keyword...
" >&6; }
26123 if test "${emacs_cv_c_restrict+set}" = set; then
26124 $as_echo_n "(cached
) " >&6
26126 cat >conftest.$ac_ext <<_ACEOF
26129 cat confdefs.h >>conftest.$ac_ext
26130 cat >>conftest.$ac_ext <<_ACEOF
26131 /* end confdefs.h. */
26132 void fred (int *restrict x);
26141 rm -f conftest.$ac_objext
26142 if { (ac_try="$ac_compile"
26143 case "(($ac_try" in
26144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26145 *) ac_try_echo=$ac_try;;
26147 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26148 $as_echo "$ac_try_echo") >&5
26149 (eval "$ac_compile") 2>conftest.er1
26151 grep -v '^ *+' conftest.er1 >conftest.err
26153 cat conftest.err >&5
26154 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26155 (exit $ac_status); } && {
26156 test -z "$ac_c_werror_flag" ||
26157 test ! -s conftest.err
26158 } && test -s conftest.$ac_objext; then
26159 emacs_cv_c_restrict=yes
26161 $as_echo "$as_me: failed program was
:" >&5
26162 sed 's/^/| /' conftest.$ac_ext >&5
26164 cat >conftest.$ac_ext <<_ACEOF
26167 cat confdefs.h >>conftest.$ac_ext
26168 cat >>conftest.$ac_ext <<_ACEOF
26169 /* end confdefs.h. */
26170 void fred (int *__restrict x);
26179 rm -f conftest.$ac_objext
26180 if { (ac_try="$ac_compile"
26181 case "(($ac_try" in
26182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26183 *) ac_try_echo=$ac_try;;
26185 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26186 $as_echo "$ac_try_echo") >&5
26187 (eval "$ac_compile") 2>conftest.er1
26189 grep -v '^ *+' conftest.er1 >conftest.err
26191 cat conftest.err >&5
26192 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26193 (exit $ac_status); } && {
26194 test -z "$ac_c_werror_flag" ||
26195 test ! -s conftest.err
26196 } && test -s conftest.$ac_objext; then
26197 emacs_cv_c_restrict=__restrict
26199 $as_echo "$as_me: failed program was
:" >&5
26200 sed 's/^/| /' conftest.$ac_ext >&5
26202 emacs_cv_c_restrict=no
26205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26210 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
26211 $as_echo "$emacs_cv_c_restrict" >&6; }
26212 case "$emacs_cv_c_restrict" in
26213 yes) emacs_restrict=restrict;;
26214 no) emacs_restrict="";;
26215 *) emacs_restrict="$emacs_cv_c_restrict";;
26217 if test "$emacs_restrict" != __restrict; then
26219 cat >>confdefs.h <<_ACEOF
26220 #define __restrict $emacs_restrict
26225 { $as_echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
26226 $as_echo_n "checking
for C restricted array declarations...
" >&6; }
26227 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26228 $as_echo_n "(cached
) " >&6
26230 cat >conftest.$ac_ext <<_ACEOF
26233 cat confdefs.h >>conftest.$ac_ext
26234 cat >>conftest.$ac_ext <<_ACEOF
26235 /* end confdefs.h. */
26236 void fred (int x[__restrict]);
26245 rm -f conftest.$ac_objext
26246 if { (ac_try="$ac_compile"
26247 case "(($ac_try" in
26248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26249 *) ac_try_echo=$ac_try;;
26251 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26252 $as_echo "$ac_try_echo") >&5
26253 (eval "$ac_compile") 2>conftest.er1
26255 grep -v '^ *+' conftest.er1 >conftest.err
26257 cat conftest.err >&5
26258 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26259 (exit $ac_status); } && {
26260 test -z "$ac_c_werror_flag" ||
26261 test ! -s conftest.err
26262 } && test -s conftest.$ac_objext; then
26263 emacs_cv_c_restrict_arr=yes
26265 $as_echo "$as_me: failed program was
:" >&5
26266 sed 's/^/| /' conftest.$ac_ext >&5
26268 emacs_cv_c_restrict_arr=no
26271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26273 { $as_echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
26274 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26275 if test "$emacs_cv_c_restrict_arr" = yes; then
26277 cat >>confdefs.h <<\_ACEOF
26278 #define __restrict_arr __restrict
26285 # Set up the CFLAGS for real compilation, so we can substitute it.
26286 CFLAGS="$REAL_CFLAGS"
26287 CPPFLAGS="$REAL_CPPFLAGS"
26289 ## Hack to detect a buggy GCC version.
26290 if test "x
$GCC" = xyes \
26291 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26292 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26293 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26294 { { $as_echo "$as_me:$LINENO: error
: GCC
4.5.0 has problems compiling Emacs
; see etc
/PROBLEMS
'." >&5
26295 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'.
" >&2;}
26296 { (exit 1); exit 1; }; }
26299 #### Find out which version of Emacs this is.
26300 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
26301 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
26302 if test x"${version}" = x; then
26303 { { $as_echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
26304 $as_echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
26305 { (exit 1); exit 1; }; }
26307 if test x"${version}" != x"$PACKAGE_VERSION"; then
26308 { $as_echo "$as_me:$LINENO: WARNING
: version mismatch between \
`${srcdir}/configure.in' and \`${srcdir}/lisp
/version.el
'." >&5
26309 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
26312 ### Specify what sort of things we'll be editing into Makefile and config.h.
26313 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26341 ## Used in lwlib/Makefile.in.
26358 cat >>confdefs.h
<<_ACEOF
26359 #define EMACS_CONFIGURATION "${canonical}"
26363 cat >>confdefs.h
<<_ACEOF
26364 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26368 cat >>confdefs.h
<<_ACEOF
26369 #define config_machfile "${machfile}"
26373 cat >>confdefs.h
<<_ACEOF
26374 #define config_opsysfile "${opsysfile}"
26378 cat >>confdefs.h
<<_ACEOF
26379 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
26383 cat >>confdefs.h
<<_ACEOF
26384 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
26390 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26392 cat >>confdefs.h
<<\_ACEOF
26393 #define HAVE_X_WINDOWS 1
26397 XOBJ
="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26404 if test "${USE_X_TOOLKIT}" != "none" ; then
26405 WIDGET_OBJ
=widget.o
26407 cat >>confdefs.h
<<\_ACEOF
26408 #define USE_X_TOOLKIT 1
26411 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26413 cat >>confdefs.h
<<\_ACEOF
26414 #define USE_LUCID 1
26417 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26419 cat >>confdefs.h
<<\_ACEOF
26420 #define USE_MOTIF 1
26426 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26427 MOTIF_LIBW
="$MOTIF_LIBW -lXpm"
26431 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26432 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26433 MOTIF_LIBW
="MOTIF_LIBW -lXimp"
26437 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26438 MOTIF_LIBW
="$MOTIF_LIBW -li18n"
26441 MOTIF_LIBW
="$MOTIF_LIBW $LIBXP"
26447 case "$USE_X_TOOLKIT" in
26448 MOTIF
) TOOLKIT_LIBW
="$MOTIF_LIBW" ;;
26449 LUCID
) TOOLKIT_LIBW
="$LUCID_LIBW" ;;
26450 none
) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW
="$GTK_LIBS" ;;
26454 if test "$USE_X_TOOLKIT" = "none"; then
26455 LIBXT_OTHER
="\$(LIBXSM)"
26457 LIBXT_OTHER
="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26461 ## The X Menu stuff is present in the X10 distribution, but missing
26462 ## from X11. If we have X10, just use the installed library;
26463 ## otherwise, use our own copy.
26464 if test "${HAVE_X11}" = "yes" ; then
26466 cat >>confdefs.h
<<\_ACEOF
26471 if test "$USE_X_TOOLKIT" = "none"; then
26472 OLDXMENU
="\${oldXMenudir}libXMenu11.a"
26474 OLDXMENU
="\${lwlibdir}liblw.a"
26476 LIBXMENU
="\$(OLDXMENU)"
26477 LIBX_OTHER
="\$(LIBXT) \$(LIBX_EXTRA)"
26484 if test "$HAVE_GTK" = "yes"; then
26493 if test "${HAVE_MENUS}" = "yes" ; then
26495 cat >>confdefs.h
<<\_ACEOF
26496 #define HAVE_MENUS 1
26500 if test "${GNU_MALLOC}" = "yes" ; then
26502 cat >>confdefs.h
<<\_ACEOF
26503 #define GNU_MALLOC 1
26507 if test "${REL_ALLOC}" = "yes" ; then
26509 cat >>confdefs.h
<<\_ACEOF
26510 #define REL_ALLOC 1
26516 if test "$opsys" = "cygwin"; then
26517 CYGWIN_OBJ
="sheap.o"
26518 ## Cygwin differs because of its unexec().
26520 POST_ALLOC_OBJ
="lastfile.o vm-limit.o"
26523 PRE_ALLOC_OBJ
=lastfile.o
26524 POST_ALLOC_OBJ
="\$(vmlimitobj)"
26532 aix4-2
) LD_SWITCH_SYSTEM_TEMACS
="-Wl,-bnodelcsect" ;;
26535 ## The -headerpad option tells ld (see man page) to leave room at the
26536 ## end of the header for adding load commands. Needed for dumping.
26537 ## 0x690 is the total size of 30 segment load commands (at 56
26538 ## each); under Cocoa 31 commands are required.
26539 if test "$HAVE_NS" = "yes"; then
26540 libs_nsgui
="-framework AppKit"
26541 headerpad_extra
=6C8
26544 headerpad_extra
=690
26546 LD_SWITCH_SYSTEM_TEMACS
="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26549 *) LD_SWITCH_SYSTEM_TEMACS
= ;;
26554 ## This exists because src/Makefile.in did some extra fiddling around
26555 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26556 ## #ifndef LD_SWITCH_SYSTEM
26557 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26558 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26559 ## not using gcc, darwin system not on an alpha (ie darwin, since
26560 ## darwin + alpha does not occur).
26561 ## Note that unlike L_S_S, this is not used in ac_link.
26562 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26563 test "$opsys" = "darwin"; then
26564 LD_SWITCH_SYSTEM_EXTRA
="-X"
26566 LD_SWITCH_SYSTEM_EXTRA
=
26575 #### Report on what we decided to do.
26576 #### Report GTK as a toolkit, even if it doesn't use Xt.
26577 #### It makes printing result more understandable as using GTK sets
26578 #### toolkit_scroll_bars to yes by default.
26579 if test "${HAVE_GTK}" = "yes"; then
26584 Configured for \`${canonical}'.
26586 Where should the build process find the source code? ${srcdir}
26587 What operating system and machine description files should Emacs use?
26588 \`${opsysfile}' and \`${machfile}'
26589 What compiler should emacs be built with? ${CC} ${CFLAGS}
26590 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26591 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26592 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26593 What window system should Emacs use? ${window_system}
26594 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26596 if test -n "${x_includes}"; then
26597 echo " Where do we find X Windows header files? ${x_includes}"
26599 echo " Where do we find X Windows header files? Standard dirs"
26601 if test -n "${x_libraries}"; then
26602 echo " Where do we find X Windows libraries? ${x_libraries}"
26604 echo " Where do we find X Windows libraries? Standard dirs"
26607 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26608 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26609 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26610 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26611 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26612 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26613 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26614 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26615 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26616 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26617 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26619 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26620 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26621 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26622 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26624 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26627 if test $USE_XASSERTS = yes; then
26628 echo " Compiling with asserts turned on."
26629 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
26634 if test "$HAVE_NS" = "yes"; then
26636 echo "You must run \"make install\" in order to test the built application.
26637 The installed application will go to nextstep/Emacs.app and can be
26638 run or moved from there."
26639 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26640 echo "The application will be fully self-contained."
26642 echo "The lisp resources for the application will be installed under ${prefix}.
26643 You may need to run \"make install\" with sudo. The application will fail
26644 to run if these resources are not installed."
26649 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26650 echo "D-Bus integration has been tested for GNU/Linux only."
26655 # Remove any trailing slashes in these variables.
26656 test "${prefix}" != NONE
&&
26657 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26658 test "${exec_prefix}" != NONE
&&
26659 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26661 # Now get this: Some word that is part of the ${srcdir} directory name
26662 # or the ${configuration} value might, just might, happen to be an
26663 # identifier like `sun4' or `i386' or something, and be predefined by
26664 # the C preprocessor to some helpful value like 1, or maybe the empty
26665 # string. Needless to say consequent macro substitutions are less
26666 # than conducive to the makefile finding the correct directory.
26667 cpp_undefs
="`echo $srcdir $configuration $canonical unix |
26668 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26669 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26671 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26672 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26673 ## from Makefile.c can correctly provide the arg `-traditional' to the
26676 cat >conftest.
$ac_ext <<_ACEOF
26679 cat confdefs.h
>>conftest.
$ac_ext
26680 cat >>conftest.
$ac_ext <<_ACEOF
26681 /* end confdefs.h. */
26684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26685 $EGREP "yes..yes" >/dev
/null
2>&1; then
26686 CPP_NEED_TRADITIONAL
=no
26688 CPP_NEED_TRADITIONAL
=yes
26693 ac_config_files
="$ac_config_files Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
26695 ac_config_commands
="$ac_config_commands default"
26697 cat >confcache
<<\_ACEOF
26698 # This file is a shell script that caches the results of configure
26699 # tests run on this system so they can be shared between configure
26700 # scripts and configure runs, see configure's option --config-cache.
26701 # It is not useful on other systems. If it contains results you don't
26702 # want to keep, you may remove or edit it.
26704 # config.status only pays attention to the cache file if you give it
26705 # the --recheck option to rerun configure.
26707 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26708 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26709 # following values.
26713 # The following way of writing the cache mishandles newlines in values,
26714 # but we know of no workaround that is simple, portable, and efficient.
26715 # So, we kill variables containing newlines.
26716 # Ultrix sh set writes to stderr and can't be redirected directly,
26717 # and sets the high bit in the cache file unless we assign to the vars.
26719 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26720 eval ac_val
=\$
$ac_var
26724 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26725 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26728 _ | IFS | as_nl
) ;; #(
26729 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
26730 *) $as_unset $ac_var ;;
26736 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26737 *${as_nl}ac_space
=\
*)
26738 # `set' does not quote correctly, so add quotes (double-quote
26739 # substitution turns \\\\ into \\, and sed turns \\ into \).
26742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26745 # `set' quotes correctly as required by POSIX, so do not add quotes.
26746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26757 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26759 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
26760 if test -w "$cache_file"; then
26761 test "x$cache_file" != "x/dev/null" &&
26762 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26763 $as_echo "$as_me: updating cache $cache_file" >&6;}
26764 cat confcache
>$cache_file
26766 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26767 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26772 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
26773 # Let make expand exec_prefix.
26774 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
26776 DEFS
=-DHAVE_CONFIG_H
26780 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
26781 # 1. Remove the extension, and $U if already installed.
26782 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
26783 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
26784 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26785 # will be set to the directory where LIBOBJS objects are built.
26786 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26787 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26789 LIBOBJS
=$ac_libobjs
26791 LTLIBOBJS
=$ac_ltlibobjs
26795 : ${CONFIG_STATUS=./config.status}
26797 ac_clean_files_save
=$ac_clean_files
26798 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
26799 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26800 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26801 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26803 # Generated by $as_me.
26804 # Run this file to recreate the current configuration.
26805 # Compiler output produced by configure, useful for debugging
26806 # configure, is in config.log if it exists.
26809 ac_cs_recheck=false
26811 SHELL=\${CONFIG_SHELL-$SHELL}
26814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26815 ## --------------------- ##
26816 ## M4sh Initialization. ##
26817 ## --------------------- ##
26819 # Be more Bourne compatible
26820 DUALCASE
=1; export DUALCASE
# for MKS sh
26821 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
26824 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26825 # is contrary to our usage. Disable this feature.
26826 alias -g '${1+"$@"}'='"$@"'
26827 setopt NO_GLOB_SUBST
26829 case `(set -o) 2>/dev/null` in
26830 *posix
*) set -o posix
;;
26839 # Avoid depending upon Character Ranges.
26840 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26841 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26842 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26843 as_cr_digits
='0123456789'
26844 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26849 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26850 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26851 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26852 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26853 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26854 as_echo='printf %s
\n'
26855 as_echo_n='printf %s
'
26857 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26858 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
26859 as_echo_n='/usr
/ucb
/echo -n'
26861 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26862 as_echo_n_body='eval
26866 expr "X$arg" : "X\\(.*\\)$as_nl";
26867 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26869 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
26871 export as_echo_n_body
26872 as_echo_n='sh
-c $as_echo_n_body as_echo
'
26874 export as_echo_body
26875 as_echo='sh
-c $as_echo_body as_echo
'
26878 # The user is always right.
26879 if test "${PATH_SEPARATOR+set}" != set; then
26881 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26882 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26887 # Support unset when possible.
26888 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26896 # We need space, tab and new line, in precisely that order. Quoting is
26897 # there to prevent editors from complaining about space-tab.
26898 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26899 # splitting by setting IFS to empty value.)
26902 # Find who we are. Look in the path if we contain no directory separator.
26904 *[\\/]* ) as_myself=$0 ;;
26905 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26906 for as_dir in $PATH
26909 test -z "$as_dir" && as_dir=.
26910 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26916 # We did not find ourselves, most probably we were run as `sh COMMAND'
26917 # in which case we are not to be found in the path.
26918 if test "x$as_myself" = x
; then
26921 if test ! -f "$as_myself"; then
26922 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26923 { (exit 1); exit 1; }
26926 # Work around bugs in pre-3.0 UWIN ksh.
26927 for as_var
in ENV MAIL MAILPATH
26928 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
26940 # Required to use basename.
26941 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26942 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26948 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26949 as_basename
=basename
26955 # Name of the executable.
26956 as_me
=`$as_basename -- "$0" ||
26957 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26958 X"$0" : 'X\(//\)$' \| \
26959 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26961 sed '/^.*\/\([^/][^/]*\)\/*$/{
26980 as_lineno_1
=$LINENO
26981 as_lineno_2
=$LINENO
26982 test "x$as_lineno_1" != "x$as_lineno_2" &&
26983 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26985 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26986 # uniformly replaced by the line number. The first 'sed' inserts a
26987 # line-number line after each line using $LINENO; the second 'sed'
26988 # does the real work. The second script uses 'N' to pair each
26989 # line-number line with the line containing $LINENO, and appends
26990 # trailing '-' during substitution so that $LINENO is not a special
26991 # case at line end.
26992 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26993 # scripts with optimization help from Paolo Bonzini. Blame Lee
26994 # E. McMahon (1931-1989) for sed's syntax. :-)
27006 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27009 ' >$as_me.lineno
&&
27010 chmod +x
"$as_me.lineno" ||
27011 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27012 { (exit 1); exit 1; }; }
27014 # Don't try to exec as it changes $[0], causing all sort of problems
27015 # (the dirname of $[0] is not the place where we might find the
27016 # original and so on. Autoconf is especially sensitive to this).
27017 .
"./$as_me.lineno"
27018 # Exit status is that of the last command.
27023 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27029 ECHO_C
= ECHO_N
= ECHO_T
=
27030 case `echo -n x` in
27032 case `echo 'x\c'` in
27033 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27039 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27040 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27046 rm -f conf$$ conf$$.exe conf$$.
file
27047 if test -d conf$$.dir
; then
27048 rm -f conf$$.dir
/conf$$.
file
27051 mkdir conf$$.dir
2>/dev
/null
27053 if (echo >conf$$.
file) 2>/dev
/null
; then
27054 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27056 # ... but there are two gotchas:
27057 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27058 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27059 # In both cases, we have to default to `cp -p'.
27060 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27062 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27070 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27071 rmdir conf$$.dir
2>/dev
/null
27073 if mkdir
-p .
2>/dev
/null
; then
27076 test -d .
/-p && rmdir .
/-p
27080 if test -x / >/dev
/null
2>&1; then
27081 as_test_x
='test -x'
27083 if ls -dL / >/dev
/null
2>&1; then
27090 if test -d "$1"; then
27096 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27097 ???[sx]*):;;*)false;;esac;fi
27101 as_executable_p
=$as_test_x
27103 # Sed expression to map a string onto a valid CPP name.
27104 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27106 # Sed expression to map a string onto a valid variable name.
27107 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27112 # Save the log message, to keep $[0] and so on meaningful, and to
27113 # report actual input values of CONFIG_FILES etc. instead of their
27114 # values after options handling.
27116 This file was extended by emacs $as_me 24.0.50, which was
27117 generated by GNU Autoconf 2.62. Invocation command line was
27119 CONFIG_FILES = $CONFIG_FILES
27120 CONFIG_HEADERS = $CONFIG_HEADERS
27121 CONFIG_LINKS = $CONFIG_LINKS
27122 CONFIG_COMMANDS = $CONFIG_COMMANDS
27125 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27131 # Files that config.status was made for.
27132 config_files="$ac_config_files"
27133 config_headers="$ac_config_headers"
27134 config_commands="$ac_config_commands"
27138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27140 \`$as_me' instantiates files from templates according to the
27141 current configuration.
27143 Usage: $0 [OPTIONS] [FILE]...
27145 -h, --help print this help, then exit
27146 -V, --version print version number and configuration settings, then exit
27147 -q, --quiet do not print progress messages
27148 -d, --debug don't remove temporary files
27149 --recheck update $as_me by reconfiguring in the same conditions
27150 --file=FILE[:TEMPLATE]
27151 instantiate the configuration file FILE
27152 --header=FILE[:TEMPLATE]
27153 instantiate the configuration header FILE
27155 Configuration files:
27158 Configuration headers:
27161 Configuration commands:
27164 Report bugs to <bug-autoconf@gnu.org>."
27167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27169 emacs config.status 24.0.50
27170 configured by $0, generated by GNU Autoconf 2.62,
27171 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27173 Copyright (C) 2008 Free Software Foundation, Inc.
27174 This config.status script is free software; the Free Software Foundation
27175 gives unlimited permission to copy, distribute and modify it."
27180 test -n "\$AWK" || AWK=awk
27183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27184 # The default lists apply if the user does not specify any file.
27190 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27191 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27202 # Handling of the options.
27203 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27205 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27206 $as_echo "$ac_cs_version"; exit ;;
27207 --debug |
--debu |
--deb |
--de |
--d |
-d )
27209 --file |
--fil |
--fi |
--f )
27212 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27214 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
27215 ac_need_defaults
=false
;;
27216 --header |
--heade |
--head |
--hea )
27219 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27221 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
27222 ac_need_defaults
=false
;;
27224 # Conflict between --help and --header
27225 { $as_echo "$as_me: error: ambiguous option: $1
27226 Try \`$0 --help' for more information." >&2
27227 { (exit 1); exit 1; }; };;
27228 --help |
--hel |
-h )
27229 $as_echo "$ac_cs_usage"; exit ;;
27230 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27231 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27234 # This is an error.
27235 -*) { $as_echo "$as_me: error: unrecognized option: $1
27236 Try \`$0 --help' for more information." >&2
27237 { (exit 1); exit 1; }; } ;;
27239 *) ac_config_targets
="$ac_config_targets $1"
27240 ac_need_defaults
=false
;;
27246 ac_configure_extra_args
=
27248 if $ac_cs_silent; then
27250 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27255 if \$ac_cs_recheck; then
27256 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27258 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27259 CONFIG_SHELL='$SHELL'
27260 export CONFIG_SHELL
27265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27269 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27270 ## Running $as_me. ##
27276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27280 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27286 # Handling of arguments.
27287 for ac_config_target
in $ac_config_targets
27289 case $ac_config_target in
27290 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27291 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
27292 "lib-src/Makefile") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile" ;;
27293 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
27294 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
27295 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
27296 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
27297 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
27298 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27299 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
27300 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
27301 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
27302 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
27304 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27305 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27306 { (exit 1); exit 1; }; };;
27311 # If the user did not use the arguments to specify the items to instantiate,
27312 # then the envvar interface is used. Set only those that are not.
27313 # We use the long form for the default assignment because of an extremely
27314 # bizarre bug on SunOS 4.1.3.
27315 if $ac_need_defaults; then
27316 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
27317 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
27318 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
27321 # Have a temporary directory for convenience. Make it in the build tree
27322 # simply because there is no reason against having it here, and in addition,
27323 # creating and moving files from /tmp can sometimes cause problems.
27324 # Hook for its removal unless debugging.
27325 # Note that there is a small window in which the directory will not be cleaned:
27326 # after its creation but before its name has been assigned to `$tmp'.
27330 trap 'exit_status=$?
27331 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27333 trap '{ (exit 1); exit 1; }' 1 2 13 15
27335 # Create a (secure) tmp directory for tmp files.
27338 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27339 test -n "$tmp" && test -d "$tmp"
27342 tmp
=.
/conf$$
-$RANDOM
27343 (umask 077 && mkdir
"$tmp")
27346 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27347 { (exit 1); exit 1; }
27350 # Set up the scripts for CONFIG_FILES section.
27351 # No need to generate them if there are no CONFIG_FILES.
27352 # This happens for instance with `./config.status config.h'.
27353 if test -n "$CONFIG_FILES"; then
27357 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27358 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27361 ac_cs_awk_cr
=$ac_cr
27364 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27369 echo "cat >conf$$subs.awk <<_ACEOF" &&
27370 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27372 } >conf$$subs.sh ||
27373 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27374 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27375 { (exit 1); exit 1; }; }
27376 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27378 for ac_last_try in false false false false false :; do
27379 . ./conf$$subs.sh ||
27380 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27381 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27382 { (exit 1); exit 1; }; }
27384 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27386 elif $ac_last_try; then
27387 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
27388 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
27389 { (exit 1); exit 1; }; }
27391 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27394 rm -f conf$$subs.sh
27396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27397 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
27401 s/^/S["/; s
/!.
*/"]=/
27411 s/\(.\{148\}\).*/\1/
27413 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
27418 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27425 s/\(.\{148\}\).*/\1/
27427 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
27431 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
27436 ' <conf$$subs.awk | sed '
27441 ' >>$CONFIG_STATUS || ac_write_fail=1
27442 rm -f conf$$subs.awk
27443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27445 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
27446 for (key in S) S_is_set[key] = 1
27452 nfields = split(line, field, "@
")
27454 len = length(field[1])
27455 for (i = 2; i < nfields; i++) {
27457 keylen = length(key)
27458 if (S_is_set[key]) {
27460 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27461 len += length(value) + length(field[++i])
27472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27473 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27474 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
27477 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
27478 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
27479 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
27480 { (exit 1); exit 1; }; }
27483 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27484 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
27485 # trailing colons and then remove the whole line if VPATH becomes empty
27486 # (actually we leave an empty line to preserve line numbers).
27487 if test "x
$srcdir" = x.; then
27488 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27489 s/:*\$(srcdir):*/:/
27490 s/:*\${srcdir}:*/:/
27492 s/^\([^=]*=[ ]*\):*/\1/
27498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27499 fi # test -n "$CONFIG_FILES"
27501 # Set up the scripts for CONFIG_HEADERS section.
27502 # No need to generate them if there are no CONFIG_HEADERS.
27503 # This happens for instance with `./config.status Makefile'.
27504 if test -n "$CONFIG_HEADERS"; then
27505 cat >"$tmp/defines.
awk" <<\_ACAWK ||
27509 # Transform confdefs.h into an awk script `defines.awk', embedded as
27510 # here-document in config.status, that substitutes the proper values into
27511 # config.h.in to produce config.h.
27513 # Create a delimiter string that does not exist in confdefs.h, to ease
27514 # handling of long lines.
27516 for ac_last_try in false false :; do
27517 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
27518 if test -z "$ac_t"; then
27520 elif $ac_last_try; then
27521 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
27522 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
27523 { (exit 1); exit 1; }; }
27525 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
27529 # For the awk script, D is an array of macro values keyed by name,
27530 # likewise P contains macro parameters if any. Preserve backslash
27531 # newline sequences.
27533 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27535 s/.\{148\}/&'"$ac_delim"'/g
27538 s/^[ ]*#[ ]*define[ ][ ]*/ /
27545 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
27547 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
27551 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
27552 D["\
1"]=" \
3\\\\\\n
"\\/p
27554 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
27559 s/.\{148\}/&'"$ac_delim"'/g
27564 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
27567 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
27569 ' <confdefs.h | sed '
27570 s/'"$ac_delim"'/"\\\
27571 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27574 for (key in D) D_is_set[key] = 1
27577 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27579 split(line, arg, " ")
27580 if (arg[1] == "#") {
27584 defundef
= substr
(arg
[1], 2)
27587 split(mac1
, mac2
, "(") #)
27589 if (D_is_set
[macro
]) {
27590 # Preserve the white space surrounding the "#".
27591 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
27592 print prefix
"define", macro P
[macro
] D
[macro
]
27595 # Replace #undef with comments. This is necessary, for example,
27596 # in the case of _POSIX_SOURCE, which is predefined and required
27597 # on some systems where configure will not decide to define it.
27598 if (defundef
== "undef") {
27599 print
"/*", line
, "*/"
27607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27608 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27609 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27610 { (exit 1); exit 1; }; }
27611 fi # test -n "$CONFIG_HEADERS"
27614 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27619 :[FHLC
]) ac_mode
=$ac_tag; continue;;
27621 case $ac_mode$ac_tag in
27623 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27624 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27625 { (exit 1); exit 1; }; };;
27626 :[FH
]-) ac_tag
=-:-;;
27627 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
27644 -) ac_f
="$tmp/stdin";;
27645 *) # Look for the file first in the build tree, then in the source tree
27646 # (if the path is not absolute). The absolute path cannot be DOS-style,
27647 # because $ac_f cannot contain `:'.
27651 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
27653 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27654 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27655 { (exit 1); exit 1; }; };;
27657 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27658 ac_file_inputs
="$ac_file_inputs '$ac_f'"
27661 # Let's still pretend it is `configure' which instantiates (i.e., don't
27662 # use $as_me), people would be surprised to read:
27663 # /* config.h. Generated by config.status. */
27664 configure_input
='Generated from '`
27665 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27667 if test x
"$ac_file" != x-
; then
27668 configure_input
="$ac_file. $configure_input"
27669 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27670 $as_echo "$as_me: creating $ac_file" >&6;}
27672 # Neutralize special characters interpreted by sed in replacement strings.
27673 case $configure_input in #(
27674 *\
&* |
*\|
* |
*\\* )
27675 ac_sed_conf_input
=`$as_echo "$configure_input" |
27676 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27677 *) ac_sed_conf_input
=$configure_input;;
27681 *:-:* |
*:-) cat >"$tmp/stdin" \
27682 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27683 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27684 { (exit 1); exit 1; }; } ;;
27689 ac_dir
=`$as_dirname -- "$ac_file" ||
27690 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27691 X"$ac_file" : 'X\(//\)[^/]' \| \
27692 X"$ac_file" : 'X\(//\)$' \| \
27693 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27694 $as_echo X"$ac_file" |
27695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27699 /^X\(\/\/\)[^/].*/{
27714 -*) as_dir
=.
/$as_dir;;
27716 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27720 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27721 *) as_qdir
=$as_dir;;
27723 as_dirs
="'$as_qdir' $as_dirs"
27724 as_dir
=`$as_dirname -- "$as_dir" ||
27725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27726 X"$as_dir" : 'X\(//\)[^/]' \| \
27727 X"$as_dir" : 'X\(//\)$' \| \
27728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27729 $as_echo X"$as_dir" |
27730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27734 /^X\(\/\/\)[^/].*/{
27747 test -d "$as_dir" && break
27749 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27750 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27751 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27752 { (exit 1); exit 1; }; }; }
27756 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27758 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27759 # A ".." for each directory in $ac_dir_suffix.
27760 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27761 case $ac_top_builddir_sub in
27762 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27763 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27766 ac_abs_top_builddir
=$ac_pwd
27767 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27768 # for backward compatibility:
27769 ac_top_builddir
=$ac_top_build_prefix
27772 .
) # We are building in place.
27774 ac_top_srcdir
=$ac_top_builddir_sub
27775 ac_abs_top_srcdir
=$ac_pwd ;;
27776 [\\/]* | ?
:[\\/]* ) # Absolute name.
27777 ac_srcdir
=$srcdir$ac_dir_suffix;
27778 ac_top_srcdir
=$srcdir
27779 ac_abs_top_srcdir
=$srcdir ;;
27780 *) # Relative name.
27781 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27782 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27783 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27785 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27795 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
27796 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
27800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27801 # If the template does not know about datarootdir, expand it.
27802 # FIXME: This hack should be removed a few years after 2.60.
27803 ac_datarootdir_hack
=; ac_datarootdir_seen
=
27816 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27817 *datarootdir
*) ac_datarootdir_seen
=yes;;
27818 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
27819 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27820 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27823 ac_datarootdir_hack='
27824 s&@datadir@&$datadir&g
27825 s&@docdir@&$docdir&g
27826 s&@infodir@&$infodir&g
27827 s&@localedir@&$localedir&g
27828 s&@mandir@&$mandir&g
27829 s&\\\${datarootdir}&$datarootdir&g' ;;
27833 # Neutralize VPATH when `$srcdir' = `.'.
27834 # Shell code in configure.ac might set extrasub.
27835 # FIXME: do we really want to maintain this feature?
27836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27837 ac_sed_extra="$ac_vpsub
27840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
27842 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
27843 s|@configure_input@|
$ac_sed_conf_input|
;t t
27844 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
27845 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
27846 s
&@srcdir@
&$ac_srcdir&;t t
27847 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27848 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27849 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27850 s
&@builddir@
&$ac_builddir&;t t
27851 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27852 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27853 s
&@INSTALL@
&$ac_INSTALL&;t t
27854 $ac_datarootdir_hack
27856 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
27857 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
27858 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
27859 { (exit 1); exit 1; }; }
27861 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27862 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27864 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27865 which seems to be undefined. Please make sure it is defined." >&5
27866 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27867 which seems to be undefined. Please make sure it is defined." >&2;}
27871 -) cat "$tmp/out" && rm -f "$tmp/out";;
27872 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27874 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27875 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27876 { (exit 1); exit 1; }; }
27882 if test x"$ac_file" != x-; then
27884 $as_echo "/* $configure_input */" \
27885 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27886 } >"$tmp/config.h" \
27887 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27888 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27889 { (exit 1); exit 1; }; }
27890 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27891 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27892 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27895 mv "$tmp/config.h" "$ac_file" \
27896 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27897 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27898 { (exit 1); exit 1; }; }
27901 $as_echo "/* $configure_input */" \
27902 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27903 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27904 $as_echo "$as_me: error: could not create -" >&2;}
27905 { (exit 1); exit 1; }; }
27909 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27910 $as_echo "$as_me: executing $ac_file commands" >&6;}
27915 case $ac_file$ac_mode in
27918 ### Make the necessary directories, if they don't exist.
27919 for dir
in etc lisp
; do
27920 test -d ${dir} || mkdir
${dir}
27923 # Build src/Makefile from ${srcdir}/src/Makefile.c
27924 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27925 # This must be done after src/config.h is built, since we rely on that file.
27927 echo creating src
/epaths.h
27928 ${MAKE-make} epaths-force
27930 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27931 # `..' to `. .' unless invoked with -traditional
27933 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
27934 CPPFLAGS
="$CPPFLAGS -traditional"
27937 echo creating src
/Makefile
27939 rm -f junk.c junk1.c junk2.c
27940 sed -e '/start of cpp stuff/q' \
27941 < Makefile.c
> junk1.c
27942 sed -e '1,/start of cpp stuff/d'\
27943 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27944 < Makefile.c
> junk.c
27945 $CPP -P $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
27946 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27947 cat junk1.c junk2.c
> Makefile.new
27948 rm -f junk.c junk1.c junk2.c
27949 chmod 444 Makefile.new
27950 mv -f Makefile.new Makefile
27953 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
27954 echo creating src
/.gdbinit
27955 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
27964 { (exit 0); exit 0; }
27966 chmod +x
$CONFIG_STATUS
27967 ac_clean_files
=$ac_clean_files_save
27969 test $ac_write_fail = 0 ||
27970 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27971 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27972 { (exit 1); exit 1; }; }
27975 # configure is writing to config.log, and then calls config.status.
27976 # config.status does its own redirection, appending to config.log.
27977 # Unfortunately, on DOS this fails, as config.log is still kept open
27978 # by configure, so config.status won't be able to write to it; its
27979 # output is simply discarded. So we exec the FD to /dev/null,
27980 # effectively closing config.log, so it can be properly (re)opened and
27981 # appended to by config.status. When coming back to configure, we
27982 # need to make the FD available again.
27983 if test "$no_create" != yes; then
27985 ac_config_status_args
=
27986 test "$silent" = yes &&
27987 ac_config_status_args
="$ac_config_status_args --quiet"
27989 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27991 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27992 # would make configure fail if this is the last instruction.
27993 $ac_cs_success ||
{ (exit 1); exit 1; }
27995 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27996 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27997 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}